Bak wrote: |
he's not running 10 bots with 10 copies of the exact module. He's running one bot with one version of the module -> 1 poll per tick |
Code: Show/Hide // spawn.h class botInfo { int countdown[1]; public: botInfo(CALL_HANDLE given) { countdown[0] = 10; // initially starts at 10 seconds //spawn.cpp case EVENT_Tick: // called once a second { for (int i = 0; i < 1; ++i) --countdown[i]; if (countdown[0] == 0) // 10 seconds have passed { countdown[0] = 10; // reset timer // insert code that happens every 10 seconds here } |
Ekted wrote: |
The point is: the proper place for time checking is in the core, with events to notify modules. Using this method, the core can poll a single interval per tick and notify modules accordingly. |
Ekted wrote: |
Merv could do this. |
Quote: |
50% Packetloss: "It also has mysql support; that alone pretty much blows merv out of the water." |