#endif
#include "common.qh"
-void WarpZoneLib_ExactTrigger_Init(entity this)
+void WarpZoneLib_ExactTrigger_Init(entity this, bool unsetmodel)
{
vector mi, ma;
if (this.movedir == '0 0 0')
if (this.angles != '0 0 0')
{
- MAKE_VECTORS_NEW(this.angles, forward, _r, _u);
+ vector forward, _r, _u;
+ MAKE_VECTORS(this.angles, forward, _r, _u);
this.movedir = forward;
}
if(this.model == "")
}
}
setorigin(this, this.origin);
+ this.solid = SOLID_TRIGGER; // before setsize to ensure area grid linking
if(this.scale)
setsize(this, this.mins * this.scale, this.maxs * this.scale);
else
setsize(this, this.mins, this.maxs);
set_movetype(this, MOVETYPE_NONE);
- this.solid = SOLID_TRIGGER;
- this.model = "";
+
+ if (unsetmodel)
+ this.model = "";
}