mirror of
https://github.com/ineedbots/iw4_bot_warfare.git
synced 2025-04-22 22:05:44 +00:00
g_getplayervieworigin fix
This commit is contained in:
parent
56ba532656
commit
1197ed16e1
@ -421,6 +421,7 @@ heliRide( lifeId, chopper )
|
|||||||
chopper VehicleTurretControlOn( self );
|
chopper VehicleTurretControlOn( self );
|
||||||
|
|
||||||
self PlayerLinkWeaponviewToDelta( chopper, "tag_player", 1.0, 180, 180, 0, 180, true );
|
self PlayerLinkWeaponviewToDelta( chopper, "tag_player", 1.0, 180, 180, 0, 180, true );
|
||||||
|
self setPlayerAngles( level.ac130 getTagAngles( "tag_player" ) );
|
||||||
|
|
||||||
chopper.gunner = self;
|
chopper.gunner = self;
|
||||||
|
|
||||||
@ -1399,6 +1400,21 @@ heli_explode( altStyle )
|
|||||||
|
|
||||||
// give "death" notify time to process
|
// give "death" notify time to process
|
||||||
wait ( 0.05 );
|
wait ( 0.05 );
|
||||||
|
|
||||||
|
// g_getplayervieworigin fix
|
||||||
|
// we hide this helicopter then delete it
|
||||||
|
|
||||||
|
if (self.heliType == "minigun")
|
||||||
|
{
|
||||||
|
if (isDefined(self))
|
||||||
|
self hide();
|
||||||
|
|
||||||
|
wait 30;
|
||||||
|
|
||||||
|
if (isDefined(self))
|
||||||
|
self delete();
|
||||||
|
}
|
||||||
|
else
|
||||||
self delete();
|
self delete();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2073,6 +2089,15 @@ heli_leave()
|
|||||||
|
|
||||||
// give "death" notify time to process
|
// give "death" notify time to process
|
||||||
wait ( 0.05 );
|
wait ( 0.05 );
|
||||||
|
|
||||||
|
// g_getplayervieworigin fix
|
||||||
|
// we hide this helicopter then delete it
|
||||||
|
if (isDefined(self))
|
||||||
|
self hide();
|
||||||
|
|
||||||
|
wait 30;
|
||||||
|
|
||||||
|
if (isDefined(self))
|
||||||
self delete();
|
self delete();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user