Major Cooke wrote:Graf, is it safe to introduce our own STAT_ numbers for thinkers? (I.e. using 7 for a stat number) Also, is there a set range for thinkers where the Tick function is not automatically called, besides 1 through 6 (STAT_INFO to STAT_STATIC)
A partial answer, from the troubleshooting
thread for Blade of Agony performance, when I asked something similar:
Graf Zahl wrote:Yes. You only have to be careful where to put stuff. Normally, anything between 80 and STAT_DEFAULT should be fine if it's actually thinking. Higher numbers than STAT_DEFAULT should be used with care, though. because the stuff in there depends on running after the game actors.
The numbers between STAT_DLIGHT and 80 should be left alone in case the engine needs to allocate new numbers.
I'm using "STAT_DEFAULT - 1" through "STAT_DEFAULT - 5" for several of the custom actors in BoA in order to limit the impact of ThinkerIterators, and there's at least one actor that is set to A_Warp to the position of another ACS-controlled actor that is specifically set to "STAT_SCRIPTS + 1" so that it will Tick *after* the ACS positioning happens so that the movement will interpolate more closely.
I'm 99% sure that the first actual "thinking"/ticking statnum is STAT_FIRST_THINKING, so anything below 32
won't Tick automatically...