g_mission.c File Reference

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

#include "g_local.h"
Include dependency graph for g_mission.c:

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)

Detailed Description

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

Definition in file g_mission.c.


Function Documentation

qboolean G_MissionDestroy ( edict_t self  ) 

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  ) 
qboolean G_MissionTouch ( edict_t self,
edict_t activator 
)

Mission trigger.

Todo:

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

Note:
Don't set a client action here - otherwise the movement event might be corrupted

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().

qboolean G_MissionUse ( edict_t self,
edict_t activator 
)

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().


Generated by  doxygen 1.6.2