;LAST UPDATE 2006/02/20 YAG
;Based script : Written by Footmunch http://www.footmunch.org.uk/

_object = _this
goto "loop"
#Update
?(getdammage _object) >=0.65: goto "TheEnd"
?(getdammage _object) >=0.40: goto "Imp" 

_AB = ((3000 - (speed _object)) / 400000) + 1;
_vel = velocity _object
_object setvelocity[(_vel select 0) * _AB, (_vel select 1) *_AB, (_vel select 2) *_AB]
_object Say "F15AB"
_object setFuel fuel _object - 0.000225
~0.1
?(_object animationphase "ea" <= 0.1):goto "End"
?(fuel _object == 0):goto "TheEnd"
goto "Update"

#Imp
_speed = speed _object
?(_speed >=150): goto "ImpA"

_AB = ((1000 - (speed _object)) / 400000) + 1;
_vel = velocity _object
_object Say "F15AB"
_object setvelocity[(_vel select 0) * _AB, (_vel select 1) *_AB, (_vel select 2) *_AB]
_object setFuel fuel _object - 0.0000225
_object setDammage GetDammage _object+0.000005
drop ["cl_basic","","Billboard",1,2,[0.75,-6.7,-0.6], [0,-40,0],2,1.26,1,0,[3,25],[[1,1,1,0.1],[0.5,0.5,0.5,0]],[0],0,0.5,"","",_object];
drop ["cl_basic","","Billboard",1,2,[-0.75,-6.7,-0.6],[0,-40,0],2,1.26,1,0,[3,25],[[1,1,1,0.1],[0.5,0.5,0.5,0]],[0],0,0.5,"","",_object];
~0.01
?(_object animationphase "ea" <= 0.1):goto "End"
?(fuel _object == 0):goto "TheEnd"
goto "Update"

#ImpA
_AB = ((1000 - (speed _object)) / 400000) + 1;
_vel = velocity _object
_object Say "F15AB"
_object setvelocity[(_vel select 0) * _AB, (_vel select 1) *_AB, (_vel select 2) *_AB]
_object setFuel fuel _object - 0.000225
_object setDammage GetDammage _object+0.00005
drop ["cl_basic","","Billboard",1,1,[0,-7,-0.6],[0,0,0],2,1.26,1,0,[6,30],[[0.9,0.9,1,0.05],[0.75,0.75,0.85,0.1],[0.5,0.5,0.6,0]],[0],0,0.5,"","",_object];
~0.1
?(_object animationphase "ea" <= 0.1):goto "End"
?(fuel _object == 0):goto "TheEnd"
goto "Update"

#TheEnd
_object Say "F15ABout"
_object animate ["ea",0]
exit;

#End
_object Say "F15ABout"
_object animate ["ea",0]
exit;

#loop
~0.05
_object Say "F15ABin"
?(_object animationphase "Ea" > 0.1):goto "Update"
?(not Alive _object) : goto "TheEnd"
goto "loop"
exit;