diff --git a/maps/mp/zm_alcatraz_grief_cellblock.gsc b/maps/mp/zm_alcatraz_grief_cellblock.gsc index b4f12220..d3af1267 100644 --- a/maps/mp/zm_alcatraz_grief_cellblock.gsc +++ b/maps/mp/zm_alcatraz_grief_cellblock.gsc @@ -1,16 +1,16 @@ -#include maps/mp/gametypes_zm/zmeat; -#include maps/mp/zm_alcatraz_traps; -#include maps/mp/zombies/_zm_game_module; -#include maps/mp/zombies/_zm_blockers; -#include maps/mp/zombies/_zm_ai_brutus; -#include maps/mp/gametypes_zm/_zm_gametype; -#include maps/mp/zombies/_zm_magicbox; -#include maps/mp/zombies/_zm_weapons; -#include maps/mp/zm_prison; -#include maps/mp/zombies/_zm_race_utility; -#include maps/mp/zombies/_zm_utility; -#include common_scripts/utility; -#include maps/mp/_utility; +#include maps\mp\gametypes_zm\zmeat; +#include maps\mp\zm_alcatraz_traps; +#include maps\mp\zombies\_zm_game_module; +#include maps\mp\zombies\_zm_blockers; +#include maps\mp\zombies\_zm_ai_brutus; +#include maps\mp\gametypes_zm\_zm_gametype; +#include maps\mp\zombies\_zm_magicbox; +#include maps\mp\zombies\_zm_weapons; +#include maps\mp\zm_prison; +#include maps\mp\zombies\_zm_race_utility; +#include maps\mp\zombies\_zm_utility; +#include common_scripts\utility; +#include maps\mp\_utility; precache() { @@ -20,7 +20,7 @@ precache() zgrief_preinit() { registerclientfield( "toplayer", "meat_stink", 1, 1, "int" ); - level.givecustomloadout = maps/mp/zm_prison::givecustomloadout; + level.givecustomloadout = maps\mp\zm_prison::givecustomloadout; zgrief_init(); } @@ -94,19 +94,19 @@ grief_treasure_chest_init() level.chests = []; level.chests[ level.chests.size ] = chest1; level.chests[ level.chests.size ] = chest2; - maps/mp/zombies/_zm_magicbox::treasure_chest_init( "start_chest" ); + maps\mp\zombies\_zm_magicbox::treasure_chest_init( "start_chest" ); } main() { - maps/mp/gametypes_zm/_zm_gametype::setup_standard_objects( "cellblock" ); + maps\mp\gametypes_zm\_zm_gametype::setup_standard_objects( "cellblock" ); grief_treasure_chest_init(); precacheshader( "zm_al_wth_zombie" ); array_thread( level.zombie_spawners, ::add_spawn_function, ::remove_zombie_hats_for_grief ); - maps/mp/zombies/_zm_ai_brutus::precache(); - maps/mp/zombies/_zm_ai_brutus::init(); + maps\mp\zombies\_zm_ai_brutus::precache(); + maps\mp\zombies\_zm_ai_brutus::init(); level.enemy_location_override_func = ::enemy_location_override; - level._effect[ "butterflies" ] = loadfx( "maps/zombie_alcatraz/fx_alcatraz_skull_elec" ); + level._effect[ "butterflies" ] = loadfx( "maps\zombie_alcatraz\fx_alcatraz_skull_elec" ); a_t_door_triggers = getentarray( "zombie_door", "targetname" ); triggers = a_t_door_triggers; i = 0; @@ -145,7 +145,7 @@ main() { if ( t_door.script_flag == "activate_cellblock_east_west" || t_door.script_flag == "activate_cellblock_barber" ) { - t_door maps/mp/zombies/_zm_blockers::door_opened( self.zombie_cost ); + t_door maps\mp\zombies\_zm_blockers::door_opened( self.zombie_cost ); } } } @@ -325,10 +325,10 @@ main() wait 0.1; } flag_wait( "initial_blackscreen_passed" ); - maps/mp/zombies/_zm_game_module::turn_power_on_and_open_doors(); + maps\mp\zombies\_zm_game_module::turn_power_on_and_open_doors(); flag_wait( "start_zombie_round_logic" ); - level thread maps/mp/zm_alcatraz_traps::init_fan_trap_trigs(); - level thread maps/mp/zm_alcatraz_traps::init_acid_trap_trigs(); + level thread maps\mp\zm_alcatraz_traps::init_fan_trap_trigs(); + level thread maps\mp\zm_alcatraz_traps::init_acid_trap_trigs(); wait 1; level notify( "sleight_on" ); wait_network_frame(); diff --git a/maps/mp/zm_buried_grief_street.gsc b/maps/mp/zm_buried_grief_street.gsc index 0f0a9d22..5c053a42 100644 --- a/maps/mp/zm_buried_grief_street.gsc +++ b/maps/mp/zm_buried_grief_street.gsc @@ -1,16 +1,16 @@ -#include maps/mp/gametypes_zm/_zm_gametype; -#include maps/mp/zombies/_zm_buildables; -#include maps/mp/zombies/_zm_magicbox; -#include maps/mp/zombies/_zm_equip_subwoofer; -#include maps/mp/zombies/_zm_equip_springpad; -#include maps/mp/zombies/_zm_equip_turbine; -//#include maps/mp/zombies/_zm_equip_headchopper; -#include maps/mp/zm_buried_buildables; -#include maps/mp/zm_buried_gamemodes; -#include maps/mp/zombies/_zm_race_utility; -#include maps/mp/zombies/_zm_utility; -#include common_scripts/utility; -#include maps/mp/_utility; +#include maps\mp\gametypes_zm\_zm_gametype; +#include maps\mp\zombies\_zm_buildables; +#include maps\mp\zombies\_zm_magicbox; +#include maps\mp\zombies\_zm_equip_subwoofer; +#include maps\mp\zombies\_zm_equip_springpad; +#include maps\mp\zombies\_zm_equip_turbine; +//#include maps\mp\zombies\_zm_equip_headchopper; +#include maps\mp\zm_buried_buildables; +#include maps\mp\zm_buried_gamemodes; +#include maps\mp\zombies\_zm_race_utility; +#include maps\mp\zombies\_zm_utility; +#include common_scripts\utility; +#include maps\mp\_utility; precache() { @@ -28,13 +28,13 @@ precache() level.chalk_buildable_pieces_hide = 1; griefbuildables = array( "chalk", "turbine", "springpad_zm", "subwoofer_zm" ); //griefbuildables = array( "chalk", "headchopper_zm", "springpad_zm", "subwoofer_zm" ); - maps/mp/zm_buried_buildables::include_buildables( griefbuildables ); - maps/mp/zm_buried_buildables::init_buildables( griefbuildables ); - maps/mp/zombies/_zm_equip_turbine::init(); - maps/mp/zombies/_zm_equip_turbine::init_animtree(); - maps/mp/zombies/_zm_equip_springpad::init( &"ZM_BURIED_EQ_SP_PHS", &"ZM_BURIED_EQ_SP_HTS" ); - maps/mp/zombies/_zm_equip_subwoofer::init( &"ZM_BURIED_EQ_SW_PHS", &"ZM_BURIED_EQ_SW_HTS" ); - //maps/mp/zombies/_zm_equip_headchopper::init( &"ZM_BURIED_EQ_HC_PHS", &"ZM_BURIED_EQ_HC_HTS" ); + maps\mp\zm_buried_buildables::include_buildables( griefbuildables ); + maps\mp\zm_buried_buildables::init_buildables( griefbuildables ); + maps\mp\zombies\_zm_equip_turbine::init(); + maps\mp\zombies\_zm_equip_turbine::init_animtree(); + maps\mp\zombies\_zm_equip_springpad::init( &"ZM_BURIED_EQ_SP_PHS", &"ZM_BURIED_EQ_SP_HTS" ); + maps\mp\zombies\_zm_equip_subwoofer::init( &"ZM_BURIED_EQ_SW_PHS", &"ZM_BURIED_EQ_SW_HTS" ); + //maps\mp\zombies\_zm_equip_headchopper::init( &"ZM_BURIED_EQ_HC_PHS", &"ZM_BURIED_EQ_HC_HTS" ); } street_treasure_chest_init() @@ -52,15 +52,15 @@ street_treasure_chest_init() chest_names = array("start_chest", "courtroom_chest1", "jail_chest1", "gunshop_chest"); chest_name = random(chest_names); - maps/mp/zombies/_zm_magicbox::treasure_chest_init( chest_name ); + maps\mp\zombies\_zm_magicbox::treasure_chest_init( chest_name ); } main() { level.buildables_built[ "pap" ] = 1; level.equipment_team_pick_up = 1; - level thread maps/mp/zombies/_zm_buildables::think_buildables(); - maps/mp/gametypes_zm/_zm_gametype::setup_standard_objects( "street" ); + level thread maps\mp\zombies\_zm_buildables::think_buildables(); + maps\mp\gametypes_zm\_zm_gametype::setup_standard_objects( "street" ); street_treasure_chest_init(); generatebuildabletarps(); deletebuildabletarp( "courthouse" ); @@ -106,8 +106,8 @@ builddynamicwallbuys() builddynamicwallbuy( "church", "svu_zm" ); builddynamicwallbuy( "mansion", "an94_zm" ); - scripts/zm/_zm_reimagined::wallbuy_increase_trigger_radius(); - scripts/zm/_zm_reimagined::wallbuy_decrease_upgraded_ammo_cost(); + scripts\zm\_zm_reimagined::wallbuy_increase_trigger_radius(); + scripts\zm\_zm_reimagined::wallbuy_decrease_upgraded_ammo_cost(); } builddynamicwallbuy( location, weaponname ) @@ -156,10 +156,10 @@ builddynamicwallbuy( location, weaponname ) model hide(); chalk_fx = weaponname + "_fx"; - thread scripts/zm/replaced/utility::playchalkfx( chalk_fx, origin, wallbuy.angles ); + thread scripts\zm\replaced\utility::playchalkfx( chalk_fx, origin, wallbuy.angles ); } - maps/mp/zombies/_zm_weapons::add_dynamic_wallbuy( weaponname, wallbuy.targetname, 1 ); + maps\mp\zombies\_zm_weapons::add_dynamic_wallbuy( weaponname, wallbuy.targetname, 1 ); thread wait_and_remove( stub, stub.buildablezone.pieces[ 0 ] ); } } @@ -214,7 +214,7 @@ removebuildable( buildable ) while ( isDefined( _k206 ) ) { piece = _a206[ _k206 ]; - piece maps/mp/zombies/_zm_buildables::piece_unspawn(); + piece maps\mp\zombies\_zm_buildables::piece_unspawn(); _k206 = getNextArrayKey( _a206, _k206 ); } } @@ -334,7 +334,7 @@ disable_tunnels() // player spawns invalid_zones = array("zone_start", "zone_tunnels_center", "zone_tunnels_north", "zone_tunnels_south"); - 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(); foreach(spawn_point in spawn_points) { if(isinarray(invalid_zones, spawn_point.script_noteworthy)) diff --git a/maps/mp/zm_transit_grief_station.gsc b/maps/mp/zm_transit_grief_station.gsc index 9840b55e..48c36aee 100644 --- a/maps/mp/zm_transit_grief_station.gsc +++ b/maps/mp/zm_transit_grief_station.gsc @@ -1,11 +1,11 @@ -#include maps/mp/gametypes_zm/zmeat; -#include maps/mp/zombies/_zm_game_module; -#include maps/mp/zombies/_zm_perks; -#include maps/mp/gametypes_zm/_zm_gametype; -#include maps/mp/zombies/_zm_magicbox; -#include maps/mp/zombies/_zm_utility; -#include common_scripts/utility; -#include maps/mp/_utility; +#include maps\mp\gametypes_zm\zmeat; +#include maps\mp\zombies\_zm_game_module; +#include maps\mp\zombies\_zm_perks; +#include maps\mp\gametypes_zm\_zm_gametype; +#include maps\mp\zombies\_zm_magicbox; +#include maps\mp\zombies\_zm_utility; +#include common_scripts\utility; +#include maps\mp\_utility; precache() { @@ -17,12 +17,12 @@ station_treasure_chest_init() chest1 = getstruct( "depot_chest", "script_noteworthy" ); level.chests = []; level.chests[ level.chests.size ] = chest1; - maps/mp/zombies/_zm_magicbox::treasure_chest_init( "depot_chest" ); + maps\mp\zombies\_zm_magicbox::treasure_chest_init( "depot_chest" ); } main() { - maps/mp/gametypes_zm/_zm_gametype::setup_standard_objects( "station" ); + maps\mp\gametypes_zm\_zm_gametype::setup_standard_objects( "station" ); station_treasure_chest_init(); level.enemy_location_override_func = ::enemy_location_override; //collision = spawn( "script_model", ( -6896, 4744, 0 ), 1 ); @@ -30,7 +30,7 @@ main() //collision disconnectpaths(); remove_lava_collision(); flag_wait( "initial_blackscreen_passed" ); - level thread maps/mp/zombies/_zm_perks::perk_machine_removal( "specialty_quickrevive", "p_glo_tools_chest_tall" ); + level thread maps\mp\zombies\_zm_perks::perk_machine_removal( "specialty_quickrevive", "p_glo_tools_chest_tall" ); flag_set( "power_on" ); level setclientfield( "zombie_power_on", 1 ); level thread open_electric_doors_on_door_opened(); diff --git a/maps/mp/zm_transit_standard_station.gsc b/maps/mp/zm_transit_standard_station.gsc index 321aa71e..87a5e774 100644 --- a/maps/mp/zm_transit_standard_station.gsc +++ b/maps/mp/zm_transit_standard_station.gsc @@ -1,10 +1,10 @@ -#include maps/mp/zombies/_zm_perks; -#include maps/mp/gametypes_zm/_zm_gametype; -#include maps/mp/zombies/_zm_magicbox; -#include maps/mp/zombies/_zm_race_utility; -#include maps/mp/zombies/_zm_utility; -#include common_scripts/utility; -#include maps/mp/_utility; +#include maps\mp\zombies\_zm_perks; +#include maps\mp\gametypes_zm\_zm_gametype; +#include maps\mp\zombies\_zm_magicbox; +#include maps\mp\zombies\_zm_race_utility; +#include maps\mp\zombies\_zm_utility; +#include common_scripts\utility; +#include maps\mp\_utility; precache() { @@ -16,12 +16,12 @@ station_treasure_chest_init() chest1 = getstruct( "depot_chest", "script_noteworthy" ); level.chests = []; level.chests[ level.chests.size ] = chest1; - maps/mp/zombies/_zm_magicbox::treasure_chest_init( "depot_chest" ); + maps\mp\zombies\_zm_magicbox::treasure_chest_init( "depot_chest" ); } main() { - maps/mp/gametypes_zm/_zm_gametype::setup_standard_objects( "station" ); + maps\mp\gametypes_zm\_zm_gametype::setup_standard_objects( "station" ); station_treasure_chest_init(); level.enemy_location_override_func = ::enemy_location_override; //collision = spawn( "script_model", ( -6896, 4744, 0 ), 1 ); @@ -29,7 +29,7 @@ main() //collision disconnectpaths(); remove_lava_collision(); flag_wait( "initial_blackscreen_passed" ); - level thread maps/mp/zombies/_zm_perks::perk_machine_removal( "specialty_quickrevive", "p_glo_tools_chest_tall" ); + level thread maps\mp\zombies\_zm_perks::perk_machine_removal( "specialty_quickrevive", "p_glo_tools_chest_tall" ); flag_set( "power_on" ); level setclientfield( "zombie_power_on", 1 ); level thread open_electric_doors_on_door_opened(); diff --git a/scripts/zm/_zm_reimagined.gsc b/scripts/zm/_zm_reimagined.gsc index 6625928e..2b9ec13f 100644 --- a/scripts/zm/_zm_reimagined.gsc +++ b/scripts/zm/_zm_reimagined.gsc @@ -3,77 +3,77 @@ #include maps\mp\zombies\_zm_utility; #include maps\mp\gametypes_zm\_hud_util; -#include scripts/zm/replaced/utility; -#include scripts/zm/replaced/_zm; -#include scripts/zm/replaced/_zm_playerhealth; -#include scripts/zm/replaced/_zm_utility; -#include scripts/zm/replaced/_zm_score; -#include scripts/zm/replaced/_zm_laststand; -#include scripts/zm/replaced/_zm_weapons; -#include scripts/zm/replaced/_zm_magicbox; -#include scripts/zm/replaced/_zm_perks; -#include scripts/zm/replaced/_zm_power; -#include scripts/zm/replaced/_zm_powerups; -#include scripts/zm/replaced/_zm_pers_upgrades; -#include scripts/zm/replaced/_zm_traps; -#include scripts/zm/replaced/_zm_equipment; -#include scripts/zm/replaced/_zm_spawner; -#include scripts/zm/replaced/_zm_ai_basic; -#include scripts/zm/replaced/_zm_melee_weapon; -#include scripts/zm/replaced/_zm_weap_ballistic_knife; -#include scripts/zm/replaced/_zm_weap_claymore; +#include scripts\zm\replaced\utility; +#include scripts\zm\replaced\_zm; +#include scripts\zm\replaced\_zm_playerhealth; +#include scripts\zm\replaced\_zm_utility; +#include scripts\zm\replaced\_zm_score; +#include scripts\zm\replaced\_zm_laststand; +#include scripts\zm\replaced\_zm_weapons; +#include scripts\zm\replaced\_zm_magicbox; +#include scripts\zm\replaced\_zm_perks; +#include scripts\zm\replaced\_zm_power; +#include scripts\zm\replaced\_zm_powerups; +#include scripts\zm\replaced\_zm_pers_upgrades; +#include scripts\zm\replaced\_zm_traps; +#include scripts\zm\replaced\_zm_equipment; +#include scripts\zm\replaced\_zm_spawner; +#include scripts\zm\replaced\_zm_ai_basic; +#include scripts\zm\replaced\_zm_melee_weapon; +#include scripts\zm\replaced\_zm_weap_ballistic_knife; +#include scripts\zm\replaced\_zm_weap_claymore; main() { - replaceFunc(common_scripts/utility::struct_class_init, scripts/zm/replaced/utility::struct_class_init); - replaceFunc(maps/mp/zombies/_zm::check_quickrevive_for_hotjoin, scripts/zm/replaced/_zm::check_quickrevive_for_hotjoin); - replaceFunc(maps/mp/zombies/_zm::ai_calculate_health, scripts/zm/replaced/_zm::ai_calculate_health); - replaceFunc(maps/mp/zombies/_zm::last_stand_pistol_rank_init, scripts/zm/replaced/_zm::last_stand_pistol_rank_init); - replaceFunc(maps/mp/zombies/_zm::check_for_valid_spawn_near_team, scripts/zm/replaced/_zm::check_for_valid_spawn_near_team); - replaceFunc(maps/mp/zombies/_zm::get_valid_spawn_location, scripts/zm/replaced/_zm::get_valid_spawn_location); - replaceFunc(maps/mp/zombies/_zm::actor_damage_override, scripts/zm/replaced/_zm::actor_damage_override); - replaceFunc(maps/mp/zombies/_zm::player_spawn_protection, scripts/zm/replaced/_zm::player_spawn_protection); - replaceFunc(maps/mp/zombies/_zm::wait_and_revive, scripts/zm/replaced/_zm::wait_and_revive); - replaceFunc(maps/mp/zombies/_zm::player_revive_monitor, scripts/zm/replaced/_zm::player_revive_monitor); - replaceFunc(maps/mp/zombies/_zm::end_game, scripts/zm/replaced/_zm::end_game); - replaceFunc(maps/mp/zombies/_zm_playerhealth::playerhealthregen, scripts/zm/replaced/_zm_playerhealth::playerhealthregen); - replaceFunc(maps/mp/zombies/_zm_utility::track_players_intersection_tracker, scripts/zm/replaced/_zm_utility::track_players_intersection_tracker); - replaceFunc(maps/mp/zombies/_zm_utility::is_headshot, scripts/zm/replaced/_zm_utility::is_headshot); - replaceFunc(maps/mp/zombies/_zm_utility::create_zombie_point_of_interest_attractor_positions, scripts/zm/replaced/_zm_utility::create_zombie_point_of_interest_attractor_positions); - replaceFunc(maps/mp/zombies/_zm_score::add_to_player_score, scripts/zm/replaced/_zm_score::add_to_player_score); - replaceFunc(maps/mp/zombies/_zm_score::minus_to_player_score, scripts/zm/replaced/_zm_score::minus_to_player_score); - replaceFunc(maps/mp/zombies/_zm_laststand::revive_do_revive, scripts/zm/replaced/_zm_laststand::revive_do_revive); - replaceFunc(maps/mp/zombies/_zm_laststand::revive_give_back_weapons, scripts/zm/replaced/_zm_laststand::revive_give_back_weapons); - replaceFunc(maps/mp/zombies/_zm_laststand::revive_hud_think, scripts/zm/replaced/_zm_laststand::revive_hud_think); - replaceFunc(maps/mp/zombies/_zm_weapons::weapon_give, scripts/zm/replaced/_zm_weapons::weapon_give); - replaceFunc(maps/mp/zombies/_zm_weapons::get_upgraded_ammo_cost, scripts/zm/replaced/_zm_weapons::get_upgraded_ammo_cost); - replaceFunc(maps/mp/zombies/_zm_weapons::makegrenadedudanddestroy, scripts/zm/replaced/_zm_weapons::makegrenadedudanddestroy); - replaceFunc(maps/mp/zombies/_zm_weapons::createballisticknifewatcher_zm, scripts/zm/replaced/_zm_weapons::createballisticknifewatcher_zm); - replaceFunc(maps/mp/zombies/_zm_magicbox::treasure_chest_init, scripts/zm/replaced/_zm_magicbox::treasure_chest_init); - replaceFunc(maps/mp/zombies/_zm_magicbox::treasure_chest_move, scripts/zm/replaced/_zm_magicbox::treasure_chest_move); - replaceFunc(maps/mp/zombies/_zm_magicbox::treasure_chest_timeout, scripts/zm/replaced/_zm_magicbox::treasure_chest_timeout); - replaceFunc(maps/mp/zombies/_zm_magicbox::timer_til_despawn, scripts/zm/replaced/_zm_magicbox::timer_til_despawn); - replaceFunc(maps/mp/zombies/_zm_perks::perk_pause, scripts/zm/replaced/_zm_perks::perk_pause); - replaceFunc(maps/mp/zombies/_zm_perks::perk_unpause, scripts/zm/replaced/_zm_perks::perk_unpause); - replaceFunc(maps/mp/zombies/_zm_perks::destroy_weapon_in_blackout, scripts/zm/replaced/_zm_perks::destroy_weapon_in_blackout); - replaceFunc(maps/mp/zombies/_zm_perks::give_perk, scripts/zm/replaced/_zm_perks::give_perk); - replaceFunc(maps/mp/zombies/_zm_perks::perk_think, scripts/zm/replaced/_zm_perks::perk_think); - replaceFunc(maps/mp/zombies/_zm_perks::perk_set_max_health_if_jugg, scripts/zm/replaced/_zm_perks::perk_set_max_health_if_jugg); - replaceFunc(maps/mp/zombies/_zm_perks::initialize_custom_perk_arrays, scripts/zm/replaced/_zm_perks::initialize_custom_perk_arrays); - replaceFunc(maps/mp/zombies/_zm_power::standard_powered_items, scripts/zm/replaced/_zm_power::standard_powered_items); - replaceFunc(maps/mp/zombies/_zm_powerups::full_ammo_powerup, scripts/zm/replaced/_zm_powerups::full_ammo_powerup); - replaceFunc(maps/mp/zombies/_zm_powerups::nuke_powerup, scripts/zm/replaced/_zm_powerups::nuke_powerup); - replaceFunc(maps/mp/zombies/_zm_powerups::insta_kill_powerup, scripts/zm/replaced/_zm_powerups::insta_kill_powerup); - replaceFunc(maps/mp/zombies/_zm_powerups::double_points_powerup, scripts/zm/replaced/_zm_powerups::double_points_powerup); - replaceFunc(maps/mp/zombies/_zm_pers_upgrades::is_pers_system_disabled, scripts/zm/replaced/_zm_pers_upgrades::is_pers_system_disabled); - replaceFunc(maps/mp/zombies/_zm_traps::player_elec_damage, scripts/zm/replaced/_zm_traps::player_elec_damage); - replaceFunc(maps/mp/zombies/_zm_equipment::show_equipment_hint, scripts/zm/replaced/_zm_equipment::show_equipment_hint); - replaceFunc(maps/mp/zombies/_zm_equipment::placed_equipment_think, scripts/zm/replaced/_zm_equipment::placed_equipment_think); - replaceFunc(maps/mp/zombies/_zm_spawner::head_should_gib, scripts/zm/replaced/_zm_spawner::head_should_gib); - replaceFunc(maps/mp/zombies/_zm_ai_basic::inert_wakeup, scripts/zm/replaced/_zm_ai_basic::inert_wakeup); - replaceFunc(maps/mp/zombies/_zm_melee_weapon::change_melee_weapon, scripts/zm/replaced/_zm_melee_weapon::change_melee_weapon); - replaceFunc(maps/mp/zombies/_zm_weap_ballistic_knife::watch_use_trigger, scripts/zm/replaced/_zm_weap_ballistic_knife::watch_use_trigger); - replaceFunc(maps/mp/zombies/_zm_weap_claymore::claymore_detonation, scripts/zm/replaced/_zm_weap_claymore::claymore_detonation); + replaceFunc(common_scripts\utility::struct_class_init, scripts\zm\replaced\utility::struct_class_init); + replaceFunc(maps\mp\zombies\_zm::check_quickrevive_for_hotjoin, scripts\zm\replaced\_zm::check_quickrevive_for_hotjoin); + replaceFunc(maps\mp\zombies\_zm::ai_calculate_health, scripts\zm\replaced\_zm::ai_calculate_health); + replaceFunc(maps\mp\zombies\_zm::last_stand_pistol_rank_init, scripts\zm\replaced\_zm::last_stand_pistol_rank_init); + replaceFunc(maps\mp\zombies\_zm::check_for_valid_spawn_near_team, scripts\zm\replaced\_zm::check_for_valid_spawn_near_team); + replaceFunc(maps\mp\zombies\_zm::get_valid_spawn_location, scripts\zm\replaced\_zm::get_valid_spawn_location); + replaceFunc(maps\mp\zombies\_zm::actor_damage_override, scripts\zm\replaced\_zm::actor_damage_override); + replaceFunc(maps\mp\zombies\_zm::player_spawn_protection, scripts\zm\replaced\_zm::player_spawn_protection); + replaceFunc(maps\mp\zombies\_zm::wait_and_revive, scripts\zm\replaced\_zm::wait_and_revive); + replaceFunc(maps\mp\zombies\_zm::player_revive_monitor, scripts\zm\replaced\_zm::player_revive_monitor); + replaceFunc(maps\mp\zombies\_zm::end_game, scripts\zm\replaced\_zm::end_game); + replaceFunc(maps\mp\zombies\_zm_playerhealth::playerhealthregen, scripts\zm\replaced\_zm_playerhealth::playerhealthregen); + replaceFunc(maps\mp\zombies\_zm_utility::track_players_intersection_tracker, scripts\zm\replaced\_zm_utility::track_players_intersection_tracker); + replaceFunc(maps\mp\zombies\_zm_utility::is_headshot, scripts\zm\replaced\_zm_utility::is_headshot); + replaceFunc(maps\mp\zombies\_zm_utility::create_zombie_point_of_interest_attractor_positions, scripts\zm\replaced\_zm_utility::create_zombie_point_of_interest_attractor_positions); + replaceFunc(maps\mp\zombies\_zm_score::add_to_player_score, scripts\zm\replaced\_zm_score::add_to_player_score); + replaceFunc(maps\mp\zombies\_zm_score::minus_to_player_score, scripts\zm\replaced\_zm_score::minus_to_player_score); + replaceFunc(maps\mp\zombies\_zm_laststand::revive_do_revive, scripts\zm\replaced\_zm_laststand::revive_do_revive); + replaceFunc(maps\mp\zombies\_zm_laststand::revive_give_back_weapons, scripts\zm\replaced\_zm_laststand::revive_give_back_weapons); + replaceFunc(maps\mp\zombies\_zm_laststand::revive_hud_think, scripts\zm\replaced\_zm_laststand::revive_hud_think); + replaceFunc(maps\mp\zombies\_zm_weapons::weapon_give, scripts\zm\replaced\_zm_weapons::weapon_give); + replaceFunc(maps\mp\zombies\_zm_weapons::get_upgraded_ammo_cost, scripts\zm\replaced\_zm_weapons::get_upgraded_ammo_cost); + replaceFunc(maps\mp\zombies\_zm_weapons::makegrenadedudanddestroy, scripts\zm\replaced\_zm_weapons::makegrenadedudanddestroy); + replaceFunc(maps\mp\zombies\_zm_weapons::createballisticknifewatcher_zm, scripts\zm\replaced\_zm_weapons::createballisticknifewatcher_zm); + replaceFunc(maps\mp\zombies\_zm_magicbox::treasure_chest_init, scripts\zm\replaced\_zm_magicbox::treasure_chest_init); + replaceFunc(maps\mp\zombies\_zm_magicbox::treasure_chest_move, scripts\zm\replaced\_zm_magicbox::treasure_chest_move); + replaceFunc(maps\mp\zombies\_zm_magicbox::treasure_chest_timeout, scripts\zm\replaced\_zm_magicbox::treasure_chest_timeout); + replaceFunc(maps\mp\zombies\_zm_magicbox::timer_til_despawn, scripts\zm\replaced\_zm_magicbox::timer_til_despawn); + replaceFunc(maps\mp\zombies\_zm_perks::perk_pause, scripts\zm\replaced\_zm_perks::perk_pause); + replaceFunc(maps\mp\zombies\_zm_perks::perk_unpause, scripts\zm\replaced\_zm_perks::perk_unpause); + replaceFunc(maps\mp\zombies\_zm_perks::destroy_weapon_in_blackout, scripts\zm\replaced\_zm_perks::destroy_weapon_in_blackout); + replaceFunc(maps\mp\zombies\_zm_perks::give_perk, scripts\zm\replaced\_zm_perks::give_perk); + replaceFunc(maps\mp\zombies\_zm_perks::perk_think, scripts\zm\replaced\_zm_perks::perk_think); + replaceFunc(maps\mp\zombies\_zm_perks::perk_set_max_health_if_jugg, scripts\zm\replaced\_zm_perks::perk_set_max_health_if_jugg); + replaceFunc(maps\mp\zombies\_zm_perks::initialize_custom_perk_arrays, scripts\zm\replaced\_zm_perks::initialize_custom_perk_arrays); + replaceFunc(maps\mp\zombies\_zm_power::standard_powered_items, scripts\zm\replaced\_zm_power::standard_powered_items); + replaceFunc(maps\mp\zombies\_zm_powerups::full_ammo_powerup, scripts\zm\replaced\_zm_powerups::full_ammo_powerup); + replaceFunc(maps\mp\zombies\_zm_powerups::nuke_powerup, scripts\zm\replaced\_zm_powerups::nuke_powerup); + replaceFunc(maps\mp\zombies\_zm_powerups::insta_kill_powerup, scripts\zm\replaced\_zm_powerups::insta_kill_powerup); + replaceFunc(maps\mp\zombies\_zm_powerups::double_points_powerup, scripts\zm\replaced\_zm_powerups::double_points_powerup); + replaceFunc(maps\mp\zombies\_zm_pers_upgrades::is_pers_system_disabled, scripts\zm\replaced\_zm_pers_upgrades::is_pers_system_disabled); + replaceFunc(maps\mp\zombies\_zm_traps::player_elec_damage, scripts\zm\replaced\_zm_traps::player_elec_damage); + replaceFunc(maps\mp\zombies\_zm_equipment::show_equipment_hint, scripts\zm\replaced\_zm_equipment::show_equipment_hint); + replaceFunc(maps\mp\zombies\_zm_equipment::placed_equipment_think, scripts\zm\replaced\_zm_equipment::placed_equipment_think); + replaceFunc(maps\mp\zombies\_zm_spawner::head_should_gib, scripts\zm\replaced\_zm_spawner::head_should_gib); + replaceFunc(maps\mp\zombies\_zm_ai_basic::inert_wakeup, scripts\zm\replaced\_zm_ai_basic::inert_wakeup); + replaceFunc(maps\mp\zombies\_zm_melee_weapon::change_melee_weapon, scripts\zm\replaced\_zm_melee_weapon::change_melee_weapon); + replaceFunc(maps\mp\zombies\_zm_weap_ballistic_knife::watch_use_trigger, scripts\zm\replaced\_zm_weap_ballistic_knife::watch_use_trigger); + replaceFunc(maps\mp\zombies\_zm_weap_claymore::claymore_detonation, scripts\zm\replaced\_zm_weap_claymore::claymore_detonation); } init() @@ -186,7 +186,7 @@ onplayerspawned() //self thread test(); //self.score = 100000; - //maps/mp/zombies/_zm_perks::give_perk( "specialty_armorvest", 0 ); + //maps\mp\zombies\_zm_perks::give_perk( "specialty_armorvest", 0 ); //self GiveWeapon("dsr50_zm"); //self GiveMaxAmmo("dsr50_zm"); } @@ -215,7 +215,7 @@ post_all_players_spawned() wait 0.05; - maps/mp/zombies/_zm::register_player_damage_callback( ::player_damage_override ); + maps\mp\zombies\_zm::register_player_damage_callback( ::player_damage_override ); level.near_miss = 2; // makes screecher not run away first time on solo level.ta_vaultfee = 0; @@ -242,12 +242,12 @@ post_all_players_spawned() level.playersuicideallowed = undefined; level.disable_free_perks_before_power = undefined; level.custom_random_perk_weights = undefined; - level.global_damage_func = scripts/zm/replaced/_zm_spawner::zombie_damage; - level.callbackplayerdamage = scripts/zm/replaced/_zm::callback_playerdamage; - level.overrideplayerdamage = scripts/zm/replaced/_zm::player_damage_override; - level.playerlaststand_func = scripts/zm/replaced/_zm::player_laststand; - level.etrap_damage = maps/mp/zombies/_zm::ai_zombie_health( 255 ); - level.slipgun_damage = maps/mp/zombies/_zm::ai_zombie_health( 255 ); + level.global_damage_func = scripts\zm\replaced\_zm_spawner::zombie_damage; + level.callbackplayerdamage = scripts\zm\replaced\_zm::callback_playerdamage; + level.overrideplayerdamage = scripts\zm\replaced\_zm::player_damage_override; + level.playerlaststand_func = scripts\zm\replaced\_zm::player_laststand; + level.etrap_damage = maps\mp\zombies\_zm::ai_zombie_health( 255 ); + level.slipgun_damage = maps\mp\zombies\_zm::ai_zombie_health( 255 ); level.tombstone_spawn_func = ::tombstone_spawn; level.tombstone_laststand_func = ::tombstone_save; level.zombie_last_stand = ::last_stand_pistol_swap; @@ -1715,7 +1715,7 @@ bleedout_bar_hud() self waittill("entering_last_stand"); // don't show for last player downed - if(!self maps/mp/zombies/_zm_laststand::player_is_in_laststand()) + if(!self maps\mp\zombies\_zm_laststand::player_is_in_laststand()) { continue; } @@ -2055,7 +2055,7 @@ melee_weapon_switch_watcher() } else { - self maps/mp/zombies/_zm_weapons::switch_back_primary_weapon(prev_wep); + self maps\mp\zombies\_zm_weapons::switch_back_primary_weapon(prev_wep); } } @@ -2185,7 +2185,7 @@ remove_wallbuy( name ) { if(IsDefined(level._unitriggers.trigger_stubs[i].zombie_weapon_upgrade) && level._unitriggers.trigger_stubs[i].zombie_weapon_upgrade == name) { - maps/mp/zombies/_zm_unitrigger::unregister_unitrigger( level._unitriggers.trigger_stubs[i] ); + maps\mp\zombies\_zm_unitrigger::unregister_unitrigger( level._unitriggers.trigger_stubs[i] ); } } } @@ -2213,7 +2213,7 @@ add_wallbuy( name ) return; } - scripts/zm/replaced/utility::wallbuy( name, struct.target, struct.targetname, struct.origin, struct.angles ); + scripts\zm\replaced\utility::wallbuy( name, struct.target, struct.targetname, struct.origin, struct.angles ); } wallbuy_cost_changes() @@ -2262,7 +2262,7 @@ wallbuy_decrease_upgraded_ammo_cost() { for(i = 0; i < level._unitriggers.trigger_stubs.size; i++) { - if(isDefined(level._unitriggers.trigger_stubs[i].trigger_func) && level._unitriggers.trigger_stubs[i].trigger_func == maps/mp/zombies/_zm_weapons::weapon_spawn_think) + if(isDefined(level._unitriggers.trigger_stubs[i].trigger_func) && level._unitriggers.trigger_stubs[i].trigger_func == maps\mp\zombies\_zm_weapons::weapon_spawn_think) { level._unitriggers.trigger_stubs[i].trigger_func = ::weapon_spawn_think; } @@ -2275,7 +2275,7 @@ wallbuy_lethal_grenade_changes() { if(IsDefined(level._unitriggers.trigger_stubs[i].zombie_weapon_upgrade) && is_lethal_grenade(level._unitriggers.trigger_stubs[i].zombie_weapon_upgrade)) { - level._unitriggers.trigger_stubs[i].prompt_and_visibility_func = scripts/zm/replaced/_zm_weapons::lethal_grenade_update_prompt; + level._unitriggers.trigger_stubs[i].prompt_and_visibility_func = scripts\zm\replaced\_zm_weapons::lethal_grenade_update_prompt; } } } @@ -2286,16 +2286,16 @@ wallbuy_claymore_changes() { if(isDefined(level._unitriggers.trigger_stubs[i].zombie_weapon_upgrade) && level._unitriggers.trigger_stubs[i].zombie_weapon_upgrade == "claymore_zm") { - level._unitriggers.trigger_stubs[i].prompt_and_visibility_func = scripts/zm/replaced/_zm_weap_claymore::claymore_unitrigger_update_prompt; - level._unitriggers.trigger_stubs[i].trigger_func = scripts/zm/replaced/_zm_weap_claymore::buy_claymores; + level._unitriggers.trigger_stubs[i].prompt_and_visibility_func = scripts\zm\replaced\_zm_weap_claymore::claymore_unitrigger_update_prompt; + level._unitriggers.trigger_stubs[i].trigger_func = scripts\zm\replaced\_zm_weap_claymore::buy_claymores; } } } weapon_spawn_think() { - cost = maps/mp/zombies/_zm_weapons::get_weapon_cost( self.zombie_weapon_upgrade ); - ammo_cost = maps/mp/zombies/_zm_weapons::get_ammo_cost( self.zombie_weapon_upgrade ); + cost = maps\mp\zombies\_zm_weapons::get_weapon_cost( self.zombie_weapon_upgrade ); + ammo_cost = maps\mp\zombies\_zm_weapons::get_ammo_cost( self.zombie_weapon_upgrade ); shared_ammo_weapon = undefined; second_endon = undefined; @@ -2313,17 +2313,17 @@ weapon_spawn_think() if ( isDefined( self.stub ) && is_true( self.stub.trigger_per_player ) ) { - self thread maps/mp/zombies/_zm_magicbox::decide_hide_show_hint( "stop_hint_logic", second_endon, self.parent_player ); + self thread maps\mp\zombies\_zm_magicbox::decide_hide_show_hint( "stop_hint_logic", second_endon, self.parent_player ); } else { - self thread maps/mp/zombies/_zm_magicbox::decide_hide_show_hint( "stop_hint_logic", second_endon ); + self thread maps\mp\zombies\_zm_magicbox::decide_hide_show_hint( "stop_hint_logic", second_endon ); } if ( is_grenade ) { self.first_time_triggered = 0; - hint = maps/mp/zombies/_zm_weapons::get_weapon_hint( self.zombie_weapon_upgrade ); + hint = maps\mp\zombies\_zm_weapons::get_weapon_hint( self.zombie_weapon_upgrade ); self sethintstring( hint, cost ); } else if ( !isDefined( self.first_time_triggered ) ) @@ -2338,7 +2338,7 @@ weapon_spawn_think() { if ( is_true( level.use_legacy_weapon_prompt_format ) ) { - self maps/mp/zombies/_zm_weapons::weapon_set_first_time_hint( cost, maps/mp/zombies/_zm_weapons::get_ammo_cost( self.zombie_weapon_upgrade ) ); + self maps\mp\zombies\_zm_weapons::weapon_set_first_time_hint( cost, maps\mp\zombies\_zm_weapons::get_ammo_cost( self.zombie_weapon_upgrade ) ); } } @@ -2352,7 +2352,7 @@ weapon_spawn_think() continue; } - if ( !player maps/mp/zombies/_zm_magicbox::can_buy_weapon() ) + if ( !player maps\mp\zombies\_zm_magicbox::can_buy_weapon() ) { wait 0.1; continue; @@ -2375,10 +2375,10 @@ weapon_spawn_think() continue; } - player_has_weapon = player maps/mp/zombies/_zm_weapons::has_weapon_or_upgrade( self.zombie_weapon_upgrade ); + player_has_weapon = player maps\mp\zombies\_zm_weapons::has_weapon_or_upgrade( self.zombie_weapon_upgrade ); if ( !player_has_weapon && is_true( level.weapons_using_ammo_sharing ) ) { - shared_ammo_weapon = player maps/mp/zombies/_zm_weapons::get_shared_ammo_weapon( self.zombie_weapon_upgrade ); + shared_ammo_weapon = player maps\mp\zombies\_zm_weapons::get_shared_ammo_weapon( self.zombie_weapon_upgrade ); if ( isDefined( shared_ammo_weapon ) ) { player_has_weapon = 1; @@ -2387,11 +2387,11 @@ weapon_spawn_think() if ( is_true( level.pers_upgrade_nube ) ) { - player_has_weapon = maps/mp/zombies/_zm_pers_upgrades_functions::pers_nube_should_we_give_raygun( player_has_weapon, player, self.zombie_weapon_upgrade ); + player_has_weapon = maps\mp\zombies\_zm_pers_upgrades_functions::pers_nube_should_we_give_raygun( player_has_weapon, player, self.zombie_weapon_upgrade ); } - cost = maps/mp/zombies/_zm_weapons::get_weapon_cost( self.zombie_weapon_upgrade ); - if ( player maps/mp/zombies/_zm_pers_upgrades_functions::is_pers_double_points_active() ) + cost = maps\mp\zombies\_zm_weapons::get_weapon_cost( self.zombie_weapon_upgrade ); + if ( player maps\mp\zombies\_zm_pers_upgrades_functions::is_pers_double_points_active() ) { cost = int( cost / 2 ); } @@ -2402,16 +2402,16 @@ weapon_spawn_think() { if ( self.first_time_triggered == 0 ) { - self maps/mp/zombies/_zm_weapons::show_all_weapon_buys( player, cost, ammo_cost, is_grenade ); + self maps\mp\zombies\_zm_weapons::show_all_weapon_buys( player, cost, ammo_cost, is_grenade ); } - player maps/mp/zombies/_zm_score::minus_to_player_score( cost, 1 ); + player maps\mp\zombies\_zm_score::minus_to_player_score( cost, 1 ); bbprint( "zombie_uses", "playername %s playerscore %d round %d cost %d name %s x %f y %f z %f type %s", player.name, player.score, level.round_number, cost, self.zombie_weapon_upgrade, self.origin, "weapon" ); level notify( "weapon_bought", player, self.zombie_weapon_upgrade ); if ( self.zombie_weapon_upgrade == "riotshield_zm" ) { - player maps/mp/zombies/_zm_equipment::equipment_give( "riotshield_zm" ); + player maps\mp\zombies\_zm_equipment::equipment_give( "riotshield_zm" ); if ( isDefined( player.player_shield_reset_health ) ) { player [[ player.player_shield_reset_health ]](); @@ -2419,7 +2419,7 @@ weapon_spawn_think() } else if ( self.zombie_weapon_upgrade == "jetgun_zm" ) { - player maps/mp/zombies/_zm_equipment::equipment_give( "jetgun_zm" ); + player maps\mp\zombies\_zm_equipment::equipment_give( "jetgun_zm" ); } else if ( is_lethal_grenade( self.zombie_weapon_upgrade ) ) { @@ -2431,17 +2431,17 @@ weapon_spawn_think() if ( is_true( level.pers_upgrade_nube ) ) { - str_weapon = maps/mp/zombies/_zm_pers_upgrades_functions::pers_nube_weapon_upgrade_check( player, str_weapon ); + str_weapon = maps\mp\zombies\_zm_pers_upgrades_functions::pers_nube_weapon_upgrade_check( player, str_weapon ); } - player maps/mp/zombies/_zm_weapons::weapon_give( str_weapon ); - player maps/mp/zombies/_zm_stats::increment_client_stat( "wallbuy_weapons_purchased" ); - player maps/mp/zombies/_zm_stats::increment_player_stat( "wallbuy_weapons_purchased" ); + player maps\mp\zombies\_zm_weapons::weapon_give( str_weapon ); + player maps\mp\zombies\_zm_stats::increment_client_stat( "wallbuy_weapons_purchased" ); + player maps\mp\zombies\_zm_stats::increment_player_stat( "wallbuy_weapons_purchased" ); } else { play_sound_on_ent( "no_purchase" ); - player maps/mp/zombies/_zm_audio::create_and_play_dialog( "general", "no_money_weapon" ); + player maps\mp\zombies\_zm_audio::create_and_play_dialog( "general", "no_money_weapon" ); } } else @@ -2455,35 +2455,35 @@ weapon_spawn_think() if ( is_true( level.pers_upgrade_nube ) ) { - str_weapon = maps/mp/zombies/_zm_pers_upgrades_functions::pers_nube_weapon_ammo_check( player, str_weapon ); + str_weapon = maps\mp\zombies\_zm_pers_upgrades_functions::pers_nube_weapon_ammo_check( player, str_weapon ); } if ( is_true( self.hacked ) ) { - if ( !player maps/mp/zombies/_zm_weapons::has_upgrade( str_weapon ) ) + if ( !player maps\mp\zombies\_zm_weapons::has_upgrade( str_weapon ) ) { - ammo_cost = maps/mp/zombies/_zm_weapons::get_upgraded_ammo_cost( str_weapon ); + ammo_cost = maps\mp\zombies\_zm_weapons::get_upgraded_ammo_cost( str_weapon ); } else { - ammo_cost = maps/mp/zombies/_zm_weapons::get_ammo_cost( str_weapon ); + ammo_cost = maps\mp\zombies\_zm_weapons::get_ammo_cost( str_weapon ); } } - else if ( player maps/mp/zombies/_zm_weapons::has_upgrade( str_weapon ) ) + else if ( player maps\mp\zombies\_zm_weapons::has_upgrade( str_weapon ) ) { - ammo_cost = maps/mp/zombies/_zm_weapons::get_upgraded_ammo_cost( str_weapon ); + ammo_cost = maps\mp\zombies\_zm_weapons::get_upgraded_ammo_cost( str_weapon ); } else { - ammo_cost = maps/mp/zombies/_zm_weapons::get_ammo_cost( str_weapon ); + ammo_cost = maps\mp\zombies\_zm_weapons::get_ammo_cost( str_weapon ); } if ( is_true( player.pers_upgrades_awarded[ "nube" ] ) ) { - ammo_cost = maps/mp/zombies/_zm_pers_upgrades_functions::pers_nube_override_ammo_cost( player, self.zombie_weapon_upgrade, ammo_cost ); + ammo_cost = maps\mp\zombies\_zm_pers_upgrades_functions::pers_nube_override_ammo_cost( player, self.zombie_weapon_upgrade, ammo_cost ); } - if ( player maps/mp/zombies/_zm_pers_upgrades_functions::is_pers_double_points_active() ) + if ( player maps\mp\zombies\_zm_pers_upgrades_functions::is_pers_double_points_active() ) { ammo_cost = int( ammo_cost / 2 ); } @@ -2496,18 +2496,18 @@ weapon_spawn_think() { if ( self.first_time_triggered == 0 ) { - self maps/mp/zombies/_zm_weapons::show_all_weapon_buys( player, cost, ammo_cost, is_grenade ); + self maps\mp\zombies\_zm_weapons::show_all_weapon_buys( player, cost, ammo_cost, is_grenade ); } - if ( player maps/mp/zombies/_zm_weapons::has_upgrade( str_weapon ) ) + if ( player maps\mp\zombies\_zm_weapons::has_upgrade( str_weapon ) ) { - player maps/mp/zombies/_zm_stats::increment_client_stat( "upgraded_ammo_purchased" ); - player maps/mp/zombies/_zm_stats::increment_player_stat( "upgraded_ammo_purchased" ); + player maps\mp\zombies\_zm_stats::increment_client_stat( "upgraded_ammo_purchased" ); + player maps\mp\zombies\_zm_stats::increment_player_stat( "upgraded_ammo_purchased" ); } else { - player maps/mp/zombies/_zm_stats::increment_client_stat( "ammo_purchased" ); - player maps/mp/zombies/_zm_stats::increment_player_stat( "ammo_purchased" ); + player maps\mp\zombies\_zm_stats::increment_client_stat( "ammo_purchased" ); + player maps\mp\zombies\_zm_stats::increment_player_stat( "ammo_purchased" ); } if ( str_weapon == "riotshield_zm" ) @@ -2521,18 +2521,18 @@ weapon_spawn_think() ammo_given = 0; } } - else if ( player maps/mp/zombies/_zm_weapons::has_upgrade( str_weapon ) ) + else if ( player maps\mp\zombies\_zm_weapons::has_upgrade( str_weapon ) ) { - ammo_given = player maps/mp/zombies/_zm_weapons::ammo_give( level.zombie_weapons[ str_weapon ].upgrade_name ); + ammo_given = player maps\mp\zombies\_zm_weapons::ammo_give( level.zombie_weapons[ str_weapon ].upgrade_name ); } else { - ammo_given = player maps/mp/zombies/_zm_weapons::ammo_give( str_weapon ); + ammo_given = player maps\mp\zombies\_zm_weapons::ammo_give( str_weapon ); } if ( ammo_given ) { - player maps/mp/zombies/_zm_score::minus_to_player_score( ammo_cost, 1 ); + player maps\mp\zombies\_zm_score::minus_to_player_score( ammo_cost, 1 ); bbprint( "zombie_uses", "playername %s playerscore %d round %d cost %d name %s x %f y %f z %f type %s", player.name, player.score, level.round_number, ammo_cost, str_weapon, self.origin, "ammo" ); } } @@ -2546,7 +2546,7 @@ weapon_spawn_think() } else { - player maps/mp/zombies/_zm_audio::create_and_play_dialog( "general", "no_money_weapon" ); + player maps\mp\zombies\_zm_audio::create_and_play_dialog( "general", "no_money_weapon" ); } } } @@ -2706,8 +2706,8 @@ buildbuildable( buildable, craft ) if (craft) { - stub maps/mp/zombies/_zm_buildables::buildablestub_finish_build( player ); - stub maps/mp/zombies/_zm_buildables::buildablestub_remove(); + stub maps\mp\zombies\_zm_buildables::buildablestub_finish_build( player ); + stub maps\mp\zombies\_zm_buildables::buildablestub_remove(); stub.model notsolid(); stub.model show(); } @@ -2720,10 +2720,10 @@ buildbuildable( buildable, craft ) i = 0; foreach (piece in stub.buildablezone.pieces) { - piece maps/mp/zombies/_zm_buildables::piece_unspawn(); + piece maps\mp\zombies\_zm_buildables::piece_unspawn(); if (!craft && i > 0) { - stub.buildablezone maps/mp/zombies/_zm_buildables::buildable_set_piece_built(piece); + stub.buildablezone maps\mp\zombies\_zm_buildables::buildable_set_piece_built(piece); } i++; } @@ -2811,7 +2811,7 @@ buildable_place_think() { player thread ignore_triggers( 0.5 ); } - status = player maps/mp/zombies/_zm_buildables::player_can_build( self.stub.buildablezone ); + status = player maps\mp\zombies\_zm_buildables::player_can_build( self.stub.buildablezone ); if ( !status ) { self.stub.hint_string = ""; @@ -2828,7 +2828,7 @@ buildable_place_think() { self.stub [[ self.stub.onbeginuse ]]( player ); } - result = self maps/mp/zombies/_zm_buildables::buildable_use_hold_think( player ); + result = self maps\mp\zombies\_zm_buildables::buildable_use_hold_think( player ); team = player.pers[ "team" ]; if ( isDefined( self.stub.onenduse ) ) { @@ -2842,7 +2842,7 @@ buildable_place_think() { self.stub [[ self.stub.onuse ]]( player ); } - prompt = player maps/mp/zombies/_zm_buildables::player_build( self.stub.buildablezone ); + prompt = player maps\mp\zombies\_zm_buildables::player_build( self.stub.buildablezone ); player_built = player; self.stub.hint_string = prompt; self sethintstring( self.stub.hint_string ); @@ -2853,13 +2853,13 @@ buildable_place_think() } if ( self.stub.persistent == 0 ) { - self.stub maps/mp/zombies/_zm_buildables::buildablestub_remove(); - thread maps/mp/zombies/_zm_unitrigger::unregister_unitrigger( self.stub ); + self.stub maps\mp\zombies\_zm_buildables::buildablestub_remove(); + thread maps\mp\zombies\_zm_unitrigger::unregister_unitrigger( self.stub ); return; } if ( self.stub.persistent == 3 ) { - maps/mp/zombies/_zm_buildables::stub_unbuild_buildable( self.stub, 1 ); + maps\mp\zombies\_zm_buildables::stub_unbuild_buildable( self.stub, 1 ); return; } if ( self.stub.persistent == 2 ) @@ -2868,7 +2868,7 @@ buildable_place_think() { self buildabletrigger_update_prompt( player_built ); } - if ( !maps/mp/zombies/_zm_weapons::limited_weapon_below_quota( self.stub.weaponname, undefined ) ) + if ( !maps\mp\zombies\_zm_weapons::limited_weapon_below_quota( self.stub.weaponname, undefined ) ) { self.stub.hint_string = &"ZOMBIE_GO_TO_THE_BOX_LIMITED"; self sethintstring( self.stub.hint_string ); @@ -2892,7 +2892,7 @@ buildable_place_think() { continue; } - if ( !maps/mp/zombies/_zm_weapons::limited_weapon_below_quota( self.stub.weaponname, undefined ) ) + if ( !maps\mp\zombies\_zm_weapons::limited_weapon_below_quota( self.stub.weaponname, undefined ) ) { self.stub.hint_string = &"ZOMBIE_GO_TO_THE_BOX_LIMITED"; self sethintstring( self.stub.hint_string ); @@ -2919,20 +2919,20 @@ buildable_place_think() continue; } - player maps/mp/zombies/_zm_score::minus_to_player_score( self.stub.cost ); + player maps\mp\zombies\_zm_score::minus_to_player_score( self.stub.cost ); self play_sound_on_ent( "purchase" ); self.stub.bought = 1; if ( isDefined( self.stub.model ) ) { - self.stub.model thread maps/mp/zombies/_zm_buildables::model_fly_away(); + self.stub.model thread maps\mp\zombies\_zm_buildables::model_fly_away(); } - player maps/mp/zombies/_zm_weapons::weapon_give( self.stub.weaponname ); + player maps\mp\zombies\_zm_weapons::weapon_give( self.stub.weaponname ); if ( isDefined( level.zombie_include_buildables[ self.stub.equipname ].onbuyweapon ) ) { self [[ level.zombie_include_buildables[ self.stub.equipname ].onbuyweapon ]]( player ); } - if ( !maps/mp/zombies/_zm_weapons::limited_weapon_below_quota( self.stub.weaponname, undefined ) ) + if ( !maps\mp\zombies\_zm_weapons::limited_weapon_below_quota( self.stub.weaponname, undefined ) ) { self.stub.hint_string = &"ZOMBIE_GO_TO_THE_BOX_LIMITED"; } @@ -2941,7 +2941,7 @@ buildable_place_think() self.stub.hint_string = &"ZOMBIE_GO_TO_THE_BOX"; } self sethintstring( self.stub.hint_string ); - player maps/mp/zombies/_zm_buildables::track_buildables_pickedup( self.stub.weaponname ); + player maps\mp\zombies\_zm_buildables::track_buildables_pickedup( self.stub.weaponname ); } } else while ( !isDefined( player_built ) || self buildabletrigger_update_prompt( player_built ) ) @@ -2981,12 +2981,12 @@ buildable_place_think() self play_sound_on_ent( "no_purchase" ); continue; } - if ( !maps/mp/zombies/_zm_equipment::is_limited_equipment( self.stub.weaponname ) || !maps/mp/zombies/_zm_equipment::limited_equipment_in_use( self.stub.weaponname ) ) + if ( !maps\mp\zombies\_zm_equipment::is_limited_equipment( self.stub.weaponname ) || !maps\mp\zombies\_zm_equipment::limited_equipment_in_use( self.stub.weaponname ) ) { - player maps/mp/zombies/_zm_score::minus_to_player_score( self.stub.cost ); + player maps\mp\zombies\_zm_score::minus_to_player_score( self.stub.cost ); self play_sound_on_ent( "purchase" ); - player maps/mp/zombies/_zm_equipment::equipment_buy( self.stub.weaponname ); + player maps\mp\zombies\_zm_equipment::equipment_buy( self.stub.weaponname ); player giveweapon( self.stub.weaponname ); player setweaponammoclip( self.stub.weaponname, 1 ); if ( isDefined( level.zombie_include_buildables[ self.stub.equipname ].onbuyweapon ) ) @@ -3006,7 +3006,7 @@ buildable_place_think() self.stub.hint_string = ""; } self sethintstring( self.stub.hint_string ); - player maps/mp/zombies/_zm_buildables::track_buildables_pickedup( self.stub.weaponname ); + player maps\mp\zombies\_zm_buildables::track_buildables_pickedup( self.stub.weaponname ); continue; } else @@ -3047,7 +3047,7 @@ buildabletrigger_update_prompt( player ) buildablestub_update_prompt( player, trigger ) { - if ( !self maps/mp/zombies/_zm_buildables::anystub_update_prompt( player ) ) + if ( !self maps\mp\zombies\_zm_buildables::anystub_update_prompt( player ) ) { return 0; } @@ -3072,9 +3072,9 @@ buildablestub_update_prompt( player, trigger ) { slot = self.buildablestruct.buildable_slot; piece = self.buildablezone.pieces[0]; - player maps/mp/zombies/_zm_buildables::player_set_buildable_piece(piece, slot); + player maps\mp\zombies\_zm_buildables::player_set_buildable_piece(piece, slot); - if ( !isDefined( player maps/mp/zombies/_zm_buildables::player_get_buildable_piece( slot ) ) ) + if ( !isDefined( player maps\mp\zombies\_zm_buildables::player_get_buildable_piece( slot ) ) ) { if ( isDefined( level.zombie_buildables[ self.equipname ].hint_more ) ) { @@ -3088,7 +3088,7 @@ buildablestub_update_prompt( player, trigger ) } else { - if ( !self.buildablezone maps/mp/zombies/_zm_buildables::buildable_has_piece( player maps/mp/zombies/_zm_buildables::player_get_buildable_piece( slot ) ) ) + if ( !self.buildablezone maps\mp\zombies\_zm_buildables::buildable_has_piece( player maps\mp\zombies\_zm_buildables::player_get_buildable_piece( slot ) ) ) { if ( isDefined( level.zombie_buildables[ self.equipname ].hint_wrong ) ) { @@ -3117,7 +3117,7 @@ buildablestub_update_prompt( player, trigger ) { if ( self.persistent == 1 ) { - if ( maps/mp/zombies/_zm_equipment::is_limited_equipment( self.weaponname ) && maps/mp/zombies/_zm_equipment::limited_equipment_in_use( self.weaponname ) ) + if ( maps\mp\zombies\_zm_equipment::is_limited_equipment( self.weaponname ) && maps\mp\zombies\_zm_equipment::limited_equipment_in_use( self.weaponname ) ) { self.hint_string = &"ZOMBIE_BUILD_PIECE_ONLY_ONE"; return 0; @@ -3133,7 +3133,7 @@ buildablestub_update_prompt( player, trigger ) } else if ( self.persistent == 2 ) { - if ( !maps/mp/zombies/_zm_weapons::limited_weapon_below_quota( self.weaponname, undefined ) ) + if ( !maps\mp\zombies\_zm_weapons::limited_weapon_below_quota( self.weaponname, undefined ) ) { self.hint_string = &"ZOMBIE_GO_TO_THE_BOX_LIMITED"; return 0; @@ -3159,7 +3159,7 @@ buildablestub_update_prompt( player, trigger ) pooledbuildablestub_update_prompt( player, trigger ) { - if ( !self maps/mp/zombies/_zm_buildables::anystub_update_prompt( player ) ) + if ( !self maps\mp\zombies\_zm_buildables::anystub_update_prompt( player ) ) { return 0; } @@ -3196,9 +3196,9 @@ pooledbuildablestub_update_prompt( player, trigger ) } } - player maps/mp/zombies/_zm_buildables::player_set_buildable_piece(piece, slot); + player maps\mp\zombies\_zm_buildables::player_set_buildable_piece(piece, slot); - piece = player maps/mp/zombies/_zm_buildables::player_get_buildable_piece(slot); + piece = player maps\mp\zombies\_zm_buildables::player_get_buildable_piece(slot); if ( !isDefined( piece ) ) { @@ -3219,7 +3219,7 @@ pooledbuildablestub_update_prompt( player, trigger ) } else { - if ( isDefined( self.bound_to_buildable ) && !self.bound_to_buildable.buildablezone maps/mp/zombies/_zm_buildables::buildable_has_piece( piece ) ) + if ( isDefined( self.bound_to_buildable ) && !self.bound_to_buildable.buildablezone maps\mp\zombies\_zm_buildables::buildable_has_piece( piece ) ) { if ( isDefined( level.zombie_buildables[ self.bound_to_buildable.equipname ].hint_wrong ) ) { @@ -3294,7 +3294,7 @@ pooledbuildable_stub_for_piece( piece ) { if ( !isDefined( stub.bound_to_buildable ) ) { - if ( stub.buildablezone maps/mp/zombies/_zm_buildables::buildable_has_piece( piece ) ) + if ( stub.buildablezone maps\mp\zombies\_zm_buildables::buildable_has_piece( piece ) ) { return stub; } @@ -3378,7 +3378,7 @@ choose_open_buildable( player ) } } slot = self.buildablestruct.buildable_slot; - player maps/mp/zombies/_zm_buildables::player_set_buildable_piece(piece, slot); + player maps\mp\zombies\_zm_buildables::player_set_buildable_piece(piece, slot); self.equipname = level.buildables_available[self.buildables_available_index]; self.hint_string = level.zombie_buildables[self.equipname].hint; @@ -3408,7 +3408,7 @@ buildablestub_build_succeed() self waittill( "build_succeed" ); - self.stub maps/mp/zombies/_zm_buildables::buildablestub_remove(); + self.stub maps\mp\zombies\_zm_buildables::buildablestub_remove(); arrayremovevalue(level.buildables_available, self.stub.buildablezone.buildable_name); if (level.buildables_available.size == 0) { @@ -3420,7 +3420,7 @@ buildablestub_build_succeed() case "subwoofer_zm": case "springpad_zm": case "headchopper_zm": - maps/mp/zombies/_zm_unitrigger::unregister_unitrigger(stub); + maps\mp\zombies\_zm_unitrigger::unregister_unitrigger(stub); break; } } @@ -3456,7 +3456,7 @@ removebuildable( buildable, after_built ) if(IsDefined(stub.equipname) && stub.equipname == buildable) { stub.model hide(); - maps/mp/zombies/_zm_unitrigger::unregister_unitrigger( stub ); + maps\mp\zombies\_zm_unitrigger::unregister_unitrigger( stub ); return; } } @@ -3469,12 +3469,12 @@ removebuildable( buildable, after_built ) { if ( isDefined( buildable ) || stub.persistent != 3 ) { - stub maps/mp/zombies/_zm_buildables::buildablestub_remove(); + stub maps\mp\zombies\_zm_buildables::buildablestub_remove(); foreach (piece in stub.buildablezone.pieces) { - piece maps/mp/zombies/_zm_buildables::piece_unspawn(); + piece maps\mp\zombies\_zm_buildables::piece_unspawn(); } - maps/mp/zombies/_zm_unitrigger::unregister_unitrigger( stub ); + maps\mp\zombies\_zm_unitrigger::unregister_unitrigger( stub ); return; } } @@ -3494,7 +3494,7 @@ buildable_piece_remove_on_last_stand() if (isDefined(self.last_piece)) { - self.last_piece maps/mp/zombies/_zm_buildables::piece_unspawn(); + self.last_piece maps\mp\zombies\_zm_buildables::piece_unspawn(); } } } @@ -3505,16 +3505,16 @@ buildable_get_last_piece() while (1) { - if (!self maps/mp/zombies/_zm_laststand::player_is_in_laststand()) + if (!self maps\mp\zombies\_zm_laststand::player_is_in_laststand()) { - self.last_piece = maps/mp/zombies/_zm_buildables::player_get_buildable_piece(0); + self.last_piece = maps\mp\zombies\_zm_buildables::player_get_buildable_piece(0); } wait 0.05; } } -// MOTD/Origins style buildables +// MOTD\Origins style buildables buildcraftables() { // need a wait or else some buildables dont build @@ -3674,7 +3674,7 @@ piece_unspawn() self.model = undefined; if ( isDefined( self.unitrigger ) ) { - thread maps/mp/zombies/_zm_unitrigger::unregister_unitrigger( self.unitrigger ); + thread maps\mp\zombies\_zm_unitrigger::unregister_unitrigger( self.unitrigger ); } self.unitrigger = undefined; } @@ -3688,7 +3688,7 @@ remove_buildable_pieces( buildable_name ) pieces = buildable.buildablepieces; for(i = 0; i < pieces.size; i++) { - pieces[i] maps/mp/zombies/_zm_buildables::piece_unspawn(); + pieces[i] maps\mp\zombies\_zm_buildables::piece_unspawn(); } return; } @@ -3725,7 +3725,7 @@ jetgun_heatval_changes() { self endon("disconnect"); - if(!maps/mp/zombies/_zm_weapons::is_weapon_included("jetgun_zm")) + if(!maps\mp\zombies\_zm_weapons::is_weapon_included("jetgun_zm")) { return; } @@ -3868,7 +3868,7 @@ tombstone_spawn() dc.script_noteworthy = "player_tombstone_model"; dc.player = self; - self thread maps/mp/zombies/_zm_tombstone::tombstone_clear(); + self thread maps\mp\zombies\_zm_tombstone::tombstone_clear(); dc thread tombstone_wobble(); dc thread tombstone_emp(); @@ -3947,7 +3947,7 @@ tombstone_timeout() { self endon( "tombstone_grabbed" ); - self thread maps/mp/zombies/_zm_tombstone::playtombstonetimeraudio(); + self thread maps\mp\zombies\_zm_tombstone::playtombstonetimeraudio(); self.player waittill("player_downed"); @@ -4025,7 +4025,7 @@ tombstone_save() // can't switch to alt weapon if(is_alt_weapon(self.tombstone_savedweapon_currentweapon)) { - self.tombstone_savedweapon_currentweapon = maps/mp/zombies/_zm_weapons::get_nonalternate_weapon(self.tombstone_savedweapon_currentweapon); + self.tombstone_savedweapon_currentweapon = maps\mp\zombies\_zm_weapons::get_nonalternate_weapon(self.tombstone_savedweapon_currentweapon); } for ( i = 0; i < self.tombstone_savedweapon_weapons.size; i++ ) @@ -4137,7 +4137,7 @@ tombstone_give() continue; } - self giveweapon( self.tombstone_savedweapon_weapons[ i ], 0, self maps/mp/zombies/_zm_weapons::get_pack_a_punch_weapon_options( self.tombstone_savedweapon_weapons[ i ] ) ); + self giveweapon( self.tombstone_savedweapon_weapons[ i ], 0, self maps\mp\zombies\_zm_weapons::get_pack_a_punch_weapon_options( self.tombstone_savedweapon_weapons[ i ] ) ); if ( isdefined( self.tombstone_savedweapon_weaponsammo_clip[ i ] ) ) { @@ -4204,13 +4204,13 @@ tombstone_give() if ( isDefined( self.current_equipment ) ) { - self maps/mp/zombies/_zm_equipment::equipment_take( self.current_equipment ); + self maps\mp\zombies\_zm_equipment::equipment_take( self.current_equipment ); } if ( isDefined( self.tombstone_savedweapon_equipment ) ) { self.do_not_display_equipment_pickup_hint = 1; - self maps/mp/zombies/_zm_equipment::equipment_give( self.tombstone_savedweapon_equipment ); + self maps\mp\zombies\_zm_equipment::equipment_give( self.tombstone_savedweapon_equipment ); self.do_not_display_equipment_pickup_hint = undefined; } @@ -4256,7 +4256,7 @@ tombstone_give() continue; } - self maps/mp/zombies/_zm_perks::give_perk( self.tombstone_perks[ i ] ); + self maps\mp\zombies\_zm_perks::give_perk( self.tombstone_perks[ i ] ); i++; } } @@ -4280,7 +4280,7 @@ additionalprimaryweapon_save_weapons() if (primaries.size >= 3) { weapon = primaries[primaries.size - 1]; - self.a_saved_weapon = maps/mp/zombies/_zm_weapons::get_player_weapondata(self, weapon); + self.a_saved_weapon = maps\mp\zombies\_zm_weapons::get_player_weapondata(self, weapon); } else { @@ -4305,15 +4305,15 @@ additionalprimaryweapon_restore_weapons() pap_triggers = getentarray( "specialty_weapupgrade", "script_noteworthy" ); give_wep = 1; - if ( isDefined( self ) && self maps/mp/zombies/_zm_weapons::has_weapon_or_upgrade( self.a_saved_weapon["name"] ) ) + if ( isDefined( self ) && self maps\mp\zombies\_zm_weapons::has_weapon_or_upgrade( self.a_saved_weapon["name"] ) ) { give_wep = 0; } - else if ( !maps/mp/zombies/_zm_weapons::limited_weapon_below_quota( self.a_saved_weapon["name"], self, pap_triggers ) ) + else if ( !maps\mp\zombies\_zm_weapons::limited_weapon_below_quota( self.a_saved_weapon["name"], self, pap_triggers ) ) { give_wep = 0; } - else if ( !self maps/mp/zombies/_zm_weapons::player_can_use_content( self.a_saved_weapon["name"] ) ) + else if ( !self maps\mp\zombies\_zm_weapons::player_can_use_content( self.a_saved_weapon["name"] ) ) { give_wep = 0; } @@ -4332,7 +4332,7 @@ additionalprimaryweapon_restore_weapons() if (give_wep) { current_wep = self getCurrentWeapon(); - self maps/mp/zombies/_zm_weapons::weapondata_give(self.a_saved_weapon); + self maps\mp\zombies\_zm_weapons::weapondata_give(self.a_saved_weapon); self switchToWeapon(current_wep); } @@ -4411,7 +4411,7 @@ additionalprimaryweapon_stowed_weapon_refill() primaries = self getWeaponsListPrimaries(); foreach(primary in primaries) { - if(primary != maps/mp/zombies/_zm_weapons::get_nonalternate_weapon(curr_wep)) + if(primary != maps\mp\zombies\_zm_weapons::get_nonalternate_weapon(curr_wep)) { if(string != "weapon_change") { @@ -4436,11 +4436,11 @@ refill_after_time(primary) reload_time = weaponReloadTime(primary); reload_amount = undefined; - if(primary == "m32_zm" || primary == "python_zm" || maps/mp/zombies/_zm_weapons::get_base_weapon_name(primary, 1) == "judge_zm" || maps/mp/zombies/_zm_weapons::get_base_weapon_name(primary, 1) == "870mcs_zm" || maps/mp/zombies/_zm_weapons::get_base_weapon_name(primary, 1) == "ksg_zm") + if(primary == "m32_zm" || primary == "python_zm" || maps\mp\zombies\_zm_weapons::get_base_weapon_name(primary, 1) == "judge_zm" || maps\mp\zombies\_zm_weapons::get_base_weapon_name(primary, 1) == "870mcs_zm" || maps\mp\zombies\_zm_weapons::get_base_weapon_name(primary, 1) == "ksg_zm") { reload_amount = 1; - if(maps/mp/zombies/_zm_weapons::get_base_weapon_name(primary, 1) == "ksg_zm" && maps/mp/zombies/_zm_weapons::is_weapon_upgraded(primary)) + if(maps\mp\zombies\_zm_weapons::get_base_weapon_name(primary, 1) == "ksg_zm" && maps\mp\zombies\_zm_weapons::is_weapon_upgraded(primary)) { reload_amount = 2; } @@ -4530,7 +4530,7 @@ whos_who_spawn_changes() foreach (perk in self.loadout.perks) { - self maps/mp/zombies/_zm_perks::give_perk(perk); + self maps\mp\zombies\_zm_perks::give_perk(perk); } self waittill("chugabud_effects_cleanup"); diff --git a/scripts/zm/locs/loc_common.gsc b/scripts/zm/locs/loc_common.gsc index 7aa2f8b8..014a94d8 100644 --- a/scripts/zm/locs/loc_common.gsc +++ b/scripts/zm/locs/loc_common.gsc @@ -1,12 +1,12 @@ -#include maps/mp/_utility; -#include maps/mp/zombies/_zm_utility; -#include common_scripts/utility; +#include maps\mp\_utility; +#include maps\mp\zombies\_zm_utility; +#include common_scripts\utility; init() { level.enemy_location_override_func = ::enemy_location_override; flag_wait( "initial_blackscreen_passed" ); - maps/mp/zombies/_zm_game_module::turn_power_on_and_open_doors(); + maps\mp\zombies\_zm_game_module::turn_power_on_and_open_doors(); flag_wait( "start_zombie_round_logic" ); wait 1; level notify( "revive_on" ); diff --git a/scripts/zm/locs/zm_transit_loc_diner.gsc b/scripts/zm/locs/zm_transit_loc_diner.gsc index 4371957b..f5526f35 100644 --- a/scripts/zm/locs/zm_transit_loc_diner.gsc +++ b/scripts/zm/locs/zm_transit_loc_diner.gsc @@ -1,21 +1,21 @@ -#include maps/mp/zombies/_zm_game_module; -#include maps/mp/zombies/_zm_utility; -#include common_scripts/utility; -#include maps/mp/_utility; -#include maps/mp/zombies/_zm; +#include maps\mp\zombies\_zm_game_module; +#include maps\mp\zombies\_zm_utility; +#include common_scripts\utility; +#include maps\mp\_utility; +#include maps\mp\zombies\_zm; -#include scripts/zm/replaced/utility; -#include scripts/zm/locs/loc_common; +#include scripts\zm\replaced\utility; +#include scripts\zm\locs\loc_common; struct_init() { - scripts/zm/replaced/utility::register_perk_struct( "specialty_armorvest", "zombie_vending_jugg", ( -3563, -7196, -59 ), ( 0, 0, 0 ) ); - scripts/zm/replaced/utility::register_perk_struct( "specialty_quickrevive", "zombie_vending_quickrevive", ( -6207, -6541, -46 ), ( 0, 60, 0 ) ); - scripts/zm/replaced/utility::register_perk_struct( "specialty_fastreload", "zombie_vending_sleight", ( -5470, -7859.5, 0 ), ( 0, 270, 0 ) ); - scripts/zm/replaced/utility::register_perk_struct( "specialty_rof", "zombie_vending_doubletap2", ( -4170, -7592, -63 ), ( 0, 270, 0 ) ); + scripts\zm\replaced\utility::register_perk_struct( "specialty_armorvest", "zombie_vending_jugg", ( -3563, -7196, -59 ), ( 0, 0, 0 ) ); + scripts\zm\replaced\utility::register_perk_struct( "specialty_quickrevive", "zombie_vending_quickrevive", ( -6207, -6541, -46 ), ( 0, 60, 0 ) ); + scripts\zm\replaced\utility::register_perk_struct( "specialty_fastreload", "zombie_vending_sleight", ( -5470, -7859.5, 0 ), ( 0, 270, 0 ) ); + scripts\zm\replaced\utility::register_perk_struct( "specialty_rof", "zombie_vending_doubletap2", ( -4170, -7592, -63 ), ( 0, 270, 0 ) ); ind = 0; - respawnpoints = maps/mp/gametypes_zm/_zm_gametype::get_player_spawns_for_gametype(); + respawnpoints = maps\mp\gametypes_zm\_zm_gametype::get_player_spawns_for_gametype(); for(i = 0; i < respawnpoints.size; i++) { if(respawnpoints[i].script_noteworthy == "zone_gas") @@ -33,7 +33,7 @@ struct_init() respawn.angles += (0, 180, 0); } - scripts/zm/replaced/utility::register_map_initial_spawnpoint( respawn.origin, respawn.angles, respawn.script_int ); + scripts\zm\replaced\utility::register_map_initial_spawnpoint( respawn.origin, respawn.angles, respawn.script_int ); } gameObjects = getEntArray( "script_model", "classname" ); @@ -113,7 +113,7 @@ main() init_barriers(); generatebuildabletarps(); disable_zombie_spawn_locations(); - scripts/zm/locs/loc_common::init(); + scripts\zm\locs\loc_common::init(); } treasure_chest_init() @@ -121,15 +121,15 @@ treasure_chest_init() chests = getstructarray( "treasure_chest_use", "targetname" ); level.chests = []; level.chests[0] = chests[3]; - maps/mp/zombies/_zm_magicbox::treasure_chest_init( "start_chest" ); + maps\mp\zombies\_zm_magicbox::treasure_chest_init( "start_chest" ); } init_wallbuys() { - scripts/zm/replaced/utility::wallbuy( "m14_zm", "m14", "weapon_upgrade", ( -5085, -7807, -5 ), ( 0, 0, 0 ) ); - scripts/zm/replaced/utility::wallbuy( "rottweil72_zm", "olympia", "weapon_upgrade", ( -4576, -7748, 18 ), ( 0, 90, 0 ) ); - scripts/zm/replaced/utility::wallbuy( "mp5k_zm", "mp5", "weapon_upgrade", ( -5489, -7982.7, 62 ), ( 0, 1, 0 ) ); - scripts/zm/replaced/utility::wallbuy( "tazer_knuckles_zm", "tazer_knuckles", "tazer_upgrade", ( -6265, -7941, 100 ), ( 0, 90, 0 ) ); + scripts\zm\replaced\utility::wallbuy( "m14_zm", "m14", "weapon_upgrade", ( -5085, -7807, -5 ), ( 0, 0, 0 ) ); + scripts\zm\replaced\utility::wallbuy( "rottweil72_zm", "olympia", "weapon_upgrade", ( -4576, -7748, 18 ), ( 0, 90, 0 ) ); + scripts\zm\replaced\utility::wallbuy( "mp5k_zm", "mp5", "weapon_upgrade", ( -5489, -7982.7, 62 ), ( 0, 1, 0 ) ); + scripts\zm\replaced\utility::wallbuy( "tazer_knuckles_zm", "tazer_knuckles", "tazer_upgrade", ( -6265, -7941, 100 ), ( 0, 90, 0 ) ); } init_barriers() @@ -140,9 +140,9 @@ init_barriers() origin = ( -6350, -7046, -60 ); angles = ( 0, 165, 0 ); - scripts/zm/replaced/utility::barrier( "collision_player_wall_64x64x10", origin + (anglesToUp(angles) * 32), angles ); - scripts/zm/replaced/utility::barrier( "collision_player_wall_64x64x10", origin + (anglesToUp(angles) * 96), angles ); - scripts/zm/replaced/utility::barrier( "afr_barrel_biohazard_white_rust", origin + (anglesToForward(angles) * -24) + (anglesToRight(angles) * -16) + (anglesToUp(angles) * 14), angles + (0, 90, 90) ); + scripts\zm\replaced\utility::barrier( "collision_player_wall_64x64x10", origin + (anglesToUp(angles) * 32), angles ); + scripts\zm\replaced\utility::barrier( "collision_player_wall_64x64x10", origin + (anglesToUp(angles) * 96), angles ); + scripts\zm\replaced\utility::barrier( "afr_barrel_biohazard_white_rust", origin + (anglesToForward(angles) * -24) + (anglesToRight(angles) * -16) + (anglesToUp(angles) * 14), angles + (0, 90, 90) ); } generatebuildabletarps() diff --git a/scripts/zm/locs/zm_transit_loc_power.gsc b/scripts/zm/locs/zm_transit_loc_power.gsc index 0489a2ec..884a0d61 100644 --- a/scripts/zm/locs/zm_transit_loc_power.gsc +++ b/scripts/zm/locs/zm_transit_loc_power.gsc @@ -1,32 +1,32 @@ -#include maps/mp/zombies/_zm_game_module; -#include maps/mp/zombies/_zm_utility; -#include common_scripts/utility; -#include maps/mp/_utility; -#include maps/mp/zombies/_zm; -#include maps/mp/zombies/_zm_zonemgr; +#include maps\mp\zombies\_zm_game_module; +#include maps\mp\zombies\_zm_utility; +#include common_scripts\utility; +#include maps\mp\_utility; +#include maps\mp\zombies\_zm; +#include maps\mp\zombies\_zm_zonemgr; -#include scripts/zm/replaced/utility; -#include scripts/zm/locs/loc_common; +#include scripts\zm\replaced\utility; +#include scripts\zm\locs\loc_common; struct_init() { - replaceFunc(maps/mp/zombies/_zm_zonemgr::manage_zones, ::manage_zones); + replaceFunc(maps\mp\zombies\_zm_zonemgr::manage_zones, ::manage_zones); - scripts/zm/replaced/utility::register_perk_struct( "specialty_armorvest", "zombie_vending_jugg", ( 10952, 8055, -565 ), ( 0, 270, 0 ) ); - scripts/zm/replaced/utility::register_perk_struct( "specialty_quickrevive", "zombie_vending_quickrevive", ( 11855, 7308, -758 ), ( 0, 220, 0 ) ); - scripts/zm/replaced/utility::register_perk_struct( "specialty_fastreload", "zombie_vending_sleight", ( 11571, 7723, -757 ), ( 0, 0, 0 ) ); - scripts/zm/replaced/utility::register_perk_struct( "specialty_rof", "zombie_vending_doubletap2", ( 11414, 8930, -352 ), ( 0, 0, 0 ) ); - scripts/zm/replaced/utility::register_perk_struct( "specialty_scavenger", "zombie_vending_tombstone", ( 10946, 8308.77, -408 ), ( 0, 270, 0 ) ); - scripts/zm/replaced/utility::register_perk_struct( "specialty_weapupgrade", "p6_anim_zm_buildable_pap_on", ( 12333, 8158, -752 ), ( 0, 180, 0 ) ); + scripts\zm\replaced\utility::register_perk_struct( "specialty_armorvest", "zombie_vending_jugg", ( 10952, 8055, -565 ), ( 0, 270, 0 ) ); + scripts\zm\replaced\utility::register_perk_struct( "specialty_quickrevive", "zombie_vending_quickrevive", ( 11855, 7308, -758 ), ( 0, 220, 0 ) ); + scripts\zm\replaced\utility::register_perk_struct( "specialty_fastreload", "zombie_vending_sleight", ( 11571, 7723, -757 ), ( 0, 0, 0 ) ); + scripts\zm\replaced\utility::register_perk_struct( "specialty_rof", "zombie_vending_doubletap2", ( 11414, 8930, -352 ), ( 0, 0, 0 ) ); + scripts\zm\replaced\utility::register_perk_struct( "specialty_scavenger", "zombie_vending_tombstone", ( 10946, 8308.77, -408 ), ( 0, 270, 0 ) ); + scripts\zm\replaced\utility::register_perk_struct( "specialty_weapupgrade", "p6_anim_zm_buildable_pap_on", ( 12333, 8158, -752 ), ( 0, 180, 0 ) ); - scripts/zm/replaced/utility::register_map_initial_spawnpoint( (10160, 8060, -554), (0, 0, 0), 1 ); - scripts/zm/replaced/utility::register_map_initial_spawnpoint( (10160, 7996, -554), (0, 0, 0), 1 ); - scripts/zm/replaced/utility::register_map_initial_spawnpoint( (10160, 7932, -554), (0, 0, 0), 1 ); - scripts/zm/replaced/utility::register_map_initial_spawnpoint( (10160, 7868, -554), (0, 0, 0), 1 ); - scripts/zm/replaced/utility::register_map_initial_spawnpoint( (10160, 7772, -554), (0, 0, 0), 2 ); - scripts/zm/replaced/utility::register_map_initial_spawnpoint( (10160, 7708, -554), (0, 0, 0), 2 ); - scripts/zm/replaced/utility::register_map_initial_spawnpoint( (10160, 7644, -554), (0, 0, 0), 2 ); - scripts/zm/replaced/utility::register_map_initial_spawnpoint( (10160, 7580, -554), (0, 0, 0), 2 ); + scripts\zm\replaced\utility::register_map_initial_spawnpoint( (10160, 8060, -554), (0, 0, 0), 1 ); + scripts\zm\replaced\utility::register_map_initial_spawnpoint( (10160, 7996, -554), (0, 0, 0), 1 ); + scripts\zm\replaced\utility::register_map_initial_spawnpoint( (10160, 7932, -554), (0, 0, 0), 1 ); + scripts\zm\replaced\utility::register_map_initial_spawnpoint( (10160, 7868, -554), (0, 0, 0), 1 ); + scripts\zm\replaced\utility::register_map_initial_spawnpoint( (10160, 7772, -554), (0, 0, 0), 2 ); + scripts\zm\replaced\utility::register_map_initial_spawnpoint( (10160, 7708, -554), (0, 0, 0), 2 ); + scripts\zm\replaced\utility::register_map_initial_spawnpoint( (10160, 7644, -554), (0, 0, 0), 2 ); + scripts\zm\replaced\utility::register_map_initial_spawnpoint( (10160, 7580, -554), (0, 0, 0), 2 ); } precache() @@ -43,8 +43,8 @@ main() generatebuildabletarps(); disable_zombie_spawn_locations(); level thread activate_core(); - level thread maps/mp/zm_transit::falling_death_init(); - scripts/zm/locs/loc_common::init(); + level thread maps\mp\zm_transit::falling_death_init(); + scripts\zm\locs\loc_common::init(); } treasure_chest_init() @@ -52,16 +52,16 @@ treasure_chest_init() chests = getstructarray( "treasure_chest_use", "targetname" ); level.chests = []; level.chests[0] = chests[2]; - maps/mp/zombies/_zm_magicbox::treasure_chest_init( "pow_chest" ); + maps\mp\zombies\_zm_magicbox::treasure_chest_init( "pow_chest" ); } init_wallbuys() { - scripts/zm/replaced/utility::wallbuy( "m14_zm", "m14", "weapon_upgrade", ( 10559, 8220, -495 ), ( 0, 90, 0) ); - scripts/zm/replaced/utility::wallbuy( "rottweil72_zm", "olympia", "weapon_upgrade", ( 10678, 8135, -476 ), ( 0, 180, 0 ) ); - scripts/zm/replaced/utility::wallbuy( "870mcs_zm", "870mcs", "weapon_upgrade", ( 11778, 7664, -697 ), ( 0, 170, 0 ) ); - scripts/zm/replaced/utility::wallbuy( "mp5k_zm", "mp5", "weapon_upgrade", ( 11452, 8692, -521 ), ( 0, 90, 0 ) ); - scripts/zm/replaced/utility::wallbuy( "bowie_knife_zm", "bowie_knife", "bowie_upgrade", ( 10835, 8145, -353 ), ( 0, 0, 0 ) ); + scripts\zm\replaced\utility::wallbuy( "m14_zm", "m14", "weapon_upgrade", ( 10559, 8220, -495 ), ( 0, 90, 0) ); + scripts\zm\replaced\utility::wallbuy( "rottweil72_zm", "olympia", "weapon_upgrade", ( 10678, 8135, -476 ), ( 0, 180, 0 ) ); + scripts\zm\replaced\utility::wallbuy( "870mcs_zm", "870mcs", "weapon_upgrade", ( 11778, 7664, -697 ), ( 0, 170, 0 ) ); + scripts\zm\replaced\utility::wallbuy( "mp5k_zm", "mp5", "weapon_upgrade", ( 11452, 8692, -521 ), ( 0, 90, 0 ) ); + scripts\zm\replaced\utility::wallbuy( "bowie_knife_zm", "bowie_knife", "bowie_upgrade", ( 10835, 8145, -353 ), ( 0, 0, 0 ) ); } init_barriers() @@ -69,16 +69,16 @@ init_barriers() // fog before power station origin = ( 10215, 7265, -570 ); angles = ( 0, 0, 0 ); - scripts/zm/replaced/utility::barrier( "collision_player_wall_512x512x10", origin + (anglesToUp(angles) * 256), angles ); - scripts/zm/replaced/utility::barrier( "veh_t6_civ_microbus_dead", origin + (anglesToForward(angles) * 96) + (anglesToRight(angles) * 48), angles ); - scripts/zm/replaced/utility::barrier( "veh_t6_civ_60s_coupe_dead", origin + (anglesToForward(angles) * -112) + (anglesToRight(angles) * 80), angles + (0, 30, 0) ); + scripts\zm\replaced\utility::barrier( "collision_player_wall_512x512x10", origin + (anglesToUp(angles) * 256), angles ); + scripts\zm\replaced\utility::barrier( "veh_t6_civ_microbus_dead", origin + (anglesToForward(angles) * 96) + (anglesToRight(angles) * 48), angles ); + scripts\zm\replaced\utility::barrier( "veh_t6_civ_60s_coupe_dead", origin + (anglesToForward(angles) * -112) + (anglesToRight(angles) * 80), angles + (0, 30, 0) ); // fog after power station origin = ( 10215, 8670, -579 ); angles = ( 0, 7.5, 0 ); - scripts/zm/replaced/utility::barrier( "collision_player_wall_512x512x10", origin + (anglesToForward(angles) * -128) + (anglesToUp(angles) * 256), angles ); - scripts/zm/replaced/utility::barrier( "collision_player_wall_512x512x10", origin + (anglesToForward(angles) * 64) + (anglesToUp(angles) * 256), angles ); - scripts/zm/replaced/utility::barrier( "p6_zm_rocks_large_cluster_01", origin + (anglesToForward(angles) * -176) + (anglesToRight(angles) * -368) + (anglesToUp(angles) * 256), angles + (0, -15, 0) ); + scripts\zm\replaced\utility::barrier( "collision_player_wall_512x512x10", origin + (anglesToForward(angles) * -128) + (anglesToUp(angles) * 256), angles ); + scripts\zm\replaced\utility::barrier( "collision_player_wall_512x512x10", origin + (anglesToForward(angles) * 64) + (anglesToUp(angles) * 256), angles ); + scripts\zm\replaced\utility::barrier( "p6_zm_rocks_large_cluster_01", origin + (anglesToForward(angles) * -176) + (anglesToRight(angles) * -368) + (anglesToUp(angles) * 256), angles + (0, -15, 0) ); } show_powerswitch() @@ -102,14 +102,14 @@ activate_core() reactor_core_mover = getent( "core_mover", "targetname" ); reactor_core_audio = spawn( "script_origin", reactor_core_mover.origin ); - maps/mp/zm_transit_power::linkentitiestocoremover( reactor_core_mover ); + maps\mp\zm_transit_power::linkentitiestocoremover( reactor_core_mover ); flag_wait( "initial_blackscreen_passed" ); reactor_core_mover playsound( "zmb_power_rise_start" ); reactor_core_mover playloopsound( "zmb_power_rise_loop", 0.75 ); - reactor_core_mover thread maps/mp/zm_transit_power::coremove( 30 ); + reactor_core_mover thread maps\mp\zm_transit_power::coremove( 30 ); wait power_event_time; @@ -158,7 +158,7 @@ manage_zones( initial_zone ) deactivate_initial_barrier_goals(); zone_choke = 0; - 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(); for ( i = 0; i < spawn_points.size; i++ ) { spawn_points[ i ].locked = 1; @@ -276,7 +276,7 @@ manage_zones( initial_zone ) } } [[ level.create_spawner_list_func ]]( zkeys ); - level.active_zone_names = maps/mp/zombies/_zm_zonemgr::get_active_zone_names(); + level.active_zone_names = maps\mp\zombies\_zm_zonemgr::get_active_zone_names(); wait 1; } } \ No newline at end of file diff --git a/scripts/zm/locs/zm_transit_loc_tunnel.gsc b/scripts/zm/locs/zm_transit_loc_tunnel.gsc index 3dc68ce8..55f4fbc3 100644 --- a/scripts/zm/locs/zm_transit_loc_tunnel.gsc +++ b/scripts/zm/locs/zm_transit_loc_tunnel.gsc @@ -1,26 +1,26 @@ -#include maps/mp/zombies/_zm_game_module; -#include maps/mp/zombies/_zm_utility; -#include common_scripts/utility; -#include maps/mp/_utility; -#include maps/mp/zombies/_zm; -#include maps/mp/zombies/_zm_zonemgr; +#include maps\mp\zombies\_zm_game_module; +#include maps\mp\zombies\_zm_utility; +#include common_scripts\utility; +#include maps\mp\_utility; +#include maps\mp\zombies\_zm; +#include maps\mp\zombies\_zm_zonemgr; -#include scripts/zm/replaced/utility; -#include scripts/zm/locs/loc_common; +#include scripts\zm\replaced\utility; +#include scripts\zm\locs\loc_common; struct_init() { - replaceFunc(maps/mp/zombies/_zm_zonemgr::manage_zones, ::manage_zones); + replaceFunc(maps\mp\zombies\_zm_zonemgr::manage_zones, ::manage_zones); - scripts/zm/replaced/utility::register_perk_struct( "specialty_armorvest", "zombie_vending_jugg", ( -11541, -2630, 194 ), ( 0, -180, 0 ) ); - scripts/zm/replaced/utility::register_perk_struct( "specialty_quickrevive", "zombie_vending_quickrevive", ( -10780, -2565, 224 ), ( 0, 270, 0 ) ); - scripts/zm/replaced/utility::register_perk_struct( "specialty_fastreload", "zombie_vending_sleight", ( -11373, -1674, 192 ), ( 0, -89, 0 ) ); - scripts/zm/replaced/utility::register_perk_struct( "specialty_rof", "zombie_vending_doubletap2", ( -11170, -590, 196 ), ( 0, -10, 0 ) ); - scripts/zm/replaced/utility::register_perk_struct( "specialty_longersprint", "zombie_vending_marathon", ( -11681, -734, 228 ), ( 0, -19, 0 ) ); - scripts/zm/replaced/utility::register_perk_struct( "specialty_weapupgrade", "p6_anim_zm_buildable_pap_on", ( -11301, -2096, 184 ), ( 0, 115, 0 ) ); + scripts\zm\replaced\utility::register_perk_struct( "specialty_armorvest", "zombie_vending_jugg", ( -11541, -2630, 194 ), ( 0, -180, 0 ) ); + scripts\zm\replaced\utility::register_perk_struct( "specialty_quickrevive", "zombie_vending_quickrevive", ( -10780, -2565, 224 ), ( 0, 270, 0 ) ); + scripts\zm\replaced\utility::register_perk_struct( "specialty_fastreload", "zombie_vending_sleight", ( -11373, -1674, 192 ), ( 0, -89, 0 ) ); + scripts\zm\replaced\utility::register_perk_struct( "specialty_rof", "zombie_vending_doubletap2", ( -11170, -590, 196 ), ( 0, -10, 0 ) ); + scripts\zm\replaced\utility::register_perk_struct( "specialty_longersprint", "zombie_vending_marathon", ( -11681, -734, 228 ), ( 0, -19, 0 ) ); + scripts\zm\replaced\utility::register_perk_struct( "specialty_weapupgrade", "p6_anim_zm_buildable_pap_on", ( -11301, -2096, 184 ), ( 0, 115, 0 ) ); ind = 0; - respawnpoints = maps/mp/gametypes_zm/_zm_gametype::get_player_spawns_for_gametype(); + respawnpoints = maps\mp\gametypes_zm\_zm_gametype::get_player_spawns_for_gametype(); for(i = 0; i < respawnpoints.size; i++) { if(respawnpoints[i].script_noteworthy == "zone_amb_tunnel") @@ -38,7 +38,7 @@ struct_init() // respawn.angles += (0, 180, 0); // } - scripts/zm/replaced/utility::register_map_initial_spawnpoint( respawn.origin, respawn.angles, respawn.script_int ); + scripts\zm\replaced\utility::register_map_initial_spawnpoint( respawn.origin, respawn.angles, respawn.script_int ); } } @@ -52,30 +52,30 @@ main() init_wallbuys(); init_barriers(); thread disable_zombie_spawn_locations(); - scripts/zm/locs/loc_common::init(); + scripts\zm\locs\loc_common::init(); } init_wallbuys() { - scripts/zm/replaced/utility::wallbuy( "m14_zm", "m14", "weapon_upgrade", ( -11166, -2844, 247 ), ( 0, -86, 0 ) ); - scripts/zm/replaced/utility::wallbuy( "rottweil72_zm", "olympia", "weapon_upgrade", ( -10787, -1430, 247 ), ( 0, 88, 0 ) ); - scripts/zm/replaced/utility::wallbuy( "mp5k_zm", "mp5", "weapon_upgrade", ( -10656, -752, 247 ), ( 0, 83, 0 ) ); - scripts/zm/replaced/utility::wallbuy( "m16_zm", "m16", "weapon_upgrade", ( -11839, -1695.1, 287 ), ( 0, 270, 0 ) ); - scripts/zm/replaced/utility::wallbuy( "sticky_grenade_zm", "sticky_grenade", "weapon_upgrade", ( -11839, -2406, 283 ), ( 0, -93, 0 ) ); + scripts\zm\replaced\utility::wallbuy( "m14_zm", "m14", "weapon_upgrade", ( -11166, -2844, 247 ), ( 0, -86, 0 ) ); + scripts\zm\replaced\utility::wallbuy( "rottweil72_zm", "olympia", "weapon_upgrade", ( -10787, -1430, 247 ), ( 0, 88, 0 ) ); + scripts\zm\replaced\utility::wallbuy( "mp5k_zm", "mp5", "weapon_upgrade", ( -10656, -752, 247 ), ( 0, 83, 0 ) ); + scripts\zm\replaced\utility::wallbuy( "m16_zm", "m16", "weapon_upgrade", ( -11839, -1695.1, 287 ), ( 0, 270, 0 ) ); + scripts\zm\replaced\utility::wallbuy( "sticky_grenade_zm", "sticky_grenade", "weapon_upgrade", ( -11839, -2406, 283 ), ( 0, -93, 0 ) ); } init_barriers() { origin = ( -11270, -500, 255 ); angles = ( 0, 195, 0 ); - scripts/zm/replaced/utility::barrier( "collision_player_wall_512x512x10", origin + (anglesToRight(angles) * -25) + (anglesToForward(angles) * 150), angles ); - scripts/zm/replaced/utility::barrier( "veh_t6_civ_60s_coupe_dead", origin + (anglesToUp(angles) * -63) + (anglesToForward(angles) * 125) + (anglesToRight(angles) * 25), angles ); - scripts/zm/replaced/utility::barrier( "veh_t6_civ_smallwagon_dead", origin + (anglesToUp(angles) * -63) + (anglesToForward(angles) * -30) + (anglesToRight(angles) * 50), angles + (0, -90, 0) ); + scripts\zm\replaced\utility::barrier( "collision_player_wall_512x512x10", origin + (anglesToRight(angles) * -25) + (anglesToForward(angles) * 150), angles ); + scripts\zm\replaced\utility::barrier( "veh_t6_civ_60s_coupe_dead", origin + (anglesToUp(angles) * -63) + (anglesToForward(angles) * 125) + (anglesToRight(angles) * 25), angles ); + scripts\zm\replaced\utility::barrier( "veh_t6_civ_smallwagon_dead", origin + (anglesToUp(angles) * -63) + (anglesToForward(angles) * -30) + (anglesToRight(angles) * 50), angles + (0, -90, 0) ); origin = ( -10750, -3275, 255 ); angles = ( 0, 195, 0 ); - scripts/zm/replaced/utility::barrier( "collision_player_wall_512x512x10", origin + (anglesToRight(angles) * 55), angles ); - scripts/zm/replaced/utility::barrier( "veh_t6_civ_movingtrk_cab_dead", origin, angles ); + scripts\zm\replaced\utility::barrier( "collision_player_wall_512x512x10", origin + (anglesToRight(angles) * 55), angles ); + scripts\zm\replaced\utility::barrier( "veh_t6_civ_movingtrk_cab_dead", origin, angles ); } disable_zombie_spawn_locations() @@ -134,7 +134,7 @@ manage_zones( initial_zone ) deactivate_initial_barrier_goals(); zone_choke = 0; - 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(); for ( i = 0; i < spawn_points.size; i++ ) { spawn_points[ i ].locked = 1; @@ -252,7 +252,7 @@ manage_zones( initial_zone ) } } [[ level.create_spawner_list_func ]]( zkeys ); - level.active_zone_names = maps/mp/zombies/_zm_zonemgr::get_active_zone_names(); + level.active_zone_names = maps\mp\zombies\_zm_zonemgr::get_active_zone_names(); wait 1; } } \ No newline at end of file diff --git a/scripts/zm/replaced/_zm.gsc b/scripts/zm/replaced/_zm.gsc index 8bb412d3..f90cc7a5 100644 --- a/scripts/zm/replaced/_zm.gsc +++ b/scripts/zm/replaced/_zm.gsc @@ -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(); diff --git a/scripts/zm/replaced/_zm_afterlife.gsc b/scripts/zm/replaced/_zm_afterlife.gsc index 998b2208..bd1a4318 100644 --- a/scripts/zm/replaced/_zm_afterlife.gsc +++ b/scripts/zm/replaced/_zm_afterlife.gsc @@ -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() { diff --git a/scripts/zm/replaced/_zm_ai_basic.gsc b/scripts/zm/replaced/_zm_ai_basic.gsc index e9822c7d..3eb06cd6 100644 --- a/scripts/zm/replaced/_zm_ai_basic.gsc +++ b/scripts/zm/replaced/_zm_ai_basic.gsc @@ -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; } } diff --git a/scripts/zm/replaced/_zm_ai_brutus.gsc b/scripts/zm/replaced/_zm_ai_brutus.gsc index f37e864a..40c0b361 100644 --- a/scripts/zm/replaced/_zm_ai_brutus.gsc +++ b/scripts/zm/replaced/_zm_ai_brutus.gsc @@ -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 ); diff --git a/scripts/zm/replaced/_zm_audio_announcer.gsc b/scripts/zm/replaced/_zm_audio_announcer.gsc index 5e3e9f0d..9b493bd3 100644 --- a/scripts/zm/replaced/_zm_audio_announcer.gsc +++ b/scripts/zm/replaced/_zm_audio_announcer.gsc @@ -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 ) { diff --git a/scripts/zm/replaced/_zm_banking.gsc b/scripts/zm/replaced/_zm_banking.gsc index 8d5f0a44..f99b7cb2 100644 --- a/scripts/zm/replaced/_zm_banking.gsc +++ b/scripts/zm/replaced/_zm_banking.gsc @@ -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() { diff --git a/scripts/zm/replaced/_zm_blockers.gsc b/scripts/zm/replaced/_zm_blockers.gsc index dcaf0f0a..3bedf9da 100644 --- a/scripts/zm/replaced/_zm_blockers.gsc +++ b/scripts/zm/replaced/_zm_blockers.gsc @@ -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 ) ) diff --git a/scripts/zm/replaced/_zm_buildables_pooled.gsc b/scripts/zm/replaced/_zm_buildables_pooled.gsc index 583ad3d4..c85fe3c1 100644 --- a/scripts/zm/replaced/_zm_buildables_pooled.gsc +++ b/scripts/zm/replaced/_zm_buildables_pooled.gsc @@ -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 ) { diff --git a/scripts/zm/replaced/_zm_chugabud.gsc b/scripts/zm/replaced/_zm_chugabud.gsc index 246d9152..735aa99b 100644 --- a/scripts/zm/replaced/_zm_chugabud.gsc +++ b/scripts/zm/replaced/_zm_chugabud.gsc @@ -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 ) { diff --git a/scripts/zm/replaced/_zm_equip_electrictrap.gsc b/scripts/zm/replaced/_zm_equip_electrictrap.gsc index c16f0e83..ce8b246b 100644 --- a/scripts/zm/replaced/_zm_equip_electrictrap.gsc +++ b/scripts/zm/replaced/_zm_equip_electrictrap.gsc @@ -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(); diff --git a/scripts/zm/replaced/_zm_equip_subwoofer.gsc b/scripts/zm/replaced/_zm_equip_subwoofer.gsc index d5dd7ac8..95f0468f 100644 --- a/scripts/zm/replaced/_zm_equip_subwoofer.gsc +++ b/scripts/zm/replaced/_zm_equip_subwoofer.gsc @@ -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 ) { diff --git a/scripts/zm/replaced/_zm_equip_turret.gsc b/scripts/zm/replaced/_zm_equip_turret.gsc index e7c01164..1369a18d 100644 --- a/scripts/zm/replaced/_zm_equip_turret.gsc +++ b/scripts/zm/replaced/_zm_equip_turret.gsc @@ -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; } } diff --git a/scripts/zm/replaced/_zm_equipment.gsc b/scripts/zm/replaced/_zm_equipment.gsc index 8f31d0c1..f4f91cdb 100644 --- a/scripts/zm/replaced/_zm_equipment.gsc +++ b/scripts/zm/replaced/_zm_equipment.gsc @@ -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 ); } } \ No newline at end of file diff --git a/scripts/zm/replaced/_zm_game_module.gsc b/scripts/zm/replaced/_zm_game_module.gsc index 6a4bbd75..284579a3 100644 --- a/scripts/zm/replaced/_zm_game_module.gsc +++ b/scripts/zm/replaced/_zm_game_module.gsc @@ -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())) diff --git a/scripts/zm/replaced/_zm_gametype.gsc b/scripts/zm/replaced/_zm_gametype.gsc index 72d7ab6a..493b5c39 100644 --- a/scripts/zm/replaced/_zm_gametype.gsc +++ b/scripts/zm/replaced/_zm_gametype.gsc @@ -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 ) ) diff --git a/scripts/zm/replaced/_zm_laststand.gsc b/scripts/zm/replaced/_zm_laststand.gsc index 0d4e1bc0..ff68e4c2 100644 --- a/scripts/zm/replaced/_zm_laststand.gsc +++ b/scripts/zm/replaced/_zm_laststand.gsc @@ -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; diff --git a/scripts/zm/replaced/_zm_magicbox.gsc b/scripts/zm/replaced/_zm_magicbox.gsc index fc55bf55..ac4304cb 100644 --- a/scripts/zm/replaced/_zm_magicbox.gsc +++ b/scripts/zm/replaced/_zm_magicbox.gsc @@ -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; } diff --git a/scripts/zm/replaced/_zm_melee_weapon.gsc b/scripts/zm/replaced/_zm_melee_weapon.gsc index 25c2b5ea..538529b9 100644 --- a/scripts/zm/replaced/_zm_melee_weapon.gsc +++ b/scripts/zm/replaced/_zm_melee_weapon.gsc @@ -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 { diff --git a/scripts/zm/replaced/_zm_perks.gsc b/scripts/zm/replaced/_zm_perks.gsc index fc11deb5..f415f2a1 100644 --- a/scripts/zm/replaced/_zm_perks.gsc +++ b/scripts/zm/replaced/_zm_perks.gsc @@ -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; } diff --git a/scripts/zm/replaced/_zm_playerhealth.gsc b/scripts/zm/replaced/_zm_playerhealth.gsc index 0e311740..2e343a2f 100644 --- a/scripts/zm/replaced/_zm_playerhealth.gsc +++ b/scripts/zm/replaced/_zm_playerhealth.gsc @@ -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 ); } } } diff --git a/scripts/zm/replaced/_zm_power.gsc b/scripts/zm/replaced/_zm_power.gsc index 176f51c7..d5c0a007 100644 --- a/scripts/zm/replaced/_zm_power.gsc +++ b/scripts/zm/replaced/_zm_power.gsc @@ -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" ); } \ No newline at end of file diff --git a/scripts/zm/replaced/_zm_powerups.gsc b/scripts/zm/replaced/_zm_powerups.gsc index f44472b7..c3a03bd6 100644 --- a/scripts/zm/replaced/_zm_powerups.gsc +++ b/scripts/zm/replaced/_zm_powerups.gsc @@ -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 ) diff --git a/scripts/zm/replaced/_zm_spawner.gsc b/scripts/zm/replaced/_zm_spawner.gsc index 7ff6b442..172c5958 100644 --- a/scripts/zm/replaced/_zm_spawner.gsc +++ b/scripts/zm/replaced/_zm_spawner.gsc @@ -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; } diff --git a/scripts/zm/replaced/_zm_traps.gsc b/scripts/zm/replaced/_zm_traps.gsc index 333c7766..2accb791 100644 --- a/scripts/zm/replaced/_zm_traps.gsc +++ b/scripts/zm/replaced/_zm_traps.gsc @@ -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 { diff --git a/scripts/zm/replaced/_zm_weap_ballistic_knife.gsc b/scripts/zm/replaced/_zm_weap_ballistic_knife.gsc index c92d2ee5..e678ad17 100644 --- a/scripts/zm/replaced/_zm_weap_ballistic_knife.gsc +++ b/scripts/zm/replaced/_zm_weap_ballistic_knife.gsc @@ -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; } diff --git a/scripts/zm/replaced/_zm_weap_claymore.gsc b/scripts/zm/replaced/_zm_weap_claymore.gsc index 029ad83f..f1027cb9 100644 --- a/scripts/zm/replaced/_zm_weap_claymore.gsc +++ b/scripts/zm/replaced/_zm_weap_claymore.gsc @@ -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" ); } } } diff --git a/scripts/zm/replaced/_zm_weap_emp_bomb.gsc b/scripts/zm/replaced/_zm_weap_emp_bomb.gsc index 6e7de761..2be7f804 100644 --- a/scripts/zm/replaced/_zm_weap_emp_bomb.gsc +++ b/scripts/zm/replaced/_zm_weap_emp_bomb.gsc @@ -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 ]](); diff --git a/scripts/zm/replaced/_zm_weap_jetgun.gsc b/scripts/zm/replaced/_zm_weap_jetgun.gsc index 7f28745f..bfcbdb27 100644 --- a/scripts/zm/replaced/_zm_weap_jetgun.gsc +++ b/scripts/zm/replaced/_zm_weap_jetgun.gsc @@ -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 diff --git a/scripts/zm/replaced/_zm_weap_slowgun.gsc b/scripts/zm/replaced/_zm_weap_slowgun.gsc index b15a36af..c7fce1c1 100644 --- a/scripts/zm/replaced/_zm_weap_slowgun.gsc +++ b/scripts/zm/replaced/_zm_weap_slowgun.gsc @@ -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() { diff --git a/scripts/zm/replaced/_zm_weapons.gsc b/scripts/zm/replaced/_zm_weapons.gsc index f05b79ba..6b91dc21 100644 --- a/scripts/zm/replaced/_zm_weapons.gsc +++ b/scripts/zm/replaced/_zm_weapons.gsc @@ -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; } \ No newline at end of file diff --git a/scripts/zm/replaced/utility.gsc b/scripts/zm/replaced/utility.gsc index dbaf6be3..69f1b73e 100644 --- a/scripts/zm/replaced/utility.gsc +++ b/scripts/zm/replaced/utility.gsc @@ -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"; diff --git a/scripts/zm/replaced/zgrief.gsc b/scripts/zm/replaced/zgrief.gsc index de04acee..b71a946d 100644 --- a/scripts/zm/replaced/zgrief.gsc +++ b/scripts/zm/replaced/zgrief.gsc @@ -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; } } \ No newline at end of file diff --git a/scripts/zm/replaced/zm_alcatraz_classic.gsc b/scripts/zm/replaced/zm_alcatraz_classic.gsc index 438eb454..9ff54e32 100644 --- a/scripts/zm/replaced/zm_alcatraz_classic.gsc +++ b/scripts/zm/replaced/zm_alcatraz_classic.gsc @@ -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; diff --git a/scripts/zm/replaced/zm_buried_buildables.gsc b/scripts/zm/replaced/zm_buried_buildables.gsc index fd489bc6..3db0e2e9 100644 --- a/scripts/zm/replaced/zm_buried_buildables.gsc +++ b/scripts/zm/replaced/zm_buried_buildables.gsc @@ -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"; diff --git a/scripts/zm/replaced/zm_highrise_classic.gsc b/scripts/zm/replaced/zm_highrise_classic.gsc index 5c1a7be3..051a894b 100644 --- a/scripts/zm/replaced/zm_highrise_classic.gsc +++ b/scripts/zm/replaced/zm_highrise_classic.gsc @@ -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--; diff --git a/scripts/zm/replaced/zm_tomb_craftables.gsc b/scripts/zm/replaced/zm_tomb_craftables.gsc index 77d382e6..cb89c6b0 100644 --- a/scripts/zm/replaced/zm_tomb_craftables.gsc +++ b/scripts/zm/replaced/zm_tomb_craftables.gsc @@ -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; } diff --git a/scripts/zm/replaced/zm_tomb_dig.gsc b/scripts/zm/replaced/zm_tomb_dig.gsc index fb7b0b0d..fef08286 100644 --- a/scripts/zm/replaced/zm_tomb_dig.gsc +++ b/scripts/zm/replaced/zm_tomb_dig.gsc @@ -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 ) diff --git a/scripts/zm/replaced/zm_transit.gsc b/scripts/zm/replaced/zm_transit.gsc index 51c265bf..b9f6e1c8 100644 --- a/scripts/zm/replaced/zm_transit.gsc +++ b/scripts/zm/replaced/zm_transit.gsc @@ -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; } diff --git a/scripts/zm/replaced/zm_transit_gamemodes.gsc b/scripts/zm/replaced/zm_transit_gamemodes.gsc index 623afa7a..d140fd44 100644 --- a/scripts/zm/replaced/zm_transit_gamemodes.gsc +++ b/scripts/zm/replaced/zm_transit_gamemodes.gsc @@ -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 ); } \ No newline at end of file diff --git a/scripts/zm/replaced/zmeat.gsc b/scripts/zm/replaced/zmeat.gsc index f6c61939..17d72486 100644 --- a/scripts/zm/replaced/zmeat.gsc +++ b/scripts/zm/replaced/zmeat.gsc @@ -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; diff --git a/scripts/zm/zgrief/zgrief_reimagined.gsc b/scripts/zm/zgrief/zgrief_reimagined.gsc index a7285d62..e3421670 100644 --- a/scripts/zm/zgrief/zgrief_reimagined.gsc +++ b/scripts/zm/zgrief/zgrief_reimagined.gsc @@ -4,13 +4,13 @@ #include maps\mp\gametypes_zm\_hud_util; #include maps\mp\gametypes_zm\_hud_message; -#include scripts/zm/replaced/_zm; -#include scripts/zm/replaced/_zm_audio_announcer; -#include scripts/zm/replaced/_zm_game_module; -#include scripts/zm/replaced/_zm_gametype; -#include scripts/zm/replaced/_zm_blockers; -#include scripts/zm/replaced/zgrief; -#include scripts/zm/replaced/zmeat; +#include scripts\zm\replaced\_zm; +#include scripts\zm\replaced\_zm_audio_announcer; +#include scripts\zm\replaced\_zm_game_module; +#include scripts\zm\replaced\_zm_gametype; +#include scripts\zm\replaced\_zm_blockers; +#include scripts\zm\replaced\zgrief; +#include scripts\zm\replaced\zmeat; main() { @@ -19,18 +19,18 @@ main() return; } - replaceFunc(maps/mp/zombies/_zm::getfreespawnpoint, scripts/zm/replaced/_zm::getfreespawnpoint); - replaceFunc(maps/mp/gametypes_zm/_zm_gametype::onspawnplayer, scripts/zm/replaced/_zm_gametype::onspawnplayer); - replaceFunc(maps/mp/gametypes_zm/_zm_gametype::onplayerspawned, scripts/zm/replaced/_zm_gametype::onplayerspawned); - replaceFunc(maps/mp/gametypes_zm/_zm_gametype::hide_gump_loading_for_hotjoiners, scripts/zm/replaced/_zm_gametype::hide_gump_loading_for_hotjoiners); - replaceFunc(maps/mp/zombies/_zm_audio_announcer::playleaderdialogonplayer, scripts/zm/replaced/_zm_audio_announcer::playleaderdialogonplayer); - replaceFunc(maps/mp/zombies/_zm_game_module::wait_for_team_death_and_round_end, scripts/zm/replaced/_zm_game_module::wait_for_team_death_and_round_end); - replaceFunc(maps/mp/zombies/_zm_blockers::handle_post_board_repair_rewards, scripts/zm/replaced/_zm_blockers::handle_post_board_repair_rewards); - replaceFunc(maps/mp/gametypes_zm/zgrief::meat_stink_on_ground, scripts/zm/replaced/zgrief::meat_stink_on_ground); - replaceFunc(maps/mp/gametypes_zm/zgrief::meat_stink_player, scripts/zm/replaced/zgrief::meat_stink_player); - replaceFunc(maps/mp/gametypes_zm/zmeat::item_meat_watch_trigger, scripts/zm/replaced/zmeat::item_meat_watch_trigger); - replaceFunc(maps/mp/gametypes_zm/zmeat::kick_meat_monitor, scripts/zm/replaced/zmeat::kick_meat_monitor); - replaceFunc(maps/mp/gametypes_zm/zmeat::last_stand_meat_nudge, scripts/zm/replaced/zmeat::last_stand_meat_nudge); + replaceFunc(maps\mp\zombies\_zm::getfreespawnpoint, scripts\zm\replaced\_zm::getfreespawnpoint); + replaceFunc(maps\mp\gametypes_zm\_zm_gametype::onspawnplayer, scripts\zm\replaced\_zm_gametype::onspawnplayer); + replaceFunc(maps\mp\gametypes_zm\_zm_gametype::onplayerspawned, scripts\zm\replaced\_zm_gametype::onplayerspawned); + replaceFunc(maps\mp\gametypes_zm\_zm_gametype::hide_gump_loading_for_hotjoiners, scripts\zm\replaced\_zm_gametype::hide_gump_loading_for_hotjoiners); + replaceFunc(maps\mp\zombies\_zm_audio_announcer::playleaderdialogonplayer, scripts\zm\replaced\_zm_audio_announcer::playleaderdialogonplayer); + replaceFunc(maps\mp\zombies\_zm_game_module::wait_for_team_death_and_round_end, scripts\zm\replaced\_zm_game_module::wait_for_team_death_and_round_end); + replaceFunc(maps\mp\zombies\_zm_blockers::handle_post_board_repair_rewards, scripts\zm\replaced\_zm_blockers::handle_post_board_repair_rewards); + replaceFunc(maps\mp\gametypes_zm\zgrief::meat_stink_on_ground, scripts\zm\replaced\zgrief::meat_stink_on_ground); + replaceFunc(maps\mp\gametypes_zm\zgrief::meat_stink_player, scripts\zm\replaced\zgrief::meat_stink_player); + replaceFunc(maps\mp\gametypes_zm\zmeat::item_meat_watch_trigger, scripts\zm\replaced\zmeat::item_meat_watch_trigger); + replaceFunc(maps\mp\gametypes_zm\zmeat::kick_meat_monitor, scripts\zm\replaced\zmeat::kick_meat_monitor); + replaceFunc(maps\mp\gametypes_zm\zmeat::last_stand_meat_nudge, scripts\zm\replaced\zmeat::last_stand_meat_nudge); } init() @@ -327,7 +327,7 @@ set_grief_vars() level._game_module_player_damage_callback = ::game_module_player_damage_callback; level._game_module_player_laststand_callback = ::grief_laststand_weapon_save; level.onplayerspawned_restore_previous_weapons = ::grief_laststand_weapons_return; - level.game_mode_spawn_player_logic = scripts/zm/replaced/zgrief::game_mode_spawn_player_logic; + level.game_mode_spawn_player_logic = scripts\zm\replaced\zgrief::game_mode_spawn_player_logic; if(isDefined(level.zombie_weapons["knife_ballistic_zm"])) { @@ -648,7 +648,7 @@ player_spawn_override() // set new initial spawns to be same as respawns already on map ind = 0; - respawnpoints = maps/mp/gametypes_zm/_zm_gametype::get_player_spawns_for_gametype(); + respawnpoints = maps\mp\gametypes_zm\_zm_gametype::get_player_spawns_for_gametype(); for(i = 0; i < respawnpoints.size; i++) { if(respawnpoints[i].script_noteworthy == "zone_stables") @@ -720,7 +720,7 @@ grief_onplayerconnect() self thread on_player_revived(); self thread headstomp_watcher(); self thread smoke_grenade_cluster_watcher(); - self thread maps/mp/gametypes_zm/zmeat::create_item_meat_watcher(); + self thread maps\mp\gametypes_zm\zmeat::create_item_meat_watcher(); self.killsconfirmed = 0; if(level.scr_zm_ui_gametype_obj == "zgrief" || level.scr_zm_ui_gametype_obj == "zcontainment") @@ -755,7 +755,7 @@ grief_onplayerdisconnect(disconnecting_player) if(level.scr_zm_ui_gametype_obj == "zgrief") { - if(disconnecting_player maps/mp/zombies/_zm_laststand::player_is_in_laststand()) + if(disconnecting_player maps\mp\zombies\_zm_laststand::player_is_in_laststand()) { increment_score(getOtherTeam(disconnecting_player.team)); } @@ -779,7 +779,7 @@ grief_onplayerdisconnect(disconnecting_player) encounters_team = "B"; } - scripts/zm/replaced/_zm_game_module::game_won(encounters_team); + scripts\zm\replaced\_zm_game_module::game_won(encounters_team); return; } @@ -876,7 +876,7 @@ on_player_bleedout() if(is_respawn_gamemode()) { - self maps/mp/zombies/_zm::spectator_respawn(); + self maps\mp\zombies\_zm::spectator_respawn(); self.revives--; } } @@ -933,8 +933,8 @@ add_grief_downed_score() { if(isDefined(self.last_griefed_by) && is_player_valid(self.last_griefed_by.attacker)) { - score = level.downed_award_points * maps/mp/zombies/_zm_score::get_points_multiplier(self.last_griefed_by.attacker); - self.last_griefed_by.attacker maps/mp/zombies/_zm_score::add_to_player_score(score); + score = level.downed_award_points * maps\mp\zombies\_zm_score::get_points_multiplier(self.last_griefed_by.attacker); + self.last_griefed_by.attacker maps\mp\zombies\_zm_score::add_to_player_score(score); } } @@ -945,8 +945,8 @@ add_grief_bleedout_score() { if(is_player_valid(player) && player.team != self.team) { - score = level.bleedout_award_points * maps/mp/zombies/_zm_score::get_points_multiplier(player); - player maps/mp/zombies/_zm_score::add_to_player_score(score); + score = level.bleedout_award_points * maps\mp\zombies\_zm_score::get_points_multiplier(player); + player maps\mp\zombies\_zm_score::add_to_player_score(score); } } } @@ -1126,7 +1126,7 @@ round_start_countdown_hud(time) level.countdown_hud.foreground = 1; level.countdown_hud.color = ( 1, 1, 0 ); level.countdown_hud.hidewheninmenu = true; - level.countdown_hud maps/mp/gametypes_zm/_hud::fontpulseinit(); + level.countdown_hud maps\mp\gametypes_zm\_hud::fontpulseinit(); level.countdown_hud thread round_start_countdown_hud_end_game_watcher(); level.countdown_hud.countdown_text = createServerFontString( "objective", 1.5 ); @@ -1175,7 +1175,7 @@ round_start_countdown_hud_timer(time) while(time > 0) { self setvalue(time); - self thread maps/mp/gametypes_zm/_hud::fontpulse(level); + self thread maps\mp\gametypes_zm\_hud::fontpulse(level); wait 1; time--; } @@ -1267,7 +1267,7 @@ update_players_on_downed(excluded_player) { if(isDefined(last_player)) { - last_player thread maps/mp/zombies/_zm_audio_announcer::leaderdialogonplayer( "last_player" ); + last_player thread maps\mp\zombies\_zm_audio_announcer::leaderdialogonplayer( "last_player" ); } } @@ -1276,7 +1276,7 @@ update_players_on_downed(excluded_player) return; } - level thread maps/mp/zombies/_zm_audio_announcer::leaderdialog( players_remaining + "_player_left", other_team ); + level thread maps\mp\zombies\_zm_audio_announcer::leaderdialog( players_remaining + "_player_left", other_team ); } update_players_on_bleedout(excluded_player) @@ -1315,7 +1315,7 @@ update_players_on_bleedout(excluded_player) return; } - level thread maps/mp/zombies/_zm_audio_announcer::leaderdialog(team_bledout + "_player_down", other_team); + level thread maps\mp\zombies\_zm_audio_announcer::leaderdialog(team_bledout + "_player_down", other_team); } update_players_on_disconnect(excluded_player) @@ -1643,7 +1643,7 @@ game_module_player_damage_callback( einflictor, eattacker, idamage, idflags, sme } } - if ( self maps/mp/zombies/_zm_laststand::player_is_in_laststand() ) + if ( self maps\mp\zombies\_zm_laststand::player_is_in_laststand() ) { return; } @@ -1654,14 +1654,14 @@ game_module_player_damage_callback( einflictor, eattacker, idamage, idflags, sme { 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 ) ) { return; } } 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 ) ) { return; } @@ -1681,7 +1681,7 @@ game_module_player_damage_callback( einflictor, eattacker, idamage, idflags, sme dir = vdir; amount = 420; // 48 units - if(self maps/mp/zombies/_zm_laststand::is_reviving_any()) + if(self maps\mp\zombies\_zm_laststand::is_reviving_any()) { is_reviving = true; @@ -1762,7 +1762,7 @@ game_module_player_damage_callback( einflictor, eattacker, idamage, idflags, sme score = level.stun_melee_award_points; } - score *= maps/mp/zombies/_zm_score::get_points_multiplier(eattacker); + score *= maps\mp\zombies\_zm_score::get_points_multiplier(eattacker); self stun_score_steal(eattacker, score); if(!is_melee) @@ -1811,16 +1811,16 @@ stun_score_steal(attacker, score) { if(is_player_valid(attacker)) { - attacker maps/mp/zombies/_zm_score::add_to_player_score(score); + attacker maps\mp\zombies\_zm_score::add_to_player_score(score); } if(self.score < score) { - self maps/mp/zombies/_zm_score::minus_to_player_score(self.score); + self maps\mp\zombies\_zm_score::minus_to_player_score(self.score); } else { - self maps/mp/zombies/_zm_score::minus_to_player_score(score); + self maps\mp\zombies\_zm_score::minus_to_player_score(score); } } @@ -1873,7 +1873,7 @@ grief_laststand_weapon_save( einflictor, attacker, idamage, smeansofdeath, sweap // can't switch to alt weapon if(is_alt_weapon(self.grief_savedweapon_currentweapon)) { - self.grief_savedweapon_currentweapon = maps/mp/zombies/_zm_weapons::get_nonalternate_weapon(self.grief_savedweapon_currentweapon); + self.grief_savedweapon_currentweapon = maps\mp\zombies\_zm_weapons::get_nonalternate_weapon(self.grief_savedweapon_currentweapon); } for ( i = 0; i < self.grief_savedweapon_weapons.size; i++ ) @@ -1944,7 +1944,7 @@ grief_laststand_weapons_return() continue; } - self giveweapon( self.grief_savedweapon_weapons[ i ], 0, self maps/mp/zombies/_zm_weapons::get_pack_a_punch_weapon_options( self.grief_savedweapon_weapons[ i ] ) ); + self giveweapon( self.grief_savedweapon_weapons[ i ], 0, self maps\mp\zombies\_zm_weapons::get_pack_a_punch_weapon_options( self.grief_savedweapon_weapons[ i ] ) ); if ( isdefined( self.grief_savedweapon_weaponsammo_clip[ i ] ) ) { @@ -1983,7 +1983,7 @@ grief_laststand_weapons_return() self.perks_active = []; foreach(perk in self.grief_savedperks) { - self maps/mp/zombies/_zm_perks::give_perk(perk); + self maps\mp\zombies\_zm_perks::give_perk(perk); } } } @@ -2076,13 +2076,13 @@ grief_laststand_items_return() if ( isDefined( self.current_equipment ) ) { - self maps/mp/zombies/_zm_equipment::equipment_take( self.current_equipment ); + self maps\mp\zombies\_zm_equipment::equipment_take( self.current_equipment ); } if ( isDefined( self.grief_savedweapon_equipment ) ) { self.do_not_display_equipment_pickup_hint = 1; - self maps/mp/zombies/_zm_equipment::equipment_give( self.grief_savedweapon_equipment ); + self maps\mp\zombies\_zm_equipment::equipment_give( self.grief_savedweapon_equipment ); self.do_not_display_equipment_pickup_hint = undefined; } @@ -2189,7 +2189,7 @@ player_suicide() wait_network_frame(); - self maps/mp/zombies/_zm_laststand::bleed_out(); + self maps\mp\zombies\_zm_laststand::bleed_out(); self.playersuicided = undefined; } @@ -2274,9 +2274,9 @@ race_think() setroundsplayed(level.round_number); level.old_music_state = undefined; - level thread maps/mp/zombies/_zm_audio::change_zombie_music("round_end"); + level thread maps\mp\zombies\_zm_audio::change_zombie_music("round_end"); - maps/mp/zombies/_zm::ai_calculate_health(level.round_number); + maps\mp\zombies\_zm::ai_calculate_health(level.round_number); level.zombie_move_speed = level.zombie_starting_move_speed + ((level.round_number - 1) * level.zombie_vars["zombie_move_speed_multiplier"]); @@ -2304,14 +2304,14 @@ race_think() } } - maps/mp/zombies/_zm::award_grenades_for_survivors(); + maps\mp\zombies\_zm::award_grenades_for_survivors(); players = get_players(); foreach(player in players) { if(is_player_valid(player)) { - score = level.race_round_increment_points * maps/mp/zombies/_zm_score::get_points_multiplier(player); - player maps/mp/zombies/_zm_score::add_to_player_score(score); + score = level.race_round_increment_points * maps\mp\zombies\_zm_score::get_points_multiplier(player); + player maps\mp\zombies\_zm_score::add_to_player_score(score); } if(isDefined(player get_player_placeable_mine())) @@ -2485,7 +2485,7 @@ containment_think() while(1) { zone_name = level.containment_zones[i]; - zone_display_name = scripts/zm/_zm_reimagined::get_zone_display_name(zone_name); + zone_display_name = scripts\zm\_zm_reimagined::get_zone_display_name(zone_name); zone = level.zones[zone_name]; players = get_players(); @@ -2497,7 +2497,7 @@ containment_think() level.containment_zone_hud setText(zone_display_name); level.containment_time_hud setTimer(level.containment_time); - 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(); foreach(spawn_point in spawn_points) { if(spawn_point.script_noteworthy == zone_name) @@ -2710,8 +2710,8 @@ containment_think() { foreach(player in in_containment_zone["axis"]) { - score = level.containment_points * maps/mp/zombies/_zm_score::get_points_multiplier(player); - player maps/mp/zombies/_zm_score::add_to_player_score(score); + score = level.containment_points * maps\mp\zombies\_zm_score::get_points_multiplier(player); + player maps\mp\zombies\_zm_score::add_to_player_score(score); } increment_score("axis"); @@ -2730,8 +2730,8 @@ containment_think() { foreach(player in in_containment_zone["allies"]) { - score = level.containment_points * maps/mp/zombies/_zm_score::get_points_multiplier(player); - player maps/mp/zombies/_zm_score::add_to_player_score(score); + score = level.containment_points * maps\mp\zombies\_zm_score::get_points_multiplier(player); + player maps\mp\zombies\_zm_score::add_to_player_score(score); } increment_score("allies"); @@ -2762,7 +2762,7 @@ containment_think() } } - 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(); foreach(spawn_point in spawn_points) { if(spawn_point.script_noteworthy == zone_name) @@ -2799,14 +2799,14 @@ increment_score(team) if(level.grief_score[encounters_team] >= level.grief_winning_score) { - scripts/zm/replaced/_zm_game_module::game_won(encounters_team); + scripts\zm\replaced\_zm_game_module::game_won(encounters_team); } if(level.scr_zm_ui_gametype_obj == "zgrief") { if(level.grief_score[encounters_team] <= 3) { - level thread maps/mp/zombies/_zm_audio_announcer::leaderdialog(level.grief_score[encounters_team] + "_player_down", team); + level thread maps\mp\zombies\_zm_audio_announcer::leaderdialog(level.grief_score[encounters_team] + "_player_down", team); } else { @@ -2820,7 +2820,7 @@ increment_score(team) player thread show_grief_hud_msg(&"ZOMBIE_ZGRIEF_PLAYER_BLED_OUT", score_left); } - level thread maps/mp/zombies/_zm_audio_announcer::leaderdialog(score_left + "_player_left", team); + level thread maps\mp\zombies\_zm_audio_announcer::leaderdialog(score_left + "_player_left", team); } } } diff --git a/scripts/zm/zm_buried/zm_buried_reimagined.gsc b/scripts/zm/zm_buried/zm_buried_reimagined.gsc index 007b8f97..63e23d43 100644 --- a/scripts/zm/zm_buried/zm_buried_reimagined.gsc +++ b/scripts/zm/zm_buried/zm_buried_reimagined.gsc @@ -2,32 +2,32 @@ #include common_scripts\utility; #include maps\mp\zombies\_zm_utility; -#include scripts/zm/replaced/zm_buried_buildables; -#include scripts/zm/replaced/_zm_buildables_pooled; -#include scripts/zm/replaced/_zm_equip_subwoofer; -#include scripts/zm/replaced/_zm_banking; -#include scripts/zm/replaced/_zm_weap_slowgun; +#include scripts\zm\replaced\zm_buried_buildables; +#include scripts\zm\replaced\_zm_buildables_pooled; +#include scripts\zm\replaced\_zm_equip_subwoofer; +#include scripts\zm\replaced\_zm_banking; +#include scripts\zm\replaced\_zm_weap_slowgun; main() { precachemodel( "collision_wall_128x128x10_standard" ); - replaceFunc(maps/mp/zm_buried_buildables::init_buildables, scripts/zm/replaced/zm_buried_buildables::init_buildables); - replaceFunc(maps/mp/zombies/_zm_buildables_pooled::add_buildable_to_pool, scripts/zm/replaced/_zm_buildables_pooled::add_buildable_to_pool); - replaceFunc(maps/mp/zombies/_zm_equip_subwoofer::startsubwooferdecay, scripts/zm/replaced/_zm_equip_subwoofer::startsubwooferdecay); - replaceFunc(maps/mp/zombies/_zm_equip_subwoofer::subwoofer_network_choke, scripts/zm/replaced/_zm_equip_subwoofer::subwoofer_network_choke); - replaceFunc(maps/mp/zombies/_zm_weap_slowgun::watch_reset_anim_rate, scripts/zm/replaced/_zm_weap_slowgun::watch_reset_anim_rate); - replaceFunc(maps/mp/zombies/_zm_banking::init, scripts/zm/replaced/_zm_banking::init); - replaceFunc(maps/mp/zombies/_zm_banking::bank_deposit_box, scripts/zm/replaced/_zm_banking::bank_deposit_box); - replaceFunc(maps/mp/zombies/_zm_banking::bank_deposit_unitrigger, scripts/zm/replaced/_zm_banking::bank_deposit_unitrigger); - replaceFunc(maps/mp/zombies/_zm_banking::bank_withdraw_unitrigger, scripts/zm/replaced/_zm_banking::bank_withdraw_unitrigger); + replaceFunc(maps\mp\zm_buried_buildables::init_buildables, scripts\zm\replaced\zm_buried_buildables::init_buildables); + replaceFunc(maps\mp\zombies\_zm_buildables_pooled::add_buildable_to_pool, scripts\zm\replaced\_zm_buildables_pooled::add_buildable_to_pool); + replaceFunc(maps\mp\zombies\_zm_equip_subwoofer::startsubwooferdecay, scripts\zm\replaced\_zm_equip_subwoofer::startsubwooferdecay); + replaceFunc(maps\mp\zombies\_zm_equip_subwoofer::subwoofer_network_choke, scripts\zm\replaced\_zm_equip_subwoofer::subwoofer_network_choke); + replaceFunc(maps\mp\zombies\_zm_weap_slowgun::watch_reset_anim_rate, scripts\zm\replaced\_zm_weap_slowgun::watch_reset_anim_rate); + replaceFunc(maps\mp\zombies\_zm_banking::init, scripts\zm\replaced\_zm_banking::init); + replaceFunc(maps\mp\zombies\_zm_banking::bank_deposit_box, scripts\zm\replaced\_zm_banking::bank_deposit_box); + replaceFunc(maps\mp\zombies\_zm_banking::bank_deposit_unitrigger, scripts\zm\replaced\_zm_banking::bank_deposit_unitrigger); + replaceFunc(maps\mp\zombies\_zm_banking::bank_withdraw_unitrigger, scripts\zm\replaced\_zm_banking::bank_withdraw_unitrigger); } init() { level.zombie_init_done = ::zombie_init_done; level.special_weapon_magicbox_check = ::buried_special_weapon_magicbox_check; - level._is_player_in_zombie_stink = maps/mp/zombies/_zm_perk_vulture::_is_player_in_zombie_stink; + level._is_player_in_zombie_stink = maps\mp\zombies\_zm_perk_vulture::_is_player_in_zombie_stink; if(is_gametype_active("zgrief")) { @@ -47,7 +47,7 @@ zombie_init_done() { self.allowpain = 0; self.zombie_path_bad = 0; - self thread maps/mp/zm_buried_distance_tracking::escaped_zombies_cleanup_init(); + self thread maps\mp\zm_buried_distance_tracking::escaped_zombies_cleanup_init(); self setphysparams( 15, 0, 64 ); } @@ -72,7 +72,7 @@ buried_special_weapon_magicbox_check(weapon) zgrief_respawn_override( 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(); grief_initial = getstructarray( "street_standard_player_spawns", "targetname" ); foreach ( struct in grief_initial ) @@ -145,7 +145,7 @@ zgrief_respawn_override( revivee, return_struct ) if ( isDefined( closest_group ) ) { - spawn_location = maps/mp/zombies/_zm::get_valid_spawn_location( revivee, spawn_points, closest_group, return_struct ); + spawn_location = maps\mp\zombies\_zm::get_valid_spawn_location( revivee, spawn_points, closest_group, return_struct ); if ( isDefined( spawn_location ) && !positionwouldtelefrag( spawn_location.origin ) ) { if ( isDefined( spawn_location.plyr ) && spawn_location.plyr != revivee getentitynumber() ) @@ -170,7 +170,7 @@ zgrief_respawn_override( revivee, return_struct ) if ( spawn_points[ k ] == initial_point ) { closest_group = k; - spawn_location = maps/mp/zombies/_zm::get_valid_spawn_location( revivee, spawn_points, closest_group, return_struct ); + spawn_location = maps\mp\zombies\_zm::get_valid_spawn_location( revivee, spawn_points, closest_group, return_struct ); return spawn_location; } k++; diff --git a/scripts/zm/zm_highrise/zm_highrise_reimagined.gsc b/scripts/zm/zm_highrise/zm_highrise_reimagined.gsc index 5d7ab331..919dee35 100644 --- a/scripts/zm/zm_highrise/zm_highrise_reimagined.gsc +++ b/scripts/zm/zm_highrise/zm_highrise_reimagined.gsc @@ -2,18 +2,18 @@ #include common_scripts\utility; #include maps\mp\zombies\_zm_utility; -#include scripts/zm/replaced/zm_highrise_classic; -#include scripts/zm/replaced/_zm_chugabud; -#include scripts/zm/replaced/_zm_banking; +#include scripts\zm\replaced\zm_highrise_classic; +#include scripts\zm\replaced\_zm_chugabud; +#include scripts\zm\replaced\_zm_banking; main() { - replaceFunc(maps/mp/zm_highrise_classic::insta_kill_player, scripts/zm/replaced/zm_highrise_classic::insta_kill_player); - replaceFunc(maps/mp/zombies/_zm_chugabud::chugabud_bleed_timeout, scripts/zm/replaced/_zm_chugabud::chugabud_bleed_timeout); - replaceFunc(maps/mp/zombies/_zm_banking::init, scripts/zm/replaced/_zm_banking::init); - replaceFunc(maps/mp/zombies/_zm_banking::bank_deposit_box, scripts/zm/replaced/_zm_banking::bank_deposit_box); - replaceFunc(maps/mp/zombies/_zm_banking::bank_deposit_unitrigger, scripts/zm/replaced/_zm_banking::bank_deposit_unitrigger); - replaceFunc(maps/mp/zombies/_zm_banking::bank_withdraw_unitrigger, scripts/zm/replaced/_zm_banking::bank_withdraw_unitrigger); + replaceFunc(maps\mp\zm_highrise_classic::insta_kill_player, scripts\zm\replaced\zm_highrise_classic::insta_kill_player); + replaceFunc(maps\mp\zombies\_zm_chugabud::chugabud_bleed_timeout, scripts\zm\replaced\_zm_chugabud::chugabud_bleed_timeout); + replaceFunc(maps\mp\zombies\_zm_banking::init, scripts\zm\replaced\_zm_banking::init); + replaceFunc(maps\mp\zombies\_zm_banking::bank_deposit_box, scripts\zm\replaced\_zm_banking::bank_deposit_box); + replaceFunc(maps\mp\zombies\_zm_banking::bank_deposit_unitrigger, scripts\zm\replaced\_zm_banking::bank_deposit_unitrigger); + replaceFunc(maps\mp\zombies\_zm_banking::bank_withdraw_unitrigger, scripts\zm\replaced\_zm_banking::bank_withdraw_unitrigger); } init() @@ -29,8 +29,8 @@ zombie_init_done() { self.allowpain = 0; self.zombie_path_bad = 0; - self thread maps/mp/zm_highrise_distance_tracking::escaped_zombies_cleanup_init(); - self thread maps/mp/zm_highrise::elevator_traverse_watcher(); + self thread maps\mp\zm_highrise_distance_tracking::escaped_zombies_cleanup_init(); + self thread maps\mp\zm_highrise::elevator_traverse_watcher(); if ( self.classname == "actor_zm_highrise_basic_03" ) { health_bonus = int( self.maxhealth * 0.05 ); @@ -52,7 +52,7 @@ highrise_special_weapon_magicbox_check(weapon) highrise_respawn_override( 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(); if ( spawn_points.size == 0 ) { @@ -73,7 +73,7 @@ highrise_respawn_override( revivee, return_struct ) if ( players[ i ] istouching( zone.volumes[ k ] ) ) { closest_group = j; - spawn_location = maps/mp/zombies/_zm::get_valid_spawn_location( revivee, spawn_points, closest_group, return_struct ); + spawn_location = maps\mp\zombies\_zm::get_valid_spawn_location( revivee, spawn_points, closest_group, return_struct ); if ( isDefined( spawn_location ) ) { return spawn_location; @@ -116,11 +116,11 @@ elevator_solo_revive_fix() revive_elevator.body.elevator_stop = 1; revive_elevator.body.lock_doors = 1; - revive_elevator.body maps/mp/zm_highrise_elevators::perkelevatordoor(0); + revive_elevator.body maps\mp\zm_highrise_elevators::perkelevatordoor(0); flag_wait( "power_on" ); revive_elevator.body.elevator_stop = 0; revive_elevator.body.lock_doors = 0; - revive_elevator.body maps/mp/zm_highrise_elevators::perkelevatordoor(1); + revive_elevator.body maps\mp\zm_highrise_elevators::perkelevatordoor(1); } \ No newline at end of file diff --git a/scripts/zm/zm_nuked/zm_nuked_reimagined.gsc b/scripts/zm/zm_nuked/zm_nuked_reimagined.gsc index 15dff12a..3507f363 100644 --- a/scripts/zm/zm_nuked/zm_nuked_reimagined.gsc +++ b/scripts/zm/zm_nuked/zm_nuked_reimagined.gsc @@ -13,7 +13,7 @@ zombie_init_done() self.allowpain = 0; if ( isDefined( self.script_parameters ) && self.script_parameters == "crater" ) { - self thread maps/mp/zm_nuked::zombie_crater_locomotion(); + self thread maps\mp\zm_nuked::zombie_crater_locomotion(); } self setphysparams( 15, 0, 64 ); } diff --git a/scripts/zm/zm_prison/zm_prison_reimagined.gsc b/scripts/zm/zm_prison/zm_prison_reimagined.gsc index 0d71c9bf..a4b02cf2 100644 --- a/scripts/zm/zm_prison/zm_prison_reimagined.gsc +++ b/scripts/zm/zm_prison/zm_prison_reimagined.gsc @@ -1,26 +1,26 @@ #include maps\mp\_utility; #include common_scripts\utility; #include maps\mp\zombies\_zm_utility; -#include maps/mp/zm_alcatraz_utility; +#include maps\mp\zm_alcatraz_utility; -#include scripts/zm/replaced/zm_alcatraz_classic; -#include scripts/zm/replaced/_zm_afterlife; -#include scripts/zm/replaced/_zm_ai_brutus; +#include scripts\zm\replaced\zm_alcatraz_classic; +#include scripts\zm\replaced\_zm_afterlife; +#include scripts\zm\replaced\_zm_ai_brutus; main() { - replaceFunc(maps/mp/zm_alcatraz_classic::give_afterlife, scripts/zm/replaced/zm_alcatraz_classic::give_afterlife); - replaceFunc(maps/mp/zombies/_zm_afterlife::afterlife_add, scripts/zm/replaced/_zm_afterlife::afterlife_add); - replaceFunc(maps/mp/zombies/_zm_ai_brutus::brutus_spawn, scripts/zm/replaced/_zm_ai_brutus::brutus_spawn); - replaceFunc(maps/mp/zombies/_zm_ai_brutus::brutus_health_increases, scripts/zm/replaced/_zm_ai_brutus::brutus_health_increases); - replaceFunc(maps/mp/zombies/_zm_ai_brutus::brutus_cleanup_at_end_of_grief_round, scripts/zm/replaced/_zm_ai_brutus::brutus_cleanup_at_end_of_grief_round); + replaceFunc(maps\mp\zm_alcatraz_classic::give_afterlife, scripts\zm\replaced\zm_alcatraz_classic::give_afterlife); + replaceFunc(maps\mp\zombies\_zm_afterlife::afterlife_add, scripts\zm\replaced\_zm_afterlife::afterlife_add); + replaceFunc(maps\mp\zombies\_zm_ai_brutus::brutus_spawn, scripts\zm\replaced\_zm_ai_brutus::brutus_spawn); + replaceFunc(maps\mp\zombies\_zm_ai_brutus::brutus_health_increases, scripts\zm\replaced\_zm_ai_brutus::brutus_health_increases); + replaceFunc(maps\mp\zombies\_zm_ai_brutus::brutus_cleanup_at_end_of_grief_round, scripts\zm\replaced\_zm_ai_brutus::brutus_cleanup_at_end_of_grief_round); } init() { level.zombie_init_done = ::zombie_init_done; level.special_weapon_magicbox_check = ::check_for_special_weapon_limit_exist; - level.round_prestart_func = scripts/zm/replaced/_zm_afterlife::afterlife_start_zombie_logic; + level.round_prestart_func = scripts\zm\replaced\_zm_afterlife::afterlife_start_zombie_logic; remove_acid_trap_player_spawn(); @@ -48,7 +48,7 @@ check_for_special_weapon_limit_exist(weapon) count = 0; if ( weapon == "blundergat_zm" ) { - if ( self maps/mp/zombies/_zm_weapons::has_weapon_or_upgrade( "blundersplat_zm" ) ) + if ( self maps\mp\zombies\_zm_weapons::has_weapon_or_upgrade( "blundersplat_zm" ) ) { return 0; } @@ -71,7 +71,7 @@ check_for_special_weapon_limit_exist(weapon) { if ( weapon == "blundergat_zm" ) { - if ( players[ i ] maps/mp/zombies/_zm_weapons::has_weapon_or_upgrade( "blundersplat_zm" ) || isDefined( players[ i ].is_pack_splatting ) && players[ i ].is_pack_splatting ) + if ( players[ i ] maps\mp\zombies\_zm_weapons::has_weapon_or_upgrade( "blundersplat_zm" ) || isDefined( players[ i ].is_pack_splatting ) && players[ i ].is_pack_splatting ) { count++; i++; @@ -96,7 +96,7 @@ check_for_special_weapon_limit_exist(weapon) remove_acid_trap_player_spawn() { - 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(); foreach(spawn_point in spawn_points) { if(spawn_point.script_noteworthy == "zone_cafeteria") @@ -231,7 +231,7 @@ tower_trap_magicbullet_think( org, target, zombietarget ) { if ( !isDefined( target.no_gib ) || !target.no_gib ) { - target maps/mp/zombies/_zm_spawner::zombie_head_gib(); + target maps\mp\zombies\_zm_spawner::zombie_head_gib(); } target dodamage( target.health + 1000, target.origin ); } @@ -301,6 +301,6 @@ plane_auto_refuel() wait 0.05; - scripts/zm/_zm_reimagined::buildcraftable( "refuelable_plane" ); + scripts\zm\_zm_reimagined::buildcraftable( "refuelable_plane" ); } } \ No newline at end of file diff --git a/scripts/zm/zm_tomb/zm_tomb_reimagined.gsc b/scripts/zm/zm_tomb/zm_tomb_reimagined.gsc index b610d380..1a04eeb1 100644 --- a/scripts/zm/zm_tomb/zm_tomb_reimagined.gsc +++ b/scripts/zm/zm_tomb/zm_tomb_reimagined.gsc @@ -2,14 +2,14 @@ #include common_scripts\utility; #include maps\mp\zombies\_zm_utility; -#include scripts/zm/replaced/zm_tomb_craftables; -#include scripts/zm/replaced/zm_tomb_dig; +#include scripts\zm\replaced\zm_tomb_craftables; +#include scripts\zm\replaced\zm_tomb_dig; main() { - replaceFunc(maps/mp/zm_tomb_craftables::quadrotor_control_thread, scripts/zm/replaced/zm_tomb_craftables::quadrotor_control_thread); - replaceFunc(maps/mp/zm_tomb_dig::increment_player_perk_purchase_limit, scripts/zm/replaced/zm_tomb_dig::increment_player_perk_purchase_limit); - replaceFunc(maps/mp/zm_tomb_dig::dig_disconnect_watch, scripts/zm/replaced/zm_tomb_dig::dig_disconnect_watch); + replaceFunc(maps\mp\zm_tomb_craftables::quadrotor_control_thread, scripts\zm\replaced\zm_tomb_craftables::quadrotor_control_thread); + replaceFunc(maps\mp\zm_tomb_dig::increment_player_perk_purchase_limit, scripts\zm\replaced\zm_tomb_dig::increment_player_perk_purchase_limit); + replaceFunc(maps\mp\zm_tomb_dig::dig_disconnect_watch, scripts\zm\replaced\zm_tomb_dig::dig_disconnect_watch); } init() @@ -35,7 +35,7 @@ on_player_connect() zombie_init_done() { self.allowpain = 0; - self thread maps/mp/zm_tomb_distance_tracking::escaped_zombies_cleanup_init(); + self thread maps\mp\zm_tomb_distance_tracking::escaped_zombies_cleanup_init(); self setphysparams( 15, 0, 64 ); } @@ -54,7 +54,7 @@ tomb_special_weapon_magicbox_check(weapon) } if ( isDefined( level.zombie_weapons[ weapon ].shared_ammo_weapon ) ) { - if ( self maps/mp/zombies/_zm_weapons::has_weapon_or_upgrade( level.zombie_weapons[ weapon ].shared_ammo_weapon ) ) + if ( self maps\mp\zombies\_zm_weapons::has_weapon_or_upgrade( level.zombie_weapons[ weapon ].shared_ammo_weapon ) ) { return 0; } @@ -110,7 +110,7 @@ remove_shovels_from_map() if(IsDefined(stub.e_shovel)) { stub.e_shovel delete(); - maps/mp/zombies/_zm_unitrigger::unregister_unitrigger( stub ); + maps\mp\zombies\_zm_unitrigger::unregister_unitrigger( stub ); } } } @@ -149,7 +149,7 @@ reward_random_perk( player, s_stat ) { player.tomb_reward_perk = player get_random_perk(); } - else if (self hasperk( player.tomb_reward_perk ) || self maps/mp/zombies/_zm_perks::has_perk_paused( player.tomb_reward_perk )) + else if (self hasperk( player.tomb_reward_perk ) || self maps\mp\zombies\_zm_perks::has_perk_paused( player.tomb_reward_perk )) { player.tomb_reward_perk = player get_random_perk(); } @@ -160,7 +160,7 @@ reward_random_perk( player, s_stat ) return 0; } - model = maps/mp/zombies/_zm_perk_random::get_perk_weapon_model(perk); + model = maps\mp\zombies\_zm_perk_random::get_perk_weapon_model(perk); if (!isDefined(model)) { return 0; @@ -172,18 +172,18 @@ reward_random_perk( player, s_stat ) m_reward playsound( "zmb_spawn_powerup" ); m_reward playloopsound( "zmb_spawn_powerup_loop", 0.5 ); wait_network_frame(); - if ( !maps/mp/zombies/_zm_challenges::reward_rise_and_grab( m_reward, 50, 2, 2, 10 ) ) + if ( !maps\mp\zombies\_zm_challenges::reward_rise_and_grab( m_reward, 50, 2, 2, 10 ) ) { return 0; } - if ( player hasperk( perk ) || player maps/mp/zombies/_zm_perks::has_perk_paused( perk ) ) + if ( player hasperk( perk ) || player maps\mp\zombies\_zm_perks::has_perk_paused( perk ) ) { - m_reward thread maps/mp/zm_tomb_challenges::bottle_reject_sink( player ); + m_reward thread maps\mp\zm_tomb_challenges::bottle_reject_sink( player ); return 0; } m_reward stoploopsound( 0.1 ); player playsound( "zmb_powerup_grabbed" ); - m_reward thread maps/mp/zombies/_zm_perks::vending_trigger_post_think( player, perk ); + m_reward thread maps\mp\zombies\_zm_perks::vending_trigger_post_think( player, perk ); m_reward delete(); return 1; } @@ -200,7 +200,7 @@ get_random_perk() } else { - if ( !self hasperk( perk ) && !self maps/mp/zombies/_zm_perks::has_perk_paused( perk ) ) + if ( !self hasperk( perk ) && !self maps\mp\zombies\_zm_perks::has_perk_paused( perk ) ) { perks[ perks.size ] = perk; } diff --git a/scripts/zm/zm_transit/zm_transit_reimagined.gsc b/scripts/zm/zm_transit/zm_transit_reimagined.gsc index eb410fa1..4f68dd44 100644 --- a/scripts/zm/zm_transit/zm_transit_reimagined.gsc +++ b/scripts/zm/zm_transit/zm_transit_reimagined.gsc @@ -2,34 +2,34 @@ #include common_scripts\utility; #include maps\mp\zombies\_zm_utility; -#include scripts/zm/replaced/zm_transit; -#include scripts/zm/replaced/zm_transit_gamemodes; -#include scripts/zm/replaced/zm_transit_utility; -#include scripts/zm/replaced/_zm_weap_jetgun; -#include scripts/zm/replaced/_zm_weap_emp_bomb; -#include scripts/zm/replaced/_zm_equip_electrictrap; -#include scripts/zm/replaced/_zm_equip_turret; -#include scripts/zm/replaced/_zm_banking; +#include scripts\zm\replaced\zm_transit; +#include scripts\zm\replaced\zm_transit_gamemodes; +#include scripts\zm\replaced\zm_transit_utility; +#include scripts\zm\replaced\_zm_weap_jetgun; +#include scripts\zm\replaced\_zm_weap_emp_bomb; +#include scripts\zm\replaced\_zm_equip_electrictrap; +#include scripts\zm\replaced\_zm_equip_turret; +#include scripts\zm\replaced\_zm_banking; main() { - replaceFunc(maps/mp/zm_transit::lava_damage_depot, scripts/zm/replaced/zm_transit::lava_damage_depot); - replaceFunc(maps/mp/zm_transit_gamemodes::init, scripts/zm/replaced/zm_transit_gamemodes::init); - replaceFunc(maps/mp/zm_transit_utility::solo_tombstone_removal, scripts/zm/replaced/zm_transit_utility::solo_tombstone_removal); - replaceFunc(maps/mp/zombies/_zm_weap_jetgun::is_jetgun_firing, scripts/zm/replaced/_zm_weap_jetgun::is_jetgun_firing); - replaceFunc(maps/mp/zombies/_zm_weap_jetgun::jetgun_check_enemies_in_range, scripts/zm/replaced/_zm_weap_jetgun::jetgun_check_enemies_in_range); - replaceFunc(maps/mp/zombies/_zm_weap_jetgun::jetgun_grind_zombie, scripts/zm/replaced/_zm_weap_jetgun::jetgun_grind_zombie); - replaceFunc(maps/mp/zombies/_zm_weap_jetgun::handle_overheated_jetgun, scripts/zm/replaced/_zm_weap_jetgun::handle_overheated_jetgun); - replaceFunc(maps/mp/zombies/_zm_weap_jetgun::jetgun_network_choke, scripts/zm/replaced/_zm_weap_jetgun::jetgun_network_choke); - replaceFunc(maps/mp/zombies/_zm_weap_emp_bomb::emp_detonate, scripts/zm/replaced/_zm_weap_emp_bomb::emp_detonate); - replaceFunc(maps/mp/zombies/_zm_equip_electrictrap::startelectrictrapdeploy, scripts/zm/replaced/_zm_equip_electrictrap::startelectrictrapdeploy); - replaceFunc(maps/mp/zombies/_zm_equip_electrictrap::cleanupoldtrap, scripts/zm/replaced/_zm_equip_electrictrap::cleanupoldtrap); - replaceFunc(maps/mp/zombies/_zm_equip_electrictrap::etrap_choke, scripts/zm/replaced/_zm_equip_electrictrap::etrap_choke); - replaceFunc(maps/mp/zombies/_zm_equip_turret::startturretdeploy, scripts/zm/replaced/_zm_equip_turret::startturretdeploy); - replaceFunc(maps/mp/zombies/_zm_banking::init, scripts/zm/replaced/_zm_banking::init); - replaceFunc(maps/mp/zombies/_zm_banking::bank_deposit_box, scripts/zm/replaced/_zm_banking::bank_deposit_box); - replaceFunc(maps/mp/zombies/_zm_banking::bank_deposit_unitrigger, scripts/zm/replaced/_zm_banking::bank_deposit_unitrigger); - replaceFunc(maps/mp/zombies/_zm_banking::bank_withdraw_unitrigger, scripts/zm/replaced/_zm_banking::bank_withdraw_unitrigger); + replaceFunc(maps\mp\zm_transit::lava_damage_depot, scripts\zm\replaced\zm_transit::lava_damage_depot); + replaceFunc(maps\mp\zm_transit_gamemodes::init, scripts\zm\replaced\zm_transit_gamemodes::init); + replaceFunc(maps\mp\zm_transit_utility::solo_tombstone_removal, scripts\zm\replaced\zm_transit_utility::solo_tombstone_removal); + replaceFunc(maps\mp\zombies\_zm_weap_jetgun::is_jetgun_firing, scripts\zm\replaced\_zm_weap_jetgun::is_jetgun_firing); + replaceFunc(maps\mp\zombies\_zm_weap_jetgun::jetgun_check_enemies_in_range, scripts\zm\replaced\_zm_weap_jetgun::jetgun_check_enemies_in_range); + replaceFunc(maps\mp\zombies\_zm_weap_jetgun::jetgun_grind_zombie, scripts\zm\replaced\_zm_weap_jetgun::jetgun_grind_zombie); + replaceFunc(maps\mp\zombies\_zm_weap_jetgun::handle_overheated_jetgun, scripts\zm\replaced\_zm_weap_jetgun::handle_overheated_jetgun); + replaceFunc(maps\mp\zombies\_zm_weap_jetgun::jetgun_network_choke, scripts\zm\replaced\_zm_weap_jetgun::jetgun_network_choke); + replaceFunc(maps\mp\zombies\_zm_weap_emp_bomb::emp_detonate, scripts\zm\replaced\_zm_weap_emp_bomb::emp_detonate); + replaceFunc(maps\mp\zombies\_zm_equip_electrictrap::startelectrictrapdeploy, scripts\zm\replaced\_zm_equip_electrictrap::startelectrictrapdeploy); + replaceFunc(maps\mp\zombies\_zm_equip_electrictrap::cleanupoldtrap, scripts\zm\replaced\_zm_equip_electrictrap::cleanupoldtrap); + replaceFunc(maps\mp\zombies\_zm_equip_electrictrap::etrap_choke, scripts\zm\replaced\_zm_equip_electrictrap::etrap_choke); + replaceFunc(maps\mp\zombies\_zm_equip_turret::startturretdeploy, scripts\zm\replaced\_zm_equip_turret::startturretdeploy); + replaceFunc(maps\mp\zombies\_zm_banking::init, scripts\zm\replaced\_zm_banking::init); + replaceFunc(maps\mp\zombies\_zm_banking::bank_deposit_box, scripts\zm\replaced\_zm_banking::bank_deposit_box); + replaceFunc(maps\mp\zombies\_zm_banking::bank_deposit_unitrigger, scripts\zm\replaced\_zm_banking::bank_deposit_unitrigger); + replaceFunc(maps\mp\zombies\_zm_banking::bank_withdraw_unitrigger, scripts\zm\replaced\_zm_banking::bank_withdraw_unitrigger); include_weapons_grief(); } @@ -66,19 +66,19 @@ include_weapons_grief() include_weapon( "knife_ballistic_bowie_zm", 0 ); include_weapon( "knife_ballistic_bowie_upgraded_zm", 0 ); level._uses_retrievable_ballisitic_knives = 1; - maps/mp/zombies/_zm_weapons::add_limited_weapon( "knife_ballistic_zm", 1 ); - maps/mp/zombies/_zm_weapons::add_limited_weapon( "ray_gun_zm", 4 ); - maps/mp/zombies/_zm_weapons::add_limited_weapon( "ray_gun_upgraded_zm", 4 ); - maps/mp/zombies/_zm_weapons::add_limited_weapon( "knife_ballistic_upgraded_zm", 0 ); - maps/mp/zombies/_zm_weapons::add_limited_weapon( "knife_ballistic_no_melee_zm", 0 ); - maps/mp/zombies/_zm_weapons::add_limited_weapon( "knife_ballistic_no_melee_upgraded_zm", 0 ); - maps/mp/zombies/_zm_weapons::add_limited_weapon( "knife_ballistic_bowie_zm", 0 ); - maps/mp/zombies/_zm_weapons::add_limited_weapon( "knife_ballistic_bowie_upgraded_zm", 0 ); + maps\mp\zombies\_zm_weapons::add_limited_weapon( "knife_ballistic_zm", 1 ); + maps\mp\zombies\_zm_weapons::add_limited_weapon( "ray_gun_zm", 4 ); + maps\mp\zombies\_zm_weapons::add_limited_weapon( "ray_gun_upgraded_zm", 4 ); + maps\mp\zombies\_zm_weapons::add_limited_weapon( "knife_ballistic_upgraded_zm", 0 ); + maps\mp\zombies\_zm_weapons::add_limited_weapon( "knife_ballistic_no_melee_zm", 0 ); + maps\mp\zombies\_zm_weapons::add_limited_weapon( "knife_ballistic_no_melee_upgraded_zm", 0 ); + maps\mp\zombies\_zm_weapons::add_limited_weapon( "knife_ballistic_bowie_zm", 0 ); + maps\mp\zombies\_zm_weapons::add_limited_weapon( "knife_ballistic_bowie_upgraded_zm", 0 ); include_weapon( "raygun_mark2_zm" ); include_weapon( "raygun_mark2_upgraded_zm", 0 ); - maps/mp/zombies/_zm_weapons::add_weapon_to_content( "raygun_mark2_zm", "dlc3" ); - maps/mp/zombies/_zm_weapons::add_limited_weapon( "raygun_mark2_zm", 1 ); - maps/mp/zombies/_zm_weapons::add_limited_weapon( "raygun_mark2_upgraded_zm", 1 ); + maps\mp\zombies\_zm_weapons::add_weapon_to_content( "raygun_mark2_zm", "dlc3" ); + maps\mp\zombies\_zm_weapons::add_limited_weapon( "raygun_mark2_zm", 1 ); + maps\mp\zombies\_zm_weapons::add_limited_weapon( "raygun_mark2_upgraded_zm", 1 ); } zombie_init_done() @@ -120,7 +120,7 @@ power_local_electric_doors_globally() { if ( isDefined( zombie_doors[i].script_noteworthy ) && zombie_doors[i].script_noteworthy == "local_electric_door" ) { - local_power[local_power.size] = maps/mp/zombies/_zm_power::add_local_power( zombie_doors[i].origin, 16 ); + local_power[local_power.size] = maps\mp\zombies\_zm_power::add_local_power( zombie_doors[i].origin, 16 ); } } @@ -128,7 +128,7 @@ power_local_electric_doors_globally() for (i = 0; i < local_power.size; i++) { - maps/mp/zombies/_zm_power::end_local_power( local_power[i] ); + maps\mp\zombies\_zm_power::end_local_power( local_power[i] ); local_power[i] = undefined; } } @@ -144,7 +144,7 @@ b23r_hint_string_fix() { if (trig.zombie_weapon_upgrade == "beretta93r_zm") { - hint = maps/mp/zombies/_zm_weapons::get_weapon_hint(trig.zombie_weapon_upgrade); + hint = maps\mp\zombies\_zm_weapons::get_weapon_hint(trig.zombie_weapon_upgrade); cost = level.zombie_weapons[trig.zombie_weapon_upgrade].cost; trig sethintstring(hint, cost); } @@ -158,7 +158,7 @@ grenade_safe_to_bounce( player, weapname ) return 1; } - if ( self maps/mp/zm_transit_lava::object_touching_lava() ) + if ( self maps\mp\zm_transit_lava::object_touching_lava() ) { return 0; } @@ -194,7 +194,7 @@ path_exploit_fixes() player_trigger_origin = ( 1116, -1547, 128 ); player_trigger_radius = 72; zombie_goto_point = ( 1098, -1521, 128 ); - level thread maps/mp/zombies/_zm_ffotd::path_exploit_fix( zombie_trigger_origin, zombie_trigger_radius, zombie_trigger_height, player_trigger_origin, player_trigger_radius, zombie_goto_point ); + level thread maps\mp\zombies\_zm_ffotd::path_exploit_fix( zombie_trigger_origin, zombie_trigger_radius, zombie_trigger_height, player_trigger_origin, player_trigger_radius, zombie_goto_point ); } power_station_vision_change() @@ -220,7 +220,7 @@ power_station_vision_change() if(!player.power_station_vision_set) { - if(player maps/mp/zombies/_zm_zonemgr::entity_in_zone("zone_prr") || player maps/mp/zombies/_zm_zonemgr::entity_in_zone("zone_pcr")) + if(player maps\mp\zombies\_zm_zonemgr::entity_in_zone("zone_prr") || player maps\mp\zombies\_zm_zonemgr::entity_in_zone("zone_pcr")) { player.power_station_vision_set = 1; player thread change_dvar_over_time("r_exposureValue", level.changed_r_exposureValue, time, 1); @@ -228,7 +228,7 @@ power_station_vision_change() } else { - if(!(player maps/mp/zombies/_zm_zonemgr::entity_in_zone("zone_prr") || player maps/mp/zombies/_zm_zonemgr::entity_in_zone("zone_pcr"))) + if(!(player maps\mp\zombies\_zm_zonemgr::entity_in_zone("zone_prr") || player maps\mp\zombies\_zm_zonemgr::entity_in_zone("zone_pcr"))) { player.power_station_vision_set = 0; player thread change_dvar_over_time("r_exposureValue", level.default_r_exposureValue, time, 0);