mirror of
https://github.com/JezuzLizard/BO2-Reimagined.git
synced 2025-06-22 05:00:54 -05:00
Replace / with \
This commit is contained in:
@ -2,7 +2,7 @@
|
||||
#include common_scripts\utility;
|
||||
#include maps\mp\zombies\_zm_utility;
|
||||
#include maps\mp\gametypes_zm\_hud_util;
|
||||
#include maps/mp/zombies/_zm;
|
||||
#include maps\mp\zombies\_zm;
|
||||
|
||||
check_quickrevive_for_hotjoin(disconnecting_player)
|
||||
{
|
||||
@ -164,9 +164,9 @@ actor_damage_override( inflictor, attacker, damage, flags, meansofdeath, weapon,
|
||||
}
|
||||
}
|
||||
|
||||
attacker thread maps/mp/gametypes_zm/_weapons::checkhit( weapon );
|
||||
attacker thread maps\mp\gametypes_zm\_weapons::checkhit( weapon );
|
||||
|
||||
if(maps/mp/zombies/_zm_weapons::get_base_weapon_name(weapon, 1) == "saritch_zm")
|
||||
if(maps\mp\zombies\_zm_weapons::get_base_weapon_name(weapon, 1) == "saritch_zm")
|
||||
{
|
||||
final_damage *= 2;
|
||||
}
|
||||
@ -217,7 +217,7 @@ actor_damage_override( inflictor, attacker, damage, flags, meansofdeath, weapon,
|
||||
{
|
||||
if(meansofdeath == "MOD_PISTOL_BULLET" || meansofdeath == "MOD_RIFLE_BULLET")
|
||||
{
|
||||
if(!isSubStr(weaponClass(weapon), "spread") || maps/mp/zombies/_zm_weapons::get_base_weapon_name(weapon, 1) == "ksg_zm")
|
||||
if(!isSubStr(weaponClass(weapon), "spread") || maps\mp\zombies\_zm_weapons::get_base_weapon_name(weapon, 1) == "ksg_zm")
|
||||
{
|
||||
final_damage *= 2;
|
||||
}
|
||||
@ -225,7 +225,7 @@ actor_damage_override( inflictor, attacker, damage, flags, meansofdeath, weapon,
|
||||
}
|
||||
}
|
||||
|
||||
if ( attacker maps/mp/zombies/_zm_pers_upgrades_functions::pers_mulit_kill_headshot_active() && is_headshot( weapon, shitloc, meansofdeath ) )
|
||||
if ( attacker maps\mp\zombies\_zm_pers_upgrades_functions::pers_mulit_kill_headshot_active() && is_headshot( weapon, shitloc, meansofdeath ) )
|
||||
{
|
||||
final_damage *= 2;
|
||||
}
|
||||
@ -259,7 +259,7 @@ callback_playerdamage( einflictor, eattacker, idamage, idflags, smeansofdeath, s
|
||||
{
|
||||
if ( isDefined( eattacker ) && isplayer( eattacker ) && eattacker.sessionteam == self.sessionteam && !eattacker hasperk( "specialty_noname" ) && isDefined( self.is_zombie ) && !self.is_zombie )
|
||||
{
|
||||
self maps/mp/zombies/_zm::process_friendly_fire_callbacks( einflictor, eattacker, idamage, idflags, smeansofdeath, sweapon, vpoint, vdir, shitloc, psoffsettime, boneindex );
|
||||
self maps\mp\zombies\_zm::process_friendly_fire_callbacks( einflictor, eattacker, idamage, idflags, smeansofdeath, sweapon, vpoint, vdir, shitloc, psoffsettime, boneindex );
|
||||
if ( self != eattacker )
|
||||
{
|
||||
return;
|
||||
@ -271,7 +271,7 @@ callback_playerdamage( einflictor, eattacker, idamage, idflags, smeansofdeath, s
|
||||
}
|
||||
if ( is_true( level.pers_upgrade_insta_kill ) )
|
||||
{
|
||||
self maps/mp/zombies/_zm_pers_upgrades_functions::pers_insta_kill_melee_swipe( smeansofdeath, eattacker );
|
||||
self maps\mp\zombies\_zm_pers_upgrades_functions::pers_insta_kill_melee_swipe( smeansofdeath, eattacker );
|
||||
}
|
||||
if ( isDefined( self.overrideplayerdamage ) )
|
||||
{
|
||||
@ -325,7 +325,7 @@ callback_playerdamage( einflictor, eattacker, idamage, idflags, smeansofdeath, s
|
||||
smeansofdeath = "MOD_PROJECTILE_SPLASH";
|
||||
}
|
||||
|
||||
self maps/mp/zombies/_zm::finishplayerdamagewrapper( einflictor, eattacker, idamage, idflags, smeansofdeath, sweapon, vpoint, vdir, shitloc, psoffsettime, boneindex );
|
||||
self maps\mp\zombies\_zm::finishplayerdamagewrapper( einflictor, eattacker, idamage, idflags, smeansofdeath, sweapon, vpoint, vdir, shitloc, psoffsettime, boneindex );
|
||||
}
|
||||
|
||||
getfreespawnpoint( spawnpoints, player )
|
||||
@ -471,7 +471,7 @@ check_for_valid_spawn_near_team( revivee, return_struct )
|
||||
}
|
||||
|
||||
players = array_randomize(get_players());
|
||||
spawn_points = maps/mp/gametypes_zm/_zm_gametype::get_player_spawns_for_gametype();
|
||||
spawn_points = maps\mp\gametypes_zm\_zm_gametype::get_player_spawns_for_gametype();
|
||||
closest_group = undefined;
|
||||
closest_distance = 100000000;
|
||||
backup_group = undefined;
|
||||
@ -484,7 +484,7 @@ check_for_valid_spawn_near_team( revivee, return_struct )
|
||||
|
||||
for ( i = 0; i < players.size; i++ )
|
||||
{
|
||||
if ( maps/mp/zombies/_zm_utility::is_player_valid( players[ i ], undefined, 1 ) && players[ i ] != self )
|
||||
if ( maps\mp\zombies\_zm_utility::is_player_valid( players[ i ], undefined, 1 ) && players[ i ] != self )
|
||||
{
|
||||
for ( j = 0; j < spawn_points.size; j++ )
|
||||
{
|
||||
@ -574,7 +574,7 @@ player_damage_override( einflictor, eattacker, idamage, idflags, smeansofdeath,
|
||||
{
|
||||
self [[ level._game_module_player_damage_callback ]]( einflictor, eattacker, idamage, idflags, smeansofdeath, sweapon, vpoint, vdir, shitloc, psoffsettime );
|
||||
}
|
||||
idamage = self maps/mp/zombies/_zm::check_player_damage_callbacks( einflictor, eattacker, idamage, idflags, smeansofdeath, sweapon, vpoint, vdir, shitloc, psoffsettime );
|
||||
idamage = self maps\mp\zombies\_zm::check_player_damage_callbacks( einflictor, eattacker, idamage, idflags, smeansofdeath, sweapon, vpoint, vdir, shitloc, psoffsettime );
|
||||
if ( is_true( self.use_adjusted_grenade_damage ) )
|
||||
{
|
||||
self.use_adjusted_grenade_damage = undefined;
|
||||
@ -587,7 +587,7 @@ player_damage_override( einflictor, eattacker, idamage, idflags, smeansofdeath,
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
if ( self maps/mp/zombies/_zm_laststand::player_is_in_laststand() )
|
||||
if ( self maps\mp\zombies\_zm_laststand::player_is_in_laststand() )
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
@ -604,7 +604,7 @@ player_damage_override( einflictor, eattacker, idamage, idflags, smeansofdeath,
|
||||
{
|
||||
if ( is_true( self.hasriotshieldequipped ) )
|
||||
{
|
||||
if ( self maps/mp/zombies/_zm::player_shield_facing_attacker( vdir, 0.2 ) && isDefined( self.player_shield_apply_damage ) )
|
||||
if ( self maps\mp\zombies\_zm::player_shield_facing_attacker( vdir, 0.2 ) && isDefined( self.player_shield_apply_damage ) )
|
||||
{
|
||||
self [[ self.player_shield_apply_damage ]]( 100, 0 );
|
||||
return 0;
|
||||
@ -612,7 +612,7 @@ player_damage_override( einflictor, eattacker, idamage, idflags, smeansofdeath,
|
||||
}
|
||||
else if ( !isDefined( self.riotshieldentity ) )
|
||||
{
|
||||
if ( !self maps/mp/zombies/_zm::player_shield_facing_attacker( vdir, -0.2 ) && isDefined( self.player_shield_apply_damage ) )
|
||||
if ( !self maps\mp\zombies\_zm::player_shield_facing_attacker( vdir, -0.2 ) && isDefined( self.player_shield_apply_damage ) )
|
||||
{
|
||||
self [[ self.player_shield_apply_damage ]]( 100, 0 );
|
||||
return 0;
|
||||
@ -633,7 +633,7 @@ player_damage_override( einflictor, eattacker, idamage, idflags, smeansofdeath,
|
||||
if ( is_true( eattacker.is_zombie ) )
|
||||
{
|
||||
self.ignoreattacker = eattacker;
|
||||
self thread maps/mp/zombies/_zm::remove_ignore_attacker();
|
||||
self thread maps\mp\zombies\_zm::remove_ignore_attacker();
|
||||
if ( isDefined( eattacker.custom_damage_func ) )
|
||||
{
|
||||
idamage = eattacker [[ eattacker.custom_damage_func ]]( self );
|
||||
@ -650,7 +650,7 @@ player_damage_override( einflictor, eattacker, idamage, idflags, smeansofdeath,
|
||||
eattacker notify( "hit_player" );
|
||||
if ( smeansofdeath != "MOD_FALLING" )
|
||||
{
|
||||
self thread maps/mp/zombies/_zm::playswipesound( smeansofdeath, eattacker );
|
||||
self thread maps\mp\zombies\_zm::playswipesound( smeansofdeath, eattacker );
|
||||
if ( is_true( eattacker.is_zombie ) || isplayer( eattacker ) )
|
||||
{
|
||||
self playrumbleonentity( "damage_heavy" );
|
||||
@ -670,11 +670,11 @@ player_damage_override( einflictor, eattacker, idamage, idflags, smeansofdeath,
|
||||
{
|
||||
if ( randomintrange( 0, 1 ) == 0 )
|
||||
{
|
||||
self thread maps/mp/zombies/_zm_audio::playerexert( "hitmed" );
|
||||
self thread maps\mp\zombies\_zm_audio::playerexert( "hitmed" );
|
||||
}
|
||||
else
|
||||
{
|
||||
self thread maps/mp/zombies/_zm_audio::playerexert( "hitlrg" );
|
||||
self thread maps\mp\zombies\_zm_audio::playerexert( "hitlrg" );
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -700,7 +700,7 @@ player_damage_override( einflictor, eattacker, idamage, idflags, smeansofdeath,
|
||||
}
|
||||
if ( is_true( level.pers_upgrade_flopper ) )
|
||||
{
|
||||
if ( self maps/mp/zombies/_zm_pers_upgrades_functions::pers_upgrade_flopper_damage_check( smeansofdeath, idamage ) )
|
||||
if ( self maps\mp\zombies\_zm_pers_upgrades_functions::pers_upgrade_flopper_damage_check( smeansofdeath, idamage ) )
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
@ -738,11 +738,11 @@ player_damage_override( einflictor, eattacker, idamage, idflags, smeansofdeath,
|
||||
}
|
||||
if ( !is_true( eattacker.has_legs ) )
|
||||
{
|
||||
self maps/mp/zombies/_zm_audio::create_and_play_dialog( "general", "crawl_hit" );
|
||||
self maps\mp\zombies\_zm_audio::create_and_play_dialog( "general", "crawl_hit" );
|
||||
}
|
||||
else if ( isDefined( eattacker.animname ) && eattacker.animname == "monkey_zombie" )
|
||||
{
|
||||
self maps/mp/zombies/_zm_audio::create_and_play_dialog( "general", "monkey_hit" );
|
||||
self maps\mp\zombies\_zm_audio::create_and_play_dialog( "general", "monkey_hit" );
|
||||
}
|
||||
}
|
||||
return finaldamage;
|
||||
@ -751,23 +751,23 @@ player_damage_override( einflictor, eattacker, idamage, idflags, smeansofdeath,
|
||||
{
|
||||
if ( isDefined( eattacker.animname ) && eattacker.animname == "zombie_dog" )
|
||||
{
|
||||
self maps/mp/zombies/_zm_stats::increment_client_stat( "killed_by_zdog" );
|
||||
self maps/mp/zombies/_zm_stats::increment_player_stat( "killed_by_zdog" );
|
||||
self maps\mp\zombies\_zm_stats::increment_client_stat( "killed_by_zdog" );
|
||||
self maps\mp\zombies\_zm_stats::increment_player_stat( "killed_by_zdog" );
|
||||
}
|
||||
else if ( isDefined( eattacker.is_avogadro ) && eattacker.is_avogadro )
|
||||
{
|
||||
self maps/mp/zombies/_zm_stats::increment_client_stat( "killed_by_avogadro", 0 );
|
||||
self maps/mp/zombies/_zm_stats::increment_player_stat( "killed_by_avogadro" );
|
||||
self maps\mp\zombies\_zm_stats::increment_client_stat( "killed_by_avogadro", 0 );
|
||||
self maps\mp\zombies\_zm_stats::increment_player_stat( "killed_by_avogadro" );
|
||||
}
|
||||
}
|
||||
self thread maps/mp/zombies/_zm::clear_path_timers();
|
||||
self thread maps\mp\zombies\_zm::clear_path_timers();
|
||||
if ( level.intermission )
|
||||
{
|
||||
level waittill( "forever" );
|
||||
}
|
||||
if ( level.scr_zm_ui_gametype == "zcleansed" && idamage > 0 )
|
||||
{
|
||||
if ( (!is_true( self.laststand ) && !self maps/mp/zombies/_zm_laststand::player_is_in_laststand()) || !isDefined( self.last_player_attacker ) )
|
||||
if ( (!is_true( self.laststand ) && !self maps\mp\zombies\_zm_laststand::player_is_in_laststand()) || !isDefined( self.last_player_attacker ) )
|
||||
{
|
||||
if(isDefined( eattacker ) && isplayer( eattacker ) && eattacker.team != self.team)
|
||||
{
|
||||
@ -794,7 +794,7 @@ player_damage_override( einflictor, eattacker, idamage, idflags, smeansofdeath,
|
||||
count = 0;
|
||||
for ( i = 0; i < players.size; i++ )
|
||||
{
|
||||
if ( players[ i ] == self || players[ i ].is_zombie || players[ i ] maps/mp/zombies/_zm_laststand::player_is_in_laststand() || players[ i ].sessionstate == "spectator" )
|
||||
if ( players[ i ] == self || players[ i ].is_zombie || players[ i ] maps\mp\zombies\_zm_laststand::player_is_in_laststand() || players[ i ].sessionstate == "spectator" )
|
||||
{
|
||||
count++;
|
||||
}
|
||||
@ -803,7 +803,7 @@ player_damage_override( einflictor, eattacker, idamage, idflags, smeansofdeath,
|
||||
{
|
||||
if ( isDefined( self.solo_lives_given ) && self.solo_lives_given < 3 && is_true( level.force_solo_quick_revive ) && self hasperk( "specialty_quickrevive" ) )
|
||||
{
|
||||
self thread maps/mp/zombies/_zm::wait_and_revive();
|
||||
self thread maps\mp\zombies\_zm::wait_and_revive();
|
||||
}
|
||||
return finaldamage;
|
||||
}
|
||||
@ -812,7 +812,7 @@ player_damage_override( einflictor, eattacker, idamage, idflags, smeansofdeath,
|
||||
if ( ( solo_death || non_solo_death ) && !is_true( level.no_end_game_check ) )
|
||||
{
|
||||
level notify( "stop_suicide_trigger" );
|
||||
self thread maps/mp/zombies/_zm_laststand::playerlaststand( einflictor, eattacker, idamage, smeansofdeath, sweapon, vdir, shitloc, psoffsettime );
|
||||
self thread maps\mp\zombies\_zm_laststand::playerlaststand( einflictor, eattacker, idamage, smeansofdeath, sweapon, vdir, shitloc, psoffsettime );
|
||||
if ( !isDefined( vdir ) )
|
||||
{
|
||||
vdir = ( 1, 0, 0 );
|
||||
@ -824,7 +824,7 @@ player_damage_override( einflictor, eattacker, idamage, idflags, smeansofdeath,
|
||||
}
|
||||
else
|
||||
{
|
||||
self thread maps/mp/zombies/_zm::player_fake_death();
|
||||
self thread maps\mp\zombies\_zm::player_fake_death();
|
||||
}
|
||||
}
|
||||
if ( count == players.size && !is_true( level.no_end_game_check ) )
|
||||
@ -838,7 +838,7 @@ player_damage_override( einflictor, eattacker, idamage, idflags, smeansofdeath,
|
||||
wait_network_frame();
|
||||
if ( flag( "dog_round" ) )
|
||||
{
|
||||
maps/mp/zombies/_zm::increment_dog_round_stat( "lost" );
|
||||
maps\mp\zombies\_zm::increment_dog_round_stat( "lost" );
|
||||
}
|
||||
level notify( "end_game" );
|
||||
}
|
||||
@ -853,7 +853,7 @@ player_damage_override( einflictor, eattacker, idamage, idflags, smeansofdeath,
|
||||
wait_network_frame();
|
||||
if ( flag( "dog_round" ) )
|
||||
{
|
||||
maps/mp/zombies/_zm::increment_dog_round_stat( "lost" );
|
||||
maps\mp\zombies\_zm::increment_dog_round_stat( "lost" );
|
||||
}
|
||||
level notify( "end_game" );
|
||||
}
|
||||
@ -919,11 +919,11 @@ player_laststand( einflictor, attacker, idamage, smeansofdeath, sweapon, vdir, s
|
||||
self addweaponstat( statweapon, "deathsDuringUse", 1 );
|
||||
if ( is_true( self.hasperkspecialtytombstone ) )
|
||||
{
|
||||
self.laststand_perks = scripts/zm/_zm_reimagined::tombstone_save_perks( self );
|
||||
self.laststand_perks = scripts\zm\_zm_reimagined::tombstone_save_perks( self );
|
||||
}
|
||||
if ( isDefined( self.pers_upgrades_awarded[ "perk_lose" ] ) && self.pers_upgrades_awarded[ "perk_lose" ] )
|
||||
{
|
||||
self maps/mp/zombies/_zm_pers_upgrades_functions::pers_upgrade_perk_lose_save();
|
||||
self maps\mp\zombies\_zm_pers_upgrades_functions::pers_upgrade_perk_lose_save();
|
||||
}
|
||||
players = get_players();
|
||||
if ( players.size == 1 && flag( "solo_game" ) )
|
||||
@ -944,13 +944,13 @@ player_laststand( einflictor, attacker, idamage, smeansofdeath, sweapon, vdir, s
|
||||
|
||||
if(active_perks > disabled_perks)
|
||||
{
|
||||
self thread maps/mp/zombies/_zm::wait_and_revive();
|
||||
self thread maps\mp\zombies\_zm::wait_and_revive();
|
||||
}
|
||||
}
|
||||
}
|
||||
if ( self hasperk( "specialty_additionalprimaryweapon" ) )
|
||||
{
|
||||
self.weapon_taken_by_losing_specialty_additionalprimaryweapon = maps/mp/zombies/_zm::take_additionalprimaryweapon();
|
||||
self.weapon_taken_by_losing_specialty_additionalprimaryweapon = maps\mp\zombies\_zm::take_additionalprimaryweapon();
|
||||
}
|
||||
if ( is_true( self.hasperkspecialtytombstone ) )
|
||||
{
|
||||
@ -960,22 +960,22 @@ player_laststand( einflictor, attacker, idamage, smeansofdeath, sweapon, vdir, s
|
||||
self notify( "specialty_scavenger_stop" );
|
||||
}
|
||||
self clear_is_drinking();
|
||||
self thread maps/mp/zombies/_zm::remove_deadshot_bottle();
|
||||
self thread maps/mp/zombies/_zm::remote_revive_watch();
|
||||
self maps/mp/zombies/_zm_score::player_downed_penalty();
|
||||
self thread maps\mp\zombies\_zm::remove_deadshot_bottle();
|
||||
self thread maps\mp\zombies\_zm::remote_revive_watch();
|
||||
self maps\mp\zombies\_zm_score::player_downed_penalty();
|
||||
self disableoffhandweapons();
|
||||
self thread maps/mp/zombies/_zm::last_stand_grenade_save_and_return();
|
||||
self thread maps\mp\zombies\_zm::last_stand_grenade_save_and_return();
|
||||
if ( smeansofdeath != "MOD_SUICIDE" && smeansofdeath != "MOD_FALLING" )
|
||||
{
|
||||
if ( !is_true( self.intermission ) )
|
||||
{
|
||||
self maps/mp/zombies/_zm_audio::create_and_play_dialog( "general", "revive_down" );
|
||||
self maps\mp\zombies\_zm_audio::create_and_play_dialog( "general", "revive_down" );
|
||||
}
|
||||
else
|
||||
{
|
||||
if ( isDefined( level.custom_player_death_vo_func ) && !self [[ level.custom_player_death_vo_func ]]() )
|
||||
{
|
||||
self maps/mp/zombies/_zm_audio::create_and_play_dialog( "general", "exert_death" );
|
||||
self maps\mp\zombies\_zm_audio::create_and_play_dialog( "general", "exert_death" );
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1034,7 +1034,7 @@ wait_and_revive()
|
||||
}
|
||||
if ( is_true( self.pers_upgrades_awarded[ "perk_lose" ] ) )
|
||||
{
|
||||
self maps/mp/zombies/_zm_pers_upgrades_functions::pers_upgrade_perk_lose_save();
|
||||
self maps\mp\zombies\_zm_pers_upgrades_functions::pers_upgrade_perk_lose_save();
|
||||
}
|
||||
self.waiting_to_revive = 1;
|
||||
if ( isDefined( level.exit_level_func ) )
|
||||
@ -1043,11 +1043,11 @@ wait_and_revive()
|
||||
}
|
||||
else if ( get_players().size == 1 )
|
||||
{
|
||||
self thread maps/mp/zombies/_zm::default_exit_level();
|
||||
self thread maps\mp\zombies\_zm::default_exit_level();
|
||||
}
|
||||
solo_revive_time = 10;
|
||||
self.revive_hud settext( &"ZOMBIE_REVIVING_SOLO", self );
|
||||
self maps/mp/zombies/_zm_laststand::revive_hud_show_n_fade( solo_revive_time );
|
||||
self maps\mp\zombies\_zm_laststand::revive_hud_show_n_fade( solo_revive_time );
|
||||
if ( !isDefined( self.beingrevivedprogressbar ) )
|
||||
{
|
||||
self.beingrevivedprogressbar = self createprimaryprogressbar();
|
||||
@ -1061,20 +1061,20 @@ wait_and_revive()
|
||||
flag_wait_or_timeout( "instant_revive", solo_revive_time );
|
||||
if ( flag( "instant_revive" ) )
|
||||
{
|
||||
self maps/mp/zombies/_zm_laststand::revive_hud_show_n_fade( 1 );
|
||||
self maps\mp\zombies\_zm_laststand::revive_hud_show_n_fade( 1 );
|
||||
}
|
||||
if ( isDefined( self.beingrevivedprogressbar ) )
|
||||
{
|
||||
self.beingrevivedprogressbar destroyelem();
|
||||
}
|
||||
flag_clear( "wait_and_revive" );
|
||||
self maps/mp/zombies/_zm_laststand::auto_revive( self );
|
||||
self maps\mp\zombies\_zm_laststand::auto_revive( self );
|
||||
self.solo_lives_given++;
|
||||
|
||||
self.waiting_to_revive = 0;
|
||||
if ( is_true( self.pers_upgrades_awarded[ "perk_lose" ] ) )
|
||||
{
|
||||
self thread maps/mp/zombies/_zm_pers_upgrades_functions::pers_upgrade_perk_lose_restore();
|
||||
self thread maps\mp\zombies\_zm_pers_upgrades_functions::pers_upgrade_perk_lose_restore();
|
||||
}
|
||||
}
|
||||
|
||||
@ -1094,11 +1094,11 @@ player_revive_monitor()
|
||||
bbprint( "zombie_playerdeaths", "round %d playername %s deathtype %s x %f y %f z %f", level.round_number, self.name, "revived", self.origin );
|
||||
if ( isDefined( reviver ) )
|
||||
{
|
||||
self maps/mp/zombies/_zm_audio::create_and_play_dialog( "general", "revive_up" );
|
||||
self maps\mp\zombies\_zm_audio::create_and_play_dialog( "general", "revive_up" );
|
||||
if(reviver != self)
|
||||
{
|
||||
points = self.score_lost_when_downed;
|
||||
reviver maps/mp/zombies/_zm_score::player_add_points( "reviver", points );
|
||||
reviver maps\mp\zombies\_zm_score::player_add_points( "reviver", points );
|
||||
}
|
||||
self.score_lost_when_downed = 0;
|
||||
}
|
||||
@ -1108,15 +1108,15 @@ player_revive_monitor()
|
||||
end_game()
|
||||
{
|
||||
level waittill( "end_game" );
|
||||
maps/mp/zombies/_zm::check_end_game_intermission_delay();
|
||||
maps\mp\zombies\_zm::check_end_game_intermission_delay();
|
||||
clientnotify( "zesn" );
|
||||
if ( isDefined( level.sndgameovermusicoverride ) )
|
||||
{
|
||||
level thread maps/mp/zombies/_zm_audio::change_zombie_music( level.sndgameovermusicoverride );
|
||||
level thread maps\mp\zombies\_zm_audio::change_zombie_music( level.sndgameovermusicoverride );
|
||||
}
|
||||
else
|
||||
{
|
||||
level thread maps/mp/zombies/_zm_audio::change_zombie_music( "game_over" );
|
||||
level thread maps\mp\zombies\_zm_audio::change_zombie_music( "game_over" );
|
||||
}
|
||||
players = get_players();
|
||||
for ( i = 0; i < players.size; i++ )
|
||||
@ -1125,12 +1125,12 @@ end_game()
|
||||
}
|
||||
for ( i = 0; i < players.size; i++ )
|
||||
{
|
||||
if ( players[ i ] maps/mp/zombies/_zm_laststand::player_is_in_laststand() )
|
||||
if ( players[ i ] maps\mp\zombies\_zm_laststand::player_is_in_laststand() )
|
||||
{
|
||||
players[ i ] recordplayerdeathzombies();
|
||||
players[ i ] maps/mp/zombies/_zm_stats::increment_player_stat( "deaths" );
|
||||
players[ i ] maps/mp/zombies/_zm_stats::increment_client_stat( "deaths" );
|
||||
players[ i ] maps/mp/zombies/_zm_pers_upgrades_functions::pers_upgrade_jugg_player_death_stat();
|
||||
players[ i ] maps\mp\zombies\_zm_stats::increment_player_stat( "deaths" );
|
||||
players[ i ] maps\mp\zombies\_zm_stats::increment_client_stat( "deaths" );
|
||||
players[ i ] maps\mp\zombies\_zm_pers_upgrades_functions::pers_upgrade_jugg_player_death_stat();
|
||||
}
|
||||
if ( isdefined( players[ i ].revivetexthud) )
|
||||
{
|
||||
@ -1191,7 +1191,7 @@ end_game()
|
||||
{
|
||||
nomanslandtime = level.nml_best_time;
|
||||
player_survival_time = int( nomanslandtime / 1000 );
|
||||
player_survival_time_in_mins = maps/mp/zombies/_zm::to_mins( player_survival_time );
|
||||
player_survival_time_in_mins = maps\mp\zombies\_zm::to_mins( player_survival_time );
|
||||
survived[ i ] settext( &"ZOMBIE_SURVIVED_NOMANS", player_survival_time_in_mins );
|
||||
}
|
||||
else if ( level.left_nomans_land == 2 )
|
||||
@ -1222,8 +1222,8 @@ end_game()
|
||||
players[ i ] setclientminiscoreboardhide( 1 );
|
||||
}
|
||||
uploadstats();
|
||||
maps/mp/zombies/_zm_stats::update_players_stats_at_match_end( players );
|
||||
maps/mp/zombies/_zm_stats::update_global_counters_on_match_end();
|
||||
maps\mp\zombies\_zm_stats::update_players_stats_at_match_end( players );
|
||||
maps\mp\zombies\_zm_stats::update_global_counters_on_match_end();
|
||||
wait 1;
|
||||
wait 3.95;
|
||||
players = get_players();
|
||||
@ -1255,10 +1255,10 @@ end_game()
|
||||
players[ i ].game_over_hud destroy();
|
||||
}
|
||||
}
|
||||
maps/mp/zombies/_zm::intermission();
|
||||
maps\mp\zombies\_zm::intermission();
|
||||
wait level.zombie_vars[ "zombie_intermission_time" ];
|
||||
level notify( "stop_intermission" );
|
||||
array_thread( get_players(), maps/mp/zombies/_zm::player_exit_level );
|
||||
array_thread( get_players(), maps\mp\zombies\_zm::player_exit_level );
|
||||
bbprint( "zombie_epilogs", "rounds %d", level.round_number );
|
||||
wait 1.5;
|
||||
players = get_players();
|
||||
|
@ -1,7 +1,7 @@
|
||||
#include maps\mp\_utility;
|
||||
#include common_scripts\utility;
|
||||
#include maps\mp\zombies\_zm_utility;
|
||||
#include maps/mp/zombies/_zm_afterlife;
|
||||
#include maps\mp\zombies\_zm_afterlife;
|
||||
|
||||
init_player()
|
||||
{
|
||||
|
@ -9,8 +9,8 @@ inert_wakeup()
|
||||
|
||||
wait 0.1;
|
||||
|
||||
self thread maps/mp/zombies/_zm_ai_basic::inert_damage();
|
||||
self thread maps/mp/zombies/_zm_ai_basic::inert_bump();
|
||||
self thread maps\mp\zombies\_zm_ai_basic::inert_damage();
|
||||
self thread maps\mp\zombies\_zm_ai_basic::inert_bump();
|
||||
|
||||
while ( 1 )
|
||||
{
|
||||
@ -21,7 +21,7 @@ inert_wakeup()
|
||||
dist_sq = distancesquared( self.origin, player.origin );
|
||||
if ( dist_sq < 4096 )
|
||||
{
|
||||
self maps/mp/zombies/_zm_ai_basic::stop_inert();
|
||||
self maps\mp\zombies\_zm_ai_basic::stop_inert();
|
||||
return;
|
||||
}
|
||||
|
||||
@ -29,7 +29,7 @@ inert_wakeup()
|
||||
{
|
||||
if ( ( current_time - player.lastfiretime ) < 100 )
|
||||
{
|
||||
self maps/mp/zombies/_zm_ai_basic::stop_inert();
|
||||
self maps\mp\zombies\_zm_ai_basic::stop_inert();
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
@ -1,8 +1,8 @@
|
||||
#include maps\mp\_utility;
|
||||
#include common_scripts\utility;
|
||||
#include maps\mp\zombies\_zm_utility;
|
||||
#include maps/mp/zombies/_zm_ai_brutus;
|
||||
#include maps/mp/zombies/_zm_score;
|
||||
#include maps\mp\zombies\_zm_ai_brutus;
|
||||
#include maps\mp\zombies\_zm_score;
|
||||
|
||||
brutus_spawn( starting_health, has_helmet, helmet_hits, explosive_dmg_taken, zone_name )
|
||||
{
|
||||
@ -66,10 +66,10 @@ brutus_spawn( starting_health, has_helmet, helmet_hits, explosive_dmg_taken, zon
|
||||
self.allowpain = 0;
|
||||
self animmode( "normal" );
|
||||
self orientmode( "face enemy" );
|
||||
self maps/mp/zombies/_zm_spawner::zombie_setup_attack_properties();
|
||||
self maps\mp\zombies\_zm_spawner::zombie_setup_attack_properties();
|
||||
self setfreecameralockonallowed( 0 );
|
||||
level thread maps/mp/zombies/_zm_spawner::zombie_death_event( self );
|
||||
self thread maps/mp/zombies/_zm_spawner::enemy_death_detection();
|
||||
level thread maps\mp\zombies\_zm_spawner::zombie_death_event( self );
|
||||
self thread maps\mp\zombies\_zm_spawner::enemy_death_detection();
|
||||
if ( isDefined( zone_name ) && zone_name == "zone_golden_gate_bridge" )
|
||||
{
|
||||
wait randomfloat( 1.5 );
|
||||
@ -97,7 +97,7 @@ brutus_spawn( starting_health, has_helmet, helmet_hits, explosive_dmg_taken, zon
|
||||
self detach( "c_zom_cellbreaker_helmet" );
|
||||
}
|
||||
level.brutus_count++;
|
||||
self maps/mp/zombies/_zm_spawner::zombie_complete_emerging_into_playable_area();
|
||||
self maps\mp\zombies\_zm_spawner::zombie_complete_emerging_into_playable_area();
|
||||
self thread snddelayedmusic();
|
||||
self thread brutus_death();
|
||||
self thread brutus_check_zone();
|
||||
@ -111,13 +111,13 @@ brutus_spawn( starting_health, has_helmet, helmet_hits, explosive_dmg_taken, zon
|
||||
playfx( level._effect[ "brutus_spawn" ], self.origin );
|
||||
playsoundatposition( "zmb_ai_brutus_spawn", self.origin );
|
||||
self animscripted( spawn_pos.origin, spawn_pos.angles, "zm_spawn" );
|
||||
self thread maps/mp/animscripts/zm_shared::donotetracks( "spawn_anim" );
|
||||
self thread maps\mp\animscripts\zm_shared::donotetracks( "spawn_anim" );
|
||||
self waittillmatch( "spawn_anim" );
|
||||
self.not_interruptable = 0;
|
||||
self.cant_melee = 0;
|
||||
self thread brutus_chest_flashlight();
|
||||
self thread brutus_find_flesh();
|
||||
self thread maps/mp/zombies/_zm_spawner::delayed_zombie_eye_glow();
|
||||
self thread maps\mp\zombies\_zm_spawner::delayed_zombie_eye_glow();
|
||||
level notify( "brutus_spawned", self, "spawn_complete" );
|
||||
logline1 = "INFO: _zm_ai_brutus.gsc brutus_spawn() completed its operation " + "\n";
|
||||
logprint( logline1 );
|
||||
@ -170,7 +170,7 @@ brutus_damage_override( inflictor, attacker, damage, flags, meansofdeath, weapon
|
||||
}
|
||||
else
|
||||
{
|
||||
multiplier = maps/mp/zombies/_zm_score::get_points_multiplier( self );
|
||||
multiplier = maps\mp\zombies\_zm_score::get_points_multiplier( self );
|
||||
player_points = multiplier * round_up_score( level.brutus_points_for_helmet, 5 );
|
||||
}
|
||||
if ( isDefined( attacker ) && isplayer( attacker ) )
|
||||
@ -192,7 +192,7 @@ brutus_damage_override( inflictor, attacker, damage, flags, meansofdeath, weapon
|
||||
if ( weapon == "alcatraz_shield_zm" )
|
||||
{
|
||||
shield_damage = level.zombie_vars[ "riotshield_fling_damage_shield" ];
|
||||
inflictor maps/mp/zombies/_zm_weap_riotshield_prison::player_damage_shield( shield_damage, 0 );
|
||||
inflictor maps\mp\zombies\_zm_weap_riotshield_prison::player_damage_shield( shield_damage, 0 );
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
@ -221,7 +221,7 @@ brutus_damage_override( inflictor, attacker, damage, flags, meansofdeath, weapon
|
||||
}
|
||||
else
|
||||
{
|
||||
multiplier = maps/mp/zombies/_zm_score::get_points_multiplier( self );
|
||||
multiplier = maps\mp\zombies\_zm_score::get_points_multiplier( self );
|
||||
player_points = multiplier * round_up_score( level.brutus_points_for_helmet, 5 );
|
||||
}
|
||||
attacker add_to_player_score( player_points );
|
||||
|
@ -1,7 +1,7 @@
|
||||
#include maps\mp\_utility;
|
||||
#include common_scripts\utility;
|
||||
#include maps\mp\zombies\_zm_utility;
|
||||
#include maps/mp/zombies/_zm_audio_announcer;
|
||||
#include maps\mp\zombies\_zm_audio_announcer;
|
||||
|
||||
playleaderdialogonplayer( dialog, team, waittime )
|
||||
{
|
||||
|
@ -1,7 +1,7 @@
|
||||
#include maps\mp\_utility;
|
||||
#include common_scripts\utility;
|
||||
#include maps\mp\zombies\_zm_utility;
|
||||
#include maps/mp/zombies/_zm_banking;
|
||||
#include maps\mp\zombies\_zm_banking;
|
||||
|
||||
init()
|
||||
{
|
||||
|
@ -4,16 +4,16 @@
|
||||
|
||||
handle_post_board_repair_rewards( cost, zbarrier )
|
||||
{
|
||||
self maps/mp/zombies/_zm_stats::increment_client_stat( "boards" );
|
||||
self maps/mp/zombies/_zm_stats::increment_player_stat( "boards" );
|
||||
self maps\mp\zombies\_zm_stats::increment_client_stat( "boards" );
|
||||
self maps\mp\zombies\_zm_stats::increment_player_stat( "boards" );
|
||||
if ( isDefined( self.pers[ "boards" ] ) && ( self.pers[ "boards" ] % 10 ) == 0 )
|
||||
{
|
||||
self thread do_player_general_vox( "general", "reboard", 90 );
|
||||
}
|
||||
self maps/mp/zombies/_zm_pers_upgrades_functions::pers_boards_updated( zbarrier );
|
||||
self maps\mp\zombies\_zm_pers_upgrades_functions::pers_boards_updated( zbarrier );
|
||||
self.rebuild_barrier_reward += cost;
|
||||
|
||||
self maps/mp/zombies/_zm_score::player_add_points( "rebuild_board", cost );
|
||||
self maps\mp\zombies\_zm_score::player_add_points( "rebuild_board", cost );
|
||||
self play_sound_on_ent( "purchase" );
|
||||
|
||||
if ( isDefined( self.board_repair ) )
|
||||
|
@ -1,7 +1,7 @@
|
||||
#include maps\mp\_utility;
|
||||
#include common_scripts\utility;
|
||||
#include maps\mp\zombies\_zm_utility;
|
||||
#include maps/mp/zombies/_zm_buildables_pooled;
|
||||
#include maps\mp\zombies\_zm_buildables_pooled;
|
||||
|
||||
add_buildable_to_pool( stub, poolname )
|
||||
{
|
||||
|
@ -1,7 +1,7 @@
|
||||
#include maps\mp\_utility;
|
||||
#include common_scripts\utility;
|
||||
#include maps\mp\zombies\_zm_utility;
|
||||
#include maps/mp/zombies/_zm_chugabud;
|
||||
#include maps\mp\zombies\_zm_chugabud;
|
||||
|
||||
chugabud_bleed_timeout( delay, corpse )
|
||||
{
|
||||
|
@ -8,7 +8,7 @@ startelectrictrapdeploy( weapon )
|
||||
self endon( "disconnect" );
|
||||
self endon( "equip_electrictrap_zm_taken" );
|
||||
|
||||
self thread maps/mp/zombies/_zm_equip_electrictrap::watchforcleanup();
|
||||
self thread maps\mp\zombies\_zm_equip_electrictrap::watchforcleanup();
|
||||
electricradius = 45;
|
||||
self.weapon = weapon;
|
||||
|
||||
@ -22,9 +22,9 @@ startelectrictrapdeploy( weapon )
|
||||
wait 0.5;
|
||||
|
||||
self trap_power_on( weapon );
|
||||
self thread maps/mp/zombies/_zm_equip_electrictrap::electrictrapthink( weapon, electricradius );
|
||||
self thread maps\mp\zombies\_zm_equip_electrictrap::electrictrapthink( weapon, electricradius );
|
||||
self thread electrictrapdecay( weapon );
|
||||
self thread maps/mp/zombies/_zm_buildables::delete_on_disconnect( weapon );
|
||||
self thread maps\mp\zombies\_zm_buildables::delete_on_disconnect( weapon );
|
||||
|
||||
weapon waittill( "death" );
|
||||
|
||||
@ -52,7 +52,7 @@ trap_power_on( weapon )
|
||||
|
||||
level.electrap_sound_ent playsound( "wpn_zmb_electrap_start" );
|
||||
level.electrap_sound_ent playloopsound( "wpn_zmb_electrap_loop", 2 );
|
||||
weapon thread maps/mp/zombies/_zm_equip_electrictrap::trapfx();
|
||||
weapon thread maps\mp\zombies\_zm_equip_electrictrap::trapfx();
|
||||
}
|
||||
|
||||
electrictrapdecay( weapon )
|
||||
@ -69,10 +69,10 @@ electrictrapdecay( weapon )
|
||||
|
||||
if ( self.electrictrap_health <= 0 )
|
||||
{
|
||||
maps/mp/zombies/_zm_equipment::equipment_disappear_fx( weapon.origin, undefined, weapon.angles );
|
||||
self maps/mp/zombies/_zm_equip_electrictrap::cleanupoldtrap();
|
||||
maps\mp\zombies\_zm_equipment::equipment_disappear_fx( weapon.origin, undefined, weapon.angles );
|
||||
self maps\mp\zombies\_zm_equip_electrictrap::cleanupoldtrap();
|
||||
self.electrictrap_health = undefined;
|
||||
self thread maps/mp/zombies/_zm_equipment::equipment_release( level.electrictrap_name );
|
||||
self thread maps\mp\zombies\_zm_equipment::equipment_release( level.electrictrap_name );
|
||||
|
||||
return;
|
||||
}
|
||||
@ -88,7 +88,7 @@ cleanupoldtrap()
|
||||
{
|
||||
if ( isDefined( self.buildableelectrictrap.stub ) )
|
||||
{
|
||||
thread maps/mp/zombies/_zm_unitrigger::unregister_unitrigger( self.buildableelectrictrap.stub );
|
||||
thread maps\mp\zombies\_zm_unitrigger::unregister_unitrigger( self.buildableelectrictrap.stub );
|
||||
self.buildableelectrictrap.stub = undefined;
|
||||
}
|
||||
self.buildableelectrictrap delete();
|
||||
|
@ -1,7 +1,7 @@
|
||||
#include maps\mp\_utility;
|
||||
#include common_scripts\utility;
|
||||
#include maps\mp\zombies\_zm_utility;
|
||||
#include maps/mp/zombies/_zm_equip_subwoofer;
|
||||
#include maps\mp\zombies\_zm_equip_subwoofer;
|
||||
|
||||
startsubwooferdecay( weapon )
|
||||
{
|
||||
|
@ -7,7 +7,7 @@ startturretdeploy( weapon )
|
||||
self endon( "death" );
|
||||
self endon( "disconnect" );
|
||||
self endon( "equip_turret_zm_taken" );
|
||||
self thread maps/mp/zombies/_zm_equip_turret::watchforcleanup();
|
||||
self thread maps\mp\zombies\_zm_equip_turret::watchforcleanup();
|
||||
if ( !isDefined( self.turret_health ) )
|
||||
{
|
||||
self.turret_health = 30;
|
||||
@ -55,14 +55,14 @@ startturretdeploy( weapon )
|
||||
weapon turret_power_on();
|
||||
if ( weapon.power_on )
|
||||
{
|
||||
turret thread maps/mp/zombies/_zm_mgturret::burst_fire_unmanned();
|
||||
turret thread maps\mp\zombies\_zm_mgturret::burst_fire_unmanned();
|
||||
}
|
||||
else
|
||||
{
|
||||
self iprintlnbold( &"ZOMBIE_NEED_LOCAL_POWER" );
|
||||
}
|
||||
self thread turretdecay( weapon );
|
||||
self thread maps/mp/zombies/_zm_buildables::delete_on_disconnect( weapon );
|
||||
self thread maps\mp\zombies\_zm_buildables::delete_on_disconnect( weapon );
|
||||
weapon waittill("death");
|
||||
if ( isDefined( self.buildableturret.sound_ent ) )
|
||||
{
|
||||
@ -84,7 +84,7 @@ startturretdeploy( weapon )
|
||||
turret_power_on()
|
||||
{
|
||||
self.power_on = 1;
|
||||
self.turret thread maps/mp/zombies/_zm_mgturret::burst_fire_unmanned();
|
||||
self.turret thread maps\mp\zombies\_zm_mgturret::burst_fire_unmanned();
|
||||
player = self.turret.owner;
|
||||
if ( !isDefined( player.buildableturret.sound_ent ) )
|
||||
{
|
||||
@ -107,9 +107,9 @@ turretdecay( weapon )
|
||||
|
||||
if ( self.turret_health <= 0 )
|
||||
{
|
||||
maps/mp/zombies/_zm_equipment::equipment_disappear_fx( weapon.origin, undefined, weapon.angles );
|
||||
self maps/mp/zombies/_zm_equip_turret::cleanupoldturret();
|
||||
self thread maps/mp/zombies/_zm_equipment::equipment_release( level.turret_name );
|
||||
maps\mp\zombies\_zm_equipment::equipment_disappear_fx( weapon.origin, undefined, weapon.angles );
|
||||
self maps\mp\zombies\_zm_equip_turret::cleanupoldturret();
|
||||
self thread maps\mp\zombies\_zm_equipment::equipment_release( level.turret_name );
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
@ -16,8 +16,8 @@ show_equipment_hint( equipment )
|
||||
|
||||
wait 0.5;
|
||||
|
||||
text = maps/mp/zombies/_zm_equipment::get_equipment_howto_hint( equipment );
|
||||
self maps/mp/zombies/_zm_equipment::show_equipment_hint_text( text );
|
||||
text = maps\mp\zombies\_zm_equipment::get_equipment_howto_hint( equipment );
|
||||
self maps\mp\zombies\_zm_equipment::show_equipment_hint_text( text );
|
||||
}
|
||||
|
||||
placed_equipment_think( model, equipname, origin, angles, tradius, toffset )
|
||||
@ -32,9 +32,9 @@ placed_equipment_think( model, equipname, origin, angles, tradius, toffset )
|
||||
{
|
||||
if ( !( self [[ level.equipment_safe_to_drop ]]( pickupmodel ) ) )
|
||||
{
|
||||
maps/mp/zombies/_zm_equipment::equipment_disappear_fx( pickupmodel.origin, undefined, pickupmodel.angles );
|
||||
maps\mp\zombies\_zm_equipment::equipment_disappear_fx( pickupmodel.origin, undefined, pickupmodel.angles );
|
||||
pickupmodel delete();
|
||||
self maps/mp/zombies/_zm_equipment::equipment_take( equipname );
|
||||
self maps\mp\zombies\_zm_equipment::equipment_take( equipname );
|
||||
return undefined;
|
||||
}
|
||||
}
|
||||
@ -47,7 +47,7 @@ placed_equipment_think( model, equipname, origin, angles, tradius, toffset )
|
||||
{
|
||||
hint = &"MP_GENERIC_PICKUP";
|
||||
}
|
||||
icon = maps/mp/zombies/_zm_equipment::get_equipment_icon( equipname );
|
||||
icon = maps\mp\zombies\_zm_equipment::get_equipment_icon( equipname );
|
||||
if ( !isDefined( tradius ) )
|
||||
{
|
||||
tradius = 32;
|
||||
@ -60,13 +60,13 @@ placed_equipment_think( model, equipname, origin, angles, tradius, toffset )
|
||||
}
|
||||
tup = anglesToUp( angles );
|
||||
eq_unitrigger_offset = 12 * tup;
|
||||
pickupmodel.stub = maps/mp/zombies/_zm_equipment::generate_equipment_unitrigger( "trigger_radius_use", torigin + eq_unitrigger_offset, angles, 0, tradius, 64, hint, equipname, maps/mp/zombies/_zm_equipment::placed_equipment_unitrigger_think, pickupmodel.canmove );
|
||||
pickupmodel.stub = maps\mp\zombies\_zm_equipment::generate_equipment_unitrigger( "trigger_radius_use", torigin + eq_unitrigger_offset, angles, 0, tradius, 64, hint, equipname, maps\mp\zombies\_zm_equipment::placed_equipment_unitrigger_think, pickupmodel.canmove );
|
||||
pickupmodel.stub.model = pickupmodel;
|
||||
pickupmodel.stub.equipname = equipname;
|
||||
pickupmodel.equipname = equipname;
|
||||
//pickupmodel thread maps/mp/zombies/_zm_equipment::item_attract_zombies();
|
||||
//pickupmodel thread maps\mp\zombies\_zm_equipment::item_attract_zombies();
|
||||
pickupmodel thread item_watch_damage();
|
||||
if ( maps/mp/zombies/_zm_equipment::is_limited_equipment( equipname ) )
|
||||
if ( maps\mp\zombies\_zm_equipment::is_limited_equipment( equipname ) )
|
||||
{
|
||||
if ( !isDefined( level.dropped_equipment ) )
|
||||
{
|
||||
@ -74,11 +74,11 @@ placed_equipment_think( model, equipname, origin, angles, tradius, toffset )
|
||||
}
|
||||
if ( isDefined( level.dropped_equipment[ equipname ] ) && isDefined( level.dropped_equipment[ equipname ].model ) )
|
||||
{
|
||||
level.dropped_equipment[ equipname ].model maps/mp/zombies/_zm_equipment::dropped_equipment_destroy( 1 );
|
||||
level.dropped_equipment[ equipname ].model maps\mp\zombies\_zm_equipment::dropped_equipment_destroy( 1 );
|
||||
}
|
||||
level.dropped_equipment[ equipname ] = pickupmodel.stub;
|
||||
}
|
||||
maps/mp/zombies/_zm_equipment::destructible_equipment_list_add( pickupmodel );
|
||||
maps\mp\zombies\_zm_equipment::destructible_equipment_list_add( pickupmodel );
|
||||
return pickupmodel;
|
||||
}
|
||||
|
||||
@ -90,6 +90,6 @@ item_watch_damage()
|
||||
{
|
||||
self.health = 1000000;
|
||||
self waittill( "damage", amount );
|
||||
self maps/mp/zombies/_zm_equipment::item_damage( amount );
|
||||
self maps\mp\zombies\_zm_equipment::item_damage( amount );
|
||||
}
|
||||
}
|
@ -149,18 +149,18 @@ round_end(winner)
|
||||
|
||||
level.round_number++;
|
||||
|
||||
level thread maps/mp/zombies/_zm_audio_announcer::leaderdialog( "grief_restarted" );
|
||||
level thread maps\mp\zombies\_zm_audio_announcer::leaderdialog( "grief_restarted" );
|
||||
if(isDefined(winner))
|
||||
{
|
||||
foreach(player in players)
|
||||
{
|
||||
if(player.team == team)
|
||||
{
|
||||
player thread scripts/zm/zgrief/zgrief_reimagined::show_grief_hud_msg( "You won the round" );
|
||||
player thread scripts\zm\zgrief\zgrief_reimagined::show_grief_hud_msg( "You won the round" );
|
||||
}
|
||||
else
|
||||
{
|
||||
player thread scripts/zm/zgrief/zgrief_reimagined::show_grief_hud_msg( "You lost the round" );
|
||||
player thread scripts\zm\zgrief\zgrief_reimagined::show_grief_hud_msg( "You lost the round" );
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -168,13 +168,13 @@ round_end(winner)
|
||||
{
|
||||
foreach(player in players)
|
||||
{
|
||||
player thread scripts/zm/zgrief/zgrief_reimagined::show_grief_hud_msg( &"ZOMBIE_GRIEF_RESET" );
|
||||
player thread scripts\zm\zgrief\zgrief_reimagined::show_grief_hud_msg( &"ZOMBIE_GRIEF_RESET" );
|
||||
}
|
||||
}
|
||||
|
||||
zombie_goto_round( level.round_number );
|
||||
level thread maps/mp/zombies/_zm_game_module::reset_grief();
|
||||
level thread maps/mp/zombies/_zm::round_think( 1 );
|
||||
level thread maps\mp\zombies\_zm_game_module::reset_grief();
|
||||
level thread maps\mp\zombies\_zm::round_think( 1 );
|
||||
}
|
||||
|
||||
game_won(winner)
|
||||
@ -188,16 +188,16 @@ game_won(winner)
|
||||
players[ i ] freezecontrols( 1 );
|
||||
if ( players[ i ]._encounters_team == winner )
|
||||
{
|
||||
players[ i ] thread maps/mp/zombies/_zm_audio_announcer::leaderdialogonplayer( "grief_won" );
|
||||
players[ i ] thread maps\mp\zombies\_zm_audio_announcer::leaderdialogonplayer( "grief_won" );
|
||||
i++;
|
||||
continue;
|
||||
}
|
||||
players[ i ] thread maps/mp/zombies/_zm_audio_announcer::leaderdialogonplayer( "grief_lost" );
|
||||
players[ i ] thread maps\mp\zombies\_zm_audio_announcer::leaderdialogonplayer( "grief_lost" );
|
||||
i++;
|
||||
}
|
||||
level notify( "game_module_ended", winner );
|
||||
level._game_module_game_end_check = undefined;
|
||||
maps/mp/gametypes_zm/_zm_gametype::track_encounters_win_stats( level.gamemodulewinningteam );
|
||||
maps\mp\gametypes_zm\_zm_gametype::track_encounters_win_stats( level.gamemodulewinningteam );
|
||||
level notify( "end_game" );
|
||||
}
|
||||
|
||||
@ -224,24 +224,24 @@ zombie_goto_round(target_round)
|
||||
game["allies_spawnpoints_randomized"] = undefined;
|
||||
set_game_var("switchedsides", !get_game_var("switchedsides"));
|
||||
|
||||
maps/mp/zombies/_zm_game_module::respawn_players();
|
||||
maps\mp\zombies\_zm_game_module::respawn_players();
|
||||
|
||||
wait 0.05; // let all players fully respawn
|
||||
|
||||
level thread player_respawn_award();
|
||||
|
||||
level thread scripts/zm/zgrief/zgrief_reimagined::round_start_wait(5);
|
||||
level thread scripts\zm\zgrief\zgrief_reimagined::round_start_wait(5);
|
||||
}
|
||||
|
||||
player_respawn_award()
|
||||
{
|
||||
maps/mp/zombies/_zm::award_grenades_for_survivors();
|
||||
maps\mp\zombies\_zm::award_grenades_for_survivors();
|
||||
players = get_players();
|
||||
foreach(player in players)
|
||||
{
|
||||
if(player.score < level.player_starting_points)
|
||||
{
|
||||
player maps/mp/zombies/_zm_score::add_to_player_score(level.player_starting_points - player.score);
|
||||
player maps\mp\zombies\_zm_score::add_to_player_score(level.player_starting_points - player.score);
|
||||
}
|
||||
|
||||
if(isDefined(player get_player_placeable_mine()))
|
||||
|
@ -59,7 +59,7 @@ onspawnplayer( predictedspawn )
|
||||
spawnpoints = getstructarray( "initial_spawn_points", "targetname" );
|
||||
}
|
||||
|
||||
spawnpoint = maps/mp/zombies/_zm::getfreespawnpoint( spawnpoints, self );
|
||||
spawnpoint = maps\mp\zombies\_zm::getfreespawnpoint( spawnpoints, self );
|
||||
|
||||
if ( predictedspawn )
|
||||
{
|
||||
@ -73,11 +73,11 @@ onspawnplayer( predictedspawn )
|
||||
}
|
||||
|
||||
self.entity_num = self getentitynumber();
|
||||
self thread maps/mp/zombies/_zm::onplayerspawned();
|
||||
self thread maps/mp/zombies/_zm::player_revive_monitor();
|
||||
self thread maps\mp\zombies\_zm::onplayerspawned();
|
||||
self thread maps\mp\zombies\_zm::player_revive_monitor();
|
||||
self freezecontrols( 1 );
|
||||
self.spectator_respawn = spawnpoint;
|
||||
self.score = self maps/mp/gametypes_zm/_globallogic_score::getpersstat( "score" );
|
||||
self.score = self maps\mp\gametypes_zm\_globallogic_score::getpersstat( "score" );
|
||||
self.pers[ "participation" ] = 0;
|
||||
|
||||
self.score_total = self.score;
|
||||
@ -85,7 +85,7 @@ onspawnplayer( predictedspawn )
|
||||
self.player_initialized = 0;
|
||||
self.zombification_time = 0;
|
||||
self.enabletext = 1;
|
||||
self thread maps/mp/zombies/_zm_blockers::rebuild_barrier_reward_reset();
|
||||
self thread maps\mp\zombies\_zm_blockers::rebuild_barrier_reward_reset();
|
||||
|
||||
if ( !is_true( level.host_ended_game ) )
|
||||
{
|
||||
@ -98,7 +98,7 @@ onspawnplayer( predictedspawn )
|
||||
spawn_in_spectate = [[ level.game_mode_spawn_player_logic ]]();
|
||||
if ( spawn_in_spectate )
|
||||
{
|
||||
self delay_thread( 0.05, maps/mp/zombies/_zm::spawnspectator );
|
||||
self delay_thread( 0.05, maps\mp\zombies\_zm::spawnspectator );
|
||||
}
|
||||
}
|
||||
|
||||
@ -116,9 +116,9 @@ onplayerspawned()
|
||||
{
|
||||
return;
|
||||
}
|
||||
if ( self maps/mp/zombies/_zm_laststand::player_is_in_laststand() )
|
||||
if ( self maps\mp\zombies\_zm_laststand::player_is_in_laststand() )
|
||||
{
|
||||
self thread maps/mp/zombies/_zm_laststand::auto_revive( self );
|
||||
self thread maps\mp\zombies\_zm_laststand::auto_revive( self );
|
||||
}
|
||||
if ( isDefined( level.custom_player_fake_death_cleanup ) )
|
||||
{
|
||||
@ -173,7 +173,7 @@ onplayerspawned()
|
||||
|
||||
hide_gump_loading_for_hotjoiners()
|
||||
{
|
||||
if(scripts/zm/zgrief/zgrief_reimagined::is_respawn_gamemode())
|
||||
if(scripts\zm\zgrief\zgrief_reimagined::is_respawn_gamemode())
|
||||
{
|
||||
return;
|
||||
}
|
||||
@ -187,7 +187,7 @@ hide_gump_loading_for_hotjoiners()
|
||||
wait 0.25;
|
||||
}
|
||||
wait 0.5;
|
||||
self maps/mp/zombies/_zm::spawnspectator();
|
||||
self maps\mp\zombies\_zm::spawnspectator();
|
||||
self.is_hotjoining = 0;
|
||||
self.is_hotjoin = 1;
|
||||
if ( is_true( level.intermission ) || is_true( level.host_ended_game ) )
|
||||
|
@ -11,7 +11,7 @@ revive_do_revive( playerbeingrevived, revivergun )
|
||||
{
|
||||
revivetime /= 1.5;
|
||||
}
|
||||
if ( self maps/mp/zombies/_zm_pers_upgrades_functions::pers_revive_active() )
|
||||
if ( self maps\mp\zombies\_zm_pers_upgrades_functions::pers_revive_active() )
|
||||
{
|
||||
revivetime *= 0.5;
|
||||
}
|
||||
@ -19,7 +19,7 @@ revive_do_revive( playerbeingrevived, revivergun )
|
||||
revived = 0;
|
||||
playerbeingrevived.revivetrigger.beingrevived = 1;
|
||||
playerbeingrevived.revive_hud settext( &"ZOMBIE_PLAYER_IS_REVIVING_YOU", self );
|
||||
playerbeingrevived maps/mp/zombies/_zm_laststand::revive_hud_show_n_fade( 3 );
|
||||
playerbeingrevived maps\mp\zombies\_zm_laststand::revive_hud_show_n_fade( 3 );
|
||||
playerbeingrevived.revivetrigger sethintstring( "" );
|
||||
if ( isplayer( playerbeingrevived ) )
|
||||
{
|
||||
@ -67,17 +67,17 @@ revive_do_revive( playerbeingrevived, revivergun )
|
||||
self.revivetexthud.alpha = 1;
|
||||
self.revivetexthud.color = ( 1, 1, 1 );
|
||||
self.revivetexthud.hidewheninmenu = 1;
|
||||
if ( self maps/mp/zombies/_zm_pers_upgrades_functions::pers_revive_active() )
|
||||
if ( self maps\mp\zombies\_zm_pers_upgrades_functions::pers_revive_active() )
|
||||
{
|
||||
self.revivetexthud.color = ( 0.5, 0.5, 1 );
|
||||
}
|
||||
self.revivetexthud settext( &"ZOMBIE_REVIVING" );
|
||||
self thread maps/mp/zombies/_zm_laststand::check_for_failed_revive( playerbeingrevived );
|
||||
while ( self maps/mp/zombies/_zm_laststand::is_reviving( playerbeingrevived ) )
|
||||
self thread maps\mp\zombies\_zm_laststand::check_for_failed_revive( playerbeingrevived );
|
||||
while ( self maps\mp\zombies\_zm_laststand::is_reviving( playerbeingrevived ) )
|
||||
{
|
||||
wait 0.05;
|
||||
timer += 0.05;
|
||||
if ( self maps/mp/zombies/_zm_laststand::player_is_in_laststand() )
|
||||
if ( self maps\mp\zombies\_zm_laststand::player_is_in_laststand() )
|
||||
{
|
||||
break;
|
||||
}
|
||||
@ -120,7 +120,7 @@ revive_do_revive( playerbeingrevived, revivergun )
|
||||
|
||||
if ( !revived )
|
||||
{
|
||||
playerbeingrevived thread maps/mp/zombies/_zm_laststand::checkforbleedout( self );
|
||||
playerbeingrevived thread maps\mp\zombies\_zm_laststand::checkforbleedout( self );
|
||||
}
|
||||
return revived;
|
||||
}
|
||||
@ -138,7 +138,7 @@ laststand_clean_up_on_disconnect( playerbeingrevived, revivergun )
|
||||
revivetrigger delete();
|
||||
}
|
||||
|
||||
self maps/mp/zombies/_zm_laststand::cleanup_suicide_hud();
|
||||
self maps\mp\zombies\_zm_laststand::cleanup_suicide_hud();
|
||||
|
||||
if ( isDefined( self.reviveprogressbar ) )
|
||||
{
|
||||
@ -150,7 +150,7 @@ laststand_clean_up_on_disconnect( playerbeingrevived, revivergun )
|
||||
self.revivetexthud destroy();
|
||||
}
|
||||
|
||||
self maps/mp/zombies/_zm_laststand::revive_give_back_weapons( revivergun );
|
||||
self maps\mp\zombies\_zm_laststand::revive_give_back_weapons( revivergun );
|
||||
}
|
||||
|
||||
laststand_clean_up_reviving_any( playerbeingrevived ) //checked changed to match cerberus output
|
||||
@ -195,7 +195,7 @@ revive_weapon_switch_watcher()
|
||||
revive_give_back_weapons( gun )
|
||||
{
|
||||
self takeweapon( level.revive_tool );
|
||||
if ( self maps/mp/zombies/_zm_laststand::player_is_in_laststand() )
|
||||
if ( self maps\mp\zombies\_zm_laststand::player_is_in_laststand() )
|
||||
{
|
||||
return;
|
||||
}
|
||||
@ -224,7 +224,7 @@ revive_hud_think()
|
||||
while ( 1 )
|
||||
{
|
||||
wait 0.1;
|
||||
if ( !maps/mp/zombies/_zm_laststand::player_any_player_in_laststand() )
|
||||
if ( !maps\mp\zombies\_zm_laststand::player_any_player_in_laststand() )
|
||||
{
|
||||
continue;
|
||||
}
|
||||
@ -249,7 +249,7 @@ revive_hud_think()
|
||||
i = 0;
|
||||
while ( i < players.size )
|
||||
{
|
||||
if ( players[ i ] maps/mp/zombies/_zm_laststand::player_is_in_laststand() )
|
||||
if ( players[ i ] maps\mp\zombies\_zm_laststand::player_is_in_laststand() )
|
||||
{
|
||||
i++;
|
||||
continue;
|
||||
@ -275,7 +275,7 @@ revive_hud_think()
|
||||
continue;
|
||||
}
|
||||
}
|
||||
players[ i ] thread maps/mp/zombies/_zm_laststand::faderevivemessageover( playertorevive, 3 );
|
||||
players[ i ] thread maps\mp\zombies\_zm_laststand::faderevivemessageover( playertorevive, 3 );
|
||||
i++;
|
||||
}
|
||||
playertorevive.revivetrigger.createtime = undefined;
|
||||
|
@ -18,7 +18,7 @@ treasure_chest_init( start_chest_name )
|
||||
{
|
||||
level.chests[ i ].box_hacks = [];
|
||||
level.chests[ i ].orig_origin = level.chests[ i ].origin;
|
||||
level.chests[ i ] maps/mp/zombies/_zm_magicbox::get_chest_pieces();
|
||||
level.chests[ i ] maps\mp\zombies\_zm_magicbox::get_chest_pieces();
|
||||
if ( isDefined( level.chests[ i ].zombie_cost ) )
|
||||
{
|
||||
level.chests[ i ].old_cost = level.chests[ i ].zombie_cost;
|
||||
@ -38,7 +38,7 @@ treasure_chest_init( start_chest_name )
|
||||
while ( isDefined( _k102 ) )
|
||||
{
|
||||
chest = _a102[ _k102 ];
|
||||
chest maps/mp/zombies/_zm_magicbox::hide_chest();
|
||||
chest maps\mp\zombies\_zm_magicbox::hide_chest();
|
||||
_k102 = getNextArrayKey( _a102, _k102 );
|
||||
}
|
||||
return;
|
||||
@ -54,30 +54,30 @@ treasure_chest_init( start_chest_name )
|
||||
level.chest_index = 0;
|
||||
level.chests[ 0 ].no_fly_away = 1;
|
||||
}
|
||||
maps/mp/zombies/_zm_magicbox::init_starting_chest_location( start_chest_name );
|
||||
array_thread( level.chests, maps/mp/zombies/_zm_magicbox::treasure_chest_think );
|
||||
maps\mp\zombies\_zm_magicbox::init_starting_chest_location( start_chest_name );
|
||||
array_thread( level.chests, maps\mp\zombies\_zm_magicbox::treasure_chest_think );
|
||||
}
|
||||
|
||||
treasure_chest_move( player_vox )
|
||||
{
|
||||
level waittill( "weapon_fly_away_start" );
|
||||
players = get_players();
|
||||
array_thread( players, maps/mp/zombies/_zm_magicbox::play_crazi_sound );
|
||||
array_thread( players, maps\mp\zombies\_zm_magicbox::play_crazi_sound );
|
||||
if ( isDefined( player_vox ) )
|
||||
{
|
||||
player_vox delay_thread( randomintrange( 2, 7 ), maps/mp/zombies/_zm_audio::create_and_play_dialog, "general", "box_move" );
|
||||
player_vox delay_thread( randomintrange( 2, 7 ), maps\mp\zombies\_zm_audio::create_and_play_dialog, "general", "box_move" );
|
||||
}
|
||||
level waittill( "weapon_fly_away_end" );
|
||||
if ( isDefined( self.zbarrier ) )
|
||||
{
|
||||
self maps/mp/zombies/_zm_magicbox::hide_chest( 1 );
|
||||
self maps\mp\zombies\_zm_magicbox::hide_chest( 1 );
|
||||
}
|
||||
wait 0.1;
|
||||
if ( level.zombie_vars[ "zombie_powerup_fire_sale_on" ] == 1 && self [[ level._zombiemode_check_firesale_loc_valid_func ]]() )
|
||||
{
|
||||
current_sale_time = level.zombie_vars[ "zombie_powerup_fire_sale_time" ];
|
||||
wait_network_frame();
|
||||
self thread maps/mp/zombies/_zm_magicbox::fire_sale_fix();
|
||||
self thread maps\mp\zombies\_zm_magicbox::fire_sale_fix();
|
||||
level.zombie_vars[ "zombie_powerup_fire_sale_time" ] = current_sale_time;
|
||||
while ( level.zombie_vars[ "zombie_powerup_fire_sale_time" ] > 0 )
|
||||
{
|
||||
@ -91,14 +91,14 @@ treasure_chest_move( player_vox )
|
||||
}
|
||||
else
|
||||
{
|
||||
maps/mp/zombies/_zm_magicbox::default_box_move_logic();
|
||||
maps\mp\zombies\_zm_magicbox::default_box_move_logic();
|
||||
}
|
||||
if ( isDefined( level.chests[ level.chest_index ].box_hacks[ "summon_box" ] ) )
|
||||
{
|
||||
level.chests[ level.chest_index ] [[ level.chests[ level.chest_index ].box_hacks[ "summon_box" ] ]]( 0 );
|
||||
}
|
||||
playfx( level._effect[ "poltergeist" ], level.chests[ level.chest_index ].zbarrier.origin );
|
||||
level.chests[ level.chest_index ] maps/mp/zombies/_zm_magicbox::show_chest();
|
||||
level.chests[ level.chest_index ] maps\mp\zombies\_zm_magicbox::show_chest();
|
||||
flag_clear( "moving_chest_now" );
|
||||
self.zbarrier.chest_moving = 0;
|
||||
}
|
||||
|
@ -1,8 +1,8 @@
|
||||
#include maps\mp\_utility;
|
||||
#include common_scripts\utility;
|
||||
#include maps\mp\zombies\_zm_utility;
|
||||
#include maps/mp/zombies/_zm_melee_weapon;
|
||||
#include maps/mp/zombies/_zm_weapons;
|
||||
#include maps\mp\zombies\_zm_melee_weapon;
|
||||
#include maps\mp\zombies\_zm_weapons;
|
||||
|
||||
change_melee_weapon( weapon_name, current_weapon )
|
||||
{
|
||||
@ -53,7 +53,7 @@ change_melee_weapon( weapon_name, current_weapon )
|
||||
{
|
||||
current_weapon = new_ballistic;
|
||||
}
|
||||
self giveweapon( new_ballistic, 0, self maps/mp/zombies/_zm_weapons::get_pack_a_punch_weapon_options( new_ballistic ) );
|
||||
self giveweapon( new_ballistic, 0, self maps\mp\zombies\_zm_weapons::get_pack_a_punch_weapon_options( new_ballistic ) );
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -1,8 +1,8 @@
|
||||
#include maps\mp\_utility;
|
||||
#include common_scripts\utility;
|
||||
#include maps\mp\zombies\_zm_utility;
|
||||
#include maps/mp/zombies/_zm_perks;
|
||||
#include maps/mp/zombies/_zm_power;
|
||||
#include maps\mp\zombies\_zm_perks;
|
||||
#include maps\mp\zombies\_zm_power;
|
||||
|
||||
perk_pause( perk )
|
||||
{
|
||||
@ -40,14 +40,14 @@ give_perk( perk, bought )
|
||||
self.num_perks++;
|
||||
if ( isDefined( bought ) && bought )
|
||||
{
|
||||
self maps/mp/zombies/_zm_audio::playerexert( "burp" );
|
||||
self maps\mp\zombies\_zm_audio::playerexert( "burp" );
|
||||
if ( isDefined( level.remove_perk_vo_delay ) && level.remove_perk_vo_delay )
|
||||
{
|
||||
self maps/mp/zombies/_zm_audio::perk_vox( perk );
|
||||
self maps\mp\zombies\_zm_audio::perk_vox( perk );
|
||||
}
|
||||
else
|
||||
{
|
||||
self delay_thread( 1.5, maps/mp/zombies/_zm_audio::perk_vox, perk );
|
||||
self delay_thread( 1.5, maps\mp\zombies\_zm_audio::perk_vox, perk );
|
||||
}
|
||||
self setblur( 4, 0.1 );
|
||||
wait 0.1;
|
||||
@ -105,11 +105,11 @@ give_perk( perk, bought )
|
||||
self thread [[ level._custom_perks[ perk ].player_thread_give ]]();
|
||||
}
|
||||
self set_perk_clientfield( perk, 1 );
|
||||
maps/mp/_demo::bookmark( "zm_player_perk", getTime(), self );
|
||||
self maps/mp/zombies/_zm_stats::increment_client_stat( "perks_drank" );
|
||||
self maps/mp/zombies/_zm_stats::increment_client_stat( perk + "_drank" );
|
||||
self maps/mp/zombies/_zm_stats::increment_player_stat( perk + "_drank" );
|
||||
self maps/mp/zombies/_zm_stats::increment_player_stat( "perks_drank" );
|
||||
maps\mp\_demo::bookmark( "zm_player_perk", getTime(), self );
|
||||
self maps\mp\zombies\_zm_stats::increment_client_stat( "perks_drank" );
|
||||
self maps\mp\zombies\_zm_stats::increment_client_stat( perk + "_drank" );
|
||||
self maps\mp\zombies\_zm_stats::increment_player_stat( perk + "_drank" );
|
||||
self maps\mp\zombies\_zm_stats::increment_player_stat( "perks_drank" );
|
||||
if ( !isDefined( self.perk_history ) )
|
||||
{
|
||||
self.perk_history = [];
|
||||
@ -155,7 +155,7 @@ perk_think( perk )
|
||||
case "specialty_additionalprimaryweapon":
|
||||
if ( result == perk_str )
|
||||
{
|
||||
self maps/mp/zombies/_zm::take_additionalprimaryweapon();
|
||||
self maps\mp\zombies\_zm::take_additionalprimaryweapon();
|
||||
}
|
||||
break;
|
||||
case "specialty_deadshot":
|
||||
@ -240,7 +240,7 @@ perk_set_max_health_if_jugg( perk, set_premaxhealth, clamp_health_to_max_health
|
||||
|
||||
if ( isDefined( max_total_health ) )
|
||||
{
|
||||
if ( self maps/mp/zombies/_zm_pers_upgrades_functions::pers_jugg_active() )
|
||||
if ( self maps\mp\zombies\_zm_pers_upgrades_functions::pers_jugg_active() )
|
||||
{
|
||||
max_total_health += level.pers_jugg_upgrade_health_bonus;
|
||||
}
|
||||
|
@ -23,7 +23,7 @@ playerhealthregen()
|
||||
|
||||
self player_flag_clear( "player_has_red_flashing_overlay" );
|
||||
self player_flag_clear( "player_is_invulnerable" );
|
||||
self thread maps/mp/zombies/_zm_playerhealth::healthoverlay();
|
||||
self thread maps\mp\zombies\_zm_playerhealth::healthoverlay();
|
||||
|
||||
level.playerhealth_regularregendelay = 2000;
|
||||
level.longregentime = 4000;
|
||||
@ -37,7 +37,7 @@ playerhealthregen()
|
||||
lastinvulratio = 1;
|
||||
healthoverlaycutoff = 0.2;
|
||||
|
||||
self thread maps/mp/zombies/_zm_playerhealth::playerhurtcheck();
|
||||
self thread maps\mp\zombies\_zm_playerhealth::playerhurtcheck();
|
||||
if ( !isDefined( self.veryhurt ) )
|
||||
{
|
||||
self.veryhurt = 0;
|
||||
@ -187,7 +187,7 @@ playerhealthregen()
|
||||
}
|
||||
invultime *= playerinvultimescale;
|
||||
lastinvulratio = self.health / self.maxhealth;
|
||||
self thread maps/mp/zombies/_zm_playerhealth::playerinvul( invultime );
|
||||
self thread maps\mp\zombies\_zm_playerhealth::playerinvul( invultime );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,7 +1,7 @@
|
||||
#include maps\mp\_utility;
|
||||
#include common_scripts\utility;
|
||||
#include maps\mp\zombies\_zm_utility;
|
||||
#include maps/mp/zombies/_zm_power;
|
||||
#include maps\mp\zombies\_zm_power;
|
||||
|
||||
standard_powered_items()
|
||||
{
|
||||
@ -15,14 +15,14 @@ standard_powered_items()
|
||||
i++;
|
||||
continue;
|
||||
}
|
||||
powered_on = maps/mp/zombies/_zm_perks::get_perk_machine_start_state( vending_triggers[ i ].script_noteworthy );
|
||||
powered_on = maps\mp\zombies\_zm_perks::get_perk_machine_start_state( vending_triggers[ i ].script_noteworthy );
|
||||
add_powered_item( ::perk_power_on, ::perk_power_off, ::perk_range, ::cost_low_if_local, 0, powered_on, vending_triggers[ i ] );
|
||||
i++;
|
||||
}
|
||||
pack_a_punch = getentarray( "specialty_weapupgrade", "script_noteworthy" );
|
||||
foreach ( trigger in pack_a_punch )
|
||||
{
|
||||
powered_on = maps/mp/zombies/_zm_perks::get_perk_machine_start_state( trigger.script_noteworthy );
|
||||
powered_on = maps\mp\zombies\_zm_perks::get_perk_machine_start_state( trigger.script_noteworthy );
|
||||
trigger.powered = add_powered_item( ::pap_power_on, ::pap_power_off, ::pap_range, ::cost_low_if_local, 0, powered_on, trigger );
|
||||
}
|
||||
zombie_doors = getentarray( "zombie_door", "targetname" );
|
||||
@ -48,11 +48,11 @@ standard_powered_items()
|
||||
perk_power_off( origin, radius )
|
||||
{
|
||||
self.target notify( "death" );
|
||||
self.target thread maps/mp/zombies/_zm_perks::vending_trigger_think();
|
||||
self.target thread maps\mp\zombies\_zm_perks::vending_trigger_think();
|
||||
if ( isDefined( self.target.perk_hum ) )
|
||||
{
|
||||
self.target.perk_hum delete();
|
||||
}
|
||||
maps/mp/zombies/_zm_perks::perk_pause( self.target.script_noteworthy );
|
||||
level notify( self.target maps/mp/zombies/_zm_perks::getvendingmachinenotify() + "_off" );
|
||||
maps\mp\zombies\_zm_perks::perk_pause( self.target.script_noteworthy );
|
||||
level notify( self.target maps\mp\zombies\_zm_perks::getvendingmachinenotify() + "_off" );
|
||||
}
|
@ -19,7 +19,7 @@ full_ammo_powerup( drop_item, player )
|
||||
i = 0;
|
||||
while ( i < players.size )
|
||||
{
|
||||
if ( players[ i ] maps/mp/zombies/_zm_laststand::player_is_in_laststand() )
|
||||
if ( players[ i ] maps\mp\zombies\_zm_laststand::player_is_in_laststand() )
|
||||
{
|
||||
i++;
|
||||
continue;
|
||||
@ -75,7 +75,7 @@ full_ammo_powerup( drop_item, player )
|
||||
}
|
||||
i++;
|
||||
}
|
||||
level thread maps/mp/zombies/_zm_powerups::full_ammo_on_hud( drop_item, player.team );
|
||||
level thread maps\mp\zombies\_zm_powerups::full_ammo_on_hud( drop_item, player.team );
|
||||
|
||||
if(level.scr_zm_ui_gametype == "zgrief")
|
||||
{
|
||||
@ -91,7 +91,7 @@ empty_clip_powerup( drop_item, player )
|
||||
players = get_players(team);
|
||||
while(i < players.size)
|
||||
{
|
||||
if ( players[ i ] maps/mp/zombies/_zm_laststand::player_is_in_laststand() )
|
||||
if ( players[ i ] maps\mp\zombies\_zm_laststand::player_is_in_laststand() )
|
||||
{
|
||||
i++;
|
||||
continue;
|
||||
@ -109,7 +109,7 @@ empty_clip_powerup( drop_item, player )
|
||||
stock_ammo = players[i] getweaponammostock(weapon, 0);
|
||||
stock_ammo_alt = players[i] getweaponammostock(alt_weapon, 0);
|
||||
players[i] takeweapon(weapon);
|
||||
players[i] giveweapon(weapon, 0, players[i] maps/mp/zombies/_zm_weapons::get_pack_a_punch_weapon_options(weapon));
|
||||
players[i] giveweapon(weapon, 0, players[i] maps\mp\zombies\_zm_weapons::get_pack_a_punch_weapon_options(weapon));
|
||||
players[i] setweaponammostock(weapon, stock_ammo);
|
||||
players[i] setweaponammostock(alt_weapon, stock_ammo_alt);
|
||||
players[i] setweaponammoclip(dual_wield_weapon, 0);
|
||||
@ -128,8 +128,8 @@ empty_clip_powerup( drop_item, player )
|
||||
empty_clip_on_hud( drop_item, team )
|
||||
{
|
||||
self endon( "disconnect" );
|
||||
hudelem = maps/mp/gametypes_zm/_hud_util::createserverfontstring( "objective", 2, team );
|
||||
hudelem maps/mp/gametypes_zm/_hud_util::setpoint( "TOP", undefined, 0, level.zombie_vars[ "zombie_timer_offset" ] - ( level.zombie_vars[ "zombie_timer_offset_interval" ] * 2 ) );
|
||||
hudelem = maps\mp\gametypes_zm\_hud_util::createserverfontstring( "objective", 2, team );
|
||||
hudelem maps\mp\gametypes_zm\_hud_util::setpoint( "TOP", undefined, 0, level.zombie_vars[ "zombie_timer_offset" ] - ( level.zombie_vars[ "zombie_timer_offset_interval" ] * 2 ) );
|
||||
hudelem.sort = 0.5;
|
||||
hudelem.color = (0.21, 0, 0);
|
||||
hudelem.alpha = 0;
|
||||
@ -156,7 +156,7 @@ nuke_powerup( drop_item, player_team )
|
||||
location = drop_item.origin;
|
||||
player = getClosest(location, get_players(player_team));
|
||||
playfx( drop_item.fx, location );
|
||||
level thread maps/mp/zombies/_zm_powerups::nuke_flash( player_team );
|
||||
level thread maps\mp\zombies\_zm_powerups::nuke_flash( player_team );
|
||||
wait 0.5;
|
||||
zombies = getaiarray( level.zombie_team );
|
||||
zombies = arraysort( zombies, location );
|
||||
@ -209,13 +209,13 @@ nuke_powerup( drop_item, player_team )
|
||||
}
|
||||
if ( i < 5 && !zombies_nuked[ i ].isdog )
|
||||
{
|
||||
zombies_nuked[ i ] thread maps/mp/animscripts/zm_death::flame_death_fx();
|
||||
zombies_nuked[ i ] thread maps\mp\animscripts\zm_death::flame_death_fx();
|
||||
}
|
||||
if ( !zombies_nuked[ i ].isdog )
|
||||
{
|
||||
if ( !is_true( zombies_nuked[ i ].no_gib ) )
|
||||
{
|
||||
zombies_nuked[ i ] maps/mp/zombies/_zm_spawner::zombie_head_gib();
|
||||
zombies_nuked[ i ] maps\mp\zombies\_zm_spawner::zombie_head_gib();
|
||||
}
|
||||
zombies_nuked[ i ] playsound("evt_nuked");
|
||||
}
|
||||
@ -226,7 +226,7 @@ nuke_powerup( drop_item, player_team )
|
||||
players = get_players( player_team );
|
||||
for ( i = 0; i < players.size; i++ )
|
||||
{
|
||||
players[ i ] maps/mp/zombies/_zm_score::player_add_points( "nuke_powerup", 400 );
|
||||
players[ i ] maps\mp\zombies\_zm_score::player_add_points( "nuke_powerup", 400 );
|
||||
}
|
||||
|
||||
if(level.scr_zm_ui_gametype == "zgrief")
|
||||
@ -238,9 +238,9 @@ nuke_powerup( drop_item, player_team )
|
||||
{
|
||||
radiusDamage(players[i].origin + (0, 0, 5), 10, 80, 80);
|
||||
}
|
||||
else if(players[i] maps/mp/zombies/_zm_laststand::player_is_in_laststand())
|
||||
else if(players[i] maps\mp\zombies\_zm_laststand::player_is_in_laststand())
|
||||
{
|
||||
players[i] thread scripts/zm/zgrief/zgrief_reimagined::player_suicide();
|
||||
players[i] thread scripts\zm\zgrief\zgrief_reimagined::player_suicide();
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -256,7 +256,7 @@ insta_kill_powerup( drop_item, player )
|
||||
|
||||
if ( is_classic() )
|
||||
{
|
||||
player thread maps/mp/zombies/_zm_pers_upgrades_functions::pers_upgrade_insta_kill_upgrade_check();
|
||||
player thread maps\mp\zombies\_zm_pers_upgrades_functions::pers_upgrade_insta_kill_upgrade_check();
|
||||
}
|
||||
|
||||
team = player.team;
|
||||
@ -351,7 +351,7 @@ double_points_powerup( drop_item, player )
|
||||
|
||||
if ( is_true( level.pers_upgrade_double_points ) )
|
||||
{
|
||||
player thread maps/mp/zombies/_zm_pers_upgrades_functions::pers_upgrade_double_points_pickup_start();
|
||||
player thread maps\mp\zombies\_zm_pers_upgrades_functions::pers_upgrade_double_points_pickup_start();
|
||||
}
|
||||
|
||||
if ( isDefined( level.current_game_module ) && level.current_game_module == 2 )
|
||||
|
@ -1,7 +1,7 @@
|
||||
#include maps\mp\_utility;
|
||||
#include common_scripts\utility;
|
||||
#include maps\mp\zombies\_zm_utility;
|
||||
#include maps/mp/zombies/_zm_spawner;
|
||||
#include maps\mp\zombies\_zm_spawner;
|
||||
|
||||
zombie_damage( mod, hit_location, hit_origin, player, amount, team )
|
||||
{
|
||||
@ -31,18 +31,18 @@ zombie_damage( mod, hit_location, hit_origin, player, amount, team )
|
||||
self.damagehit_origin = player getweaponmuzzlepoint();
|
||||
}
|
||||
|
||||
if ( self maps/mp/zombies/_zm_spawner::check_zombie_damage_callbacks( mod, hit_location, hit_origin, player, amount ) )
|
||||
if ( self maps\mp\zombies\_zm_spawner::check_zombie_damage_callbacks( mod, hit_location, hit_origin, player, amount ) )
|
||||
{
|
||||
return;
|
||||
}
|
||||
else if ( self maps/mp/zombies/_zm_spawner::zombie_flame_damage( mod, player ) )
|
||||
else if ( self maps\mp\zombies\_zm_spawner::zombie_flame_damage( mod, player ) )
|
||||
{
|
||||
if ( self maps/mp/zombies/_zm_spawner::zombie_give_flame_damage_points() )
|
||||
if ( self maps\mp\zombies\_zm_spawner::zombie_give_flame_damage_points() )
|
||||
{
|
||||
player maps/mp/zombies/_zm_score::player_add_points( "damage", mod, hit_location, self.isdog, team );
|
||||
player maps\mp\zombies\_zm_score::player_add_points( "damage", mod, hit_location, self.isdog, team );
|
||||
}
|
||||
}
|
||||
else if ( maps/mp/zombies/_zm_spawner::player_using_hi_score_weapon( player ) )
|
||||
else if ( maps\mp\zombies\_zm_spawner::player_using_hi_score_weapon( player ) )
|
||||
{
|
||||
damage_type = "damage";
|
||||
}
|
||||
@ -53,7 +53,7 @@ zombie_damage( mod, hit_location, hit_origin, player, amount, team )
|
||||
|
||||
if ( !is_true( self.no_damage_points ) )
|
||||
{
|
||||
player maps/mp/zombies/_zm_score::player_add_points( damage_type, mod, hit_location, self.isdog, team, self.damageweapon );
|
||||
player maps\mp\zombies\_zm_score::player_add_points( damage_type, mod, hit_location, self.isdog, team, self.damageweapon );
|
||||
}
|
||||
|
||||
if ( isDefined( self.zombie_damage_fx_func ) )
|
||||
@ -137,7 +137,7 @@ zombie_damage( mod, hit_location, hit_origin, player, amount, team )
|
||||
rand = randomintrange( 0, 100 );
|
||||
if ( rand < 10 )
|
||||
{
|
||||
player maps/mp/zombies/_zm_audio::create_and_play_dialog( "general", "crawl_spawn" );
|
||||
player maps\mp\zombies\_zm_audio::create_and_play_dialog( "general", "crawl_spawn" );
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -152,14 +152,14 @@ zombie_damage( mod, hit_location, hit_origin, player, amount, team )
|
||||
rand = randomintrange( 0, 100 );
|
||||
if ( rand < 7 )
|
||||
{
|
||||
player maps/mp/zombies/_zm_audio::create_and_play_dialog( "general", "shoot_arm" );
|
||||
player maps\mp\zombies\_zm_audio::create_and_play_dialog( "general", "shoot_arm" );
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
self thread maps/mp/zombies/_zm_powerups::check_for_instakill( player, mod, hit_location );
|
||||
self thread maps\mp\zombies\_zm_powerups::check_for_instakill( player, mod, hit_location );
|
||||
}
|
||||
|
||||
head_should_gib( attacker, type, point )
|
||||
@ -211,7 +211,7 @@ head_should_gib( attacker, type, point )
|
||||
}
|
||||
}
|
||||
|
||||
if ( !self maps/mp/animscripts/zm_utility::damagelocationisany( "head", "helmet", "neck" ) )
|
||||
if ( !self maps\mp\animscripts\zm_utility::damagelocationisany( "head", "helmet", "neck" ) )
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
@ -14,7 +14,7 @@ player_elec_damage()
|
||||
|
||||
if ( is_true( level.trap_electric_visionset_registered ) )
|
||||
{
|
||||
maps/mp/_visionset_mgr::vsmgr_activate( "overlay", "zm_trap_electric", self, shocktime, shocktime );
|
||||
maps\mp\_visionset_mgr::vsmgr_activate( "overlay", "zm_trap_electric", self, shocktime, shocktime );
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -1,7 +1,7 @@
|
||||
#include maps\mp\_utility;
|
||||
#include common_scripts\utility;
|
||||
#include maps\mp\zombies\_zm_utility;
|
||||
#include maps/mp/zombies/_zm_weap_ballistic_knife;
|
||||
#include maps\mp\zombies\_zm_weap_ballistic_knife;
|
||||
|
||||
on_spawn( watcher, player )
|
||||
{
|
||||
@ -10,11 +10,11 @@ on_spawn( watcher, player )
|
||||
player endon( "zmb_lost_knife" );
|
||||
level endon( "game_ended" );
|
||||
|
||||
is_upgraded = player maps/mp/zombies/_zm_melee_weapon::has_upgraded_ballistic_knife();
|
||||
is_upgraded = player maps\mp\zombies\_zm_melee_weapon::has_upgraded_ballistic_knife();
|
||||
|
||||
self waittill( "stationary", endpos, normal, angles, attacker, prey, bone );
|
||||
|
||||
if( is_upgraded && isDefined( prey ) && isplayer( prey ) && prey.team == player.team && prey maps/mp/zombies/_zm_laststand::player_is_in_laststand() )
|
||||
if( is_upgraded && isDefined( prey ) && isplayer( prey ) && prey.team == player.team && prey maps\mp\zombies\_zm_laststand::player_is_in_laststand() )
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
@ -1,7 +1,7 @@
|
||||
#include maps\mp\_utility;
|
||||
#include common_scripts\utility;
|
||||
#include maps\mp\zombies\_zm_utility;
|
||||
#include maps/mp/zombies/_zm_weap_claymore;
|
||||
#include maps\mp\zombies\_zm_weap_claymore;
|
||||
|
||||
buy_claymores()
|
||||
{
|
||||
@ -36,13 +36,13 @@ buy_claymores()
|
||||
if ( !who is_player_placeable_mine( "claymore_zm" ) || who getWeaponAmmoStock( "claymore_zm" ) < 2 )
|
||||
{
|
||||
play_sound_at_pos( "purchase", self.origin );
|
||||
who maps/mp/zombies/_zm_score::minus_to_player_score( self.zombie_cost );
|
||||
who maps\mp\zombies\_zm_score::minus_to_player_score( self.zombie_cost );
|
||||
if ( !who is_player_placeable_mine( "claymore_zm" ) )
|
||||
{
|
||||
who thread show_claymore_hint( "claymore_purchased" );
|
||||
}
|
||||
who thread claymore_setup();
|
||||
who thread maps/mp/zombies/_zm_audio::create_and_play_dialog( "weapon_pickup", "grenade" );
|
||||
who thread maps\mp\zombies\_zm_audio::create_and_play_dialog( "weapon_pickup", "grenade" );
|
||||
if ( isDefined( self.stub ) )
|
||||
{
|
||||
self.claymores_triggered = self.stub.claymores_triggered;
|
||||
@ -52,7 +52,7 @@ buy_claymores()
|
||||
model = getent( self.target, "targetname" );
|
||||
if ( isDefined( model ) )
|
||||
{
|
||||
model thread maps/mp/zombies/_zm_weapons::weapon_show( who );
|
||||
model thread maps\mp\zombies\_zm_weapons::weapon_show( who );
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -72,7 +72,7 @@ buy_claymores()
|
||||
else
|
||||
{
|
||||
who play_sound_on_ent( "no_purchase" );
|
||||
who maps/mp/zombies/_zm_audio::create_and_play_dialog( "general", "no_money_weapon" );
|
||||
who maps\mp\zombies\_zm_audio::create_and_play_dialog( "general", "no_money_weapon" );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -23,7 +23,7 @@ emp_detonate(grenade)
|
||||
}
|
||||
|
||||
level notify( "emp_detonate", origin, emp_radius );
|
||||
self thread maps/mp/zombies/_zm_weap_emp_bomb::emp_detonate_zombies( grenade_origin, grenade_owner );
|
||||
self thread maps\mp\zombies\_zm_weap_emp_bomb::emp_detonate_zombies( grenade_origin, grenade_owner );
|
||||
|
||||
if ( isDefined( level.custom_emp_detonate ) )
|
||||
{
|
||||
@ -32,15 +32,15 @@ emp_detonate(grenade)
|
||||
|
||||
if ( isDefined( grenade_owner ) )
|
||||
{
|
||||
grenade_owner thread maps/mp/zombies/_zm_weap_emp_bomb::destroyequipment( origin, emp_radius );
|
||||
grenade_owner thread maps\mp\zombies\_zm_weap_emp_bomb::destroyequipment( origin, emp_radius );
|
||||
}
|
||||
|
||||
emp_players( origin, emp_radius, grenade_owner );
|
||||
disabled_list = maps/mp/zombies/_zm_power::change_power_in_radius( -1, origin, emp_radius );
|
||||
disabled_list = maps\mp\zombies\_zm_power::change_power_in_radius( -1, origin, emp_radius );
|
||||
|
||||
wait emp_time;
|
||||
|
||||
maps/mp/zombies/_zm_power::revert_power_to_list( 1, origin, emp_radius, disabled_list );
|
||||
maps\mp\zombies\_zm_power::revert_power_to_list( 1, origin, emp_radius, disabled_list );
|
||||
}
|
||||
|
||||
emp_players(origin, radius, owner)
|
||||
@ -51,7 +51,7 @@ emp_players(origin, radius, owner)
|
||||
{
|
||||
if(distancesquared(origin, player.origin) < rsquared)
|
||||
{
|
||||
if(is_player_valid(player) || player maps/mp/zombies/_zm_laststand::player_is_in_laststand())
|
||||
if(is_player_valid(player) || player maps\mp\zombies\_zm_laststand::player_is_in_laststand())
|
||||
{
|
||||
time = 30;
|
||||
player shellshock( "frag_grenade_mp", 2 );
|
||||
@ -147,7 +147,7 @@ player_perk_pause( perk )
|
||||
if ( self.disabled_perks[ perk ] )
|
||||
{
|
||||
self unsetperk( perk );
|
||||
self maps/mp/zombies/_zm_perks::set_perk_clientfield( perk, 2 );
|
||||
self maps\mp\zombies\_zm_perks::set_perk_clientfield( perk, 2 );
|
||||
if ( perk == "specialty_armorvest" || perk == "specialty_armorvest_upgrade" )
|
||||
{
|
||||
self setmaxhealth( self.premaxhealth );
|
||||
@ -158,7 +158,7 @@ player_perk_pause( perk )
|
||||
}
|
||||
if ( perk == "specialty_additionalprimaryweapon" || perk == "specialty_additionalprimaryweapon_upgrade" )
|
||||
{
|
||||
self maps/mp/zombies/_zm::take_additionalprimaryweapon();
|
||||
self maps\mp\zombies\_zm::take_additionalprimaryweapon();
|
||||
}
|
||||
if ( issubstr( perk, "specialty_scavenger" ) )
|
||||
{
|
||||
@ -188,13 +188,13 @@ player_perk_unpause( perk )
|
||||
if ( isDefined( self.disabled_perks ) && is_true( self.disabled_perks[ perk ] ) )
|
||||
{
|
||||
self.disabled_perks[ perk ] = 0;
|
||||
self maps/mp/zombies/_zm_perks::set_perk_clientfield( perk, 1 );
|
||||
self maps\mp\zombies\_zm_perks::set_perk_clientfield( perk, 1 );
|
||||
self setperk( perk );
|
||||
if ( issubstr( perk, "specialty_scavenger" ) )
|
||||
{
|
||||
self.hasperkspecialtytombstone = 1;
|
||||
}
|
||||
self maps/mp/zombies/_zm_perks::perk_set_max_health_if_jugg( perk, 0, 0 );
|
||||
self maps\mp\zombies\_zm_perks::perk_set_max_health_if_jugg( perk, 0, 0 );
|
||||
if ( isDefined( level._custom_perks[ perk ] ) && isDefined( level._custom_perks[ perk ].player_thread_give ) )
|
||||
{
|
||||
self thread [[ level._custom_perks[ perk ].player_thread_give ]]();
|
||||
|
@ -1,7 +1,7 @@
|
||||
#include maps\mp\_utility;
|
||||
#include common_scripts\utility;
|
||||
#include maps\mp\zombies\_zm_utility;
|
||||
#include maps/mp/zombies/_zm_weap_jetgun;
|
||||
#include maps\mp\zombies\_zm_weap_jetgun;
|
||||
|
||||
is_jetgun_firing()
|
||||
{
|
||||
@ -105,7 +105,7 @@ jetgun_grind_zombie( player )
|
||||
}
|
||||
self.nodeathragdoll = 1;
|
||||
self.handle_death_notetracks = ::jetgun_handle_death_notetracks;
|
||||
player maps/mp/zombies/_zm_score::add_to_player_score(50 * maps/mp/zombies/_zm_score::get_points_multiplier(player));
|
||||
player maps\mp\zombies\_zm_score::add_to_player_score(50 * maps\mp\zombies\_zm_score::get_points_multiplier(player));
|
||||
self dodamage( self.health + 666, player.origin, player );
|
||||
}
|
||||
}
|
||||
@ -123,20 +123,20 @@ handle_overheated_jetgun()
|
||||
|
||||
if ( isDefined( level.explode_overheated_jetgun ) && level.explode_overheated_jetgun )
|
||||
{
|
||||
self thread maps/mp/zombies/_zm_equipment::equipment_release( "jetgun_zm" );
|
||||
self thread maps\mp\zombies\_zm_equipment::equipment_release( "jetgun_zm" );
|
||||
pcount = get_players().size;
|
||||
pickup_time = 360 / pcount;
|
||||
maps/mp/zombies/_zm_buildables::player_explode_buildable( "jetgun_zm", weapon_org, 250, 1, pickup_time );
|
||||
maps\mp\zombies\_zm_buildables::player_explode_buildable( "jetgun_zm", weapon_org, 250, 1, pickup_time );
|
||||
}
|
||||
else if ( isDefined( level.unbuild_overheated_jetgun ) && level.unbuild_overheated_jetgun )
|
||||
{
|
||||
self thread maps/mp/zombies/_zm_equipment::equipment_release( "jetgun_zm" );
|
||||
maps/mp/zombies/_zm_buildables::unbuild_buildable( "jetgun_zm", 1 );
|
||||
self thread maps\mp\zombies\_zm_equipment::equipment_release( "jetgun_zm" );
|
||||
maps\mp\zombies\_zm_buildables::unbuild_buildable( "jetgun_zm", 1 );
|
||||
self dodamage( 50, weapon_org );
|
||||
}
|
||||
else if ( isDefined( level.take_overheated_jetgun ) && level.take_overheated_jetgun )
|
||||
{
|
||||
self thread maps/mp/zombies/_zm_equipment::equipment_release( "jetgun_zm" );
|
||||
self thread maps\mp\zombies\_zm_equipment::equipment_release( "jetgun_zm" );
|
||||
self dodamage( 50, weapon_org );
|
||||
}
|
||||
else
|
||||
|
@ -1,7 +1,7 @@
|
||||
#include maps\mp\_utility;
|
||||
#include common_scripts\utility;
|
||||
#include maps\mp\zombies\_zm_utility;
|
||||
#include maps/mp/zombies/_zm_weap_slowgun;
|
||||
#include maps\mp\zombies\_zm_weap_slowgun;
|
||||
|
||||
watch_reset_anim_rate()
|
||||
{
|
||||
|
@ -7,7 +7,7 @@ weapon_give( weapon, is_upgrade, magic_box, nosound )
|
||||
{
|
||||
primaryweapons = self getweaponslistprimaries();
|
||||
current_weapon = self getcurrentweapon();
|
||||
current_weapon = self maps/mp/zombies/_zm_weapons::switch_from_alt_weapon( current_weapon );
|
||||
current_weapon = self maps\mp\zombies\_zm_weapons::switch_from_alt_weapon( current_weapon );
|
||||
if ( !isDefined( is_upgrade ) )
|
||||
{
|
||||
is_upgrade = 0;
|
||||
@ -15,7 +15,7 @@ weapon_give( weapon, is_upgrade, magic_box, nosound )
|
||||
weapon_limit = get_player_weapon_limit( self );
|
||||
if ( is_equipment( weapon ) )
|
||||
{
|
||||
self maps/mp/zombies/_zm_equipment::equipment_give( weapon );
|
||||
self maps\mp\zombies\_zm_equipment::equipment_give( weapon );
|
||||
}
|
||||
if ( weapon == "riotshield_zm" )
|
||||
{
|
||||
@ -39,7 +39,7 @@ weapon_give( weapon, is_upgrade, magic_box, nosound )
|
||||
}
|
||||
if ( is_melee_weapon( weapon ) )
|
||||
{
|
||||
current_weapon = maps/mp/zombies/_zm_melee_weapon::change_melee_weapon( weapon, current_weapon );
|
||||
current_weapon = maps\mp\zombies\_zm_melee_weapon::change_melee_weapon( weapon, current_weapon );
|
||||
}
|
||||
else if ( is_lethal_grenade( weapon ) )
|
||||
{
|
||||
@ -73,7 +73,7 @@ weapon_give( weapon, is_upgrade, magic_box, nosound )
|
||||
}
|
||||
if ( !is_offhand_weapon( weapon ) )
|
||||
{
|
||||
self maps/mp/zombies/_zm_weapons::take_fallback_weapon();
|
||||
self maps\mp\zombies\_zm_weapons::take_fallback_weapon();
|
||||
}
|
||||
if ( primaryweapons.size >= weapon_limit )
|
||||
{
|
||||
@ -107,17 +107,17 @@ weapon_give( weapon, is_upgrade, magic_box, nosound )
|
||||
}
|
||||
if ( weapon == "cymbal_monkey_zm" )
|
||||
{
|
||||
self maps/mp/zombies/_zm_weap_cymbal_monkey::player_give_cymbal_monkey();
|
||||
self maps\mp\zombies\_zm_weap_cymbal_monkey::player_give_cymbal_monkey();
|
||||
self play_weapon_vo( weapon, magic_box );
|
||||
return;
|
||||
}
|
||||
else if ( issubstr( weapon, "knife_ballistic_" ) )
|
||||
{
|
||||
weapon = self maps/mp/zombies/_zm_melee_weapon::give_ballistic_knife( weapon, issubstr( weapon, "upgraded" ) );
|
||||
weapon = self maps\mp\zombies\_zm_melee_weapon::give_ballistic_knife( weapon, issubstr( weapon, "upgraded" ) );
|
||||
}
|
||||
else if ( weapon == "claymore_zm" )
|
||||
{
|
||||
self thread maps/mp/zombies/_zm_weap_claymore::claymore_setup();
|
||||
self thread maps\mp\zombies\_zm_weap_claymore::claymore_setup();
|
||||
self play_weapon_vo( weapon, magic_box );
|
||||
return;
|
||||
}
|
||||
@ -196,9 +196,9 @@ makegrenadedudanddestroy()
|
||||
|
||||
createballisticknifewatcher_zm( name, weapon )
|
||||
{
|
||||
watcher = self maps/mp/gametypes_zm/_weaponobjects::createuseweaponobjectwatcher( name, weapon, self.team );
|
||||
watcher.onspawn = scripts/zm/replaced/_zm_weap_ballistic_knife::on_spawn;
|
||||
watcher.onspawnretrievetriggers = maps/mp/zombies/_zm_weap_ballistic_knife::on_spawn_retrieve_trigger;
|
||||
watcher = self maps\mp\gametypes_zm\_weaponobjects::createuseweaponobjectwatcher( name, weapon, self.team );
|
||||
watcher.onspawn = scripts\zm\replaced\_zm_weap_ballistic_knife::on_spawn;
|
||||
watcher.onspawnretrievetriggers = maps\mp\zombies\_zm_weap_ballistic_knife::on_spawn_retrieve_trigger;
|
||||
watcher.storedifferentobject = 1;
|
||||
watcher.headicon = 0;
|
||||
}
|
@ -1,15 +1,15 @@
|
||||
#include maps/mp/zombies/_load;
|
||||
#include maps/mp/_utility;
|
||||
#include common_scripts/utility;
|
||||
#include maps/mp/zombies/_zm_zonemgr;
|
||||
#include maps/mp/gametypes_zm/_zm_gametype;
|
||||
#include maps/mp/zombies/_zm_utility;
|
||||
#include maps/mp/zombies/_zm_weapons;
|
||||
#include maps/mp/zombies/_zm_melee_weapon;
|
||||
#include maps/mp/zombies/_zm_weap_claymore;
|
||||
#include maps/mp/zombies/_zm_weap_ballistic_knife;
|
||||
#include maps/mp/zombies/_zm_equipment;
|
||||
#include maps/mp/zombies/_zm_magicbox;
|
||||
#include maps\mp\zombies\_load;
|
||||
#include maps\mp\_utility;
|
||||
#include common_scripts\utility;
|
||||
#include maps\mp\zombies\_zm_zonemgr;
|
||||
#include maps\mp\gametypes_zm\_zm_gametype;
|
||||
#include maps\mp\zombies\_zm_utility;
|
||||
#include maps\mp\zombies\_zm_weapons;
|
||||
#include maps\mp\zombies\_zm_melee_weapon;
|
||||
#include maps\mp\zombies\_zm_weap_claymore;
|
||||
#include maps\mp\zombies\_zm_weap_ballistic_knife;
|
||||
#include maps\mp\zombies\_zm_equipment;
|
||||
#include maps\mp\zombies\_zm_magicbox;
|
||||
|
||||
struct_class_init()
|
||||
{
|
||||
@ -231,7 +231,7 @@ wallbuy( weapon_name, target, targetname, origin, angles )
|
||||
unitrigger_stub.require_look_at = 1;
|
||||
unitrigger_stub.require_look_from = 0;
|
||||
unitrigger_stub.zombie_weapon_upgrade = weapon_name;
|
||||
maps/mp/zombies/_zm_unitrigger::unitrigger_force_per_player_triggers( unitrigger_stub, 1 );
|
||||
maps\mp\zombies\_zm_unitrigger::unitrigger_force_per_player_triggers( unitrigger_stub, 1 );
|
||||
|
||||
if ( is_melee_weapon( weapon_name ) )
|
||||
{
|
||||
@ -275,20 +275,20 @@ wallbuy( weapon_name, target, targetname, origin, angles )
|
||||
|
||||
wallmodel.origin += anglesToForward(angles) * -8; // _zm_melee_weapon::melee_weapon_show moves this back
|
||||
|
||||
maps/mp/zombies/_zm_unitrigger::register_static_unitrigger( unitrigger_stub, ::melee_weapon_think );
|
||||
maps\mp\zombies\_zm_unitrigger::register_static_unitrigger( unitrigger_stub, ::melee_weapon_think );
|
||||
}
|
||||
else if ( weapon_name == "claymore_zm" )
|
||||
{
|
||||
wallmodel.angles += (0, 90, 0);
|
||||
wallmodel.script_int = 90; // fix for model sliding right to left
|
||||
|
||||
unitrigger_stub.prompt_and_visibility_func = scripts/zm/replaced/_zm_weap_claymore::claymore_unitrigger_update_prompt;
|
||||
maps/mp/zombies/_zm_unitrigger::register_static_unitrigger( unitrigger_stub, scripts/zm/replaced/_zm_weap_claymore::buy_claymores );
|
||||
unitrigger_stub.prompt_and_visibility_func = scripts\zm\replaced\_zm_weap_claymore::claymore_unitrigger_update_prompt;
|
||||
maps\mp\zombies\_zm_unitrigger::register_static_unitrigger( unitrigger_stub, scripts\zm\replaced\_zm_weap_claymore::buy_claymores );
|
||||
}
|
||||
else
|
||||
{
|
||||
unitrigger_stub.prompt_and_visibility_func = ::wall_weapon_update_prompt;
|
||||
maps/mp/zombies/_zm_unitrigger::register_static_unitrigger( unitrigger_stub, ::weapon_spawn_think );
|
||||
maps\mp\zombies\_zm_unitrigger::register_static_unitrigger( unitrigger_stub, ::weapon_spawn_think );
|
||||
}
|
||||
|
||||
chalk_fx = weapon_name + "_fx";
|
||||
|
@ -4,7 +4,7 @@
|
||||
|
||||
game_mode_spawn_player_logic()
|
||||
{
|
||||
if(scripts/zm/zgrief/zgrief_reimagined::is_respawn_gamemode())
|
||||
if(scripts\zm\zgrief\zgrief_reimagined::is_respawn_gamemode())
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
@ -30,7 +30,7 @@ meat_stink_on_ground(position_to_play)
|
||||
attractor_point create_zombie_point_of_interest( 1536, 32, 10000 );
|
||||
attractor_point.attract_to_origin = 1;
|
||||
attractor_point thread create_zombie_point_of_interest_attractor_positions( 4, 45 );
|
||||
attractor_point thread maps/mp/zombies/_zm_weap_cymbal_monkey::wait_for_attractor_positions_complete();
|
||||
attractor_point thread maps\mp\zombies\_zm_weap_cymbal_monkey::wait_for_attractor_positions_complete();
|
||||
attractor_point delay_thread( 10, ::self_delete );
|
||||
wait 10;
|
||||
level.meat_on_ground = undefined;
|
||||
@ -44,7 +44,7 @@ meat_stink_player( who )
|
||||
players = get_players();
|
||||
foreach ( player in players )
|
||||
{
|
||||
player thread maps/mp/gametypes_zm/zgrief::meat_stink_player_cleanup();
|
||||
player thread maps\mp\gametypes_zm\zgrief::meat_stink_player_cleanup();
|
||||
if ( player != who )
|
||||
{
|
||||
player.ignoreme = 1;
|
||||
@ -59,12 +59,12 @@ meat_stink_player( who )
|
||||
player iprintln("^9" + who.name + " has the meat");
|
||||
}
|
||||
}
|
||||
who thread maps/mp/gametypes_zm/zgrief::meat_stink_player_create();
|
||||
who thread maps\mp\gametypes_zm\zgrief::meat_stink_player_create();
|
||||
who waittill_any_or_timeout( 30, "disconnect", "player_downed", "bled_out" );
|
||||
players = get_players();
|
||||
foreach ( player in players )
|
||||
{
|
||||
player thread maps/mp/gametypes_zm/zgrief::meat_stink_player_cleanup();
|
||||
player thread maps\mp\gametypes_zm\zgrief::meat_stink_player_cleanup();
|
||||
player.ignoreme = 0;
|
||||
}
|
||||
}
|
@ -1,13 +1,13 @@
|
||||
#include maps\mp\_utility;
|
||||
#include common_scripts\utility;
|
||||
#include maps\mp\zombies\_zm_utility;
|
||||
#include maps/mp/zm_alcatraz_classic;
|
||||
#include maps\mp\zm_alcatraz_classic;
|
||||
|
||||
#include scripts/zm/replaced/_zm_afterlife;
|
||||
#include scripts\zm\replaced\_zm_afterlife;
|
||||
|
||||
give_afterlife()
|
||||
{
|
||||
onplayerconnect_callback( scripts/zm/replaced/_zm_afterlife::init_player );
|
||||
onplayerconnect_callback( scripts\zm\replaced\_zm_afterlife::init_player );
|
||||
flag_wait( "initial_players_connected" );
|
||||
wait 0.5;
|
||||
n_start_pos = 1;
|
||||
|
@ -1,16 +1,16 @@
|
||||
#include maps\mp\_utility;
|
||||
#include common_scripts\utility;
|
||||
#include maps\mp\zombies\_zm_utility;
|
||||
#include maps/mp/zm_buried_buildables;
|
||||
#include maps/mp/zombies/_zm_buildables;
|
||||
#include maps\mp\zm_buried_buildables;
|
||||
#include maps\mp\zombies\_zm_buildables;
|
||||
|
||||
init_buildables( buildablesenabledlist )
|
||||
{
|
||||
registerclientfield( "scriptmover", "buildable_glint_fx", 12000, 1, "int" );
|
||||
precacheitem( "chalk_draw_zm" );
|
||||
precacheitem( "no_hands_zm" );
|
||||
level._effect[ "wallbuy_replace" ] = loadfx( "maps/zombie_buried/fx_buried_booze_candy_spawn" );
|
||||
level._effect[ "wallbuy_drawing" ] = loadfx( "maps/zombie/fx_zmb_wall_dyn_chalk_drawing" );
|
||||
level._effect[ "wallbuy_replace" ] = loadfx( "maps\zombie_buried\fx_buried_booze_candy_spawn" );
|
||||
level._effect[ "wallbuy_drawing" ] = loadfx( "maps\zombie\fx_zmb_wall_dyn_chalk_drawing" );
|
||||
level.str_buildables_build = &"ZOMBIE_BUILD_SQ_COMMON";
|
||||
level.str_buildables_building = &"ZOMBIE_BUILDING_SQ_COMMON";
|
||||
level.str_buildables_grab_part = &"ZOMBIE_BUILD_PIECE_GRAB";
|
||||
|
@ -1,7 +1,7 @@
|
||||
#include maps\mp\_utility;
|
||||
#include common_scripts\utility;
|
||||
#include maps\mp\zombies\_zm_utility;
|
||||
#include maps/mp/zm_highrise_classic;
|
||||
#include maps\mp\zm_highrise_classic;
|
||||
|
||||
insta_kill_player( perks_can_respawn_player, kill_if_falling )
|
||||
{
|
||||
@ -17,7 +17,7 @@ insta_kill_player( perks_can_respawn_player, kill_if_falling )
|
||||
self unsetperk( "specialty_finalstand" );
|
||||
}
|
||||
}
|
||||
self maps/mp/zombies/_zm_buildables::player_return_piece_to_original_spawn();
|
||||
self maps\mp\zombies\_zm_buildables::player_return_piece_to_original_spawn();
|
||||
if ( isDefined( self.insta_killed ) && self.insta_killed )
|
||||
{
|
||||
return;
|
||||
@ -46,7 +46,7 @@ insta_kill_player( perks_can_respawn_player, kill_if_falling )
|
||||
self.insta_killed = 1;
|
||||
in_last_stand = 0;
|
||||
self notify( "chugabud_effects_cleanup" );
|
||||
if ( self maps/mp/zombies/_zm_laststand::player_is_in_laststand() )
|
||||
if ( self maps\mp\zombies\_zm_laststand::player_is_in_laststand() )
|
||||
{
|
||||
in_last_stand = 1;
|
||||
}
|
||||
@ -77,7 +77,7 @@ insta_kill_player( perks_can_respawn_player, kill_if_falling )
|
||||
}
|
||||
else
|
||||
{
|
||||
self thread maps/mp/zombies/_zm_laststand::auto_revive( self );
|
||||
self thread maps\mp\zombies\_zm_laststand::auto_revive( self );
|
||||
self.waiting_to_revive = 0;
|
||||
self.solo_respawn = 0;
|
||||
self.lives--;
|
||||
|
@ -41,8 +41,8 @@ quadrotor_control_thread()
|
||||
}
|
||||
|
||||
qr = spawnvehicle( "veh_t6_dlc_zm_quadrotor", "quadrotor_ai", str_vehicle, self.origin + vectorScale( ( 0, 0, 1 ), 96 ), self.angles );
|
||||
level thread maps/mp/zm_tomb_craftables::quadrotor_death_watcher( qr );
|
||||
qr thread maps/mp/zm_tomb_craftables::quadrotor_instance_watcher( self );
|
||||
level thread maps\mp\zm_tomb_craftables::quadrotor_death_watcher( qr );
|
||||
qr thread maps\mp\zm_tomb_craftables::quadrotor_instance_watcher( self );
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -4,7 +4,7 @@
|
||||
|
||||
increment_player_perk_purchase_limit()
|
||||
{
|
||||
self maps/mp/zombies/_zm_perks::give_random_perk();
|
||||
self maps\mp\zombies\_zm_perks::give_random_perk();
|
||||
}
|
||||
|
||||
dig_disconnect_watch( n_player, v_origin, v_angles )
|
||||
|
@ -23,7 +23,7 @@ lava_damage_depot()
|
||||
|
||||
flag_wait( "power_on" );
|
||||
|
||||
while ( !volume maps/mp/zm_transit::depot_lava_seen() )
|
||||
while ( !volume maps\mp\zm_transit::depot_lava_seen() )
|
||||
{
|
||||
wait 0.05;
|
||||
}
|
||||
|
@ -1,48 +1,48 @@
|
||||
#include maps/mp/zm_transit_grief_town;
|
||||
#include maps/mp/zm_transit_grief_farm;
|
||||
#include maps/mp/zm_transit_grief_station;
|
||||
#include maps/mp/zm_transit_standard_town;
|
||||
#include maps/mp/zm_transit_standard_farm;
|
||||
#include maps/mp/zm_transit_standard_station;
|
||||
#include maps/mp/zm_transit_classic;
|
||||
#include maps/mp/zm_transit;
|
||||
#include maps/mp/gametypes_zm/_zm_gametype;
|
||||
#include maps/mp/zm_transit_utility;
|
||||
#include maps/mp/zombies/_zm_game_module;
|
||||
#include maps/mp/zombies/_zm_utility;
|
||||
#include maps/mp/_utility;
|
||||
#include common_scripts/utility;
|
||||
#include maps\mp\zm_transit_grief_town;
|
||||
#include maps\mp\zm_transit_grief_farm;
|
||||
#include maps\mp\zm_transit_grief_station;
|
||||
#include maps\mp\zm_transit_standard_town;
|
||||
#include maps\mp\zm_transit_standard_farm;
|
||||
#include maps\mp\zm_transit_standard_station;
|
||||
#include maps\mp\zm_transit_classic;
|
||||
#include maps\mp\zm_transit;
|
||||
#include maps\mp\gametypes_zm\_zm_gametype;
|
||||
#include maps\mp\zm_transit_utility;
|
||||
#include maps\mp\zombies\_zm_game_module;
|
||||
#include maps\mp\zombies\_zm_utility;
|
||||
#include maps\mp\_utility;
|
||||
#include common_scripts\utility;
|
||||
|
||||
#include scripts/zm/locs/zm_transit_loc_diner;
|
||||
#include scripts/zm/locs/zm_transit_loc_power;
|
||||
#include scripts/zm/locs/zm_transit_loc_tunnel;
|
||||
#include scripts\zm\locs\zm_transit_loc_diner;
|
||||
#include scripts\zm\locs\zm_transit_loc_power;
|
||||
#include scripts\zm\locs\zm_transit_loc_tunnel;
|
||||
|
||||
init()
|
||||
{
|
||||
add_map_gamemode( "zclassic", maps/mp/zm_transit::zclassic_preinit, undefined, undefined );
|
||||
add_map_gamemode( "zgrief", maps/mp/zm_transit::zgrief_preinit, undefined, undefined );
|
||||
add_map_gamemode( "zstandard", maps/mp/zm_transit::zstandard_preinit, undefined, undefined );
|
||||
add_map_gamemode( "zclassic", maps\mp\zm_transit::zclassic_preinit, undefined, undefined );
|
||||
add_map_gamemode( "zgrief", maps\mp\zm_transit::zgrief_preinit, undefined, undefined );
|
||||
add_map_gamemode( "zstandard", maps\mp\zm_transit::zstandard_preinit, undefined, undefined );
|
||||
|
||||
add_map_location_gamemode( "zclassic", "transit", maps/mp/zm_transit_classic::precache, maps/mp/zm_transit_classic::main );
|
||||
add_map_location_gamemode( "zclassic", "transit", maps\mp\zm_transit_classic::precache, maps\mp\zm_transit_classic::main );
|
||||
|
||||
add_map_location_gamemode( "zstandard", "transit", maps/mp/zm_transit_standard_station::precache, maps/mp/zm_transit_standard_station::main );
|
||||
add_map_location_gamemode( "zstandard", "farm", maps/mp/zm_transit_standard_farm::precache, maps/mp/zm_transit_standard_farm::main );
|
||||
add_map_location_gamemode( "zstandard", "town", maps/mp/zm_transit_standard_town::precache, maps/mp/zm_transit_standard_town::main );
|
||||
add_map_location_gamemode( "zstandard", "diner", scripts/zm/locs/zm_transit_loc_diner::precache, scripts/zm/locs/zm_transit_loc_diner::main );
|
||||
add_map_location_gamemode( "zstandard", "power", scripts/zm/locs/zm_transit_loc_power::precache, scripts/zm/locs/zm_transit_loc_power::main );
|
||||
add_map_location_gamemode( "zstandard", "tunnel", scripts/zm/locs/zm_transit_loc_tunnel::precache, scripts/zm/locs/zm_transit_loc_tunnel::main );
|
||||
add_map_location_gamemode( "zstandard", "transit", maps\mp\zm_transit_standard_station::precache, maps\mp\zm_transit_standard_station::main );
|
||||
add_map_location_gamemode( "zstandard", "farm", maps\mp\zm_transit_standard_farm::precache, maps\mp\zm_transit_standard_farm::main );
|
||||
add_map_location_gamemode( "zstandard", "town", maps\mp\zm_transit_standard_town::precache, maps\mp\zm_transit_standard_town::main );
|
||||
add_map_location_gamemode( "zstandard", "diner", scripts\zm\locs\zm_transit_loc_diner::precache, scripts\zm\locs\zm_transit_loc_diner::main );
|
||||
add_map_location_gamemode( "zstandard", "power", scripts\zm\locs\zm_transit_loc_power::precache, scripts\zm\locs\zm_transit_loc_power::main );
|
||||
add_map_location_gamemode( "zstandard", "tunnel", scripts\zm\locs\zm_transit_loc_tunnel::precache, scripts\zm\locs\zm_transit_loc_tunnel::main );
|
||||
|
||||
add_map_location_gamemode( "zgrief", "transit", maps/mp/zm_transit_grief_station::precache, maps/mp/zm_transit_grief_station::main );
|
||||
add_map_location_gamemode( "zgrief", "farm", maps/mp/zm_transit_grief_farm::precache, maps/mp/zm_transit_grief_farm::main );
|
||||
add_map_location_gamemode( "zgrief", "town", maps/mp/zm_transit_grief_town::precache, maps/mp/zm_transit_grief_town::main );
|
||||
add_map_location_gamemode( "zgrief", "diner", scripts/zm/locs/zm_transit_loc_diner::precache, scripts/zm/locs/zm_transit_loc_diner::main );
|
||||
add_map_location_gamemode( "zgrief", "power", scripts/zm/locs/zm_transit_loc_power::precache, scripts/zm/locs/zm_transit_loc_power::main );
|
||||
add_map_location_gamemode( "zgrief", "tunnel", scripts/zm/locs/zm_transit_loc_tunnel::precache, scripts/zm/locs/zm_transit_loc_tunnel::main );
|
||||
add_map_location_gamemode( "zgrief", "transit", maps\mp\zm_transit_grief_station::precache, maps\mp\zm_transit_grief_station::main );
|
||||
add_map_location_gamemode( "zgrief", "farm", maps\mp\zm_transit_grief_farm::precache, maps\mp\zm_transit_grief_farm::main );
|
||||
add_map_location_gamemode( "zgrief", "town", maps\mp\zm_transit_grief_town::precache, maps\mp\zm_transit_grief_town::main );
|
||||
add_map_location_gamemode( "zgrief", "diner", scripts\zm\locs\zm_transit_loc_diner::precache, scripts\zm\locs\zm_transit_loc_diner::main );
|
||||
add_map_location_gamemode( "zgrief", "power", scripts\zm\locs\zm_transit_loc_power::precache, scripts\zm\locs\zm_transit_loc_power::main );
|
||||
add_map_location_gamemode( "zgrief", "tunnel", scripts\zm\locs\zm_transit_loc_tunnel::precache, scripts\zm\locs\zm_transit_loc_tunnel::main );
|
||||
|
||||
scripts/zm/replaced/utility::add_struct_location_gamemode_func( "zstandard", "diner", scripts/zm/locs/zm_transit_loc_diner::struct_init );
|
||||
scripts/zm/replaced/utility::add_struct_location_gamemode_func( "zgrief", "diner", scripts/zm/locs/zm_transit_loc_diner::struct_init );
|
||||
scripts/zm/replaced/utility::add_struct_location_gamemode_func( "zstandard", "power", scripts/zm/locs/zm_transit_loc_power::struct_init );
|
||||
scripts/zm/replaced/utility::add_struct_location_gamemode_func( "zgrief", "power", scripts/zm/locs/zm_transit_loc_power::struct_init );
|
||||
scripts/zm/replaced/utility::add_struct_location_gamemode_func( "zstandard", "tunnel", scripts/zm/locs/zm_transit_loc_tunnel::struct_init );
|
||||
scripts/zm/replaced/utility::add_struct_location_gamemode_func( "zgrief", "tunnel", scripts/zm/locs/zm_transit_loc_tunnel::struct_init );
|
||||
scripts\zm\replaced\utility::add_struct_location_gamemode_func( "zstandard", "diner", scripts\zm\locs\zm_transit_loc_diner::struct_init );
|
||||
scripts\zm\replaced\utility::add_struct_location_gamemode_func( "zgrief", "diner", scripts\zm\locs\zm_transit_loc_diner::struct_init );
|
||||
scripts\zm\replaced\utility::add_struct_location_gamemode_func( "zstandard", "power", scripts\zm\locs\zm_transit_loc_power::struct_init );
|
||||
scripts\zm\replaced\utility::add_struct_location_gamemode_func( "zgrief", "power", scripts\zm\locs\zm_transit_loc_power::struct_init );
|
||||
scripts\zm\replaced\utility::add_struct_location_gamemode_func( "zstandard", "tunnel", scripts\zm\locs\zm_transit_loc_tunnel::struct_init );
|
||||
scripts\zm\replaced\utility::add_struct_location_gamemode_func( "zgrief", "tunnel", scripts\zm\locs\zm_transit_loc_tunnel::struct_init );
|
||||
}
|
@ -2,12 +2,12 @@
|
||||
#include common_scripts\utility;
|
||||
#include maps\mp\zombies\_zm_utility;
|
||||
|
||||
#include maps/mp/zombies/_zm_game_module_meat_utility;
|
||||
#include maps\mp\zombies\_zm_game_module_meat_utility;
|
||||
|
||||
item_meat_watch_trigger( meat_id, trigger, callback, playersoundonuse, npcsoundonuse )
|
||||
{
|
||||
self endon( "death" );
|
||||
self thread maps/mp/gametypes_zm/zmeat::item_quick_trigger( meat_id, trigger );
|
||||
self thread maps\mp\gametypes_zm\zmeat::item_quick_trigger( meat_id, trigger );
|
||||
while ( 1 )
|
||||
{
|
||||
trigger waittill( "usetrigger", player );
|
||||
@ -23,7 +23,7 @@ item_meat_watch_trigger( meat_id, trigger, callback, playersoundonuse, npcsoundo
|
||||
{
|
||||
continue;
|
||||
}
|
||||
if ( player maps/mp/zombies/_zm_laststand::is_reviving_any() )
|
||||
if ( player maps\mp\zombies\_zm_laststand::is_reviving_any() )
|
||||
{
|
||||
continue;
|
||||
}
|
||||
@ -38,19 +38,19 @@ item_meat_watch_trigger( meat_id, trigger, callback, playersoundonuse, npcsoundo
|
||||
player.volley_meat = volley;
|
||||
if ( is_true( self._fake_meat ) )
|
||||
{
|
||||
maps/mp/gametypes_zm/zmeat::add_meat_event( "player_fake_take", player, self );
|
||||
maps\mp\gametypes_zm\zmeat::add_meat_event( "player_fake_take", player, self );
|
||||
}
|
||||
else if ( volley )
|
||||
{
|
||||
maps/mp/gametypes_zm/zmeat::add_meat_event( "player_volley", player, self );
|
||||
maps\mp\gametypes_zm\zmeat::add_meat_event( "player_volley", player, self );
|
||||
}
|
||||
else if ( self.meat_is_moving )
|
||||
{
|
||||
maps/mp/gametypes_zm/zmeat::add_meat_event( "player_catch", player, self );
|
||||
maps\mp\gametypes_zm\zmeat::add_meat_event( "player_catch", player, self );
|
||||
}
|
||||
else
|
||||
{
|
||||
maps/mp/gametypes_zm/zmeat::add_meat_event( "player_take", player, self );
|
||||
maps\mp\gametypes_zm\zmeat::add_meat_event( "player_take", player, self );
|
||||
}
|
||||
if ( is_true( self._fake_meat ) )
|
||||
{
|
||||
@ -60,11 +60,11 @@ item_meat_watch_trigger( meat_id, trigger, callback, playersoundonuse, npcsoundo
|
||||
{
|
||||
return;
|
||||
}
|
||||
self maps/mp/gametypes_zm/zmeat::cleanup_meat();
|
||||
self maps\mp\gametypes_zm\zmeat::cleanup_meat();
|
||||
return;
|
||||
}
|
||||
curr_weap = player getcurrentweapon();
|
||||
if ( !maps/mp/gametypes_zm/zmeat::is_meat( curr_weap ) )
|
||||
if ( !maps\mp\gametypes_zm\zmeat::is_meat( curr_weap ) )
|
||||
{
|
||||
player.pre_meat_weapon = curr_weap;
|
||||
}
|
||||
@ -72,14 +72,14 @@ item_meat_watch_trigger( meat_id, trigger, callback, playersoundonuse, npcsoundo
|
||||
{
|
||||
if ( volley )
|
||||
{
|
||||
self maps/mp/gametypes_zm/zmeat::item_meat_volley( player );
|
||||
self maps\mp\gametypes_zm\zmeat::item_meat_volley( player );
|
||||
}
|
||||
else
|
||||
{
|
||||
self maps/mp/gametypes_zm/zmeat::item_meat_caught( player, self.meat_is_flying );
|
||||
self maps\mp\gametypes_zm\zmeat::item_meat_caught( player, self.meat_is_flying );
|
||||
}
|
||||
}
|
||||
self maps/mp/gametypes_zm/zmeat::item_meat_pickup();
|
||||
self maps\mp\gametypes_zm\zmeat::item_meat_pickup();
|
||||
if ( isDefined( playersoundonuse ) )
|
||||
{
|
||||
player playlocalsound( playersoundonuse );
|
||||
@ -97,7 +97,7 @@ item_meat_watch_trigger( meat_id, trigger, callback, playersoundonuse, npcsoundo
|
||||
self thread [[ callback ]]( player );
|
||||
if ( !isDefined( player._meat_hint_shown ) )
|
||||
{
|
||||
player thread maps/mp/gametypes_zm/zmeat::show_meat_throw_hint();
|
||||
player thread maps\mp\gametypes_zm\zmeat::show_meat_throw_hint();
|
||||
player._meat_hint_shown = 1;
|
||||
}
|
||||
}
|
||||
@ -117,7 +117,7 @@ spike_the_meat( meat )
|
||||
vel = meat getvelocity();
|
||||
if ( !is_true( meat._fake_meat ) )
|
||||
{
|
||||
meat maps/mp/gametypes_zm/zmeat::cleanup_meat();
|
||||
meat maps\mp\gametypes_zm\zmeat::cleanup_meat();
|
||||
level._last_person_to_throw_meat = self;
|
||||
level._last_person_to_throw_meat_time = getTime();
|
||||
level._meat_splitter_activated = 0;
|
||||
@ -125,7 +125,7 @@ spike_the_meat( meat )
|
||||
else
|
||||
{
|
||||
fake_meat = 1;
|
||||
meat maps/mp/gametypes_zm/zmeat::cleanup_meat();
|
||||
meat maps\mp\gametypes_zm\zmeat::cleanup_meat();
|
||||
}
|
||||
kickangles = self.angles;
|
||||
launchdir = anglesToForward( kickangles );
|
||||
@ -133,11 +133,11 @@ spike_the_meat( meat )
|
||||
launchvel = vectorScale( launchdir, speed );
|
||||
grenade = self magicgrenadetype( get_gamemode_var( "item_meat_name" ), org, ( launchvel[ 0 ], launchvel[ 1 ], 120 ) );
|
||||
grenade playsound( "zmb_meat_meat_tossed" );
|
||||
grenade thread maps/mp/gametypes_zm/zmeat::waittill_loopstart();
|
||||
grenade thread maps\mp\gametypes_zm\zmeat::waittill_loopstart();
|
||||
if ( fake_meat )
|
||||
{
|
||||
grenade._fake_meat = 1;
|
||||
grenade thread maps/mp/gametypes_zm/zmeat::delete_on_real_meat_pickup();
|
||||
grenade thread maps\mp\gametypes_zm\zmeat::delete_on_real_meat_pickup();
|
||||
level._kicked_meat = grenade;
|
||||
}
|
||||
wait 0.1;
|
||||
|
Reference in New Issue
Block a user