Mission related code - king of the hill and so on. More...
#include "g_local.h"
Go to the source code of this file.
Functions | |
qboolean | G_MissionTouch (edict_t *self, edict_t *activator) |
Mission trigger. | |
qboolean | G_MissionDestroy (edict_t *self) |
Mission trigger destroy function. | |
qboolean | G_MissionUse (edict_t *self, edict_t *activator) |
Mission trigger use function. | |
void | G_MissionThink (edict_t *self) |
Mission related code - king of the hill and so on.
Definition in file g_mission.c.
Mission trigger destroy function.
Definition at line 101 of file g_mission.c.
References qtrue.
Referenced by SP_misc_mission().
void G_MissionThink | ( | edict_t * | self | ) |
Definition at line 135 of file g_mission.c.
References level_locals_t::actualRound, edict_s::child, Com_Printf(), edict_s::count, game_import_t::csi, ET_ITEM, ET_MISSION, ET_PARTICLE, FL_DESTROYABLE, edict_s::flags, FLOOR, G_AppearPerishEvent(), G_EdictsGetNextInUse(), G_FreeEdict(), G_GetEdictFromPos(), G_GetFloorItems(), G_InventoryRemoveItemByID(), G_MatchEndTrigger(), G_MatchIsRunning(), G_SpawnParticle(), G_VisToPM(), gi, edict_s::groupChain, edict_s::groupMaster, edict_s::HP, objDef_s::id, csi_s::idFloor, invList_s::item, edict_s::item, level, invList_s::next, edict_s::number, edict_s::particle, PM_ALL, edict_s::pos, qfalse, item_s::t, edict_s::team, edict_s::time, edict_s::type, edict_s::use, and edict_s::visflags.
Referenced by SP_misc_mission(), and SP_misc_mission_aliens().
Mission trigger.
use level.nextmap to spawn another map when every living actor has touched the mission trigger
use level.actualRound to determine the 'King of the Hill' time
Definition at line 38 of file g_mission.c.
References _, level_locals_t::actualRound, CONTAINER, game_import_t::csi, G_ActorInvMove(), G_IsAlien, gi, objDef_s::id, csi_s::idFloor, INVDEF, invList_s::item, level, invList_s::next, NONE, csi_s::numIDs, PRINT_HUD, qfalse, qtrue, item_s::t, edict_s::team, TEAM_ALIEN, and invDef_s::temp.
Referenced by SP_misc_mission(), and SP_misc_mission_aliens().
Mission trigger use function.
Definition at line 109 of file g_mission.c.
References edict_s::destroy, G_FindTargetEntity(), G_FreeEdict(), gi, edict_s::HP, qfalse, qtrue, and edict_s::use.
Referenced by SP_misc_mission().