fix: hostage code (#269)

fix: hostage code
add: yb_random_knife_attacks cvar
This commit is contained in:
godhand897 2022-01-03 07:18:36 +01:00 committed by GitHub
commit f55ac6c5c4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 100 additions and 8 deletions

View file

@ -123,7 +123,7 @@ void Game::levelInitialize (edict_t *entities, int max) {
else if (strcmp (classname, "func_vip_safetyzone") == 0 || strcmp (classname, "info_vip_safetyzone") == 0) {
m_mapFlags |= MapFlags::Assassination; // assassination map
}
else if (strcmp (classname, "hostage_entity") == 0) {
else if (strcmp (classname, "hostage_entity") == 0 || strcmp (classname, "monster_scientist") == 0) {
m_mapFlags |= MapFlags::HostageRescue; // rescue map
}
else if (strcmp (classname, "func_bomb_target") == 0 || strcmp (classname, "info_bomb_target") == 0) {