From: bones_was_here Date: Tue, 14 Jul 2020 10:43:10 +0000 (+1000) Subject: Use sv_mapformat_is_quake3 to decide what to spawn in place of weapon_nailgun X-Git-Tag: xonotic-v0.8.5~352^2~70 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=e7f38015337aaf38c81ed3f35aa5f229c89266cc;p=xonotic%2Fxonotic-data.pk3dir.git Use sv_mapformat_is_quake3 to decide what to spawn in place of weapon_nailgun --- diff --git a/qcsrc/server/compat/quake3.qc b/qcsrc/server/compat/quake3.qc index 4f2b380dd..d7efd67da 100644 --- a/qcsrc/server/compat/quake3.qc +++ b/qcsrc/server/compat/quake3.qc @@ -56,7 +56,7 @@ SPAWNFUNC_WEAPON(weapon_chaingun, WEP_HLAC) SPAWNFUNC_ITEM(ammo_belt, ITEM_Cells) // Team Arena Nailgun -> Crylink || Quake Nailgun -> Electro -SPAWNFUNC_WEAPON_COND(weapon_nailgun, q3compat & BIT(0), WEP_CRYLINK, WEP_ELECTRO) +SPAWNFUNC_WEAPON_COND(weapon_nailgun, cvar_string("sv_mapformat_is_quake3"), WEP_CRYLINK, WEP_ELECTRO) SPAWNFUNC_ITEM(ammo_nails, ITEM_Cells) // LG -> Electro