1 #include "util_server.qh"
8 #include <lib/csqcmodel/sv_model.qh>
12 void WarpZoneLib_ExactTrigger_Init(entity this)
15 if (this.movedir == '0 0 0')
16 if (this.angles != '0 0 0')
18 vector forward, _r, _u;
19 MAKE_VECTORS(this.angles, forward, _r, _u);
20 this.movedir = forward;
24 // It's a box! No need to match with exacttriggers.
25 this.warpzone_isboxy = 1;
31 precache_model(this.model);
32 _setmodel(this, this.model);
33 // let mapper-set mins/maxs override the model's bounds if set
34 if(mi != '0 0 0' || ma != '0 0 0')
36 // It's a box! No need to match with exacttriggers.
39 this.warpzone_isboxy = 1;
42 setorigin(this, this.origin);
44 setsize(this, this.mins * this.scale, this.maxs * this.scale);
46 setsize(this, this.mins, this.maxs);
47 set_movetype(this, MOVETYPE_NONE);
48 this.solid = SOLID_TRIGGER;