1 vector WarpZone_TransformVAngles(vector t, vector ang)
10 print(vtos(ang), " input\n");
15 print(vtos(vf), " -> ", vtos(AnglesTransform_Apply(t, vf)), "\n");
16 print(vtos(vr), " -> ", vtos(AnglesTransform_Apply(t, vr)), "\n");
17 print(vtos(vu), " -> ", vtos(AnglesTransform_Apply(t, vu)), "\n");
20 ang = AnglesTransform_ApplyToVAngles(t, ang);
23 print(vtos(ang), " output\n");
25 print(vtos(vf), " -> ", vtos(v_forward), "\n");
26 print(vtos(vr), " -> ", vtos(v_right), "\n");
27 print(vtos(vu), " -> ", vtos(v_up), "\n");
30 ang = AnglesTransform_Normalize(ang, TRUE);
33 print(vtos(ang), " output\n");
40 vector WarpZoneLib_BoxTouchesBrush_mins;
41 vector WarpZoneLib_BoxTouchesBrush_maxs;
42 entity WarpZoneLib_BoxTouchesBrush_ent;
43 entity WarpZoneLib_BoxTouchesBrush_ignore;
44 float WarpZoneLib_BoxTouchesBrush_Recurse()
50 tracebox('0 0 0', WarpZoneLib_BoxTouchesBrush_mins, WarpZoneLib_BoxTouchesBrush_maxs, '0 0 0', MOVE_NOMONSTERS, WarpZoneLib_BoxTouchesBrush_ignore);
52 if (trace_networkentity)
54 dprint("hit a network ent, cannot continue WarpZoneLib_BoxTouchesBrush\n");
55 // we cannot continue, as a player blocks us...
62 if (trace_ent == WarpZoneLib_BoxTouchesBrush_ent)
70 f = WarpZoneLib_BoxTouchesBrush_Recurse();
76 float WarpZoneLib_BoxTouchesBrush(vector mi, vector ma, entity e, entity ig)
85 WarpZoneLib_BoxTouchesBrush_mins = mi;
86 WarpZoneLib_BoxTouchesBrush_maxs = ma;
87 WarpZoneLib_BoxTouchesBrush_ent = e;
88 WarpZoneLib_BoxTouchesBrush_ignore = ig;
89 f = WarpZoneLib_BoxTouchesBrush_Recurse();