Droid limits

For AI and campaign script related discussions and questions
Post Reply
User avatar
aubergine
Professional
Professional
Posts: 3459
Joined: 10 Oct 2010, 00:58
Contact:

Droid limits

Post by aubergine »

With the new functions that allow setting / getting of droid limits, how do they deal with the difference between single player and multiplayer games?

The old hard-coded constants were:

#define MAX_MP_DROIDS 150
#define MAX_SP_DROIDS 100
#define MAX_SP_AI_DROIDS 999

I wasn't sure if SP = campaign only, or also included skirmish and challenges?

EDIT: Also, what happens with the overall game limit of 999 droids (across all players)?

Maybe setDroidLimit(player, limit, droidType) could accept ALL_PLAYERS as it's first parameter (forcing droidType to default to DROID_ANY) thus allowing the overall game limit to be set? And getDroidLimit() could work in a similar way?
"Dedicated to discovering Warzone artefacts, and sharing them freely for the benefit of the community."
-- https://warzone.atlassian.net/wiki/display/GO
Per
Warzone 2100 Team Member
Warzone 2100 Team Member
Posts: 3780
Joined: 03 Aug 2006, 19:39

Re: Droid limits

Post by Per »

There is no hard upper limit anymore.
User avatar
aubergine
Professional
Professional
Posts: 3459
Joined: 10 Oct 2010, 00:58
Contact:

Re: Droid limits

Post by aubergine »

Ah, nice!

Also I noticed that the data/base/script/rules.js sets 100 droids and data/mp/multiplay/skirmish/rules.js sets 150 droids (so 100 droids max in campaign, 150 droids max in all other modes).
"Dedicated to discovering Warzone artefacts, and sharing them freely for the benefit of the community."
-- https://warzone.atlassian.net/wiki/display/GO
Post Reply