UFO: Alien Invasion
Loading...
Searching...
No Matches
g_func.h File Reference

func_* edicts More...

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

Go to the source code of this file.

Functions

void SP_func_breakable (Edict *ent)
 func_breakable (0.3 0.3 0.3) ? Used for breakable objects.
void SP_func_door (Edict *ent)
 func_door (0 .5 .8) ? "health" if set, door is destroyable
void SP_func_door_sliding (Edict *ent)
void SP_func_rotating (Edict *ent)
 Spawns a rotating solid inline brush model.

Detailed Description

func_* edicts

Definition in file g_func.h.

Function Documentation

◆ SP_func_breakable()

void SP_func_breakable ( Edict * ent)

func_breakable (0.3 0.3 0.3) ? Used for breakable objects.

Note
These edicts are added client side as local models, they are stored in the lmList (because they are inline models) for tracing (see inlineList in cmodel.c)
See also
CM_EntTestLine
LM_AddModel
SV_SetModel
G_SendEdictsAndBrushModels

Definition at line 144 of file g_func.cpp.

References AABB_STRING, AABB::asIntString(), Edict::classname, Com_DPrintf(), DEBUG_GAME, Edict::destroy, Destroy_Breakable(), Edict::entBox, ET_BREAKABLE, FL_DESTROYABLE, Edict::flags, gi, Edict::mapNum, Edict::model, Edict::origin, Edict::setTouch(), Edict::solid, SOLID_BSP, Touch_Breakable(), Edict::type, Edict::use, and Use_Breakable().

◆ SP_func_door()

◆ SP_func_door_sliding()

◆ SP_func_rotating()

void SP_func_rotating ( Edict * ent)

Spawns a rotating solid inline brush model.

See also
SV_SetModel
LM_AddModel

Definition at line 405 of file g_func.cpp.

References Edict::classname, Edict::destroy, Destroy_Breakable(), ET_ROTATING, FL_DESTROYABLE, Edict::flags, gi, Edict::HP, Edict::model, Edict::solid, SOLID_BSP, Edict::speed, and Edict::type.