UFO: Alien Invasion
|
Go to the source code of this file.
Macros | |
#define | CAMERAMODEL(X, IDX) case X: ent->model = "models/objects/cameras/camera" STRINGIFY(IDX); break |
Functions | |
static bool | G_CameraUse (Edict *self, Edict *activator) |
static bool | Destroy_Camera (Edict *self) |
void | G_InitCamera (Edict *ent, camera_type_t cameraType, float angle, bool rotate) |
#define CAMERAMODEL | ( | X, | |
IDX | |||
) | case X: ent->model = "models/objects/cameras/camera" STRINGIFY(IDX); break |
Definition at line 48 of file g_camera.cpp.
Referenced by G_InitCamera().
|
static |
Definition at line 41 of file g_camera.cpp.
References G_FreeEdict(), and G_SpawnParticle().
Referenced by G_InitCamera().
void G_InitCamera | ( | Edict * | ent, |
camera_type_t | cameraType, | ||
float | angle, | ||
bool | rotate | ||
) |
Definition at line 50 of file g_camera.cpp.
References ACTOR_SIZE_NORMAL, AngleToDir(), Edict::camera, CAMERA_MOBILE, CAMERA_STATIONARY, CAMERAMODEL, camera_edict_data_s::cameraType, Edict::classname, Edict::destroy, Destroy_Camera(), Edict::dir, Edict::entBox, ET_CAMERA, Edict::fieldSize, FL_DESTROYABLE, Edict::flags, G_CameraUse(), G_FreeEdict(), gi, MAT_ELECTRICAL, Edict::material, Edict::model, Edict::origin, Edict::pos, camera_edict_data_s::rotate, AABB::set(), Edict::solid, SOLID_BBOX, Edict::type, Edict::use, and VecToPos.
Referenced by SP_misc_camera().