Jump to content
SSForum.net is back!

Recommended Posts

Posted

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
Posted

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 defined

cant tell you more

Posted
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.
Posted

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____AA

J.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 subspace

I can't see this because I turned signatures off. ps VT

Guest
This topic is now closed to further replies.
×
×
  • Create New...