Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
viewloc.qh
Go to the documentation of this file.
1#pragma once
2
3
4const int VIEWLOC_NOSIDESCROLL = BIT(0); // NOTE: currently unimplemented
5const int VIEWLOC_FREEAIM = BIT(1);
6const int VIEWLOC_FREEMOVE = BIT(2);
7const int VIEWLOC_CAM_TRACK = BIT(3);
8const int VIEWLOC_CAM_NOANGLE = BIT(4);
12
13.entity viewloc;
14
15#ifdef CSQC
16.entity goalentity;
17.entity enemy;
18.vector movedir;
19#endif
#define BIT(n)
Only ever assign into the first 24 bits in QC (so max is BIT(23)).
Definition bits.qh:8
const int VIEWLOC_CAM_SNAP_HARD
Definition viewloc.qh:9
entity goalentity
Definition viewloc.qh:16
const int VIEWLOC_FREEAIM
Definition viewloc.qh:5
const int VIEWLOC_CAM_TRACK
Definition viewloc.qh:7
const int VIEWLOC_FREEMOVE
Definition viewloc.qh:6
const int VIEWLOC_CAM_SNAP_CLOSE
Definition viewloc.qh:11
vector movedir
Definition viewloc.qh:18
const int VIEWLOC_NOSIDESCROLL
Definition viewloc.qh:4
const int VIEWLOC_CAM_SNAP_UNLOCK
Definition viewloc.qh:10
entity viewloc
Definition viewloc.qh:13
const int VIEWLOC_CAM_NOANGLE
Definition viewloc.qh:8
entity enemy
Definition sv_ctf.qh:153