From 41f9ae3b2e352a7925899cc8b3cff1e7869019c5 Mon Sep 17 00:00:00 2001 From: Mario Date: Sun, 12 Feb 2017 10:15:12 +1000 Subject: [PATCH] Fix lightning gun in target_give --- qcsrc/server/compat/quake3.qc | 7 +++++++ 1 file changed, 7 insertions(+) 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 == "") -- 2.39.2