UFO: Alien Invasion Issue Tracker
UFO: Alien Invasion
Go to the previous open issue
Go to the previous issue (open or closed)
star_faded.png
Please log in to bookmark issues
icon_project.png UFO: Alien Invasion / Closed Feature request #4109 Allow gender distribution to be based on available models
action_vote_minus_faded.png
0
Votes
action_vote_plus_faded.png
Go to the next issue (open or closed)
Go to the next open issue
This issue has been closed with status "Closed" and resolution "Not determined".
Issue basics
  • Type of issue
    Feature request
  • Category
    Campaign
  • Targetted for
    Not determined
  • Status
    Closed
  • Priority
    3. Normal
User pain
  • Type of bug
    Not triaged
  • Likelihood
    Not triaged
  • Effect
    Not triaged
Affected by this issue (0)
There are no items
People involved
Times and dates
  • Posted at
  • Last updated
Issue details
  • Complexity
    Not determined
Attachments (0)
There is nothing attached to this issue
Duplicate issues (0)
This issue does not have any duplicates
Description
[http://sourceforge.net/p/ufoai/feature-requests/625 Item 625] imported from sourceforge.net tracker on 2013-01-28 20:23:02

The game chooses a gender in scripts.cpp::Com_GetCharacterValues, line 2241:

const int gender = rand() % NAME_LAST;

If I understand this correctly, this leads to a 50-50 split between both genders for Phalanx soldiers. Now that we have a lot more male than female soldier models, it would be really nice if the game chose a soldier model at random, and then set the gender based on that.

So, for instance, if we have 30 male models and 10 female models, it should choose one of the 40 and determine the gender from that. This will allow for maximum soldier diversity.

The scripts save the number of models for each gender in td->numModels[gender]. But I was unable to think of a safe and appropriate way to use this to implement this myself. It seems like a fairly simple change if someone could please do it.

Thanks.
===== Comments Ported from Sourceforge =====

====== darkrainx (2012-12-18 18:58:47.790000) ======

This should be implemented now, see: [1b6273f02e7fcbf139a51084c43a88334f994a14]
====== Missing Comment Alert ======

The importer failed to retrieve a comment in this thread. Please view the old ticket link above for full discussion details.
Todos (0 / 0)
Issue created
footer_logo.png The Bug Genie 4.3.1 | Support | Feedback spinning_16.gif