func_* edicts More...
#include "g_local.h"
Go to the source code of this file.
Functions | |
static qboolean | Touch_Breakable (edict_t *self, edict_t *activator) |
If an actor was standing on the breakable that is going to get destroyed, we have to let him fall to the ground. | |
static qboolean | Destroy_Breakable (edict_t *self) |
void | SP_func_breakable (edict_t *ent) |
func_breakable (0.3 0.3 0.3) ? Used for breakable objects. | |
static qboolean | Door_Use (edict_t *door, edict_t *activator) |
Opens/closes a door. | |
static qboolean | Touch_DoorTrigger (edict_t *self, edict_t *activator) |
Trigger to open the door we are standing in front of it. | |
static void | Reset_DoorTrigger (edict_t *self, edict_t *activator) |
Left the door trigger zone - reset the client action. | |
void | SP_func_door (edict_t *ent) |
func_door (0 .5 .8) ? "health" if set, door is destroyable | |
void | SP_func_rotating (edict_t *ent) |
Spawns a rotating solid inline brush model. |
func_* edicts
Definition in file g_func.c.
Definition at line 51 of file g_func.c.
References EV_MODEL_EXPLODE, EV_MODEL_EXPLODE_TRIGGERED, f, G_CheckVisTeam(), G_EventPerish(), G_EventSpawnSound(), G_FreeEdict(), G_RecalcRouting(), G_SpawnParticle(), G_TouchEdicts(), gi, i, level, MAT_ELECTRICAL, MAT_GLASS, MAT_MAX, MAT_METAL, MAT_WOOD, MAX_TEAMS, level_locals_t::num_alive, PM_ALL, qfalse, qtrue, and VectorCenterFromMinsMaxs().
Referenced by SP_func_breakable(), and SP_func_door().
Opens/closes a door.
Definition at line 152 of file g_func.c.
References edict_s::angles, Com_DPrintf(), DEBUG_GAME, DOOR_ROTATION_ANGLE, edict_s::doorState, EV_DOOR_CLOSE, EV_DOOR_OPEN, G_CheckVis(), G_CheckVisTeamAll(), G_EventSpawnSound(), G_IsLivingActor(), G_MatchIsRunning(), G_RecalcRouting(), gi, edict_s::model, edict_s::noise, edict_s::number, edict_s::origin, PM_ALL, qfalse, qtrue, STATE_CLOSED, STATE_OPENED, edict_s::team, and YAW.
Referenced by SP_func_door().
Left the door trigger zone - reset the client action.
self | The trigger | |
activator | The edict that left the trigger zone |
Definition at line 237 of file g_func.c.
References edict_s::clientAction, and G_ActorSetClientAction().
Referenced by SP_func_door().
void SP_func_breakable | ( | edict_t * | ent | ) |
func_breakable (0.3 0.3 0.3) ? Used for breakable objects.
Definition at line 119 of file g_func.c.
References edict_s::classname, Com_DPrintf(), DEBUG_GAME, edict_s::destroy, Destroy_Breakable(), ET_BREAKABLE, FL_DESTROYABLE, edict_s::flags, gi, edict_s::mapNum, edict_s::maxs, edict_s::mins, edict_s::model, edict_s::origin, edict_s::solid, SOLID_BSP, edict_s::touch, Touch_Breakable(), and edict_s::type.
void SP_func_door | ( | edict_t * | ent | ) |
func_door (0 .5 .8) ? "health" if set, door is destroyable
Definition at line 250 of file g_func.c.
References edict_s::absmax, edict_s::absmin, edict_s::child, edict_s::classname, Com_DPrintf(), DEBUG_GAME, edict_s::destroy, Destroy_Breakable(), Door_Use(), edict_s::doorState, ET_DOOR, FL_DESTROYABLE, FL_TRIGGERED, edict_s::flags, G_ActorSetTU(), G_TriggerSpawn(), G_UseEdict(), gi, edict_s::HP, edict_s::mapNum, edict_s::maxs, edict_s::mins, edict_s::model, edict_s::noise, edict_s::origin, edict_s::reset, Reset_DoorTrigger(), edict_s::solid, SOLID_BSP, edict_s::spawnflags, STATE_CLOSED, edict_s::touch, Touch_DoorTrigger(), TU_DOOR_ACTION, edict_s::type, and edict_s::use.
void SP_func_rotating | ( | edict_t * | ent | ) |
Spawns a rotating solid inline brush model.
Definition at line 297 of file g_func.c.
References edict_s::classname, Com_DPrintf(), DEBUG_GAME, ET_ROTATING, FL_DESTROYABLE, edict_s::flags, gi, edict_s::HP, edict_s::mapNum, edict_s::maxs, edict_s::mins, edict_s::model, edict_s::origin, edict_s::solid, SOLID_BSP, edict_s::speed, and edict_s::type.
If an actor was standing on the breakable that is going to get destroyed, we have to let him fall to the ground.
self | The breakable edict | |
activator | The touching edict |
Definition at line 39 of file g_func.c.
References G_ActorFall(), G_IsActor, and qfalse.
Referenced by SP_func_breakable().
Trigger to open the door we are standing in front of it.
Definition at line 212 of file g_func.c.
References AI_CheckUsingDoor(), FL_GROUPSLAVE, G_ActorSetClientAction(), G_ActorUseDoor(), G_IsAI, edict_s::owner, qfalse, and qtrue.
Referenced by SP_func_door().