mirror of
https://github.com/JezuzLizard/BO2-Reimagined.git
synced 2025-06-07 21:59:49 -05:00
XPR-50: add script checks for sniper weapon
This commit is contained in:
parent
361daa9bdd
commit
ecf52a5f60
@ -216,4 +216,17 @@ sq_give_player_perks(perks, v_fireball_start_loc, n_fireball_exploder)
|
|||||||
{
|
{
|
||||||
self thread scripts\zm\replaced\_zm_sq::sq_give_player_all_perks();
|
self thread scripts\zm\replaced\_zm_sq::sq_give_player_all_perks();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
sq_is_weapon_sniper(str_weapon)
|
||||||
|
{
|
||||||
|
a_snipers = array("dsr50", "as50", "svu");
|
||||||
|
|
||||||
|
foreach (str_sniper in a_snipers)
|
||||||
|
{
|
||||||
|
if (issubstr(str_weapon, str_sniper))
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
return false;
|
||||||
}
|
}
|
19
scripts/zm/replaced/zm_prison_sq_wth.gsc
Normal file
19
scripts/zm/replaced/zm_prison_sq_wth.gsc
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
#include maps\mp\zm_prison_sq_wth;
|
||||||
|
#include common_scripts\utility;
|
||||||
|
#include maps\mp\_utility;
|
||||||
|
#include maps\mp\zombies\_zm_utility;
|
||||||
|
#include maps\mp\zombies\_zm_net;
|
||||||
|
#include maps\mp\zombies\_zm_zonemgr;
|
||||||
|
|
||||||
|
sq_is_weapon_sniper(str_weapon)
|
||||||
|
{
|
||||||
|
a_snipers = array("dsr50", "as50");
|
||||||
|
|
||||||
|
foreach (str_sniper in a_snipers)
|
||||||
|
{
|
||||||
|
if (issubstr(str_weapon, str_sniper) && !issubstr(str_weapon, "+is"))
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
return false;
|
||||||
|
}
|
@ -6,6 +6,7 @@ main()
|
|||||||
{
|
{
|
||||||
replaceFunc(maps\mp\zm_highrise_sq::navcomputer_waitfor_navcard, scripts\zm\replaced\_zm_sq::navcomputer_waitfor_navcard);
|
replaceFunc(maps\mp\zm_highrise_sq::navcomputer_waitfor_navcard, scripts\zm\replaced\_zm_sq::navcomputer_waitfor_navcard);
|
||||||
replaceFunc(maps\mp\zm_highrise_sq::init, scripts\zm\replaced\zm_highrise_sq::init);
|
replaceFunc(maps\mp\zm_highrise_sq::init, scripts\zm\replaced\zm_highrise_sq::init);
|
||||||
|
replaceFunc(maps\mp\zm_highrise_sq::sq_is_weapon_sniper, scripts\zm\replaced\zm_highrise_sq::sq_is_weapon_sniper);
|
||||||
replaceFunc(maps\mp\zm_highrise_sq_atd::init, scripts\zm\replaced\zm_highrise_sq_atd::init);
|
replaceFunc(maps\mp\zm_highrise_sq_atd::init, scripts\zm\replaced\zm_highrise_sq_atd::init);
|
||||||
replaceFunc(maps\mp\zm_highrise_sq_ssp::ssp1_watch_ball, scripts\zm\replaced\zm_highrise_sq_ssp::ssp1_watch_ball);
|
replaceFunc(maps\mp\zm_highrise_sq_ssp::ssp1_watch_ball, scripts\zm\replaced\zm_highrise_sq_ssp::ssp1_watch_ball);
|
||||||
replaceFunc(maps\mp\zm_highrise_sq_ssp::init_2, scripts\zm\replaced\zm_highrise_sq_ssp::init_2);
|
replaceFunc(maps\mp\zm_highrise_sq_ssp::init_2, scripts\zm\replaced\zm_highrise_sq_ssp::init_2);
|
||||||
|
@ -33,6 +33,7 @@ main()
|
|||||||
replaceFunc(maps\mp\zm_prison_sq_bg::give_sq_bg_reward, scripts\zm\replaced\zm_prison_sq_bg::give_sq_bg_reward);
|
replaceFunc(maps\mp\zm_prison_sq_bg::give_sq_bg_reward, scripts\zm\replaced\zm_prison_sq_bg::give_sq_bg_reward);
|
||||||
replaceFunc(maps\mp\zm_prison_sq_final::stage_one, scripts\zm\replaced\zm_prison_sq_final::stage_one);
|
replaceFunc(maps\mp\zm_prison_sq_final::stage_one, scripts\zm\replaced\zm_prison_sq_final::stage_one);
|
||||||
replaceFunc(maps\mp\zm_prison_sq_final::final_flight_trigger, scripts\zm\replaced\zm_prison_sq_final::final_flight_trigger);
|
replaceFunc(maps\mp\zm_prison_sq_final::final_flight_trigger, scripts\zm\replaced\zm_prison_sq_final::final_flight_trigger);
|
||||||
|
replaceFunc(maps\mp\zm_prison_sq_wth::sq_is_weapon_sniper, scripts\zm\replaced\zm_prison_sq_wth::sq_is_weapon_sniper);
|
||||||
replaceFunc(maps\mp\zombies\_zm_afterlife::init, scripts\zm\replaced\_zm_afterlife::init);
|
replaceFunc(maps\mp\zombies\_zm_afterlife::init, scripts\zm\replaced\_zm_afterlife::init);
|
||||||
replaceFunc(maps\mp\zombies\_zm_afterlife::afterlife_add, scripts\zm\replaced\_zm_afterlife::afterlife_add);
|
replaceFunc(maps\mp\zombies\_zm_afterlife::afterlife_add, scripts\zm\replaced\_zm_afterlife::afterlife_add);
|
||||||
replaceFunc(maps\mp\zombies\_zm_afterlife::afterlife_laststand, scripts\zm\replaced\_zm_afterlife::afterlife_laststand);
|
replaceFunc(maps\mp\zombies\_zm_afterlife::afterlife_laststand, scripts\zm\replaced\_zm_afterlife::afterlife_laststand);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user