39 if (
cgi->Cmd_Argc() < 2) {
40 cgi->Com_Printf(
"Usage: %s <tech>\n",
cgi->Cmd_Argv(0));
44 const char* techID =
cgi->Cmd_Argv(1);
63 if (
cgi->Cmd_Argc() < 2) {
64 cgi->Com_Printf(
"Usage: %s <item>\n",
cgi->Cmd_Argv(0));
68 id =
cgi->Cmd_Argv(1);
69 baseID = atoi(
cgi->Cmd_Argv(2));
95 if (
cgi->Cmd_Argc() < 2) {
96 cgi->Com_Printf(
"Usage: %s <absolute change value>\n",
cgi->Cmd_Argv(0));
99 change = atof(
cgi->Cmd_Argv(1));
102 cgi->Com_Printf(
"No mission selected - could not determine nation to use\n");
120 cgi->UI_RegisterText(
TEXT_STANDARD,
_(
"Congratulations! You have reached the end of the UFO:AI campaign.\n"
121 "However, this is not the end of the road. The game remains in development.\n"
122 "The campaign will be expanded with new missions, new enemies, "
123 "new UFOs, new player controllable craft and more research.\n\n"
124 "And YOU can help make it happen! Visit our forums or IRC channel to find\n"
125 "out what you can do to help finish this game. Alternatively, you can just\n"
126 "come by and talk about the game, or find other players for a multiplayer game.\n\n"
127 "Thank you for playing, and we hope to see you around.\n\n"
128 " - The UFO:AI development team"));
137 {
"cp_endgame",
CP_EndGame_f,
"This command will end the current campaign"},
139 {
nullptr,
nullptr,
nullptr}
155 cgi->Cmd_RemoveCommand(commands->
name);
Share stuff between the different cgame implementations.
base_t * B_GetBaseByIDX(int baseIdx)
Array bound check for the base index. Will also return unfounded bases as long as the index is in the...
void CP_EndCampaign(bool won)
Function to handle the campaign end.
Header file for single player campaign control.
const cgame_import_t * cgi
static void CP_ChangeNationHappiness_f(void)
Changes nation happiness by given value.
static void CP_EndGame_f(void)
static void CP_AddItemAsCollected_f(void)
For things like craft_ufo_scout that are no real items this function will increase the collected coun...
static void CP_AddTechAsResearchable_f(void)
static const cmdList_t cp_commands[]
mission trigger functions
void CP_CampaignTriggerFunctions(bool add)
Add/Remove temporary mission trigger functions.
nation_t * GEO_GetNation(const vec2_t pos)
Translate nation map color to nation.
Header for Geoscape management.
#define GEO_GetSelectedMission()
Campaign missions headers.
void NAT_SetHappiness(const float minhappiness, nation_t *nation, const float happiness)
Updates the nation happiness.
const nationInfo_t * NAT_GetCurrentMonthInfo(const nation_t *const nation)
Get the current month nation stats.
void RS_MarkOneResearchable(technology_t *tech)
Marks one tech as researchable.
void RS_MarkCollected(technology_t *tech)
Marks a give technology as collected.
technology_t * RS_GetTechForItem(const objDef_t *item)
Returns technology entry for an item.
technology_t * RS_GetTechByID(const char *id)
return a pointer to the technology identified by given id string
const objDef_t * INVSH_GetItemByIDSilent(const char *id)
Returns the item that belongs to the given id or nullptr if it wasn't found.
A base with all it's data.
int numItems[MAX_OBJDEFS]
Detailed information about the nation relationship (currently per month, but could be used elsewhere)...
Defines all attributes of objects used in the inventory.
This is the technology parsed from research.ufo.