UFO: Alien Invasion
Loading...
Searching...
No Matches
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)

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 )
Value:
case X: ent->model = "models/objects/cameras/camera" STRINGIFY(IDX); break
#define STRINGIFY(x)
Definition shared.h:89

Definition at line 48 of file g_camera.cpp.

Referenced by G_InitCamera().

Function Documentation

◆ Destroy_Camera()

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

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