UFO: Alien Invasion
g_mission.h File Reference

Mission related code - king of the hill and so on. More...

#include "g_local.h"
Include dependency graph for g_mission.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void G_MissionAddVictoryMessage (const char *message)
 
bool G_MissionTouch (Edict *self, Edict *activator)
 Mission trigger. More...
 
void G_MissionReset (Edict *self, Edict *activator)
 
bool G_MissionDestroy (Edict *self)
 
bool G_MissionUse (Edict *self, Edict *activator)
 Mission trigger use function. More...
 
void G_MissionThink (Edict *self)
 

Detailed Description

Mission related code - king of the hill and so on.

Definition in file g_mission.h.

Function Documentation

◆ G_MissionAddVictoryMessage()

void G_MissionAddVictoryMessage ( const char *  message)

Definition at line 38 of file g_mission.cpp.

References CS_VICTORY_CONDITIONS, and gi.

Referenced by SP_misc_mission().

◆ G_MissionDestroy()

bool G_MissionDestroy ( Edict self)

◆ G_MissionReset()

◆ G_MissionThink()

◆ G_MissionTouch()

bool G_MissionTouch ( Edict self,
Edict activator 
)

Mission trigger.

Todo:
use level.nextmap to spawn another map when every living actor has touched the mission trigger
Note
Don't set a client action here - otherwise the movement event might be corrupted

Definition at line 53 of file g_mission.cpp.

References _, level_locals_t::actualRound, Edict::chr, CID_FLOOR, Edict::count, linkedList_t::data, Container::def(), Item::def(), G_ActorInvMove(), G_IsCivilian, G_IsDead, G_IsLivingActor(), G_MissionGetTeamString(), Inventory::getNextCont(), Container::getNextItem(), Edict::getTeam(), gi, objDef_t::id, character_t::inv, INVDEF, Edict::isOpponent(), Edict::isSameTeamAs(), Edict::item, level, makeActor(), objDef_t::name, linkedList_t::next, NONE, PRINT_HUD, Q_streq, Edict::targetname, and Edict::touchedList.

Referenced by SP_misc_mission().

◆ G_MissionUse()

bool G_MissionUse ( Edict self,
Edict activator 
)

Mission trigger use function.

Definition at line 151 of file g_mission.cpp.

References Edict::destroy, G_EdictsFindTargetEntity(), G_FreeEdict(), gi, Edict::HP, Edict::target, and Edict::use.

Referenced by SP_misc_mission().