ForceMaster wrote:@Noobasaurus In older post, you said something like FFA mode (Free For All), that mode can be fine for the disc arena but i don't know how make it, any ideas?
Start with the default hero assault mode. Place spawn nodes around the arena so that people spawn randomly no matter which side they are on or which CP they click on. Then set the teams against each other using the following code:
Code: Select all
SetTeamAsEnemy(1,1)
SetTeamAsEnemy(2,2)
Keep in mind all your human players have to be spawned before this happens, otherwise they won't be able to spawn at all. It would probably be best to start a timer after the first human spawns to give the other humans time to spawn, then run this code and let the mayhem begin. In order to check for the winner, you could have a check in
OnCharacterDeath which checks for alive players on both team 1 and 2
(GetNumTeamMembersAlive(team#)). If these added together equal one, then you have a winner and you give him victory and then the game restarts.
Also, if you want your AI to run around and kill people, stick this in your code.
Code: Select all
AddAIGoal(1, "deathmatch", 1000)
AddAIGoal(2, "deathmatch", 1000)