Xonotic
viewloc.qh
Go to the documentation of this file.
1 #pragma once
2 
3 
4 const int VIEWLOC_NOSIDESCROLL = BIT(0); // NOTE: currently unimplemented
5 const int VIEWLOC_FREEAIM = BIT(1);
6 const int VIEWLOC_FREEMOVE = BIT(2);
7 const int VIEWLOC_CAM_TRACK = BIT(3);
8 const int VIEWLOC_CAM_NOANGLE = BIT(4);
9 const int VIEWLOC_CAM_SNAP_HARD = BIT(5);
11 const int VIEWLOC_CAM_SNAP_CLOSE = BIT(7);
12 
13 .entity viewloc;
14 
15 #ifdef CSQC
16 .entity goalentity;
17 .entity enemy;
18 .vector movedir;
19 #endif
const int VIEWLOC_CAM_TRACK
Definition: viewloc.qh:7
const int VIEWLOC_FREEAIM
Definition: viewloc.qh:5
const int VIEWLOC_CAM_SNAP_CLOSE
Definition: viewloc.qh:11
const int VIEWLOC_CAM_NOANGLE
Definition: viewloc.qh:8
#define BIT(n)
Only ever assign into the first 24 bits in QC (so max is BIT(23)).
Definition: bits.qh:8
vector movedir
Definition: progsdefs.qc:203
entity enemy
Definition: sv_ctf.qh:143
entity goalentity
Definition: progsdefs.qc:189
const int VIEWLOC_CAM_SNAP_UNLOCK
Definition: viewloc.qh:10
entity viewloc
Definition: viewloc.qh:13
const int VIEWLOC_FREEMOVE
Definition: viewloc.qh:6
const int VIEWLOC_CAM_SNAP_HARD
Definition: viewloc.qh:9
const int VIEWLOC_NOSIDESCROLL
Definition: viewloc.qh:4