Xonotic
counter.qh
Go to the documentation of this file.
1 #pragma once
2 
3 #ifdef SVQC
4 void counter_reset(entity this);
5 
6 .float counter_cnt;
7 
8 IntrusiveList g_counters;
9 STATIC_INIT(g_counters) { g_counters = IL_NEW(); }
10 #endif
11 
12 const int COUNTER_FIRE_AT_COUNT = BIT(2);
13 const int COUNTER_PER_PLAYER = BIT(3);
#define IL_NEW()
entity() spawn
#define STATIC_INIT(func)
during worldspawn
Definition: static.qh:32
limitations: NULL cannot be present elements can only be present once a maximum of IL_MAX lists can e...
#define BIT(n)
Only ever assign into the first 24 bits in QC (so max is BIT(23)).
Definition: bits.qh:8
const int COUNTER_PER_PLAYER
Definition: counter.qh:13
const int COUNTER_FIRE_AT_COUNT
Definition: counter.qh:12