1
0
mirror of https://github.com/JezuzLizard/BO2-Reimagined.git synced 2025-06-10 15:17:57 -05:00

Zombies: neck counts as headshot

This commit is contained in:
Jbleezy
2021-12-20 20:06:02 -08:00
parent 6d604c7465
commit eb52819a70
3 changed files with 17 additions and 0 deletions

View File

@ -47,6 +47,7 @@
## Zombies
* Health capped at 1 million
* Removed walkers in high rounds
* Neck counts as headshot
### Screechers
* Decreased minimum number of melees to kill from 5 to 3

View File

@ -17,6 +17,7 @@ main()
replaceFunc(maps/mp/zombies/_zm::end_game, scripts/zm/replaced/_zm::end_game);
replaceFunc(maps/mp/zombies/_zm_playerhealth::playerhealthregen, scripts/zm/replaced/_zm_playerhealth::playerhealthregen);
replaceFunc(maps/mp/zombies/_zm_utility::track_players_intersection_tracker, scripts/zm/replaced/_zm_utility::track_players_intersection_tracker);
replaceFunc(maps/mp/zombies/_zm_utility::is_headshot, scripts/zm/replaced/_zm_utility::is_headshot);
replaceFunc(maps/mp/zombies/_zm_powerups::nuke_powerup, scripts/zm/replaced/_zm_powerups::nuke_powerup);
replaceFunc(maps/mp/zombies/_zm_equipment::placed_equipment_think, scripts/zm/replaced/_zm_equipment::placed_equipment_think);
replaceFunc(maps/mp/zombies/_zm_ai_basic::inert_wakeup, scripts/zm/replaced/_zm_ai_basic::inert_wakeup);

View File

@ -5,4 +5,19 @@
track_players_intersection_tracker()
{
// BO2 has built in push mechanic
}
is_headshot( sweapon, shitloc, smeansofdeath )
{
if ( smeansofdeath == "MOD_MELEE" || smeansofdeath == "MOD_BAYONET" || smeansofdeath == "MOD_IMPACT" || smeansofdeath == "MOD_UNKNOWN" || smeansofdeath == "MOD_IMPACT" )
{
return 0;
}
if ( shitloc == "head" || shitloc == "helmet" || sHitLoc == "neck" )
{
return 1;
}
return 0;
}