Page 1 of 1
JS API: playerData ideas...
Posted: 28 Feb 2012, 05:25
by aubergine
Could a .isAI property be added to playerData objects? true = player is an AI, false = player is a human
For the .difficulty property on human players, could it be set based on their MP rankings?

= EASY

= MEDIUM

= HARD

= INSANE (but without the power boost)
That would give AI's some idea about what sort of humans they are up against.
Re: JS API: playerData ideas...
Posted: 14 Mar 2012, 19:56
by Per
Added the .isAI field. The .difficulty part for humans was a bit tricky to do (correctly), since the game stats stuff is a big mess, so I left it alone for now.
Re: JS API: playerData ideas...
Posted: 14 Mar 2012, 19:58
by aubergine
Yeah, I did encounter the game stats stuff on one of my expeditions in to the source code and I literally had no clue what it's suppose to do or how it even works lol. But having a .isAI property added is great news!!
Is the .isAI a 3.1 addition or will be only be in 3.2?
Re: JS API: playerData ideas...
Posted: 14 Mar 2012, 20:00
by aubergine
Actually, could it be changed...
Instead have a .playerType property that can be one of:
* PLAYER_HUMAN
* PLAYER_AI
* PLAYER_NONE (player slot is unused)
* PLAYER_SCAVENGER (I know scavs aren't going to be listed in playerData, I'd add them in via script myself)
Re: JS API: playerData ideas...
Posted: 31 Mar 2012, 21:30
by Per
isAI is 3.2 only. I just added isHuman to complement it.
Re: JS API: playerData ideas...
Posted: 31 Mar 2012, 23:14
by Giani
Isnt the grey/white medal better than the brown?