Skip to content

Commit

Permalink
make enemy randomization and respawning ignore critters
Browse files Browse the repository at this point in the history
  • Loading branch information
Die4Ever committed Nov 27, 2020
1 parent 56d5f5b commit aa95f81
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 1 deletion.
Binary file modified DeusEx.u
Binary file not shown.
1 change: 1 addition & 0 deletions DeusEx/Classes/DXREnemies.uc
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,7 @@ function RandoEnemies(int percent)
if( p == newsp ) break;
if( SkipActor(p, 'ScriptedPawn') ) continue;
if( p.bImportant || p.bInvincible ) continue;
if( IsCritter(p) ) continue;
//if( IsInitialEnemy(p) == False ) continue;

if( rng(100) < percent ) RandomizeSP(p, percent);
Expand Down
2 changes: 1 addition & 1 deletion DeusEx/Classes/DXREnemyRespawn.uc
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ function FirstEntry()
function SaveRespawn(ScriptedPawn p, out int i)
{
local int a;
if( p.IsA('Animal') && !p.IsA('Greasel') && !p.IsA('Karkian') && !p.IsA('Gray') && !p.IsA('Doberman') ) return;
if( IsCritter(p) ) return;
if( p.bImportant || p.bInvincible || p.bHidden ) return;

for(a=0; a < ArrayCount(dont_respawn); a++) {
Expand Down

0 comments on commit aa95f81

Please sign in to comment.