From: Mario Date: Sun, 12 Feb 2017 00:15:12 +0000 (+1000) Subject: Fix lightning gun in target_give X-Git-Tag: xonotic-v0.8.2~231 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=41f9ae3b2e352a7925899cc8b3cff1e7869019c5;p=xonotic%2Fxonotic-data.pk3dir.git Fix lightning gun in target_give --- diff --git a/qcsrc/server/compat/quake3.qc b/qcsrc/server/compat/quake3.qc index 1c53de31e..e5cff0b9f 100644 --- a/qcsrc/server/compat/quake3.qc +++ b/qcsrc/server/compat/quake3.qc @@ -103,6 +103,13 @@ void target_give_init(entity this) this.ammo_rockets += it.count * WEP_CVAR(devastator, ammo); this.netname = "devastator"; } + else if (it.classname == "weapon_lightning") { + this.ammo_cells += it.count * WEP_CVAR_PRI(electro, ammo); // WEAPONTODO + if(this.netname == "") + this.netname = "electro"; + else + this.netname = strcat(this.netname, " electro"); + } else if (it.classname == "weapon_plasmagun") { this.ammo_rockets += it.count * WEP_CVAR_PRI(hagar, ammo); // WEAPONTODO if(this.netname == "")