mirror of
https://github.com/JezuzLizard/BO2-Reimagined.git
synced 2025-06-10 15:17:57 -05:00
XPR-50: add script checks for sniper weapon
This commit is contained in:
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
Reference in New Issue
Block a user