]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
#define use use1
authorTimePath <andrew.hardaker1995@gmail.com>
Mon, 28 Mar 2016 03:05:09 +0000 (14:05 +1100)
committerTimePath <andrew.hardaker1995@gmail.com>
Mon, 28 Mar 2016 03:05:09 +0000 (14:05 +1100)
66 files changed:
qcsrc/common/debug.qh
qcsrc/common/gamemodes/gamemode/onslaught/onslaught.qc
qcsrc/common/minigames/cl_minigames_hud.qc
qcsrc/common/monsters/monster/shambler.qc
qcsrc/common/monsters/monster/spider.qc
qcsrc/common/monsters/sv_monsters.qc
qcsrc/common/t_items.qc
qcsrc/common/triggers/func/breakable.qc
qcsrc/common/triggers/func/button.qc
qcsrc/common/triggers/func/conveyor.qc
qcsrc/common/triggers/func/door.qc
qcsrc/common/triggers/func/door_rotating.qc
qcsrc/common/triggers/func/door_secret.qc
qcsrc/common/triggers/func/plat.qc
qcsrc/common/triggers/func/pointparticles.qc
qcsrc/common/triggers/func/train.qc
qcsrc/common/triggers/misc/laser.qc
qcsrc/common/triggers/platforms.qc
qcsrc/common/triggers/target/changelevel.qc
qcsrc/common/triggers/target/music.qc
qcsrc/common/triggers/target/spawn.qc
qcsrc/common/triggers/target/speaker.qc
qcsrc/common/triggers/target/voicescript.qc
qcsrc/common/triggers/trigger/counter.qc
qcsrc/common/triggers/trigger/delay.qc
qcsrc/common/triggers/trigger/disablerelay.qc
qcsrc/common/triggers/trigger/flipflop.qc
qcsrc/common/triggers/trigger/gamestart.qc
qcsrc/common/triggers/trigger/gravity.qc
qcsrc/common/triggers/trigger/hurt.qc
qcsrc/common/triggers/trigger/jumppads.qc
qcsrc/common/triggers/trigger/keylock.qc
qcsrc/common/triggers/trigger/monoflop.qc
qcsrc/common/triggers/trigger/multi.qc
qcsrc/common/triggers/trigger/multivibrator.qc
qcsrc/common/triggers/trigger/relay.qc
qcsrc/common/triggers/trigger/relay_activators.qc
qcsrc/common/triggers/trigger/relay_if.qc
qcsrc/common/triggers/trigger/relay_teamcheck.qc
qcsrc/common/triggers/trigger/secret.qc
qcsrc/common/triggers/trigger/teleport.qc
qcsrc/common/triggers/triggers.qc
qcsrc/common/turrets/sv_turrets.qc
qcsrc/common/turrets/turret/ewheel.qc
qcsrc/common/turrets/turret/walker.qc
qcsrc/common/util.qh
qcsrc/common/vehicles/sv_vehicles.qc
qcsrc/common/vehicles/vehicle/racer_weapon.qc
qcsrc/common/vehicles/vehicle/spiderbot_weapons.qc
qcsrc/common/weapons/weapon/arc.qc
qcsrc/common/weapons/weapon/electro.qc
qcsrc/common/weapons/weapon/fireball.qc
qcsrc/common/weapons/weapon/hagar.qc
qcsrc/common/weapons/weapon/hook.qc
qcsrc/common/weapons/weapon/mortar.qc
qcsrc/common/weapons/weapon/seeker.qc
qcsrc/common/weapons/weapon/vaporizer.qc
qcsrc/dpdefs/csprogsdefs.qh
qcsrc/dpdefs/progsdefs.qh
qcsrc/lib/warpzone/server.qc
qcsrc/server/g_lights.qc
qcsrc/server/g_models.qc
qcsrc/server/miscfunctions.qc
qcsrc/server/mutators/mutator/gamemode_assault.qc
qcsrc/server/race.qc
qcsrc/server/spawnpoints.qc

index e20139aacc95acf1c3825e339a45302ad19b1c75..40b2b3547ef16116994ef2ce879f0a497fa6125d 100644 (file)
@@ -116,7 +116,7 @@ bool autocvar_debugdraw;
 //                                             if (it.maxs) break;
 //                                             if (it.size) break;
 //                                             if (it.touch) break;
-//                                             if (it.use1) break;
+//                                             if (it.use) break;
 //                                             if (it.think) break;
 //                                             if (it.blocked) break;
 //                                             if (it.nextthink) break;
index 056d33a03d679882abd344aced5c7fe5e5280236..ec69def5efe71e1a44574230e0d1c4d89273348c 100644 (file)
@@ -1954,7 +1954,7 @@ void ons_MonsterSpawn_Delayed(entity this)
                {
                        own.team = e.team;
 
-                       own.use1(own, e, NULL);
+                       own.use(own, e, NULL);
                }
        }
 
@@ -1984,7 +1984,7 @@ void ons_TurretSpawn_Delayed(entity this)
                        own.team = e.team;
                        own.active = ACTIVE_NOT;
 
-                       own.use1(own, e, NULL);
+                       own.use(own, e, NULL);
                }
        }
 
index 23ac4539f4cd0bf6bb860811a7e859ad42b616ca..56cae3c228867df92a9ee7d39fd9c5957cf68826 100644 (file)
@@ -115,7 +115,7 @@ void HUD_MinigameMenu_Click(entity menuitem)
 {
        if ( menuitem )
        {
-               menuitem.use1(menuitem, NULL, NULL);
+               menuitem.use(menuitem, NULL, NULL);
        }
 }
 
@@ -154,7 +154,7 @@ entity HUD_MinigameMenu_SpawnEntry(string s, vector offset, vector fontsize, vec
        entry.size = fontsize;
        entry.colormod = color;
        entry.flags = 0;
-       entry.use1 = click;
+       entry.use = click;
        panel_pos_y += fontsize_y;
        return entry;
 }
index eb3dfba988af33f25172d3258d927261182ba3fe..139967a2ccb5fcc5826265b9a488c32ea2bedc38 100644 (file)
@@ -128,7 +128,7 @@ void M_Shambler_Attack_Lightning_Touch()
 {SELFPARAM();
        PROJECTILE_TOUCH;
 
-       self.use1(this, NULL, NULL);
+       self.use(this, NULL, NULL);
 }
 
 void M_Shambler_Attack_Lightning_Think()
@@ -162,7 +162,7 @@ void M_Shambler_Attack_Lightning(entity this)
        gren.cnt = time + 5;
        gren.nextthink = time;
        gren.think = M_Shambler_Attack_Lightning_Think;
-       gren.use1 = M_Shambler_Attack_Lightning_Explode_use;
+       gren.use = M_Shambler_Attack_Lightning_Explode_use;
        gren.touch = M_Shambler_Attack_Lightning_Touch;
 
        gren.takedamage = DAMAGE_YES;
index c477d3ea66718b6f3cb70d86fc93ee243b268928..0b2e3650b4c3cdf23d86008393709646af99614d 100644 (file)
@@ -173,7 +173,7 @@ void M_Spider_Attack_Web(entity this)
 
        entity proj = new(plasma);
        proj.owner = proj.realowner = this;
-       proj.use1 = M_Spider_Attack_Web_Explode_use;
+       proj.use = M_Spider_Attack_Web_Explode_use;
        proj.think = adaptor_think2use_hittype_splash;
        proj.bot_dodge = true;
        proj.bot_dodgerating = 0;
index d1276fa52fc209dee741de3930b072394015a836..def29e969df9a8b373d50121deb37f77065877dc 100644 (file)
@@ -946,7 +946,7 @@ bool Monster_Appear_Check(entity this, int monster_id)
        this.think = func_null;
        this.monsterid = monster_id; // set so this monster is properly registered (otherwise, normal initialization is used)
        this.nextthink = 0;
-       this.use1 = Monster_Appear;
+       this.use = Monster_Appear;
        this.flags = FL_MONSTER; // set so this monster can get butchered
 
        return true;
@@ -1332,7 +1332,7 @@ bool Monster_Spawn(entity this, int mon_id)
        this.monsterid                  = mon_id;
        this.event_damage               = Monster_Damage;
        this.touch                              = Monster_Touch;
-       this.use1                               = Monster_Use;
+       this.use                                = Monster_Use;
        this.solid                              = SOLID_BBOX;
        this.movetype                   = MOVETYPE_WALK;
        this.spawnshieldtime    = time + autocvar_g_monsters_spawnshieldtime;
index 2c1b2a8ddae23bca2b08d410db17196863afe040..957a6fcc7ca23b8653eb32bbfed17023e0686152 100644 (file)
@@ -1453,7 +1453,7 @@ spawnfunc(target_items)
        float n, i;
        string s;
 
-       self.use1 = target_items_use;
+       self.use = target_items_use;
        if(!self.strength_finished)
                self.strength_finished = autocvar_g_balance_powerup_strength_time;
        if(!self.invincible_finished)
index 112d7ccf173e2dbe2c702d0ca2785792d8349164..34a048c6afed8a40d0afd0a8cb089efcf708a75e 100644 (file)
@@ -137,7 +137,7 @@ void func_breakable_behave_destroyed()
        self.event_damage = func_null;
        self.state = 1;
        if(self.spawnflags & 4)
-               self.use1 = func_null;
+               self.use = func_null;
        func_breakable_colormod();
        if (self.noise1)
                stopsound (self, CH_TRIGGER_SINGLE);
@@ -322,9 +322,9 @@ spawnfunc(func_breakable)
        SetBrushEntityModel();
 
        if(this.spawnflags & 4)
-               this.use1 = func_breakable_destroy;
+               this.use = func_breakable_destroy;
        else
-               this.use1 = func_breakable_restore;
+               this.use = func_breakable_restore;
 
        if(this.spawnflags & 4)
        {
index ba612713c074227e0cc84f3cbe669184c8daa2a2..a1cabdc6c0326d2fa82bb766bfc1f5cd8c87abef 100644 (file)
@@ -120,7 +120,7 @@ spawnfunc(func_button)
        self.effects |= EF_LOWPRECISION;
 
        self.blocked = button_blocked;
-       self.use1 = button_use;
+       self.use = button_use;
 
 //     if (self.health == 0) // all buttons are now shootable
 //             self.health = 10;
index 93b6502de50990911c9863613c33fb9ad99f022e..5cd17e7bfc3e1544cdeca427a884d09b5b542828 100644 (file)
@@ -116,7 +116,7 @@ void conveyor_init()
        this.nextthink = time;
        IFTARGETED
        {
-               this.use1 = conveyor_use;
+               this.use = conveyor_use;
                this.reset = conveyor_reset;
                this.reset(this);
        }
index 0546b2eae009f83316d4b83448dc8aa09bcad15e..30de40fa9c51874e28ef6f4b2290b9b6b146c1b8 100644 (file)
@@ -738,7 +738,7 @@ spawnfunc(func_door)
        precache_sound(self.noise3);
 
        self.blocked = door_blocked;
-       self.use1 = door_use;
+       self.use = door_use;
 
        if(self.dmg && (self.message == ""))
                self.message = "was squished";
@@ -842,7 +842,7 @@ NET_HANDLE(ENT_CLIENT_DOOR, bool isnew)
                this.trigger_touch = door_touch;
                this.draw = door_draw;
                this.drawmask = MASK_NORMAL;
-               this.use1 = door_use;
+               this.use = door_use;
 
                LinkDoors(this);
 
index f552090e9a23116b7009def40029c0b61f960e57..4c97fe6a8aa7c1d7584c4fb63d7c024a247c968e 100644 (file)
@@ -72,7 +72,7 @@ spawnfunc(func_door_rotating)
        self.classname = "door_rotating";
 
        self.blocked = door_blocked;
-       self.use1 = door_use;
+       self.use = door_use;
 
     if(self.spawnflags & 8)
         self.dmg = 10000;
index 0091448af0c08e4c339cabeb90cf16ee5fe7cc5b..3e45302040ca1f805e0e4681f1ae2fc3b4b580fa 100644 (file)
@@ -216,7 +216,7 @@ spawnfunc(func_door_secret)
        this.touch = secret_touch;
        this.blocked = secret_blocked;
        this.speed = 50;
-       this.use1 = fd_secret_use;
+       this.use = fd_secret_use;
        IFTARGETED
        {
        }
index badddf4cc626a75ee4c075fcfb29a4f0437367ab..14cfa564134b74e0c6633ac53d5862a05c4db6d7 100644 (file)
@@ -171,7 +171,7 @@ NET_HANDLE(ENT_CLIENT_PLAT, bool isnew)
                this.movetype = MOVETYPE_PUSH;
                this.drawmask = MASK_NORMAL;
                this.draw = plat_draw;
-               this.use1 = plat_use;
+               this.use = plat_use;
                this.entremove = trigger_remove_generic;
 
                plat_reset(this); // also called here
index 6c2bb43cbb128ebaacd13082872dc7a38d58186b..9cec88f99463f0563bce49a05d76457b77d06946 100644 (file)
@@ -137,7 +137,7 @@ spawnfunc(func_pointparticles)
 
        IFTARGETED
        {
-               this.use1 = pointparticles_use;
+               this.use = pointparticles_use;
                this.reset = pointparticles_reset;
                this.reset(this);
        }
index 0fa3ed60126fb8567a0d3853c7779848760453a5..013d4597fb8bf73d36773c00494a1887f41b7b61 100644 (file)
@@ -43,7 +43,7 @@ void train_wait()
        entity tg = find(world, targetname, self.target);
        if(tg.spawnflags & 4)
        {
-               self.use1 = train_use;
+               self.use = train_use;
                self.SUB_THINK = func_null;
                self.SUB_NEXTTHINK = 0;
        }
@@ -180,7 +180,7 @@ void train_use(entity this, entity actor, entity trigger)
 {
        this.SUB_NEXTTHINK = this.SUB_LTIME + 1;
        this.SUB_THINK = train_next;
-       this.use1 = func_null; // not again
+       this.use = func_null; // not again
 }
 
 void func_train_find(entity this)
@@ -224,7 +224,7 @@ spawnfunc(func_train)
        self.effects |= EF_LOWPRECISION;
 
        if(self.spawnflags & 4)
-               self.use1 = train_use;
+               self.use = train_use;
 
        if (self.spawnflags & 2)
        {
index 9c388f6fc5ecbea418557657e5820972381c16a8..6e589eddf04bf4da822ce56e56699b7d3d79ed89 100644 (file)
@@ -244,7 +244,7 @@ spawnfunc(misc_laser)
        {
                this.reset = laser_reset;
                this.reset(this);
-               this.use1 = laser_use;
+               this.use = laser_use;
        }
        else
                this.state = 1;
index b9937f04d36bcaf7627717ca58582df14db1d56e..7429f2b3550bfbf95db857da277f7b9f45d8d5fc 100644 (file)
@@ -178,7 +178,7 @@ void plat_crush()
 
 void plat_use(entity this, entity actor, entity trigger)
 {
-       this.use1 = func_null;
+       this.use = func_null;
        if (this.state != 4)
                objerror ("plat_use: not in up state");
        WITHSELF(this, plat_go_down());
@@ -192,13 +192,13 @@ void plat_reset(entity this)
        {
                setorigin (this, this.pos1);
                this.state = 4;
-               this.use1 = plat_use;
+               this.use = plat_use;
        }
        else
        {
                setorigin (this, this.pos2);
                this.state = 2;
-               this.use1 = plat_trigger_use;
+               this.use = plat_trigger_use;
        }
 
 #ifdef SVQC
index 3962957b3e992a614d3178afe44e8315669a047b..d4bc850de11eef0766ec3aeeefca3aca59ac75e6 100644 (file)
@@ -34,7 +34,7 @@ void target_changelevel_use(entity this, entity actor, entity trigger)
 
 spawnfunc(target_changelevel)
 {
-       this.use1 = target_changelevel_use;
+       this.use = target_changelevel_use;
 
        if(!this.count) { this.count = 0.7; }
 }
index 0b06efb2656c61071e7b268ced7889dd045fe2be..c48a0ba26b351270856be3c499e156fbdbd8c2dc 100644 (file)
@@ -60,7 +60,7 @@ void target_music_use(entity this, entity actor, entity trigger)
 }
 spawnfunc(target_music)
 {
-       self.use1 = target_music_use;
+       self.use = target_music_use;
        self.reset = target_music_reset;
        if(!self.volume)
                self.volume = 1;
@@ -148,7 +148,7 @@ spawnfunc(trigger_music)
        }
        trigger_music_reset(this);
 
-       this.use1 = trigger_music_use;
+       this.use = trigger_music_use;
        this.reset = trigger_music_reset;
 
        Net_LinkEntity(this, false, 0, trigger_music_SendEntity);
index e6114a520a97bad61dd1564227bf2fd95595ad36..74ac8fd99ad8899e6d556cbf9837929f0e2b2664 100644 (file)
@@ -330,7 +330,7 @@ void initialize_field_db()
 spawnfunc(target_spawn)
 {
        initialize_field_db();
-       self.use1 = target_spawn_use;
+       self.use = target_spawn_use;
        self.message = strzone(strreplace("'", "\"", self.message));
        self.target_spawn_id = ++target_spawn_count;
        InitializeEntity(self, target_spawn_spawnfirst, INITPRIO_LAST);
index c095597e5ebdfda65e0ad673fd7b4582df02c53f..046128f796d2cef4d353942496d952cb8d8c11c5 100644 (file)
@@ -54,23 +54,23 @@ void target_speaker_use_on(entity this, entity actor, entity trigger)
                snd = this.noise;
        _sound(this, CH_TRIGGER_SINGLE, snd, VOL_BASE * this.volume, this.atten);
        if(this.spawnflags & 3)
-               this.use1 = target_speaker_use_off;
+               this.use = target_speaker_use_off;
 }
 void target_speaker_use_off(entity this, entity actor, entity trigger)
 {
        sound(this, CH_TRIGGER_SINGLE, SND_Null, VOL_BASE * this.volume, this.atten);
-       this.use1 = target_speaker_use_on;
+       this.use = target_speaker_use_on;
 }
 void target_speaker_reset(entity this)
 {
        if(this.spawnflags & 1) // LOOPED_ON
        {
-               if(this.use1 == target_speaker_use_on)
+               if(this.use == target_speaker_use_on)
                        target_speaker_use_on(this, NULL, NULL);
        }
        else if(this.spawnflags & 2)
        {
-               if(this.use1 == target_speaker_use_off)
+               if(this.use == target_speaker_use_off)
                        target_speaker_use_off(this, NULL, NULL);
        }
 }
@@ -98,7 +98,7 @@ spawnfunc(target_speaker)
        IFTARGETED
        {
                if(self.spawnflags & 8) // ACTIVATOR
-                       self.use1 = target_speaker_use_activator;
+                       self.use = target_speaker_use_activator;
                else if(self.spawnflags & 1) // LOOPED_ON
                {
                        target_speaker_use_on(self, NULL, NULL);
@@ -106,11 +106,11 @@ spawnfunc(target_speaker)
                }
                else if(self.spawnflags & 2) // LOOPED_OFF
                {
-                       self.use1 = target_speaker_use_on;
+                       self.use = target_speaker_use_on;
                        self.reset = target_speaker_reset;
                }
                else
-                       self.use1 = target_speaker_use_on;
+                       self.use = target_speaker_use_on;
        }
        else if(self.spawnflags & 1) // LOOPED_ON
        {
index b6ed6dcffa5cf02c714fae764de76131cef7cd7d..e8433177094dfec0337a9e101f878bface1873c4 100644 (file)
@@ -84,7 +84,7 @@ spawnfunc(target_voicescript)
        // delay: initial delay before the first message
 
        float i, n;
-       self.use1 = target_voicescript_use;
+       self.use = target_voicescript_use;
 
        n = tokenize_console(self.message);
        self.cnt = n / 2;
index 07e5de68c55a31e042eec37bd1fc714ccc2176ae..5ada6805fc067ae7d4410ca29a5fb39f4ec8fd57 100644 (file)
@@ -43,7 +43,7 @@ spawnfunc(trigger_counter)
                self.count = 2;
        self.cnt = self.count;
 
-       self.use1 = counter_use;
+       self.use = counter_use;
        self.reset = counter_reset;
 }
 #endif
index 3329fc37a2ab8f6167ce39239fdc3468dffccdde..02c1aa968b7e14d302072f7d665e369fafcd9da3 100644 (file)
@@ -16,7 +16,7 @@ spawnfunc(trigger_delay)
     if(!self.wait)
         self.wait = 1;
 
-    self.use1 = delay_use;
+    self.use = delay_use;
     self.reset = delay_reset;
 }
 #endif
index 137213f34aa7a6b775586b4f45cab6b71b77caa9..a09e0ba09750a32cb4811116bd50f4bed1562d6b 100644 (file)
@@ -5,14 +5,14 @@ void trigger_disablerelay_use(entity this, entity actor, entity trigger)
 
        for(entity e = world; (e = find(e, targetname, this.target)); )
        {
-               if(e.use1 == SUB_UseTargets)
+               if(e.use == SUB_UseTargets)
                {
-                       e.use1 = SUB_DontUseTargets;
+                       e.use = SUB_DontUseTargets;
                        ++a;
                }
-               else if(e.use1 == SUB_DontUseTargets)
+               else if(e.use == SUB_DontUseTargets)
                {
-                       e.use1 = SUB_UseTargets;
+                       e.use = SUB_UseTargets;
                        ++b;
                }
        }
@@ -23,6 +23,6 @@ void trigger_disablerelay_use(entity this, entity actor, entity trigger)
 
 spawnfunc(trigger_disablerelay)
 {
-       this.use1 = trigger_disablerelay_use;
+       this.use = trigger_disablerelay_use;
 }
 #endif
index 8265d12351a89ecb3d8c0f7a7a0fa3393a345fd4..e4923bdf545bdf8cb43740858ffc384071191539 100644 (file)
@@ -13,7 +13,7 @@ spawnfunc(trigger_flipflop)
 {
     if(this.spawnflags & 1)
         this.state = 1;
-    this.use1 = flipflop_use;
+    this.use = flipflop_use;
     this.reset = spawnfunc_trigger_flipflop; // perfect resetter
 }
 
index 9e2cc26e10d6e143dbb01bd71fd401694229870d..5f3206a2af5bb470b16c388e306381e0b8aa8aae 100644 (file)
@@ -13,7 +13,7 @@ void gamestart_use_this(entity this)
 void self_spawnfunc_trigger_gamestart();
 spawnfunc(trigger_gamestart)
 {
-       this.use1 = gamestart_use;
+       this.use = gamestart_use;
        this.reset2 = self_spawnfunc_trigger_gamestart;
 
        if(this.wait)
index 1f61e50ac8908c9f209227263ba73c9280a017bf..c7dd586cb3b3f266435bed42dd0a458be6511d7e 100644 (file)
@@ -98,7 +98,7 @@ spawnfunc(trigger_gravity)
        self.state = true;
        IFTARGETED
        {
-               self.use1 = trigger_gravity_use;
+               self.use = trigger_gravity_use;
                if(self.spawnflags & 2)
                        self.state = false;
        }
index 1e29bf8d28ac5fcdc83c28ff73e15eeef9b75f35..a7ee567ebc08ec3c8a0615720e4cbe1fd35af98f 100644 (file)
@@ -62,7 +62,7 @@ spawnfunc(trigger_hurt)
        EXACTTRIGGER_INIT;
        self.active = ACTIVE_ACTIVE;
        self.touch = trigger_hurt_touch;
-       self.use1 = trigger_hurt_use;
+       self.use = trigger_hurt_use;
        self.enemy = world; // I hate you all
        if (!self.dmg)
                self.dmg = 1000;
index db3905b64206af487a0b469051d3d7b1ee264512..e52e7c2f92af4f24078712daac2ec27c41531035 100644 (file)
@@ -381,7 +381,7 @@ spawnfunc(trigger_push)
        trigger_init(this);
 
        this.active = ACTIVE_ACTIVE;
-       this.use1 = trigger_push_use;
+       this.use = trigger_push_use;
        this.touch = trigger_push_touch;
 
        // normal push setup
index cc45e2490fd5e6641af04b86771bf91b0a97a01e..311075aa0a0a0ed5c23cedc57d7194c4b6a0d937 100644 (file)
@@ -4,8 +4,8 @@
 void trigger_keylock_trigger(entity this, entity actor, string s)
 {
        for(entity t = world; (t = find(t, targetname, s)); )
-               if(t.use1)
-                       t.use1(t, actor, this);
+               if(t.use)
+                       t.use(t, actor, this);
 }
 
 /**
index 4c0e27c7563769bbe94a0313bbce3b3226e3231e..994d498c11e8b0a43056979fccd29ee5430542e7 100644 (file)
@@ -38,9 +38,9 @@ spawnfunc(trigger_monoflop)
        if(!this.wait)
                this.wait = 1;
        if(this.spawnflags & 1)
-               this.use1 = monoflop_fixed_use;
+               this.use = monoflop_fixed_use;
        else
-               this.use1 = monoflop_use;
+               this.use = monoflop_use;
        this.think = monoflop_think;
        this.state = 0;
        this.reset = monoflop_reset;
index 5576e5468e288acf2357e006abd3dd8a1e50fc40..ce7bba67321ce482a15c9f28bf414742029d9f49 100644 (file)
@@ -158,7 +158,7 @@ spawnfunc(trigger_multiple)
                self.wait = 0.2;
        else if(self.wait < -1)
                self.wait = 0;
-       self.use1 = multi_use;
+       self.use = multi_use;
 
        EXACTTRIGGER_INIT;
 
index 886bed55cfb519e244461ab381c99ba89f665597..a50f62b7abd699f207746792a1693f7a07dd9c26 100644 (file)
@@ -62,7 +62,7 @@ spawnfunc(trigger_multivibrator)
                self.respawntime = self.wait;
 
        self.state = 0;
-       self.use1 = multivibrator_toggle;
+       self.use = multivibrator_toggle;
        self.think = multivibrator_send;
        self.nextthink = max(1, time);
 
index a3fcb95129afbdcbf3b2c740b1defa0272744bbc..1df446ba32ee4345a936fc0512c98eb5aa191a65 100644 (file)
@@ -4,7 +4,7 @@ This fixed size trigger cannot be touched, it can only be fired by other events.
 */
 spawnfunc(trigger_relay)
 {
-       this.use1 = SUB_UseTargets;
+       this.use = SUB_UseTargets;
        this.reset = spawnfunc_trigger_relay; // this spawnfunc resets fully
 }
 #endif
index f47e4ae3306b83857a1ac7a396f27539ce35949d..dabbbd2d96b05acad53b2ee499377b7dc6383d6a 100644 (file)
@@ -22,18 +22,18 @@ void relay_activators_use(entity this, entity actor, entity trigger)
 spawnfunc(relay_activate)
 {
        this.cnt = ACTIVE_ACTIVE;
-       this.use1 = relay_activators_use;
+       this.use = relay_activators_use;
 }
 
 spawnfunc(relay_deactivate)
 {
        this.cnt = ACTIVE_NOT;
-       this.use1 = relay_activators_use;
+       this.use = relay_activators_use;
 }
 
 spawnfunc(relay_activatetoggle)
 {
        this.cnt = ACTIVE_TOGGLE;
-       this.use1 = relay_activators_use;
+       this.use = relay_activators_use;
 }
 #endif
index 1d7991cbabf40b41157f86ebc1a32ff5327b4e30..ea90a06cb70d19865b24365bf582ebfbcadcfaee 100644 (file)
@@ -14,6 +14,6 @@ void trigger_relay_if_use(entity this, entity actor, entity trigger)
 
 spawnfunc(trigger_relay_if)
 {
-       this.use1 = trigger_relay_if_use;
+       this.use = trigger_relay_if_use;
 }
 #endif
index 289371fccdcf34f883fe849b269d28789c664628..2972d32bbf79b3e23fa6da66e4e9569e982a6824 100644 (file)
@@ -29,7 +29,7 @@ void trigger_relay_teamcheck_reset(entity this)
 spawnfunc(trigger_relay_teamcheck)
 {
        this.team_saved = this.team;
-       this.use1 = trigger_relay_teamcheck_use;
+       this.use = trigger_relay_teamcheck_use;
        this.reset = trigger_relay_teamcheck_reset;
 }
 #endif
index cb64f9602cdd52954268816ec92fc05053028112..f94cd00ad9680e5b61b203c2c2b4e9eeaa10c3eb 100644 (file)
@@ -82,6 +82,6 @@ spawnfunc(trigger_secret)
        // take over the touch() function, so we can mark secret as found
        self.touch = trigger_secret_touch;
        // ignore triggering;
-       self.use1 = func_null;
+       self.use = func_null;
 }
 #endif
index 49e8cdb5549ddf462990a7230617062f77b408d1..c9b8147139aa8eb27b99a5b28694a41092e046ac 100644 (file)
@@ -84,7 +84,7 @@ spawnfunc(trigger_teleport)
        self.active = ACTIVE_ACTIVE;
        //trigger_init(self); // only for predicted triggers?
        EXACTTRIGGER_INIT;
-       self.use1 = trigger_teleport_use;
+       self.use = trigger_teleport_use;
 
        if(self.noise != "")
                FOREACH_WORD(self.noise, true, precache_sound(it));
index 691aea5056cc09908feb67b6dafa84ea517814ee..4493138d08dca032f149aaba09a4f8e5f2817f53 100644 (file)
@@ -254,7 +254,7 @@ void SUB_UseTargets(entity this, entity actor, entity trigger)
                        int aw_flag = this.antiwall_flag;
                        for(entity t = world; (t = find(t, targetname, s)); )
                        {
-                               if(t.use1)
+                               if(t.use)
                                {
                                        if(this.target_random)
                                        {
@@ -265,7 +265,7 @@ void SUB_UseTargets(entity this, entity actor, entity trigger)
                                                if (t.classname == "func_clientwall" || t.classname == "func_clientillusionary")
                                                        t.antiwall_flag = aw_flag;
 
-                                               t.use1(t, actor, this);
+                                               t.use(t, actor, this);
                                        }
                                }
                        }
@@ -273,7 +273,7 @@ void SUB_UseTargets(entity this, entity actor, entity trigger)
        }
 
        if(this.target_random && RandomSelection_chosen_ent)
-               RandomSelection_chosen_ent.use1(RandomSelection_chosen_ent, actor, this);
+               RandomSelection_chosen_ent.use(RandomSelection_chosen_ent, actor, this);
 }
 
 void SUB_UseTargets_self()
index c226a9867bed6950378f1429e5665a0e87743dd3..2578c1e6dba117bc781648eb08e6bfa94f5aeccc 100644 (file)
@@ -1341,7 +1341,7 @@ float turret_initialize(Turret tur)
        self.view_ofs                           = '0 0 0';
        self.turret_firecheckfunc       = turret_firecheck;
        self.event_damage                       = turret_damage;
-       self.use1                                       = turret_use;
+       self.use                                        = turret_use;
        self.bot_attack                         = true;
        self.nextthink                          = time + 1;
        self.nextthink                     += turret_count * sys_frametime;
index 1c3d5731fd69549bdf0af6e17352d83c79c230bb..0bdfca46ed2cec92acc84a9f96d81f34114e4385 100644 (file)
@@ -49,8 +49,8 @@ void ewheel_move_path()
 
             if (self.pathgoal)
             {
-                if (self.pathgoal.use1)
-                    self.pathgoal.use1(self.pathgoal, NULL, NULL);
+                if (self.pathgoal.use)
+                    self.pathgoal.use(self.pathgoal, NULL, NULL);
 
                 if (self.pathgoal.enemy)
                 {
index d99479cb180a7efcfb8419e73f7c6fd80bb2c35c..51ace9a7d0ddab65889b3c062d587743cdc022e1 100644 (file)
@@ -312,8 +312,8 @@ void walker_move_path()
 
             if (self.pathgoal)
             {
-                if (self.pathgoal.use1)
-                    self.pathgoal.use1(self, NULL, NULL);
+                if (self.pathgoal.use)
+                    self.pathgoal.use(self, NULL, NULL);
 
                 if (self.pathgoal.enemy)
                 {
index 36bd8b59db7232dcede00557a1e98fb985071741..ef36eb230d9bf39ed31ecf848625492a2663f339 100644 (file)
@@ -2,7 +2,6 @@
 #define COMMON_UTIL_H
 
 #ifndef MENUQC
-.void(entity this, entity actor, entity trigger) use1;
 
 vector real_origin(entity ent);
 #endif
index 69907c04b3187ec16a07a29405cfd80b0f5eb284..fc44613e5d111cbafd02f69700f9552b09fb7678 100644 (file)
@@ -262,7 +262,7 @@ entity vehicles_projectile(entity this, string _mzlfx, Sound _mzlsound,
        proj.bot_dodgerating  = _dmg;
        proj.velocity            = _vel;
        proj.touch                      = vehicles_projectile_explode;
-       proj.use1                         = vehicles_projectile_explode_use;
+       proj.use                          = vehicles_projectile_explode_use;
        proj.owner                      = this;
        proj.realowner          = _owner;
        proj.think                      = SUB_Remove_self;
@@ -1184,7 +1184,7 @@ bool vehicle_initialize(entity this, Vehicle info, bool nodrop)
                else
                {
                        this.team = this.vehicle_controller.team;
-                       this.use1 = vehicle_use;
+                       this.use = vehicle_use;
 
                        if(teamplay)
                        {
index 65f82459b36a98bcf8885f37125e1a06fef850af..36655fd1de8a9bf56683ad17fb9df789ab42440a 100644 (file)
@@ -74,7 +74,7 @@ void racer_rocket_tracker()
 
     if (IS_DEAD(self.owner) || self.cnt < time)
     {
-        self.use1(self, NULL, NULL);
+        self.use(self, NULL, NULL);
         return;
     }
 
@@ -126,7 +126,7 @@ void racer_rocket_groundhugger()
 
     if(IS_DEAD(self.owner) || self.cnt < time)
     {
-        self.use1(self, NULL, NULL);
+        self.use(self, NULL, NULL);
         return;
     }
 
index caf64c06860f58ec823eab5432e619e4b2068b43..dd209676d49dce7f7206b02c9c286ddc145dc139 100644 (file)
@@ -23,7 +23,7 @@ void spiderbot_rocket_unguided()
     UpdateCSQCProjectile(self);
 
     if (IS_DEAD(self.owner) || self.cnt < time || vdist(self.pos1 - self.origin, <, 16))
-        self.use1(self, NULL, NULL);
+        self.use(self, NULL, NULL);
 }
 
 void spiderbot_rocket_guided()
@@ -43,7 +43,7 @@ void spiderbot_rocket_guided()
     UpdateCSQCProjectile(self);
 
     if (IS_DEAD(self.owner) || self.cnt < time)
-        self.use1(self, NULL, NULL);
+        self.use(self, NULL, NULL);
 }
 
 void spiderbot_guide_release(entity this)
index 804a24fb7d886beff6f73c3cd9993cf68ad7d4e3..cf391b034a3e76807eab3187e41cb287e33f257b 100644 (file)
@@ -262,7 +262,7 @@ void W_Arc_Bolt_Damage(entity this, entity inflictor, entity attacker, float dam
 void W_Arc_Bolt_Touch()
 {SELFPARAM();
        PROJECTILE_TOUCH;
-       self.use1(this, NULL, NULL);
+       self.use(this, NULL, NULL);
 }
 
 void W_Arc_Attack_Bolt(Weapon thiswep)
@@ -287,7 +287,7 @@ void W_Arc_Attack_Bolt(Weapon thiswep)
        missile.damagedbycontents = true;
 
        missile.touch = W_Arc_Bolt_Touch;
-       missile.use1 = W_Arc_Bolt_Explode_use;
+       missile.use = W_Arc_Bolt_Explode_use;
        missile.think = adaptor_think2use_hittype_splash;
        missile.nextthink = time + WEP_CVAR(arc, bolt_lifetime);
        PROJECTILE_MAKETRIGGER(missile);
index 71ce3cb9461b6d938b5cb482a5c2bf053a2d4807..315ea5a5a470731d5f699df18ae81c1e1e4eeea0 100644 (file)
@@ -206,7 +206,7 @@ void W_Electro_Bolt_Think()
 {SELFPARAM();
        if(time >= self.ltime)
        {
-               this.use1(this, NULL, NULL);
+               this.use(this, NULL, NULL);
                return;
        }
 
@@ -247,7 +247,7 @@ void W_Electro_Bolt_Think()
 
                // if we triggered an orb, should we explode? if not, lets try again next time
                if(found && WEP_CVAR_PRI(electro, midaircombo_explode))
-                       { this.use1(this, NULL, NULL); }
+                       { this.use(this, NULL, NULL); }
                else
                        { self.nextthink = min(time + WEP_CVAR_PRI(electro, midaircombo_interval), self.ltime); }
        }
@@ -277,7 +277,7 @@ void W_Electro_Attack_Bolt(Weapon thiswep)
        proj.owner = proj.realowner = self;
        proj.bot_dodge = true;
        proj.bot_dodgerating = WEP_CVAR_PRI(electro, damage);
-       proj.use1 = W_Electro_Explode_use;
+       proj.use = W_Electro_Explode_use;
        proj.think = W_Electro_Bolt_Think;
        proj.nextthink = time;
        proj.ltime = time + WEP_CVAR_PRI(electro, lifetime);
@@ -347,7 +347,7 @@ void W_Electro_Orb_Damage(entity this, entity inflictor, entity attacker, float
                }
                else
                {
-                       this.use1 = W_Electro_Explode_use;
+                       this.use = W_Electro_Explode_use;
                        this.think = adaptor_think2use; // not _hittype_splash, as this runs "immediately"
                }
        }
@@ -374,7 +374,7 @@ void W_Electro_Attack_Orb(Weapon thiswep)
 
        entity proj = new(electro_orb);
        proj.owner = proj.realowner = self;
-       proj.use1 = W_Electro_Explode_use;
+       proj.use = W_Electro_Explode_use;
        proj.think = adaptor_think2use_hittype_splash;
        proj.bot_dodge = true;
        proj.bot_dodgerating = WEP_CVAR_SEC(electro, damage);
index a86def7d3635f36ab2f1249b1f7c8ae3b324f653..4bbcdb68e50498af226bafb5a21f8bead1f2bf8b 100644 (file)
@@ -201,7 +201,7 @@ void W_Fireball_Attack1()
        proj.bot_dodge = true;
        proj.bot_dodgerating = WEP_CVAR_PRI(fireball, damage);
        proj.pushltime = time + WEP_CVAR_PRI(fireball, lifetime);
-       proj.use1 = W_Fireball_Explode_use;
+       proj.use = W_Fireball_Explode_use;
        proj.think = W_Fireball_Think;
        proj.nextthink = time;
        proj.health = WEP_CVAR_PRI(fireball, health);
index 94d3e5f66acabedb8129a64b0a9b125e7a79876a..2e648f780e0bb7d400b5972477186bf023381f32 100644 (file)
@@ -116,7 +116,7 @@ void W_Hagar_Damage(entity this, entity inflictor, entity attacker, float damage
 void W_Hagar_Touch()
 {SELFPARAM();
        PROJECTILE_TOUCH;
-       this.use1(this, NULL, NULL);
+       this.use(this, NULL, NULL);
 }
 
 void W_Hagar_Touch2()
@@ -124,7 +124,7 @@ void W_Hagar_Touch2()
        PROJECTILE_TOUCH;
 
        if(self.cnt > 0 || other.takedamage == DAMAGE_AIM) {
-               this.use1(this, NULL, NULL);
+               this.use(this, NULL, NULL);
        } else {
                self.cnt++;
                Send_Effect(EFFECT_HAGAR_BOUNCE, self.origin, self.velocity, 1);
@@ -156,7 +156,7 @@ void W_Hagar_Attack(Weapon thiswep)
        missile.damagedbycontents = true;
 
        missile.touch = W_Hagar_Touch;
-       missile.use1 = W_Hagar_Explode_use;
+       missile.use = W_Hagar_Explode_use;
        missile.think = adaptor_think2use_hittype_splash;
        missile.nextthink = time + WEP_CVAR_PRI(hagar, lifetime);
        PROJECTILE_MAKETRIGGER(missile);
@@ -199,7 +199,7 @@ void W_Hagar_Attack2(Weapon thiswep)
 
        missile.touch = W_Hagar_Touch2;
        missile.cnt = 0;
-       missile.use1 = W_Hagar_Explode2_use;
+       missile.use = W_Hagar_Explode2_use;
        missile.think = adaptor_think2use_hittype_splash;
        missile.nextthink = time + WEP_CVAR_SEC(hagar, lifetime_min) + random() * WEP_CVAR_SEC(hagar, lifetime_rand);
        PROJECTILE_MAKETRIGGER(missile);
@@ -257,7 +257,7 @@ void W_Hagar_Attack2_Load_Release(.entity weaponentity)
                missile.damagedbycontents = true;
 
                missile.touch = W_Hagar_Touch; // not bouncy
-               missile.use1 = W_Hagar_Explode2_use;
+               missile.use = W_Hagar_Explode2_use;
                missile.think = adaptor_think2use_hittype_splash;
                missile.nextthink = time + WEP_CVAR_SEC(hagar, lifetime_min) + random() * WEP_CVAR_SEC(hagar, lifetime_rand);
                PROJECTILE_MAKETRIGGER(missile);
index da14caac9dd01ed611ed847a919fd7f799084764..fac16c48716422cdc800cb1e62cd3c999947ce13 100644 (file)
@@ -140,7 +140,7 @@ void W_Hook_Damage(entity this, entity inflictor, entity attacker, float damage,
 void W_Hook_Touch2()
 {SELFPARAM();
        PROJECTILE_TOUCH;
-       this.use1(this, NULL, NULL);
+       this.use(this, NULL, NULL);
 }
 
 void W_Hook_Attack2(Weapon thiswep, entity actor)
@@ -160,7 +160,7 @@ void W_Hook_Attack2(Weapon thiswep, entity actor)
 
        gren.nextthink = time + WEP_CVAR_SEC(hook, lifetime);
        gren.think = adaptor_think2use_hittype_splash;
-       gren.use1 = W_Hook_Explode2_use;
+       gren.use = W_Hook_Explode2_use;
        gren.touch = W_Hook_Touch2;
 
        gren.takedamage = DAMAGE_YES;
index f871da725a38f45cdfff52237cc3877845b55970..5fbacc7ba4b958cffef6f406d7b1ce53d76853d9 100644 (file)
@@ -147,7 +147,7 @@ void W_Mortar_Grenade_Touch1()
        PROJECTILE_TOUCH;
        if(other.takedamage == DAMAGE_AIM || WEP_CVAR_PRI(mortar, type) == 0) // always explode when hitting a player, or if normal mortar projectile
        {
-               this.use1(this, NULL, NULL);
+               this.use(this, NULL, NULL);
        }
        else if(WEP_CVAR_PRI(mortar, type) == 1) // bounce
        {
@@ -179,7 +179,7 @@ void W_Mortar_Grenade_Touch2()
        PROJECTILE_TOUCH;
        if(other.takedamage == DAMAGE_AIM || WEP_CVAR_SEC(mortar, type) == 0) // always explode when hitting a player, or if normal mortar projectile
        {
-               this.use1(this, NULL, NULL);
+               this.use(this, NULL, NULL);
        }
        else if(WEP_CVAR_SEC(mortar, type) == 1) // bounce
        {
@@ -236,7 +236,7 @@ void W_Mortar_Attack(Weapon thiswep)
        gren.cnt = time + WEP_CVAR_PRI(mortar, lifetime);
        gren.nextthink = time;
        gren.think = W_Mortar_Grenade_Think1;
-       gren.use1 = W_Mortar_Grenade_Explode_use;
+       gren.use = W_Mortar_Grenade_Explode_use;
        gren.touch = W_Mortar_Grenade_Touch1;
 
        gren.takedamage = DAMAGE_YES;
@@ -283,7 +283,7 @@ void W_Mortar_Attack2(Weapon thiswep)
 
        gren.nextthink = time + WEP_CVAR_SEC(mortar, lifetime);
        gren.think = adaptor_think2use_hittype_splash;
-       gren.use1 = W_Mortar_Grenade_Explode2_use;
+       gren.use = W_Mortar_Grenade_Explode2_use;
        gren.touch = W_Mortar_Grenade_Touch2;
 
        gren.takedamage = DAMAGE_YES;
index 86ea7d1f544d380c1e65784bb2ee7e1ef0d5c21b..6dffec39d3378eddba5453c46bc45e171cc4bb50 100644 (file)
@@ -360,7 +360,7 @@ void W_Seeker_Fire_Flac(Weapon thiswep)
        missile.bot_dodge               = true;
        missile.bot_dodgerating = WEP_CVAR(seeker, flac_damage);
        missile.touch                   = W_Seeker_Flac_Explode;
-       missile.use1                    = W_Seeker_Flac_Explode_use;
+       missile.use                     = W_Seeker_Flac_Explode_use;
        missile.think                   = adaptor_think2use_hittype_splash;
        missile.nextthink               = time + WEP_CVAR(seeker, flac_lifetime) + WEP_CVAR(seeker, flac_lifetime_rand);
        missile.solid                   = SOLID_BBOX;
index f9cdc00e958ca93f9356a86d6c722f14dad9cd72..8ce6caadd546b337e0ccd88c3ade4cfcf5400b6d 100644 (file)
@@ -263,7 +263,7 @@ void W_RocketMinsta_Attack2()
         proj.owner = proj.realowner = self;
         proj.bot_dodge = true;
         proj.bot_dodgerating = autocvar_g_rm_laser_damage;
-        proj.use1 = W_RocketMinsta_Laser_Explode_use;
+        proj.use = W_RocketMinsta_Laser_Explode_use;
         proj.think = adaptor_think2use_hittype_splash;
         proj.nextthink = time + autocvar_g_rm_laser_lifetime;
         PROJECTILE_MAKETRIGGER(proj);
@@ -315,7 +315,7 @@ void W_RocketMinsta_Attack3 ()
         proj.owner = proj.realowner = self;
         proj.bot_dodge = true;
         proj.bot_dodgerating = autocvar_g_rm_laser_damage;
-        proj.use1 = W_RocketMinsta_Laser_Explode_use;
+        proj.use = W_RocketMinsta_Laser_Explode_use;
         proj.think = adaptor_think2use_hittype_splash;
         proj.nextthink = time + autocvar_g_rm_laser_lifetime;
         PROJECTILE_MAKETRIGGER(proj);
index ce39bca1bda2ff74ead4a9bb5d9a1399a120c132..d0125b5e315c83d2a11c57da8a54785b8157211d 100644 (file)
@@ -41,4 +41,7 @@
 
 #pragma noref 0
 
+#define use use1
+.void(entity this, entity actor, entity trigger) use;
+
 #endif
index 783ac036faf07c3e645cce833b78c3bb6ab5e1d1..e2668a54b7cc5173d2aad78b1b4681f0a54fbc30 100644 (file)
@@ -28,4 +28,7 @@ MACRO_END
 
 #pragma noref 0
 
+#define use use1
+.void(entity this, entity actor, entity trigger) use;
+
 #endif
index d9d4b62223b585d56b2722e93ff20c03054916df..f8260b5ad0a7c3c2b7c4fb52bef6699efe7ade73 100644 (file)
@@ -919,7 +919,7 @@ void trigger_warpzone_reconnect_use(entity this, entity actor, entity trigger)
 
 spawnfunc(trigger_warpzone_reconnect)
 {
-       this.use1 = trigger_warpzone_reconnect_use;
+       this.use = trigger_warpzone_reconnect_use;
 }
 
 spawnfunc(target_warpzone_reconnect)
index 218f219645d8faa43a5e49746f74c7345b2bdce9..352f0be430469aa3c10fa698918ee0f91b9f92dc 100644 (file)
@@ -96,7 +96,7 @@ spawnfunc(dynlight)
        if (!self.color)
                self.color = '1 1 1';
        self.lefty = self.light_lev;
-       self.use1 = dynlight_use;
+       self.use = dynlight_use;
        setsize (self, '0 0 0', '0 0 0');
        setorigin (self, self.origin);
        //self.pflags = PFLAGS_FULLDYNAMIC;
index 003b2efa97bede28379f45d50f84c7eaa163ded1..6623a0778e7c41be3db9d3677dd696b19c8c2e96 100644 (file)
@@ -168,7 +168,7 @@ bool g_clientmodel_genericsendentity(entity this, entity to, int sf)
        if(self.geomtype) if(autocvar_physics_ode && checkextension("DP_PHYSICS_ODE")) self.movetype = MOVETYPE_PHYSICS; \
        if(!self.scale) self.scale = self.modelscale; \
        SetBrushEntityModel(); \
-       self.use1 = g_model_setcolormaptoactivator; \
+       self.use = g_model_setcolormaptoactivator; \
        InitializeEntity(self, g_model_dropbyspawnflags, INITPRIO_DROPTOFLOOR); \
        if(!self.solid) self.solid = (sol); else if(self.solid < 0) self.solid = SOLID_NOT;
 
@@ -176,7 +176,7 @@ bool g_clientmodel_genericsendentity(entity this, entity to, int sf)
        if(self.geomtype) if(autocvar_physics_ode && checkextension("DP_PHYSICS_ODE")) self.movetype = MOVETYPE_PHYSICS; \
        if(!self.scale) self.scale = self.modelscale; \
        SetBrushEntityModel(); \
-       self.use1 = g_clientmodel_use; \
+       self.use = g_clientmodel_use; \
        InitializeEntity(self, g_clientmodel_dropbyspawnflags, INITPRIO_DROPTOFLOOR); \
        if(!self.solid) self.solid = (sol); else if(self.solid < 0) self.solid = SOLID_NOT; \
        if(!self.bgmscriptsustain) self.bgmscriptsustain = 1; else if(self.bgmscriptsustain < 0) self.bgmscriptsustain = 0; \
index ab3c204a3676222efb07416e274f85bcc13e5038..9b5a279d55047cfa3b70e523e25d7484d4afe441 100644 (file)
@@ -969,8 +969,8 @@ void adaptor_think2touch()
 
 void adaptor_think2use()
 {SELFPARAM();
-       if(this.use1)
-       this.use1(this, NULL, NULL);
+       if(this.use)
+       this.use(this, NULL, NULL);
 }
 
 void adaptor_think2use_hittype_splash() // for timed projectile detonation
index cb6d55829fd8d15bb4f52b1a8b10e11b0c1e855e..7d2b31c89a4af0fd8d300deee221f0adcf5d9bca 100644 (file)
@@ -361,7 +361,7 @@ spawnfunc(target_objective)
        if (!g_assault) { remove(this); return; }
 
        this.classname = "target_objective";
-       this.use1 = assault_objective_use;
+       this.use = assault_objective_use;
        this.reset = assault_objective_reset;
        this.reset(this);
        this.spawn_evalfunc = target_objective_spawn_evalfunc;
@@ -376,7 +376,7 @@ spawnfunc(target_objective_decrease)
        if(!self.dmg)
                self.dmg = 101;
 
-       self.use1 = assault_objective_decrease_use;
+       self.use = assault_objective_decrease_use;
        self.health = ASSAULT_VALUE_INACTIVE;
        self.max_health = ASSAULT_VALUE_INACTIVE;
        self.enemy = world;
@@ -420,7 +420,7 @@ spawnfunc(target_assault_roundend)
 
        self.winning = 0; // round not yet won by attackers
        self.classname = "target_assault_roundend";
-       self.use1 = target_assault_roundend_use;
+       self.use = target_assault_roundend_use;
        self.cnt = 0; // first round
        self.reset = target_assault_roundend_reset;
 }
@@ -431,7 +431,7 @@ spawnfunc(target_assault_roundstart)
 
        assault_attacker_team = NUM_TEAM_1;
        self.classname = "target_assault_roundstart";
-       self.use1 = assault_roundstart_use;
+       self.use = assault_roundstart_use;
        self.reset2 = assault_roundstart_use_self;
        InitializeEntity(self, assault_roundstart_use_this, INITPRIO_FINDTARGET);
 }
index 5a023a1dcc8224cecfdc6a4368bbd27761779c70..d24a0769b5a4b1b7834c76ca04fca34d588c63ab 100644 (file)
@@ -912,7 +912,7 @@ spawnfunc(trigger_race_checkpoint)
 
        EXACTTRIGGER_INIT;
 
-       self.use1 = checkpoint_use;
+       self.use = checkpoint_use;
        if (!(self.spawnflags & 1))
                self.touch = checkpoint_touch;
 
@@ -961,7 +961,7 @@ spawnfunc(target_checkpoint) // defrag entity
 
        EXACTTRIGGER_INIT;
 
-       self.use1 = checkpoint_use;
+       self.use = checkpoint_use;
        if (!(self.spawnflags & 1))
                self.touch = checkpoint_touch;
 
@@ -1117,7 +1117,7 @@ spawnfunc(trigger_race_penalty)
 
        EXACTTRIGGER_INIT;
 
-       self.use1 = penalty_use;
+       self.use = penalty_use;
        if (!(self.spawnflags & 1))
                self.touch = penalty_touch;
 
index 31e941ad44b8c276e2007dced17cd67a0fc157d6..711b15df560536d11057ff34b19ef5b506253559 100644 (file)
@@ -102,7 +102,7 @@ void relocate_spawnpoint()
         }
     }
 
-    self.use1 = spawnpoint_use;
+    self.use = spawnpoint_use;
     self.think = spawnpoint_think;
     self.nextthink = time + 0.5 + random() * 2; // shouldn't need it for a little second
     self.team_saved = self.team;