UFO: Alien Invasion
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
g_func.h File Reference

func_* edicts More...

#include "g_local.h"

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. More...
 
void SP_func_door (Edict *ent)
 func_door (0 .5 .8) ? "health" if set, door is destroyable More...
 
void SP_func_door_sliding (Edict *ent)
 
void SP_func_rotating (Edict *ent)
 Spawns a rotating solid inline brush model. More...
 

Detailed Description

func_* edicts

Definition in file g_func.h.

Function Documentation

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

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.