if(nt_IsNewToy(it.m_id))
it.spawnflags &= ~WEP_FLAG_MUTATORBLOCKED;
});
-
- cvar_settemp("sv_nexuizcompat_weaponswap", "0"); // disable compatibility so these weapons aren't auto replaced elsewhere
}
MUTATOR_ONROLLBACK_OR_REMOVE
METHOD(HLAC, m_spawnfunc_hookreplace, Weapon(HLAC this, entity e))
{
- if (autocvar_sv_nexuizcompat_weaponswap && !Item_IsLoot(e))
+ if (autocvar_sv_nexuizcompat_weaponswap && !Item_IsLoot(e) && (this.spawnflags & WEP_FLAG_MUTATORBLOCKED))
{
return ITEM_ArmorBig;
}
METHOD(MineLayer, m_spawnfunc_hookreplace, Weapon(MineLayer this, entity e))
{
- if (autocvar_sv_nexuizcompat_weaponswap && !Item_IsLoot(e))
+ if (autocvar_sv_nexuizcompat_weaponswap && !Item_IsLoot(e) && (this.spawnflags & WEP_FLAG_MUTATORBLOCKED))
{
return ITEM_HealthBig;
}
METHOD(Rifle, m_spawnfunc_hookreplace, Weapon(Rifle this, entity e))
{
- if (autocvar_sv_nexuizcompat_weaponswap && !Item_IsLoot(e))
+ if (autocvar_sv_nexuizcompat_weaponswap && !Item_IsLoot(e) && (this.spawnflags & WEP_FLAG_MUTATORBLOCKED))
{
return ITEM_ArmorBig;
}
METHOD(Seeker, m_spawnfunc_hookreplace, Weapon(Seeker this, entity e))
{
- if (autocvar_sv_nexuizcompat_weaponswap && !Item_IsLoot(e))
+ if (autocvar_sv_nexuizcompat_weaponswap && !Item_IsLoot(e) && (this.spawnflags & WEP_FLAG_MUTATORBLOCKED))
{
return ITEM_HealthBig;
}