UFO: Alien Invasion
g_camera.cpp File Reference
#include "g_local.h"
#include "g_spawn.h"
#include "g_utils.h"
#include "g_vis.h"
Include dependency graph for g_camera.cpp:

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)
 

Macro Definition Documentation

◆ CAMERAMODEL

#define CAMERAMODEL (   X,
  IDX 
)    case X: ent->model = "models/objects/cameras/camera" STRINGIFY(IDX); break

Definition at line 48 of file g_camera.cpp.

Function Documentation

◆ Destroy_Camera()

static bool Destroy_Camera ( Edict self)
static

Definition at line 41 of file g_camera.cpp.

References G_FreeEdict(), G_SpawnParticle(), Edict::origin, Edict::particle, and Edict::spawnflags.

Referenced by G_InitCamera().

◆ G_CameraUse()

static bool G_CameraUse ( Edict self,
Edict activator 
)
static

Definition at line 30 of file g_camera.cpp.

References G_IsActor, and Edict::toggleActive().

Referenced by G_InitCamera().

◆ G_InitCamera()