Skip to content

Commit

Permalink
Grenades will no longer immediately explode when they touch a carcass
Browse files Browse the repository at this point in the history
(fixes #474)
  • Loading branch information
theastropath committed Jul 7, 2023
1 parent 90e9cc7 commit b4b2211
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions DXRBalance/DeusEx/Classes/ThrownProjectile.uc
Original file line number Diff line number Diff line change
Expand Up @@ -121,3 +121,26 @@ state Exploding
}

}

auto simulated state Flying
{
simulated function ProcessTouch (Actor Other, Vector HitLocation)
{
if (bStuck)
return;

if ((Other != instigator) && (DeusExProjectile(Other) == None) &&
(Other != Owner) && DeusExCarcass(Other)==None) //Ignore carcasses
{
damagee = Other;
Explode(HitLocation, Normal(HitLocation-damagee.Location));

// DEUS_EX AMSD Spawn blood server side only
if (Role == ROLE_Authority)
{
if (damagee.IsA('Pawn') && !damagee.IsA('Robot') && bBlood)
SpawnBlood(HitLocation, Normal(HitLocation-damagee.Location));
}
}
}
}

0 comments on commit b4b2211

Please sign in to comment.