]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Spawn Fireball by default and Crylink in XDF, in place of Q3A BFG
authorbones_was_here <bones_was_here@yahoo.com.au>
Sun, 12 Jul 2020 16:53:56 +0000 (02:53 +1000)
committerbones_was_here <bones_was_here@yahoo.com.au>
Sun, 12 Jul 2020 16:53:56 +0000 (02:53 +1000)
qcsrc/server/compat/quake3.qc

index 280b62897fa554263a612e18716c5cf1031d4518..d90b3385a053dc3e0659c2b1d25616022d277936 100644 (file)
@@ -51,9 +51,9 @@ SPAWNFUNC_ITEM(ammo_cells, ITEM_Rockets)
 SPAWNFUNC_WEAPON(weapon_railgun, WEP_VORTEX)
 SPAWNFUNC_ITEM(ammo_slugs, ITEM_Cells)
 
-// BFG -> Crylink
-SPAWNFUNC_WEAPON(weapon_bfg, WEP_CRYLINK)
-SPAWNFUNC_ITEM(ammo_bfg, ITEM_Cells)
+// BFG -> Crylink || Fireball
+SPAWNFUNC_WEAPON_COND(weapon_bfg, cvar_string("g_mod_balance") == "XDF", WEP_CRYLINK, WEP_FIREBALL)
+SPAWNFUNC_ITEM_COND(ammo_bfg, cvar_string("g_mod_balance") == "XDF", ITEM_Cells, ITEM_Rockets)
 
 // grappling hook -> hook
 SPAWNFUNC_WEAPON(weapon_grapplinghook, WEP_HOOK)