103 objerror(
this,
"train_next: no next target");
104 this.
wait = targ.wait;
108 if(targ.platmovetype)
197 if(trigger.target2 && trigger.target2 !=
"")
204 this.
target = targ.target;
209 objerror(
this,
"func_train_find: no next target");
210 setorigin(
this, targ.origin -
this.view_ofs);
231 if (this.
noise !=
"")
235 objerror(
this,
"func_train without a target");
259 this.
message =
" was squished";
274void train_draw(
entity this)
291 _setmodel(
this, this.
model);
306 this.
speed = ReadShort();
307 this.
height = ReadShort();
312 this.
dmg = ReadShort();
319 this.draw = train_draw;
var entity(vector mins, vector maxs,.entity tofield) findbox_tofield_OrFallback
IntrusiveList g_drawables
const int INITPRIO_FINDTARGET
const int SF_TRIGGER_RESET
const int SF_TRIGGER_INIT
ERASEABLE entity IL_PUSH(IntrusiveList this, entity it)
Push to tail.
void SUB_UseTargets(entity this, entity actor, entity trigger)
#define NET_HANDLE(id, param)
#define ReadAngleVector()
#define WriteHeader(to, id)
#define REGISTER_NET_LINKED(id)
void Movetype_Physics_MatchServer(entity this, bool sloppy)
void set_movetype(entity this, int mt)
bool autocvar_cl_projectiles_sloppy
ERASEABLE void RandomSelection_Init()
#define RandomSelection_AddEnt(e, weight, priority)
entity RandomSelection_chosen_ent
const int CH_TRIGGER_SINGLE
#define _sound(e, c, s, v, a)
void stopsoundto(int _dest, entity e, int chan)
bool InitMovingBrushTrigger(entity this)
void SUB_CalcAngleMove(entity this, vector destangle, float tspeedtype, float tspeed, void(entity this) func)
void SUB_CalcMove(entity this, vector tdest, float tspeedtype, float tspeed, void(entity this) func)
void SUB_CalcMove_Bezier(entity this, vector tcontrol, vector tdest, float tspeedtype, float tspeed, void(entity this) func)
float train_send(entity this, entity to, float sf)
void train_use(entity this, entity actor, entity trigger)
entity train_next_find(entity this)
void train_wait(entity this)
void train_next(entity this)
void train_link(entity this)
void func_train_find(entity this)
const int TRAIN_NEEDACTIVATION
void trigger_common_write(entity this, bool withtarget)
void trigger_remove_generic(entity this)
void trigger_common_read(entity this, bool withtarget)
void InitializeEntity(entity e, void(entity this) func, int order)