1
0
mirror of https://github.com/JezuzLizard/BO2-Reimagined.git synced 2025-07-06 20:08:51 -05:00

Encounter: change negative and positive Insta Kill interaction

This commit is contained in:
Jbleezy
2023-10-03 19:46:47 -07:00
parent 0a31b450e7
commit 18de2a9e08

View File

@ -597,7 +597,9 @@ insta_kill_powerup( drop_item, player )
temp_enta = spawn( "script_origin", ( 0, 0, 0 ) );
temp_enta playloopsound( "zmb_insta_kill_loop" );
level.zombie_vars[ team ][ "zombie_insta_kill" ] = 1;
level.zombie_vars[ team ][ "zombie_half_damage" ] = 0;
level.zombie_vars[ team ][ "zombie_insta_kill" ] = !is_true(level.zombie_vars[ team ][ "zombie_powerup_half_damage_on" ]);
level.zombie_vars[ team ][ "zombie_powerup_insta_kill_on" ] = 1;
while ( level.zombie_vars[ team ][ "zombie_powerup_insta_kill_time" ] >= 0 )
@ -606,7 +608,9 @@ insta_kill_powerup( drop_item, player )
level.zombie_vars[ team ][ "zombie_powerup_insta_kill_time" ] -= 0.05;
}
level.zombie_vars[ team ][ "zombie_half_damage" ] = is_true(level.zombie_vars[ team ][ "zombie_powerup_half_damage_on" ]);
level.zombie_vars[ team ][ "zombie_insta_kill" ] = 0;
level.zombie_vars[ team ][ "zombie_powerup_insta_kill_on" ] = 0;
level.zombie_vars[ team ][ "zombie_powerup_insta_kill_time" ] = time;
@ -638,7 +642,9 @@ half_damage_powerup( drop_item, player )
return;
}
level.zombie_vars[ team ][ "zombie_half_damage" ] = 1;
level.zombie_vars[ team ][ "zombie_insta_kill" ] = 0;
level.zombie_vars[ team ][ "zombie_half_damage" ] = !is_true(level.zombie_vars[ team ][ "zombie_powerup_insta_kill_on" ]);
level.zombie_vars[ team ][ "zombie_powerup_half_damage_on" ] = 1;
while ( level.zombie_vars[ team ][ "zombie_powerup_half_damage_time" ] >= 0 )
@ -647,7 +653,9 @@ half_damage_powerup( drop_item, player )
level.zombie_vars[ team ][ "zombie_powerup_half_damage_time" ] -= 0.05;
}
level.zombie_vars[ team ][ "zombie_insta_kill" ] = is_true(level.zombie_vars[ team ][ "zombie_powerup_insta_kill_on" ]);
level.zombie_vars[ team ][ "zombie_half_damage" ] = 0;
level.zombie_vars[ team ][ "zombie_powerup_half_damage_on" ] = 0;
level.zombie_vars[ team ][ "zombie_powerup_half_damage_time" ] = time;
}