Enable HITOWNER on bounce for grenades (small hack was required), flak shrapnel, ripper blades.

Enable HITOWNER on biosludge after colliding with a surface. Not needed, but just done for the sake of it.
Enable HITOWNER on guided redeemer missiles after they're far away from the shooter.
This commit is contained in:
Marisa the Magician 2018-08-17 21:09:18 +02:00
commit 0c8a16807f
6 changed files with 14 additions and 1 deletions

View file

@ -192,6 +192,7 @@ Class UTGrenade : UTRocket
Default
{
DamageType 'GrenadeDeath';
Damage 1; // needs to be nonzero for self-hit to work (might send a PR to fix this later)
-NOGRAVITY;
+USEBOUNCESTATE;
-BOUNCEAUTOOFF;
@ -229,6 +230,7 @@ Class UTGrenade : UTRocket
rollvel = FRandom[Eightball](-16,16);
pitchvel = FRandom[Eightball](-16,16);
anglevel = FRandom[Eightball](-16,16);
bHITOWNER = true;
}
Goto Spawn;
Death: