Wavelength Logo
tl.jpg (2351 bytes) blank.gif (837 bytes) tr.jpg (2446 bytes)
blank.gif (837 bytes)
RPG Power by Voidmaster
blank.gif (837 bytes)

Ok, today we're going to make the RPG a little more powerful...Alright, a LOT more powerful. The RPG rocket will be turned into into a bomber-rocket from hell! It will drop contact grenades every .1 seconds. When we're through you'll be turning your friends into stuff suitable for a Ziploc baggie instead of a HEV suit.  To start off, Im assuming you have a compiler, know how to work it, and a test directory with liblist.gam.  Open up the mp.dll and go to the rpg.cpp file. Go down to around line 300, and you'll see this:

void CRpgRocket :: FollowThink( void  )

Now, I'm NOT an excellent coder, and don't understand half of the code in this function ;-), but what I do understand (or at least think I understand) is that this is called every .1 seconds once the rocket has been shot and has ignited.  All you have to do is take this code:

CGrenade::ShootContact( pev,pev->origin + pev->view_ofs + gpGlobals->v_forward * 16, gpGlobals->v_forward * 800 );

and put it right above the

pev->nextthink = gpGlobals->time + 0.1;   

line.  This says that at the end of the FollowThink() there is a contact grenade shot with:

An owner of: pev    (I think that's the rocket)
A start vector of: pev->origin + pev->view_ofs + gpGlobals->v_forward * 16    (Where the rocket is plus some other variables which I dont know about and won't mess with)
And a velocity of: gpGlobals->v_forward * 800 (Which I'm not sure what it is)

That's all there is to it! Now compile, activate the mod, and enter a map (I use bounce) type in impulse 101 (you did use sv_cheats 1 right?) and take the rocket launcher out for a spin!  I might make a better tutorial based on a similar idea (eg. a crossbow bolt that drops snarks hehehehe) but I won't now. I don't know wether this works in multiplayer (I assume so) and if so, who gets credit for the kills (The rocket?) but you're welcome to try it out!

Disclamer: I don't hold any responsibility for any negative effects this may have upon anyone/anything and don't guaranty that it will even work, but I assure you that to the best of my knowlege it will NOT disfunction or do any harm to you, your family, your computer, your cat, or Rocky the Flying Squirrel.

-Voidmaster (voidmaster@hotmail.com)

 

blank.gif (837 bytes)
bl.jpg (2471 bytes) blank.gif (837 bytes) br.jpg (2132 bytes)