Skip to content

Commit

Permalink
AugDefense only track projectiles out to the defense range + 10ft
Browse files Browse the repository at this point in the history
  • Loading branch information
Die4Ever committed Mar 29, 2024
1 parent e566b0b commit 4b39135
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion DXRBalance/DeusEx/Classes/AugDefense.uc
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ class DXRAugDefense injects AugDefense;
// DEUS_EX AMSD Exported to a function since it also needs to exist in the client
// TriggerDefenseAugHUD;
// DXRando: ignore bStuck projectiles, we can't do this in the super because we need it to return the 2nd closest projectile if there is a stuck one
// also only track projectiles to a certain distance, to reduce energy usage and annoyance
// ------------------------------------------------------------------------------

simulated function DeusExProjectile FindNearestProjectile()
Expand All @@ -15,7 +16,7 @@ simulated function DeusExProjectile FindNearestProjectile()

minproj = None;
mindist = 999999;
foreach RadiusActors(class'DeusExProjectile', proj, LevelValues[CurrentLevel]*2, player.Location)
foreach RadiusActors(class'DeusExProjectile', proj, LevelValues[CurrentLevel] + 160, player.Location)
{
if (Level.NetMode != NM_Standalone)
bValidProj = !proj.bIgnoresNanoDefense;
Expand Down

0 comments on commit 4b39135

Please sign in to comment.