]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/compat/quake3.qc
Merge branch 'master' into Mario/stats_eloranking
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / compat / quake3.qc
index 8eb8273888a86b74f1e91a253d8ff0b7f55e8bba..de069be87d38570ce238752613199bca88558192 100644 (file)
@@ -4,6 +4,7 @@
 #include <server/miscfunctions.qh>
 #include <server/items.qh>
 #include <server/resources.qh>
+#include <common/mapobjects/triggers.qh>
 #include <common/weapons/_all.qh>
 
 spawnfunc(target_items);
@@ -107,7 +108,7 @@ void target_init_use(entity this, entity actor, entity trigger)
                SetResourceAmount(actor, RESOURCE_PLASMA, start_ammo_plasma);
                SetResourceAmount(actor, RESOURCE_FUEL, start_ammo_fuel);
 
-               actor.weapons = start_weapons;
+               STAT(WEAPONS, actor) = start_weapons;
                if (this.spawnflags & 32)
                {
                        // TODO
@@ -118,7 +119,7 @@ void target_init_use(entity this, entity actor, entity trigger)
        {
                actor.strength_finished = 0;
                actor.invincible_finished = 0;
-               actor.buffs = 0;
+               STAT(BUFFS, actor) = 0;
        }
 
        if (!(this.spawnflags & 16))