if(self.classname != "player")
return;
+ if(self.vehicle)
+ {
+ dprint("Use cought for vehicle\n");
+ entity oldself;
+ oldself = self;
+ self = self.vehicle;
+ vehicles_exit(VHEF_NORMAL);
+ self = oldself;
+ return;
+ }
+
// a use key was pressed; call handlers
if(ctf_usekey())
return;
self = racer;
+ /*
if(player.BUTTON_USE)
{
vehicles_exit(VHEF_NORMAL);
self = player;
return 0;
}
-
+ */
+
if(racer.deadflag != DEAD_NO)
{
self = player;
}
*/
+ /*
if(player.BUTTON_USE && raptor.deadflag == DEAD_NO)
{
self = raptor;
vehicles_exit(VHEF_NORMAL);
self = player;
return 0;
- }
-
+ }
+ */
+
if(raptor.deadflag != DEAD_NO)
{
self = player;
player.BUTTON_CROUCH = 0;
player.switchweapon = 0;
+ /*
if(player.BUTTON_USE)
{
vehicles_exit(VHEF_NORMAL);
self = player;
return 0;
}
+ */
crosshair_trace(player);
//UpdateAuxiliaryXhair(player, trace_endpos, ('1 0 0' * player.vehicle_reload2) + ('0 1 0' * (1 - player.vehicle_reload2)), 2);
self.owner.event_damage = PlayerDamage;
self.owner.hud = HUD_NORMAL;
self.owner.switchweapon = self.switchweapon;
- self.owner.BUTTON_USE = 0;
+ //self.owner.BUTTON_USE = 0;
}
if(self.deadflag == DEAD_NO)