Witchie NL Posted April 11, 2006 Report Posted April 11, 2006 ok i am editing a plugin which is already using all 4 of the countdowns but i need more countdowns what do i need to edit to make it happen? Spawn.h:public: botInfo(CALL_HANDLE given) { handle = given; callback = 0; playerlist = 0; flaglist = 0; map = 0; countdown[0] = 100; countdown[1] = 10; countdown[2] = 300; countdown[3] = 300; CONNECTION_DENIED = false; me = 0; biller_online = true; } Spawn.cpp:for (int i = 0; i < 4; ++i) --countdown[i];
Samapico Posted April 11, 2006 Report Posted April 11, 2006 I didnt do much bots, but I remember reading about that, i'm pretty sure you can just redefine the size of the countdown array, or change its size wherever it is already definedcant tell you more
»SOS Posted April 11, 2006 Report Posted April 11, 2006 Yup. Change those two places (add a line to first and change the 4 in second) and there's also a third place somewhere in spawn.h that needs the 4 changed.
»D1st0rt Posted April 11, 2006 Report Posted April 11, 2006 int countdown[4]; // Put bot data here it's right before the first code segment you posted, around line 50 in the default template
Recommended Posts