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:
parent
27017feed2
commit
0c8a16807f
6 changed files with 14 additions and 1 deletions
|
|
@ -357,15 +357,22 @@ Class GuidedWarShell : WarShell
|
|||
{
|
||||
double lagangle, lagpitch, lagroll, lagangle2, lagpitch2, lagroll2,
|
||||
guideangle, guidepitch, guideroll;
|
||||
bool justleft;
|
||||
|
||||
override void PostBeginPlay()
|
||||
{
|
||||
Super.PostBeginPlay();
|
||||
if ( target && target.player ) target.player.camera = self;
|
||||
justleft = true;
|
||||
}
|
||||
override void Tick()
|
||||
{
|
||||
Actor.Tick();
|
||||
if ( justleft && (Distance3D(target) > (2*max(target.radius,target.height))) )
|
||||
{
|
||||
justleft = false;
|
||||
bHITOWNER = true;
|
||||
}
|
||||
if ( globalfreeze || level.frozen ) return;
|
||||
if ( !bMISSILE ) return;
|
||||
if ( !target || !target.player || (target.Health <= 0) )
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue