From dce7d5d54b69058564d7335e4fc90c7d61ba73bd Mon Sep 17 00:00:00 2001 From: Mario Date: Wed, 2 Dec 2015 21:47:22 +1000 Subject: [PATCH] Apply a temporary fix for superweapons --- qcsrc/server/weapons/spawning.qc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/qcsrc/server/weapons/spawning.qc b/qcsrc/server/weapons/spawning.qc index 244f6a5e6..923c2aa4a 100644 --- a/qcsrc/server/weapons/spawning.qc +++ b/qcsrc/server/weapons/spawning.qc @@ -111,7 +111,7 @@ void weapon_defaultspawnfunc(entity this, Weapon e) if (!this.respawntime) { - if (e.weapons & WEPSET_SUPERWEAPONS) + if (e.spawnflags & WEP_FLAG_SUPERWEAPON) { this.respawntime = g_pickup_respawntime_superweapon; this.respawntimejitter = g_pickup_respawntimejitter_superweapon; @@ -123,9 +123,12 @@ void weapon_defaultspawnfunc(entity this, Weapon e) } } - if (e.weapons & WEPSET_SUPERWEAPONS) + if (e.spawnflags & WEP_FLAG_SUPERWEAPON) if (!this.superweapons_finished) + { this.superweapons_finished = autocvar_g_balance_superweapons_time; + LOG_INFO("Setting it to ", ftos(this.superweapons_finished), " on ", e.mdl, "\n"); + } // if we don't already have ammo, give us some ammo if (!this.(e.ammo_field)) -- 2.39.2