This commit is contained in:
6arelyFuture 2021-09-28 21:39:12 +01:00
parent c378705963
commit d6291345c3

View File

@ -72,24 +72,24 @@ monitorForRewards()
dropAmmo( owner ) dropAmmo( owner )
{ {
planeHalfDistance = 24000; planeHalfDistance = 24000;
planeFlySpeed = 2000; planeFlySpeed = 2000;
yaw = RandomInt( 360 ); yaw = RandomInt( 360 );
yaw = RandomInt( 360 ); yaw = RandomInt( 360 );
direction = ( 0, yaw, 0 ); direction = ( 0, yaw, 0 );
dropSite = owner.origin; dropSite = owner.origin;
lbheight = level maps\mp\killstreaks\_airdrop::getFlyHeightOffset( dropSite ); lbheight = level maps\mp\killstreaks\_airdrop::getFlyHeightOffset( dropSite );
startPos = dropSite + ( AnglesToForward( direction ) * ( -1 * planeHalfDistance ) ); startPos = dropSite + ( AnglesToForward( direction ) * ( -1 * planeHalfDistance ) );
startPos = startPos * ( 1, 1, 0 ) + ( 0, 0, lbHeight ); startPos = startPos * ( 1, 1, 0 ) + ( 0, 0, lbHeight );
endPos = dropSite + ( AnglesToForward( direction ) * planeHalfDistance ); endPos = dropSite + ( AnglesToForward( direction ) * planeHalfDistance );
endPos = endPos * ( 1, 1, 0 ) + ( 0, 0, lbHeight ); endPos = endPos * ( 1, 1, 0 ) + ( 0, 0, lbHeight );
d = length( startPos - endPos ); d = length( startPos - endPos );
flyTime = ( d / planeFlySpeed ); flyTime = ( d / planeFlySpeed );
c130 = maps\mp\killstreaks\_airdrop::c130Setup( owner, startPos, endPos ); c130 = maps\mp\killstreaks\_airdrop::c130Setup( owner, startPos, endPos );
c130.veh_speed = planeFlySpeed; c130.veh_speed = planeFlySpeed;
@ -110,11 +110,9 @@ dropAmmo( owner )
minDist = dist; minDist = dist;
else if ( dist > minDist ) else if ( dist > minDist )
break; break;
if ( dist < 256 ) if ( dist < 256 )
{
break; break;
}
else if ( dist < 768 ) else if ( dist < 768 )
{ {
earthquake( 0.15, 1.5, dropSite, 1500 ); earthquake( 0.15, 1.5, dropSite, 1500 );