setorigin(this, this.origin);
_setmodel(this, tur.model);
_setmodel(this.tur_head, tur.head_model);
- setsize(this, tur.mins, tur.maxs);
+ setsize(this, tur.m_mins, tur.m_maxs);
setsize(this.tur_head, '0 0 0', '0 0 0');
if(this.m_id == TUR_EWHEEL.m_id)
++turret_count;
_setmodel(this, tur.model);
- setsize(this, tur.mins, tur.maxs);
+ setsize(this, tur.m_mins, tur.m_maxs);
this.m_id = tur.m_id;
this.classname = "turret_main";
ATTRIB(Turret, spawnflags, int, 0);
/** turret hitbox size */
- ATTRIB(Turret, mins, vector, '-0 -0 -0');
+ ATTRIB(Turret, m_mins, vector, '-0 -0 -0');
/** turret hitbox size */
- ATTRIB(Turret, maxs, vector, '0 0 0');
+ ATTRIB(Turret, m_maxs, vector, '0 0 0');
METHOD(Turret, display, void(Turret this, void(string name, string icon) returns)) {
returns(this.turret_name, string_null);
CLASS(EWheel, Turret)
/* spawnflags */ ATTRIB(EWheel, spawnflags, int, TUR_FLAG_PLAYER | TUR_FLAG_MOVE | TUR_FLAG_ROAM);
-/* mins */ ATTRIB(EWheel, mins, vector, '-32 -32 0');
-/* maxs */ ATTRIB(EWheel, maxs, vector, '32 32 48');
+/* mins */ ATTRIB(EWheel, m_mins, vector, '-32 -32 0');
+/* maxs */ ATTRIB(EWheel, m_maxs, vector, '32 32 48');
/* modelname */ ATTRIB(EWheel, mdl, string, "ewheel-base2.md3");
/* model */ ATTRIB_STRZONE(EWheel, model, string, strcat("models/turrets/", this.mdl));
/* head_model */ ATTRIB_STRZONE(EWheel, head_model, string, strcat("models/turrets/", "ewheel-gun1.md3"));
CLASS(Flac, Turret)
/* spawnflags */ ATTRIB(Flac, spawnflags, int, TUR_FLAG_SPLASH | TUR_FLAG_FASTPROJ | TUR_FLAG_MISSILE);
-/* mins */ ATTRIB(Flac, mins, vector, '-32 -32 0');
-/* maxs */ ATTRIB(Flac, maxs, vector, '32 32 64');
+/* mins */ ATTRIB(Flac, m_mins, vector, '-32 -32 0');
+/* maxs */ ATTRIB(Flac, m_maxs, vector, '32 32 64');
/* modelname */ ATTRIB(Flac, mdl, string, "base.md3");
/* model */ ATTRIB_STRZONE(Flac, model, string, strcat("models/turrets/", this.mdl));
/* head_model */ ATTRIB_STRZONE(Flac, head_model, string, strcat("models/turrets/", "flac.md3"));
CLASS(FusionReactor, Turret)
/* spawnflags */ ATTRIB(FusionReactor, spawnflags, int, TUR_FLAG_SUPPORT | TUR_FLAG_AMMOSOURCE);
-/* mins */ ATTRIB(FusionReactor, mins, vector, '-34 -34 0');
-/* maxs */ ATTRIB(FusionReactor, maxs, vector, '34 34 90');
+/* mins */ ATTRIB(FusionReactor, m_mins, vector, '-34 -34 0');
+/* maxs */ ATTRIB(FusionReactor, m_maxs, vector, '34 34 90');
/* modelname */ ATTRIB(FusionReactor, mdl, string, "base.md3");
/* model */ ATTRIB_STRZONE(FusionReactor, model, string, strcat("models/turrets/", this.mdl));
/* head_model */ ATTRIB_STRZONE(FusionReactor, head_model, string, strcat("models/turrets/", "reactor.md3"));
CLASS(Hellion, Turret)
/* spawnflags */ ATTRIB(Hellion, spawnflags, int, TUR_FLAG_SPLASH | TUR_FLAG_FASTPROJ | TUR_FLAG_PLAYER | TUR_FLAG_MISSILE);
-/* mins */ ATTRIB(Hellion, mins, vector, '-32 -32 0');
-/* maxs */ ATTRIB(Hellion, maxs, vector, '32 32 64');
+/* mins */ ATTRIB(Hellion, m_mins, vector, '-32 -32 0');
+/* maxs */ ATTRIB(Hellion, m_maxs, vector, '32 32 64');
/* modelname */ ATTRIB(Hellion, mdl, string, "base.md3");
/* model */ ATTRIB_STRZONE(Hellion, model, string, strcat("models/turrets/", this.mdl));
/* head_model */ ATTRIB_STRZONE(Hellion, head_model, string, strcat("models/turrets/", "hellion.md3"));
CLASS(HunterKiller, Turret)
/* spawnflags */ ATTRIB(HunterKiller, spawnflags, int, TUR_FLAG_SPLASH | TUR_FLAG_MEDPROJ | TUR_FLAG_PLAYER | TUR_FLAG_RECIEVETARGETS);
-/* mins */ ATTRIB(HunterKiller, mins, vector, '-32 -32 0');
-/* maxs */ ATTRIB(HunterKiller, maxs, vector, '32 32 64');
+/* mins */ ATTRIB(HunterKiller, m_mins, vector, '-32 -32 0');
+/* maxs */ ATTRIB(HunterKiller, m_maxs, vector, '32 32 64');
/* modelname */ ATTRIB(HunterKiller, mdl, string, "base.md3");
/* model */ ATTRIB_STRZONE(HunterKiller, model, string, strcat("models/turrets/", this.mdl));
/* head_model */ ATTRIB_STRZONE(HunterKiller, head_model, string, strcat("models/turrets/", "hk.md3"));
CLASS(MachineGunTurret, Turret)
/* spawnflags */ ATTRIB(MachineGunTurret, spawnflags, int, TUR_FLAG_PLAYER);
-/* mins */ ATTRIB(MachineGunTurret, mins, vector, '-32 -32 0');
-/* maxs */ ATTRIB(MachineGunTurret, maxs, vector, '32 32 64');
+/* mins */ ATTRIB(MachineGunTurret, m_mins, vector, '-32 -32 0');
+/* maxs */ ATTRIB(MachineGunTurret, m_maxs, vector, '32 32 64');
/* modelname */ ATTRIB(MachineGunTurret, mdl, string, "base.md3");
/* model */ ATTRIB_STRZONE(MachineGunTurret, model, string, strcat("models/turrets/", this.mdl));
/* head_model */ ATTRIB_STRZONE(MachineGunTurret, head_model, string, strcat("models/turrets/", "machinegun.md3"));
CLASS(MLRSTurret, Turret)
/* spawnflags */ ATTRIB(MLRSTurret, spawnflags, int, TUR_FLAG_SPLASH | TUR_FLAG_MEDPROJ | TUR_FLAG_PLAYER);
-/* mins */ ATTRIB(MLRSTurret, mins, vector, '-32 -32 0');
-/* maxs */ ATTRIB(MLRSTurret, maxs, vector, '32 32 64');
+/* mins */ ATTRIB(MLRSTurret, m_mins, vector, '-32 -32 0');
+/* maxs */ ATTRIB(MLRSTurret, m_maxs, vector, '32 32 64');
/* modelname */ ATTRIB(MLRSTurret, mdl, string, "base.md3");
/* model */ ATTRIB_STRZONE(MLRSTurret, model, string, strcat("models/turrets/", this.mdl));
/* head_model */ ATTRIB_STRZONE(MLRSTurret, head_model, string, strcat("models/turrets/", "mlrs.md3"));
CLASS(PhaserTurret, Turret)
/* spawnflags */ ATTRIB(PhaserTurret, spawnflags, int, TUR_FLAG_SNIPER | TUR_FLAG_HITSCAN | TUR_FLAG_PLAYER);
-/* mins */ ATTRIB(PhaserTurret, mins, vector, '-32 -32 0');
-/* maxs */ ATTRIB(PhaserTurret, maxs, vector, '32 32 64');
+/* mins */ ATTRIB(PhaserTurret, m_mins, vector, '-32 -32 0');
+/* maxs */ ATTRIB(PhaserTurret, m_maxs, vector, '32 32 64');
/* modelname */ ATTRIB(PhaserTurret, mdl, string, "base.md3");
/* model */ ATTRIB_STRZONE(PhaserTurret, model, string, strcat("models/turrets/", this.mdl));
/* head_model */ ATTRIB_STRZONE(PhaserTurret, head_model, string, strcat("models/turrets/", "phaser.md3"));
CLASS(PlasmaTurret, Turret)
/* spawnflags */ ATTRIB(PlasmaTurret, spawnflags, int, TUR_FLAG_SPLASH | TUR_FLAG_MEDPROJ | TUR_FLAG_PLAYER);
-/* mins */ ATTRIB(PlasmaTurret, mins, vector, '-32 -32 0');
-/* maxs */ ATTRIB(PlasmaTurret, maxs, vector, '32 32 64');
+/* mins */ ATTRIB(PlasmaTurret, m_mins, vector, '-32 -32 0');
+/* maxs */ ATTRIB(PlasmaTurret, m_maxs, vector, '32 32 64');
/* modelname */ ATTRIB(PlasmaTurret, mdl, string, "base.md3");
/* model */ ATTRIB_STRZONE(PlasmaTurret, model, string, strcat("models/turrets/", this.mdl));
/* head_model */ ATTRIB_STRZONE(PlasmaTurret, head_model, string, strcat("models/turrets/", "plasma.md3"));
CLASS(DualPlasmaTurret, PlasmaTurret)
/* spawnflags */ ATTRIB(DualPlasmaTurret, spawnflags, int, TUR_FLAG_SPLASH | TUR_FLAG_MEDPROJ | TUR_FLAG_PLAYER);
-/* mins */ ATTRIB(DualPlasmaTurret, mins, vector, '-32 -32 0');
-/* maxs */ ATTRIB(DualPlasmaTurret, maxs, vector, '32 32 64');
+/* mins */ ATTRIB(DualPlasmaTurret, m_mins, vector, '-32 -32 0');
+/* maxs */ ATTRIB(DualPlasmaTurret, m_maxs, vector, '32 32 64');
/* modelname */ ATTRIB(DualPlasmaTurret, mdl, string, "base.md3");
/* model */ ATTRIB_STRZONE(DualPlasmaTurret, model, string, strcat("models/turrets/", this.mdl));
/* head_model */ ATTRIB_STRZONE(DualPlasmaTurret, head_model, string, strcat("models/turrets/", "plasmad.md3"));
CLASS(TeslaCoil, Turret)
/* spawnflags */ ATTRIB(TeslaCoil, spawnflags, int, TUR_FLAG_HITSCAN | TUR_FLAG_PLAYER | TUR_FLAG_MISSILE);
-/* mins */ ATTRIB(TeslaCoil, mins, vector, '-60 -60 0');
-/* maxs */ ATTRIB(TeslaCoil, maxs, vector, '60 60 128');
+/* mins */ ATTRIB(TeslaCoil, m_mins, vector, '-60 -60 0');
+/* maxs */ ATTRIB(TeslaCoil, m_maxs, vector, '60 60 128');
/* modelname */ ATTRIB(TeslaCoil, mdl, string, "tesla_base.md3");
/* model */ ATTRIB_STRZONE(TeslaCoil, model, string, strcat("models/turrets/", this.mdl));
/* head_model */ ATTRIB_STRZONE(TeslaCoil, head_model, string, strcat("models/turrets/", "tesla_head.md3"));
CLASS(WalkerTurret, Turret)
/* spawnflags */ ATTRIB(WalkerTurret, spawnflags, int, TUR_FLAG_PLAYER | TUR_FLAG_MOVE);
-/* mins */ ATTRIB(WalkerTurret, mins, vector, '-70 -70 0');
-/* maxs */ ATTRIB(WalkerTurret, maxs, vector, '70 70 95');
+/* mins */ ATTRIB(WalkerTurret, m_mins, vector, '-70 -70 0');
+/* maxs */ ATTRIB(WalkerTurret, m_maxs, vector, '70 70 95');
/* modelname */ ATTRIB(WalkerTurret, mdl, string, "walker_body.md3");
/* model */ ATTRIB_STRZONE(WalkerTurret, model, string, strcat("models/turrets/", this.mdl));
/* head_model */ ATTRIB_STRZONE(WalkerTurret, head_model, string, strcat("models/turrets/", "walker_head_minigun.md3"));
WriteAngle(MSG_ONE, 0);
}
- setsize(player, STAT(PL_MIN,player), STAT(PL_MAX, player));
+ setsize(player, STAT(PL_MIN, player), STAT(PL_MAX, player));
player.takedamage = DAMAGE_AIM;
player.solid = SOLID_SLIDEBOX;
pl.crouch = false;
pl.view_ofs = STAT(PL_VIEW_OFS, pl);
- setsize (pl, STAT(PL_MIN, pl), STAT(PL_MAX, pl));
+ setsize(pl, STAT(PL_MIN, pl), STAT(PL_MAX, pl));
veh.event_damage = vehicles_damage;
veh.nextthink = 0;
setattachment(this.vehicle_viewport, this.vehicle_hudmodel, info.tag_view);
}
- setsize(this, info.mins, info.maxs);
+ setsize(this, info.m_mins, info.m_maxs);
info.vr_setup(info, this);
if(!nodrop)
{
setorigin(this, this.origin);
- tracebox(this.origin + '0 0 100', info.mins, info.maxs, this.origin - '0 0 10000', MOVE_WORLDONLY, this);
+ tracebox(this.origin + '0 0 100', info.m_mins, info.m_maxs, this.origin - '0 0 10000', MOVE_WORLDONLY, this);
setorigin(this, trace_endpos);
}
/** */
ATTRIB(Vehicle, spawnflags, int, 0);
/** vehicle hitbox size */
- ATTRIB(Vehicle, mins, vector, '-0 -0 -0');
+ ATTRIB(Vehicle, m_mins, vector, '-0 -0 -0');
/** vehicle hitbox size */
- ATTRIB(Vehicle, maxs, vector, '0 0 0');
+ ATTRIB(Vehicle, m_maxs, vector, '0 0 0');
/** vehicle 3rd person view offset */
ATTRIB(Vehicle, view_ofs, vector, '0 0 0');
/** vehicle 3rd person view distance */
CLASS(Bumblebee, Vehicle)
/* spawnflags */ ATTRIB(Bumblebee, spawnflags, int, VHF_DMGSHAKE);
-/* mins */ ATTRIB(Bumblebee, mins, vector, '-245 -130 -130');
-/* maxs */ ATTRIB(Bumblebee, maxs, vector, '230 130 130');
+/* mins */ ATTRIB(Bumblebee, m_mins, vector, '-245 -130 -130');
+/* maxs */ ATTRIB(Bumblebee, m_maxs, vector, '230 130 130');
/* view offset*/ ATTRIB(Bumblebee, view_ofs, vector, '0 0 300');
/* view dist */ ATTRIB(Bumblebee, height, float, 450);
/* model */ ATTRIB(Bumblebee, mdl, string, "models/vehicles/bumblebee_body.dpm");
CLASS(Racer, Vehicle)
/* spawnflags */ ATTRIB(Racer, spawnflags, int, VHF_DMGSHAKE | VHF_DMGROLL);
-/* mins */ ATTRIB(Racer, mins, vector, '-120 -120 -40' * 0.5);
-/* maxs */ ATTRIB(Racer, maxs, vector, '120 120 40' * 0.5);
+/* mins */ ATTRIB(Racer, m_mins, vector, '-120 -120 -40' * 0.5);
+/* maxs */ ATTRIB(Racer, m_maxs, vector, '120 120 40' * 0.5);
/* view offset*/ ATTRIB(Racer, view_ofs, vector, '0 0 50');
/* view dist */ ATTRIB(Racer, height, float, 200);
/* model */ ATTRIB(Racer, mdl, string, "models/vehicles/wakizashi.dpm");
CLASS(Raptor, Vehicle)
/* spawnflags */ ATTRIB(Raptor, spawnflags, int, VHF_DMGSHAKE | VHF_DMGROLL);
-/* mins */ ATTRIB(Raptor, mins, vector, '-80 -80 0');
-/* maxs */ ATTRIB(Raptor, maxs, vector, '80 80 70');
+/* mins */ ATTRIB(Raptor, m_mins, vector, '-80 -80 0');
+/* maxs */ ATTRIB(Raptor, m_maxs, vector, '80 80 70');
/* view offset*/ ATTRIB(Raptor, view_ofs, vector, '0 0 160');
/* view dist */ ATTRIB(Raptor, height, float, 200);
/* model */ ATTRIB(Raptor, mdl, string, "models/vehicles/raptor.dpm");
CLASS(Spiderbot, Vehicle)
/* spawnflags */ ATTRIB(Spiderbot, spawnflags, int, VHF_DMGSHAKE);
-/* mins */ ATTRIB(Spiderbot, mins, vector, '-75 -75 10');
-/* maxs */ ATTRIB(Spiderbot, maxs, vector, '75 75 125');
+/* mins */ ATTRIB(Spiderbot, m_mins, vector, '-75 -75 10');
+/* maxs */ ATTRIB(Spiderbot, m_maxs, vector, '75 75 125');
/* view offset*/ ATTRIB(Spiderbot, view_ofs, vector, '0 0 70');
/* view dist */ ATTRIB(Spiderbot, height, float, 170);
/* model */ ATTRIB(Spiderbot, mdl, string, "models/vehicles/spiderbot.dpm");