View Single Post
Old 08-04-10, 08:00 AM   #354
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,962
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by Antar View Post
I look on the AI script code and have question (do not be angry if I'm wrong again):

What about procedure:

Ship:SetThrottleRatio = 0.9*(1-Ship:GetDamage)
Ship:WaitAction(1)
Ship:SetThrottleRatio = 0.8*(1-Ship:GetDamage)
Ship:WaitAction(1)
...
you have a brilliant idea but one small problem. Ship:GetDamage starts at 0 and works its way up to 1. This is all fine and dandy for deck gun shots but a torpedo hit causes massive damage and would thus result in an instant speed change on the first 0.9 * .... But there is a way to do this using 'steps'. Using your method posted above will always cause the ship to slow down even if it has no damage. Your idea has given me an idea on something to try though
TheDarkWraith is offline   Reply With Quote