Author Topic: The human races explained?  (Read 5728 times)

Offline kharille

  • Colonel
  • ****
  • Posts: 370
    • View Profile
The human races explained?
« on: July 17, 2013, 02:43:54 am »
I think I recall reading about this, that some of the humans are black or Asian or whatever but somehow I can't recall whether it was a wiki or the manual.  Is there a wiki link that defines them in the equipment screen?

Offline pmprog

  • Commander
  • *****
  • Posts: 647
  • Contributor
    • View Profile
    • Polymath Programming
Re: The human races explained?
« Reply #1 on: July 17, 2013, 09:24:23 am »
https://en.wikipedia.org/wiki/Race_%28human_classification%29

I am assuming you meant in XCOM though, so jokes aside, the game isn't about the humans, and a black human is no different from an asian or white human. All get the same chance of stats, and they all behave the same in the game.

So not really sure what you're asking about here. There are just graphical representations, probably to feel a bit less "fixed" on their market...

Offline LCSand

  • Captain
  • ***
  • Posts: 73
    • View Profile
Re: The human races explained?
« Reply #2 on: July 17, 2013, 09:43:04 am »
I think he is asking where it is defined what skin color, hair color and names soldiers have.
And are those visible in the equipment screen?
And propably how to change them too.

Offline kharille

  • Colonel
  • ****
  • Posts: 370
    • View Profile
Re: The human races explained?
« Reply #3 on: July 17, 2013, 10:29:08 am »
Well, the black people are obvious.  The asians all seem to have red hair?  Its on the equip screen.

Offline SupSuper

  • Lazy Developer
  • Administrator
  • Commander
  • *****
  • Posts: 2160
    • View Profile
Re: The human races explained?
« Reply #4 on: July 17, 2013, 09:40:09 pm »
There are four soldier looks: Blonde, Brown-hair, Asian and African.

They are randomly chosen, although I believe someone recently tied them to the nationality.

Offline 54x

  • Colonel
  • ****
  • Posts: 208
    • View Profile
Re: The human races explained?
« Reply #5 on: July 19, 2013, 04:00:30 pm »
There are four soldier looks: Blonde, Brown-hair, Asian and African.

They are randomly chosen, although I believe someone recently tied them to the nationality.

Yeah, that was me, with some help from Warboy. I got a bit tired of the namefiles throwing out completely random looks, so we'd have european-looking soldiers wandering around with Chinese names, a 25% chance that russians would be black when in reality they're a sub-1% minority, and so on. :)


I actually went reasonably in-depth to do this, too.
Each default namefile now has four values listed under lookWeights (in the order of the integer determining which look is which, so Blonde European, Brown European, Asian, and African looks) to weight how likely each given soldier is to be a certain look. For countries that don't fit neatly into any of the four looks, I approximated data based on skintone. (so some places that have paler brown skin will use the asian look despite looking very different to the paperdoll, and other places with darker brown skin will use the african look, despite also having differences there) I've used real demographic information where available. This should decrease the incidence of, for instance, Russians of african descent, down to more realistic probabilities, so soldiers with odd ethnicity-name mixes can still show up where we allow for them.

It also has some smart handling where if you fail to give the right number of values it defaults any omitted values to 2 and ignores any extra values. (this should make the code play nice with mods when we plug in the ability to add more looks, we just need to unhardcode the number 4 for that)

Because there's no weighting of which namefile to choose, however, it did have the side-effect that suddenly you had a BUNCH more white soldiers, seeing we have a ton of european namefiles. Hence why I also added a few more african namefiles and a korean one just after I did that PR.

If I wanted to be really clever I'd add some code that would attach namefiles to a funding country, and then would weight the namefiles based on their proximity to the base you're hiring at, but that would be a lot more work, the system is probably sufficiently organic as it is.