MUTATOR_HOOKFUNCTION(ca, SetWeaponArena)
{
- LOG_INFOF("CA SetWeaponArena %s", autocvar_g_ca_weaponarena);
- // most weapons arena
if (M_ARGV(0, string) == "0" || M_ARGV(0, string) == "")
M_ARGV(0, string) = autocvar_g_ca_weaponarena;
}
MUTATOR_HOOKFUNCTION(ft, SetWeaponArena)
{
- // most weapons arena
if(M_ARGV(0, string) == "0" || M_ARGV(0, string) == "")
M_ARGV(0, string) = autocvar_g_freezetag_weaponarena;
}
MUTATOR_HOOKFUNCTION(lms, SetWeaponArena)
{
- LOG_INFOF("LMS SetWeaponArena %s", autocvar_g_ca_weaponarena);
- // most weapons arena
if(M_ARGV(0, string) == "0" || M_ARGV(0, string) == "")
M_ARGV(0, string) = autocvar_g_lms_weaponarena;
}
MUTATOR_HOOKFUNCTION(ok, SetStartItems, CBC_ORDER_LAST)
{
- LOG_INFOF("OK SetStartItems\n");
WepSet ok_start_items = (WEPSET(OVERKILL_MACHINEGUN) | WEPSET(OVERKILL_NEX) | WEPSET(OVERKILL_SHOTGUN));
if(WEP_OVERKILL_RPC.weaponstart > 0) { ok_start_items |= WEPSET(OVERKILL_RPC); }
MUTATOR_HOOKFUNCTION(ok, SetWeaponArena)
{
- LOG_INFOF("OK SetWeaponArena\n");
// turn weapon arena off
M_ARGV(0, string) = "off";
}
this.is_item = true;
}
- LOG_INFOF("adding weapid 2: %d\n", weaponid);
weaponsInMap |= WepSet_FromWeapon(Weapons_from(weaponid));
if ( def.instanceOfPowerup