if(toucher.move_movetype == MOVETYPE_NONE || toucher.move_movetype == MOVETYPE_FOLLOW || toucher.tag_entity)
return;
- EXACTTRIGGER_TOUCH(this, toucher);
-
if(WarpZone_PlaneDist(this, toucher.origin + toucher.view_ofs) >= 0) // wrong side of the trigger_warpzone (don't teleport yet)
return;
+ EXACTTRIGGER_TOUCH(this, toucher);
+
float f;
// number of frames we need to go back:
// dist = 16*sqrt(2) qu
this.scale = this.modelscale;
if(!this.scale)
this.scale = 1;
- string m;
- m = this.model;
- WarpZoneLib_ExactTrigger_Init(this);
- if(m != "")
- {
- precache_model(m);
- _setmodel(this, m); // no precision needed
- }
- setorigin(this, this.origin);
- if(this.scale)
- setsize(this, this.mins * this.scale, this.maxs * this.scale);
- else
- setsize(this, this.mins, this.maxs);
+
+ WarpZoneLib_ExactTrigger_Init(this, false);
+
setSendEntity(this, WarpZone_Send);
this.SendFlags = 0xFFFFFF;
BITSET_ASSIGN(this.effects, EF_NODEPTHTEST);