Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
damagetext.qh
Go to the documentation of this file.
1#pragma once
2
3#define DAMAGETEXT_PRECISION_MULTIPLIER 128
4#define DAMAGETEXT_SHORT_LIMIT 256 // the smallest value that we can't send as short - 2^15 (signed short) / DAMAGETEXT_PRECISION_MULTIPLIER
5
6const int DTFLAG_SAMETEAM = BIT(0);
7const int DTFLAG_BIG_HEALTH = BIT(1);
8const int DTFLAG_BIG_ARMOR = BIT(2);
9const int DTFLAG_BIG_POTENTIAL = BIT(3);
10const int DTFLAG_NO_ARMOR = BIT(4);
11const int DTFLAG_NO_POTENTIAL = BIT(5);
#define BIT(n)
Only ever assign into the first 24 bits in QC (so max is BIT(23)).
Definition bits.qh:8
const int DTFLAG_BIG_HEALTH
Definition damagetext.qh:7
const int DTFLAG_NO_POTENTIAL
Definition damagetext.qh:11
const int DTFLAG_STOP_ACCUMULATION
Definition damagetext.qh:12
const int DTFLAG_BIG_ARMOR
Definition damagetext.qh:8
const int DTFLAG_SAMETEAM
Definition damagetext.qh:6
const int DTFLAG_BIG_POTENTIAL
Definition damagetext.qh:9
const int DTFLAG_NO_ARMOR
Definition damagetext.qh:10