Loading...
  OR  Zero-K Name:    Password:   

Post edit history

slow dive ai

To display differences between versions, select one or more edits in the list using checkboxes and click "diff selected"
Post edit history
Date Editor Before After
4/14/2015 3:00:18 AMUSrankAutoWar before revert after revert
Before After
1 @SmokeDragon that is doable. There are better ways to do this, but the basic idea i have in mind is: 1 @SmokeDragon that is doable. There are better ways to do this, but the basic idea i have in mind is a script that will overwrite the existing attack order if the raven has been chasing an enemy for longer than 3 seconds.
2 \n 2 \n
3 -let there be a local value called TimeToGiveUp set to equal 0 by default 3 -let there be a local value called TimeToGiveUp set to equal 0 by default
4 \n 4 \n
5 -Execute following script once per second 5 -Execute following script once per second
6 -IF (the current raven in the for-loop has an attack order) AND (the speed of the current raven in the for-loop is less than half that of normal speed) THEN (mathematically add 1 to the current value of TimeToGiveUp that is assigned as a value to the current raven in the for-loop) END 6 -IF (the current raven in the for-loop has an attack order) AND (the speed of the current raven in the for-loop is less than half that of normal speed) THEN (mathematically add 1 to the current value of TimeToGiveUp that is assigned as a value to the current raven in the for-loop) END
7 \n 7 \n
8 -Execute the following script once per second 8 -Execute the following script once per second
9 -IF (TimeToGiveUp for the current raven in the for-loop is greater than or equal to 3) THEN (give the raven the retreat/rearm order to overwrite the existing attack order and reset the value of TimeToGiveUp assigned to the raven) 9 -IF (TimeToGiveUp for the current raven in the for-loop is greater than or equal to 3) THEN (give the raven the retreat/rearm order to overwrite the existing attack order and reset the value of TimeToGiveUp assigned to the raven)
10 \n 10 \n
11 This is poorly pseudocoded for the sake of non-programmer understanding. 11 This is poorly pseudocoded for the sake of non-programmer understanding.
12 \n 12 \n
13 personally i would make ravens simply purge targets that it cannot hope to bomb from it's attack order queue, allowing you to simply provide an area target command and allow the widget/gadget/unitAI to sort things out automatically. 13 personally i would make ravens simply purge targets that it cannot hope to bomb from it's attack order queue, allowing you to simply provide an area target command and allow the widget/gadget/unitAI to sort things out automatically.
14 \n 14 \n
15 The raven nerf has supremely buffed the crasher, as the crasher was already capable of outrunning ravens pre-nerf. 15 The raven nerf has supremely buffed the crasher, as the crasher was already capable of outrunning ravens pre-nerf.