5 void plat_link(
entity this);
7 void plat_delayedinit(
entity this)
15 WriteHeader(MSG_ENTITY, ENT_CLIENT_PLAT);
27 trigger_common_write(
this,
true);
29 WriteVector(MSG_ENTITY, this.
pos1);
30 WriteVector(MSG_ENTITY, this.
pos2);
32 WriteVector(MSG_ENTITY, this.
size);
34 WriteAngleVector(MSG_ENTITY, this.
mangle);
52 void plat_link(
entity this)
68 if (this.
dmg && (this.message2 ==
""))
70 this.message2 =
"was squished by";
75 this.
noise =
"plats/plat1.wav";
76 this.
noise1 =
"plats/plat2.wav";
82 this.
noise =
"plats/medplat1.wav";
83 this.
noise1 =
"plats/medplat2.wav";
118 if (!InitMovingBrushTrigger(
this))
121 setsize (
this, this.
mins , this.
maxs);
126 if (!this.
lip) this.
lip = 16;
139 void plat_draw(
entity this)
147 float sf = ReadByte();
149 if(sf & SF_TRIGGER_INIT)
157 _setmodel(
this, this.
model);
159 trigger_common_read(
this,
true);
161 this.
pos1 = ReadVector();
162 this.
pos2 = ReadVector();
164 this.
size = ReadVector();
166 this.
mangle = ReadAngleVector();
168 this.
speed = ReadShort();
169 this.
height = ReadShort();
170 this.
lip = ReadByte();
171 this.
state = ReadByte();
173 this.
dmg = ReadShort();
179 this.draw = plat_draw;
182 this.entremove = trigger_remove_generic;
#define REGISTER_NET_LINKED(id)
string GetField_fullspawndata(entity e, string f,...)
const int SF_TRIGGER_INIT
#define NET_HANDLE(id, param)
spawnfunc(info_player_attacker)
void Movetype_Physics_NoMatchServer(entity this)
ERASEABLE entity IL_PUSH(IntrusiveList this, entity it)
Push to tail.
const int SF_TRIGGER_RESET
void InitializeEntity(entity e, void(entity this) func, int order)
bool drag_undraggable(entity draggee, entity dragger)
IntrusiveList g_drawables
void set_movetype(entity this, int mt)