name == "Ultimate Scavenger Mod" (if USM installed) or "Scavengers"
The scavenger player ID is defined by scavengerPlayer. You can determine if scavengers are enabled via the scavengers global – note that this doesn't guarantee that the map maker added Scavengers to their map; if they didn't then regardless of scavengers being enabled there won't be any scavengers.
Notes
The player objects are based on the players in the current game. Depending on the type of the game, the source of the information is different:
Campaign: no idea how it gets defined
Challenges: Players predefined in an ini file – see Challenge Games for more info.
Skirmish and MP: Players defined on the game set-up screen.
Tutorial: no idea how it gets defined
Fast Play: no idea how it gets defined
The playerData[] array and the player objects it contains are static during a game – the information is created prior to eventGameInit() being triggered. In campaign games, it is assumed (but not verified) that the information will be updated during eventStartLevel() as there could be different factions in a level.
Empty player slots are still given Player objects, so don't assume a player object denotes a filled player slot.
Availability
This object is available for:
Warzone 3.1 early alphas
The .type property was added in Warzone 3.1 Beta 11
New properties are planned for Warzone 3.2
Where to get them?
Player data objects are only found in one place:
playerData[] – an array of player objects for the current game
See also
Related documentation:
difficulty – the difficulty level set for the player.
startPositions[] – an array of x,y co-ordinates of player starting positions.