]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix lightning gun in target_give
authorMario <mario@smbclan.net>
Sun, 12 Feb 2017 00:15:12 +0000 (10:15 +1000)
committerMario <mario@smbclan.net>
Sun, 12 Feb 2017 00:15:12 +0000 (10:15 +1000)
qcsrc/server/compat/quake3.qc

index 1c53de31ef1a1e84dbad3dd9eafacf5635a9b37b..e5cff0b9f1bb017eec9564290fcfc200b360abbf 100644 (file)
@@ -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 == "")