Page 1 of 2

Unreal versus CoD2

Posted: May 12th, 2010, 3:47 pm
by <LT>YosemiteSam[NL]
I want to make a redeemer out of the panzerschreck/bazooka for an unreal map I'm making.
I have an idea of how to do that but before I start I just want to know if it's even possible.

What I need to do is changing the splashdamage (and damage radius) of the bazooka so that it matches the redeemer...this can be done with a cvar incorperated in the gsc file of the map, I guess ?

I know that a controlable rocket can't be done or at least not in an easy way (or by me :( ).

Let me know what your thoughts are about this.

(p.s. There will be only one bazooka-redeemer in the map ... like in unreal tournament..so the cvar for bazooka will work only on that one)

Re: Unreal versus CoD2

Posted: May 12th, 2010, 3:52 pm
by Rezil
You need to alter the weapon file or make a new weapon altogether. Keep in mind you'd have to model all of the aspects of the weapon + its animations(reloading, shooting, putting away etc.)

Altering the weapon file itself is easier, it's in iw_13.iwd/weapons/mp/panzerschreck_mp. Extract it, open with a simple text editor and change what you need(splash damage is explosionInnerDamage and explosionOuterDamage iirc). Repack it in a seperate .iwd and put it in your main folder.

Re: Unreal versus CoD2

Posted: May 12th, 2010, 4:19 pm
by <LT>YosemiteSam[NL]
aha ok. That's also what I thought but I was wondering if the damage radius could be anything I want ... maybe it's to big ?

Oh well, I'll start twiddling around with it and see what I can make.

Re: Unreal versus CoD2

Posted: May 14th, 2010, 10:56 pm
by <LT>YosemiteSam[NL]
I made a redeemer look alike by changing the projectilespeed and blastradius.
Thx

Re: Unreal versus CoD2

Posted: May 15th, 2010, 11:08 am
by waywaaaard
Add me on xfire I wanna test the map :)

Re: Unreal versus CoD2

Posted: May 16th, 2010, 5:27 pm
by Rezil
<LT>YosemiteSam[NL] wrote:I made a redeemer look alike by changing the projectilespeed and blastradius.
Thx
No prob happy to help. :P

Re: Unreal versus CoD2

Posted: May 16th, 2010, 8:23 pm
by <LT>YosemiteSam[NL]
Lev!athan wrote:Add me on xfire I wanna test the map :)
Don't use xfire and I haven't started on the map yet. Only made a test map with a jumppad, a teleport, some water you will die in after too long in (like the green stuff in unreal). Been busy changing the panzer into the redeemer and finally got it.
I changed the damage radius and strenght, the firesound, the sound of the rocketflying and the explosionsound of the rocket.
Didn't change the looks of the panzerschreck but I figure that will take me too long :?

Re: Unreal versus CoD2

Posted: May 17th, 2010, 5:11 pm
by ConnoR
This gunna be for CoD2 only then? Btw 100th post. i know it isnt a lot but oh well

Re: Unreal versus CoD2

Posted: May 18th, 2010, 8:41 am
by <LT>YosemiteSam[NL]
Yep it's for CoD2

Re: Unreal versus CoD2

Posted: May 24th, 2010, 4:08 pm
by <LT>YosemiteSam[NL]
Another question,

I want the players on my unreal map to start with only a pistol and nothing more (like in unreal).
Downloaded a pistols only mod but I don't want to incooperate this into my map. The mod gives you 2 pistols and I don't want that.

And I want people to be able to carry more then 2 weapons (again...like in unreal), auto pickup and carry every weapon they pick up.

Can this be done or is this too much work for me as a partial newbie to programming ?

Thx in advance.

Re: Unreal versus CoD2

Posted: May 24th, 2010, 5:06 pm
by Drofder2004
Look into the current game code and locate the portion about loadouts, possible in individual gametypes for CoD2...
Now you should see "takeallweapons" and "giveweapon" and finally "switchtoweapon".
Modify accordingly.

Post back if you are struggling.

Re: Unreal versus CoD2

Posted: May 24th, 2010, 5:43 pm
by <LT>YosemiteSam[NL]
Thx m8 i'll try that.

Re: Unreal versus CoD2

Posted: May 27th, 2010, 10:47 pm
by <LT>YosemiteSam[NL]
I want a script to check if the time is 5 minutes and then play a sound (again like in unreal :) ).

I've made this little script but it doesn't work (mainly cause I don't realy know what i'm doing :? )

Code: Select all

thread time();

}
time()
{
while(1)
{
time = getTime();
if("time" = 300);
playsound ("5minutes");
}
can someone guide me in the right direction please.

Re: Unreal versus CoD2

Posted: May 27th, 2010, 11:28 pm
by Drofder2004
I think getTime counts up, not down, but look in the gametype functions for "checkTimeLimit" function, and that will show "timepassed".

Re: Unreal versus CoD2

Posted: May 28th, 2010, 8:46 am
by <LT>YosemiteSam[NL]
The bad syntax error which I get when running the script is referring to the number 300....it sees it as a bad syntax.
I've looked in the dm_cfg file for checktimelimit and I see what it's doing and how it works. But I think the main problem is that number 300.
I'll also try to write it like in the dm_cfg (timepassed - gettime and so on).