|
posted 11-20-98 11:34 AM CT (US)
Title: RocketJump Add-on
Difficulty: Easy
By: Philip (aka Maj.Bitch)
Email: peblair@gv.net
Date: 11-16-98
Note: Please give credit where credit is due.
======================================================
I use to really
enjoy rocket jumping. It was a great way
to get to those out of reach places and it was alot of fun!!
But, the only servers I could find rocket jumping (without
blowing myself to pieces) was on servers where there was
no self damage from any weapon! So, I decided to look
into what it would take to make rocket jumping a reality
without upsetting the entire gameplay. Well, this little
change will accomplish just that without any hassels or
special flags!
So Coders, now there
is no excuse not to give your players
their rocket jumping back!!
HINT: Go to the Lost
Hallways DM Map and jump up on top
of the cliffs surrounding the bridge over the water!! Great
place to pick off those poor bastards passing on through
with your railgun!
ALSO: If you are in
a jam, rocket jump straight up and
the radius damage will get those bastards trying to kill
you (while you are in the air!!).
Okay, let's get
started!
===============================================================
Open up your
g_combat.c file and find your void T_Damage()
function. Add the lines below as shown:
void
T_Damage(..........)
{
gclient_t *client;
int take;
int save;
int asave;
int psave;
int te_sparks;
if
(!targ->takedamage)
return;
------- ADD THESE
LINES RIGHT HERE -----------
// if rocket jump by
owner then no damage
if (mod==MOD_R_SPLASH)
if ((targ==attacker) && (attacker==inflictor->owner))
damage=0;
--------- REST OF
CODE CONTINUES ON --------------
// friendly fire
avoidance
// if enabled you can't hurt teammates(but you can hurt yourself)
// knockback still occurs
if ((targ != attacker) &&((deathmatch->value
&&((int)(dmflags->value) &(DF_MODELTEAMS | DF_SKINTEAMS))) ||
coop->value))
{
if (OnSameTeam(targ, attacker))
{
That's it!!!
===============================================================
Lastly..
For those who want a
good rocket jumping alias, add these lines
to your Autoexec.cfg file!!
bind q +rj // or
whatever key you want
// Rocket Jump alias
code - WORKS GREAT!!
alias +rj "cl_pitchspeed 10000;wait;+lookdown;+moveup;+attack"
alias -rj "-moveup;-attack;-lookdown;centerview;cl_pitchspeed 100"
That's it!! Now go KILL ALL THOSE BASTARDS!
Have Fun!!
philip
|