"units = " Problem - - - SOLVED - - -
Posted: Sat Jan 13, 2007 3:28 am
I wanted to make maps use the "units = " feature, but UberMode wouldn't cut it. For one, I'm modding the PSP, so UberMode doesn't work. But even on the PC, UberMode changes the gametype entirely, while I want to maintain Capture-the-Flag, Hunt and Assault gametypes.
The only trick I could figure out to make maps use "units = " was by adding "ScriptCB_SetGameRules("campaign")" to a level. That works just fine, not altering the gametype while making "units = " determine the amount of AI on a team, but it causes two problems.
1) The player can't choose his team. Like on the normal Campaign, it automatically puts him onto the "attacking" team. Not good.
2) The player can't change the options for things like the victory requirements, time limits, the requirements to be given a hero, etc. The level will instead use the default settings, no matter what options the player sets.
So, I have some questions.
- First off, is there a different way to make a level utilize "units = "? If there is, that would eliminate the need for my next two questions.
- Can I somehow make it so that the player can choose his team on levels that use "ScriptCB_SetGameRules("campaign")"? It kind of stinks always having to play on the same team.
- Can I make it so that maps using "ScriptCB_SetGameRules("campaign")" will utilize the player's custom options, rather than always using the default settings? OR, is there a way to specify the various things like score requirements and time limits within the levels themselves?
The only trick I could figure out to make maps use "units = " was by adding "ScriptCB_SetGameRules("campaign")" to a level. That works just fine, not altering the gametype while making "units = " determine the amount of AI on a team, but it causes two problems.
1) The player can't choose his team. Like on the normal Campaign, it automatically puts him onto the "attacking" team. Not good.
2) The player can't change the options for things like the victory requirements, time limits, the requirements to be given a hero, etc. The level will instead use the default settings, no matter what options the player sets.
So, I have some questions.
- First off, is there a different way to make a level utilize "units = "? If there is, that would eliminate the need for my next two questions.
- Can I somehow make it so that the player can choose his team on levels that use "ScriptCB_SetGameRules("campaign")"? It kind of stinks always having to play on the same team.
- Can I make it so that maps using "ScriptCB_SetGameRules("campaign")" will utilize the player's custom options, rather than always using the default settings? OR, is there a way to specify the various things like score requirements and time limits within the levels themselves?