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 makevectors (this.angles);
19 this.movedir = v_forward;
23 // It's a box! No need to match with exacttriggers.
24 this.warpzone_isboxy = 1;
30 precache_model(this.model);
31 _setmodel(this, this.model);
32 // let mapper-set mins/maxs override the model's bounds if set
33 if(mi != '0 0 0' || ma != '0 0 0')
35 // It's a box! No need to match with exacttriggers.
38 this.warpzone_isboxy = 1;
41 setorigin(this, this.origin);
43 setsize(this, this.mins * this.scale, this.maxs * this.scale);
45 setsize(this, this.mins, this.maxs);
46 this.movetype = MOVETYPE_NONE;
47 this.solid = SOLID_TRIGGER;