• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Player controllers

Status
Not open for further replies.
Level 26
Joined
Aug 18, 2009
Messages
4,099
Most custom game mapmakers either deploy human or CPU player controllers. While the usage of humans is pretty obvious, CPU spots are more disputable since there are similar options: neutral, rescuable or even none. Now I do not know their exact behaviors but I want so indicate one specific disadvantage of CPU: They come with AI behaviors, more than standard behaviors, they do certain actions like ordering abilities in circumstances. I have seen situations where this proved to be bad when you wanted to define the behavior yourself. The last occurence even caused a freeze/crash because the mapmaker tried to redirect orders and the AI instantly meddled in between.

CPU players are the only ones besides humans to show up in the game lobby. In multiplayer you require at least two different teams, so for a PVE map, one CPU slot may be necessary. Well, actually I am not so sure about that. The game lobby not only depends on the W3I (scenario) data but also on the config function in the map script file. I think I constructed some abnormalities with this before.
 
Level 14
Joined
Oct 18, 2013
Messages
724
To disable Neutral Hostile:
JASS:
 call RemovePlayer(Player(12), PLAYER_GAME_RESULT_DEFEAT )

jk, I kinda wish it did though. Really needs to be a way to disable the CPU to allow smooth access of all 16 'Player' Slots.
 
Status
Not open for further replies.
Top