3 #include "../random_items/sv_random_items.qh" 83 error(
"This cannot be added at runtime\n");
86 FOREACH(Weapons, it != WEP_Null, {
94 FOREACH(Weapons, it != WEP_Null, {
102 LOG_INFO(
"This cannot be removed at runtime");
121 case WEP_SEEKER.m_id:
122 case WEP_MINE_LAYER.m_id:
125 case WEP_SHOCKWAVE.m_id:
136 case "hagar":
return "seeker";
137 case "devastator":
return "minelayer";
138 case "machinegun":
return "hlac";
139 case "vortex":
return "rifle";
147 if(m == NT_AUTOREPLACE_NEVER)
152 if(m == NT_AUTOREPLACE_RANDOM)
168 newdefault =
'0 0 0';
169 warmup_newdefault =
'0 0 0';
173 FOREACH(Weapons, it != WEP_Null, {
177 for(j = 0; j < n; ++j)
178 FOREACH(Weapons, it != WEP_Null, {
179 if(it.netname ==
argv(j))
181 WepSet setk = it.m_wepset;
206 string ret_string =
M_ARGV(2,
string);
212 ret_string = wep.new_toys;
217 ret_string =
nt_GetReplacement(wepinfo.netname, autocvar_g_new_toys_autoreplace);
223 M_ARGV(2,
string) = ret_string;
230 if(
nt_IsNewToy(item.weapon) && autocvar_g_new_toys_use_pickupsound) {
232 item.item_pickupsound_ent = SND_WEAPONPICKUP_NEW_TOYS;
string nt_GetReplacement(string w, float m)
bool autocvar_g_new_toys_use_pickupsound
WepSet warmup_start_weapons
string W_Apply_Weaponreplace(string in)
const float NT_AUTOREPLACE_NEVER
WepSet warmup_start_weapons_defaultmask
MUTATOR_HOOKFUNCTION(nt, SetStartItems)
#define MUTATOR_ONROLLBACK_OR_REMOVE
#define MUTATOR_IS_ENABLED(this)
float autocvar_g_new_toys_autoreplace
const float NT_AUTOREPLACE_ALWAYS
spree_cen s1 spree_cen s1 spree_cen s1 spree_cen s1 spree_cen s1 spree_cen s1 spree_cen s1 f1 s1 strcat(_("Level %s: "), "^BG%s\3\, _("^BGPress ^F2%s^BG to enter the game"))
string nt_GetFullReplacement(string w)
REGISTER_MUTATOR(nt, expr_evaluate(cvar_string("g_new_toys")) &&!MUTATOR_IS_ENABLED(mutator_instagib) &&!MUTATOR_IS_ENABLED(ok))
const int WEP_FLAG_MUTATORBLOCKED
WepSet start_weapons_defaultmask
#define FOREACH(list, cond, body)
const float NT_AUTOREPLACE_RANDOM
ERASEABLE bool expr_evaluate(string s)
Evaluate an expression of the form: [+ | -]? [var[op]val | [op]var | val | var] ...