All pastes #491938 Raw Edit

Plouj

public text v1 · immutable
·published 2007-05-16 22:49 UTC
rendered paste body
void Com_CharGenAbilitySkills (character_t * chr, int team)
{       
        int i, skillWindow, abilityWindow, training, ability1, ability2;
        float windowScalar;
        int minAbility = 0, maxAbility = 0, minSkill = 0, maxSkill = 0;

        assert(chr);

        /* The globalCampaignID must be set to proceed.  Set with Com_SetGlobalCampaignID */
        /*assert(globalCampaignID >= 0);*/


        /**
         * Build the acceptable ranges for skills / abilities for this character on this team
         * as appropriate for this campaign
         */
        Com_GetAbility(chr, team, &minAbility, &maxAbility, globalCampaignID);
        Com_GetSkill(chr, team, &minSkill, &maxSkill, globalCampaignID);