Alien interest header. More...
Go to the source code of this file.
Functions | |
void | CL_ResetAlienInterest (void) |
Initialize alien interest values and mission cycle. | |
void | CP_IncreaseAlienInterest (void) |
Increase alien overall interest. | |
void | CL_ChangeIndividualInterest (float percentage, interestCategory_t category) |
Change individual interest value. |
Alien interest header.
Definition in file cp_alien_interest.h.
void CL_ChangeIndividualInterest | ( | float | interestFactor, | |
interestCategory_t | category | |||
) |
Change individual interest value.
[in] | interestFactor | Maybe pe > 0 or < 0 |
[in] | category | Category of interest for aliens that should increase / decrease |
Definition at line 55 of file cp_alien_interest.c.
References ccs, Com_Printf(), f, int(), ccs_s::interest, INTERESTCATEGORY_MAX, and ccs_s::overallInterest.
Referenced by CP_BaseAttackMissionIsFailure(), CP_BaseAttackMissionIsSuccess(), CP_BaseAttackMissionOnSpawn(), CP_BuildBaseMissionBaseDestroyed(), CP_BuildBaseMissionIsFailure(), CP_BuildBaseMissionIsSuccess(), CP_BuildBaseMissionOnSpawn(), CP_HarvestMissionIsFailure(), CP_HarvestMissionIsSuccess(), CP_InterceptMissionIsFailure(), CP_InterceptMissionIsSuccess(), CP_ReconMissionIsFailure(), CP_ReconMissionIsSuccess(), CP_SpawnNewMissions(), CP_SupplyMissionIsFailure(), CP_SupplyMissionIsSuccess(), CP_TerrorMissionIsFailure(), CP_TerrorMissionIsSuccess(), CP_TerrorMissionOnSpawn(), CP_XVIMissionIsFailure(), and CP_XVIMissionIsSuccess().
void CL_ResetAlienInterest | ( | void | ) |
Initialize alien interest values and mission cycle.
Definition at line 36 of file cp_alien_interest.c.
References ccs, i, INITIAL_OVERALL_INTEREST, ccs_s::interest, INTERESTCATEGORY_MAX, INTERESTCATEGORY_RECON, ccs_s::lastInterestIncreaseDelay, ccs_s::lastMissionSpawnedDelay, and ccs_s::overallInterest.
Referenced by CP_CampaignInit().
void CP_IncreaseAlienInterest | ( | void | ) |
Increase alien overall interest.
Definition at line 94 of file cp_alien_interest.c.
References ccs, ccs_s::curCampaign, campaign_s::difficulty, HOURS_PER_ONE_INTEREST, ccs_s::lastInterestIncreaseDelay, and ccs_s::overallInterest.
Referenced by CL_CampaignRun().