26 #include "../../cl_shared.h" 56 cgi->Com_Printf(
"CP_ChangeIndividualInterest: Unsupported value of category\n");
60 if (interestFactor > 0.0
f) {
65 const float slowerIncreaseFraction = 0.5f;
145 if (!
cgi->Com_GetConstInt(categoryId, (
int*) &cat)) {
146 cgi->Com_Printf(
"Invalid interest category '%s'\n", categoryId);
166 return "Recon mission";
168 return "Terror mission";
170 return "Base attack";
173 return "Building Base or Subverting Government";
175 return "Supply base";
177 return "XVI propagation";
180 return "Interception";
184 return "Alien base discovered";
186 return "Rescue mission";
188 return "UFO-Carrier";
190 return "Unknown mission category";
201 static void INT_AlienInterestList_f (
void)
204 cgi->Com_Printf(
"Individual interest:\n");
213 static void INT_SetAlienInterest_f (
void)
215 if (
cgi->Cmd_Argc() < 2) {
227 {
"debug_interestlist", INT_AlienInterestList_f,
"Debug function to show alien interest values"},
228 {
"debug_interestset", INT_SetAlienInterest_f,
"Set overall interest level."},
230 {
nullptr,
nullptr,
nullptr}
xmlNode_t *IMPORT * XML_GetNode(xmlNode_t *parent, const char *name)
static const constListEntry_t saveInterestConstants[]
#define HOURS_PER_ONE_INTEREST
The amount of time (in hours) it takes for the interest to increase by 1. Is later affected by diffic...
#define SAVE_INTERESTCAT_NAMESPACE
#define SAVE_INTERESTS_VAL
void INT_ResetAlienInterest(void)
Initialize alien interest values and mission cycle.
int lastInterestIncreaseDelay
void INT_Shutdown(void)
Closing actions for alien interests-subsystem.
static const cmdList_t debugInterestCmds[]
void INT_ChangeIndividualInterest(float interestFactor, interestCategory_t category)
Change individual interest value.
typedef int(ZCALLBACK *close_file_func) OF((voidpf opaque
const char *IMPORT * Cmd_Argv(int n)
bool INT_LoadXML(xmlNode_t *parent)
Load callback for savegames in XML Format.
#define SAVE_INTERESTS_LASTINCREASEDELAY
int interest[INTERESTCATEGORY_MAX]
const char *IMPORT * XML_GetString(xmlNode_t *parent, const char *name)
const cgame_import_t * cgi
#define SAVE_INTERESTS_LASTMISSIONSPAWNEDDELAY
void INT_InitStartup(void)
Init actions for alien interests-subsystem.
#define SAVE_INTERESTS_INTEREST
xmlNode_t *IMPORT * XML_GetNextNode(xmlNode_t *current, xmlNode_t *parent, const char *name)
void INT_IncreaseAlienInterest(const campaign_t *campaign)
Increase alien overall interest.
#define SAVE_INTERESTS_ID
#define SAVE_INTERESTS_OVERALL
Header file for single player campaign control.
bool INT_SaveXML(xmlNode_t *parent)
Save callback for savegames in XML Format.
xmlNode_t *IMPORT * XML_AddNode(xmlNode_t *parent, const char *name)
const char *IMPORT * Com_GetConstVariable(const char *space, int value)
int lastMissionSpawnedDelay
XML tag constants for savegame.