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 = targ.origin - (inflictor.absmin + inflictor.absmax) * 0.5;
|
||||||
dir = normalize(dir);
|
dir = normalize(dir);
|
||||||
// Set kickback for smaller weapons
|
// Set kickback for smaller weapons
|
||||||
// Read: only if it's not yourself doing the damage
|
//Zoid -- use normal NQ kickback
|
||||||
if ( (damage < 60) & ((attacker.classname == "player") & (targ.classname == "player")) & ( attacker.netname != targ.netname))
|
// // Read: only if it's not yourself doing the damage
|
||||||
targ.velocity = targ.velocity + dir * damage * 11;
|
// if ( (damage < 60) & ((attacker.classname == "player") & (targ.classname == "player")) & ( attacker.netname != targ.netname))
|
||||||
else
|
// targ.velocity = targ.velocity + dir * damage * 11;
|
||||||
|
// else
|
||||||
// Otherwise, these rules apply to rockets and grenades
|
// Otherwise, these rules apply to rockets and grenades
|
||||||
// for blast velocity
|
// for blast velocity
|
||||||
targ.velocity = targ.velocity + dir * damage * 8;
|
targ.velocity = targ.velocity + dir * damage * 8;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
../qwprogs.dat
|
./qwprogs.dat
|
||||||
|
|
||||||
defs.qc
|
defs.qc
|
||||||
subs.qc
|
subs.qc
|
||||||
|
|
Loading…
Reference in a new issue