This shows you the differences between two versions of the page.
| 4rpl:ai_orbitals [2021/03/31 13:57] – created heritor | 4rpl:ai_orbitals [2021/03/31 15:45] (current) – removed Karsten75 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ~~NOTOC~~ | ||
| - | < | ||
| - | ====== AI Orbital ====== | ||
| - | AI Orbital | ||
| - | |||
| - | ===== Description ===== | ||
| - | This is a companion cpack to Autopilot AI - allowing a limited use of the Orbital rockets. | ||
| - | This has 2 modes: it will use Rain on the deepest creeper, and also - less often, will target the deepest creeper to hit with Singularity, | ||
| - | The AI will need to have the Rocket factory built and working, or an alternative means of incrementing the orbital count. | ||
| - | |||
| - | <code 4rpl> | ||
| - | # --AIOrbital-- 3/31/2021 3:30:25 PM | ||
| - | #Damper 1 - not implemented | ||
| - | # | ||
| - | #Rain 2 - ~900 update counts | ||
| - | #Conversion 5 - instant | ||
| - | |||
| - | #The following need to be at least 1500 otherwise they' | ||
| - | #Defaults are 4000 rain, 6000 orbital | ||
| - | $raincooldown: | ||
| - | $orbitalbombcooldown: | ||
| - | |||
| - | :Frame | ||
| - | GetOrbitalCount < | ||
| - | SetOrbitalCount(0) | ||
| - | |||
| - | trace(< | ||
| - | |||
| - | # | ||
| - | if ((< | ||
| - | | ||
| - | < | ||
| - | 1 -> | ||
| - | GetGameUpdateCount -> | ||
| - | # | ||
| - | endif | ||
| - | if((< | ||
| - | | ||
| - | < | ||
| - | 2 -> | ||
| - | # | ||
| - | endif | ||
| - | if((< | ||
| - | 3 -> | ||
| - | # | ||
| - | endif | ||
| - | if((< | ||
| - | 0 -> | ||
| - | # | ||
| - | endif | ||
| - | |||
| - | #Rain | ||
| - | if ((< | ||
| - | #If we're not in the middle of, or recovering from a Conversion Bomb | ||
| - | | ||
| - | < | ||
| - | 1 -> | ||
| - | GetGameUpdateCount -> | ||
| - | # | ||
| - | endif | ||
| - | if((< | ||
| - | 2 -> | ||
| - | # | ||
| - | endif | ||
| - | if((< | ||
| - | 0 -> | ||
| - | # | ||
| - | endif | ||
| - | |||
| - | :Once | ||
| - | RegisterForMSG(" | ||
| - | 0 -> | ||
| - | 0 -> | ||
| - | 0 -> | ||
| - | </ | ||
| - | |||
| - | < | ||