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]; Pwn3D
🜲 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 http://upload.wikimedia.org/wikipedia/commons/thumb/8/88/Half-Life_Black_Mesa_logo.svg/120px-Half-Life_Black_Mesa_logo.svg.pngDCME co-developerSSCU 17th Parallel sysop
★ 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 _UU___UU__SSSSS____AAA____UU___UU__SSSSS____AAA____UU___UU_SS_______AAAAA___UU___UU_SS_______AAAAA___UU___UU__SSSSS__AA___AA__UU___UU__SSSSS__AA___AA__UU___UU______SS_AAAAAAA__UU___UU______SS_AAAAAAA___UUUUU___SSSSS_AA____AA___UUUUU___SSSSS_AA____AAJ.C. Dento> prime example of why america will never be a world super power.Moscato> d1 is mad he will never have a job outside subspaceI can't see this because I turned signatures off. ps VT
Recommended Posts