WriteString(MSG_ENTITY, self.classname);
WriteByte(MSG_ENTITY, self.skin);
WriteByte(MSG_ENTITY, self.speed);
+ WriteString(MSG_ENTITY, self.mdl);
trigger_common_write(false);
void func_ladder_link()
{
- //Net_LinkEntity(self, false, 0, func_ladder_send);
+ self.SendEntity = func_ladder_send;
+ self.SendFlags = 0xFFFFFF;
+ self.model = "null";
}
void spawnfunc_func_ladder()
{
+ self.mdl = self.model;
EXACTTRIGGER_INIT;
self.touch = func_ladder_touch;
void spawnfunc_func_water()
{
+ self.mdl = self.model;
EXACTTRIGGER_INIT;
self.touch = func_ladder_touch;
self.classname = strzone(ReadString());
self.skin = ReadByte();
self.speed = ReadByte();
+ self.model = strzone(ReadString());
trigger_common_read(false);
+ self.mins = self.maxs = '0 0 0';
self.solid = SOLID_TRIGGER;
self.draw = trigger_draw_generic;
self.drawmask = MASK_NORMAL;
self.move_time = time;
self.entremove = trigger_remove_generic;
+
+ //precache_model(self.mdl);
+ EXACTTRIGGER_INIT;
}
#endif
void trigger_common_read(bool withtarget);
void trigger_remove_generic();
-float WarpZoneLib_ExactTrigger_Touch();
-#define EXACTTRIGGER_TOUCH if(WarpZoneLib_ExactTrigger_Touch()) return
-
.float active;
.string target;
.string targetname;
const float SND_LARGEENTITY = 8;
const float SND_LARGESOUND = 16;
-// WARNING: this kills the trace globals
-#define EXACTTRIGGER_TOUCH if(WarpZoneLib_ExactTrigger_Touch()) return
-#define EXACTTRIGGER_INIT WarpZoneLib_ExactTrigger_Init()
-
const float INITPRIO_FIRST = 0;
const float INITPRIO_GAMETYPE = 0;
const float INITPRIO_GAMETYPE_FALLBACK = 1;
#endif
float WarpZoneLib_MoveOutOfSolid(entity e);
#define move_out_of_solid(e) WarpZoneLib_MoveOutOfSolid(e)
+
+float WarpZoneLib_ExactTrigger_Touch();
+void WarpZoneLib_ExactTrigger_Init();
+
+// WARNING: this kills the trace globals
+#define EXACTTRIGGER_TOUCH if(WarpZoneLib_ExactTrigger_Touch()) return
+#define EXACTTRIGGER_INIT WarpZoneLib_ExactTrigger_Init()
#endif
{
mi = self.mins;
ma = self.maxs;
+#ifdef SVQC
precache_model(self.model);
+#endif
setmodel(self, self.model);
// let mapper-set mins/maxs override the model's bounds if set
if(mi != '0 0 0' || ma != '0 0 0')