mirror of
https://github.com/nzp-team/quakec.git
synced 2024-11-24 21:02:14 +00:00
SERVER: Allow Grenade contact to inflict damage
This commit is contained in:
parent
d94ce26392
commit
cb00d2ccf2
1 changed files with 4 additions and 0 deletions
|
@ -1322,6 +1322,10 @@ void() NadeStraighten =
|
||||||
};
|
};
|
||||||
void() Velocity_reduce =
|
void() Velocity_reduce =
|
||||||
{
|
{
|
||||||
|
// Do one (1) damage on monster contact, to kill when Insta-Kill is active.
|
||||||
|
if (other.flags & FL_MONSTER)
|
||||||
|
DamageHandler(other, self.owner, 1, S_NORMAL);
|
||||||
|
|
||||||
if (!other.solid || other.solid == SOLID_TRIGGER)
|
if (!other.solid || other.solid == SOLID_TRIGGER)
|
||||||
if (other != world)
|
if (other != world)
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue