forked from id/quake-qw-qc
as released 1998-08-26
This commit is contained in:
parent
88be1d246c
commit
5ec19369e5
2 changed files with 6 additions and 5 deletions
|
@ -161,10 +161,11 @@ void(entity targ, entity inflictor, entity attacker, float damage) T_Damage=
|
|||
dir = targ.origin - (inflictor.absmin + inflictor.absmax) * 0.5;
|
||||
dir = normalize(dir);
|
||||
// Set kickback for smaller weapons
|
||||
// Read: only if it's not yourself doing the damage
|
||||
if ( (damage < 60) & ((attacker.classname == "player") & (targ.classname == "player")) & ( attacker.netname != targ.netname))
|
||||
targ.velocity = targ.velocity + dir * damage * 11;
|
||||
else
|
||||
//Zoid -- use normal NQ kickback
|
||||
// // Read: only if it's not yourself doing the damage
|
||||
// if ( (damage < 60) & ((attacker.classname == "player") & (targ.classname == "player")) & ( attacker.netname != targ.netname))
|
||||
// targ.velocity = targ.velocity + dir * damage * 11;
|
||||
// else
|
||||
// Otherwise, these rules apply to rockets and grenades
|
||||
// for blast velocity
|
||||
targ.velocity = targ.velocity + dir * damage * 8;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
../qwprogs.dat
|
||||
./qwprogs.dat
|
||||
|
||||
defs.qc
|
||||
subs.qc
|
||||
|
|
Loading…
Reference in a new issue