void vehicles_setreturn();
-/** AuxiliaryXhair*
+/** AuxiliaryXhair*
Send addictional points of interest to be drawn, to vehicle owner
**/
float MAX_AXH = 4;
}
/** vehicles_locktarget
-
+
Generic target locking.
-
+
Figure out if what target is "locked" (if any), for missile tracking as such.
-
+
after calling, "if(self.lock_target != world && self.lock_strength == 1)" mean
you have a locked in target.
-
+
Exspects a crosshair_trace() or equivalent to be
dont before calling.
-
+
**/
.entity lock_target;
.float lock_strength;
entity vehicles_projectile(string _mzlfx, string _mzlsound,
vector _org, vector _vel,
float _dmg, float _radi, float _force, float _size,
- float _deahtype, float _projtype, float _health,
+ float _deahtype, float _projtype, float _health,
float _cull, float _clianim)
{
entity proj;
// De-own & reset
self.vehicle_hudmodel.viewmodelforclient = self;
-
+
self.owner = world;
self.touch = vehicles_touch;
self.event_damage = vehicles_damage;
self.flags = FL_NOTARGET;
self.avelocity = '0 0 0';
self.velocity = '0 0 0';
-
+
// Reset locking
self.lock_strength = 0;
self.lock_target = world;
self.owner = other;
self.switchweapon = other.switchweapon;
-
+
// .viewmodelforclient works better.
//self.vehicle_hudmodel.drawonlytoclient = self.owner;
- self.vehicle_hudmodel.viewmodelforclient = self.owner;
-
+#ifndef VEHICLES_CSQC
+ self.vehicle_hudmodel.viewmodelforclient = self.owner;
+#endif
+
self.event_damage = vehicles_damage;
self.nextthink = 0;
self.owner.angles = self.angles;
self.team = self.owner.team;
self.flags -= FL_NOTARGET;
-#if 0
- other.clientcamera = self.vehicle_viewport;
-#else
+#ifndef VEHICLES_CSQC
msg_entity = other;
WriteByte (MSG_ONE, SVC_SETVIEWPORT);
WriteEntity(MSG_ONE, self.vehicle_viewport);
WriteAngle(MSG_ONE, 0); // roll
}
#endif
+//#endif
vehicles_clearrturn();
if(autocvar_g_fullbrightplayers)
_effects |= EF_FULLBRIGHT;
-
+
if(self.team)
_colormap = 1024 + (self.team - 1) * 17;
else
}
e = e.chain;
}
-
+
self.vehicle_hudmodel.effects = self.effects = _effects | EF_LOWPRECISION;
self.vehicle_hudmodel.colormod = self.colormod = _colormod;
self.vehicle_hudmodel.colormap = self.colormap = _colormap;
tracebox(self.origin + '0 0 100', min_s, max_s, self.origin - '0 0 10000', MOVE_WORLDONLY, self);
setorigin(self, trace_endpos);
}
-
+
self.pos1 = self.origin;
self.pos2 = self.angles;
#ifdef VEHICLES_CSQC
if(use_csqc)
net_link_vehile();
-#endif
+#endif
return TRUE;
}
self.vehicle_die = self.vehicle_exit;
self.vehicle_spawn = self.vehicle_exit;
self.AuxiliaryXhair = self.AuxiliaryXhair;
-}
\ No newline at end of file
+}