Xonotic
common.qh
Go to the documentation of this file.
1 #pragma once
2 
7 
8 bool W_DualWielding(entity player);
9 void W_GiveWeapon (entity e, float wep);
10 void W_PlayStrengthSound(entity player);
11 float W_CheckProjectileDamage(entity inflictor, entity projowner, int deathtype, float exception);
12 void W_PrepareExplosionByDamage(entity this, entity attacker, void(entity this) explode);
13 
15 
17 
19 
21 
22 .float fade_time;
23 .float fade_rate;
24 
25 .entity realowner;
26 
27 #define PROJECTILE_TOUCH(e,t) MACRO_BEGIN if (WarpZone_Projectile_Touch(e,t)) return; MACRO_END
28 
29 #define PROJECTILE_MAKETRIGGER(e) (e).solid = SOLID_CORPSE; (e).dphitcontentsmask = DPCONTENTS_SOLID | DPCONTENTS_BODY | DPCONTENTS_CORPSE
30 // when doing this, hagar can go through clones
31 // #define PROJECTILE_MAKETRIGGER(e) (e).solid = SOLID_BBOX
32 
34 const int MIF_SPLASH = BIT(1);
35 const int MIF_ARC = BIT(2);
36 const int MIF_PROXY = BIT(3);
37 const int MIF_GUIDED_MANUAL = BIT(4);
38 const int MIF_GUIDED_HEAT = BIT(5);
39 const int MIF_GUIDED_LASER = BIT(6);
40 const int MIF_GUIDED_AI = BIT(7);
41 const int MIF_GUIDED_TAG = BIT(7);
42 const int MIF_GUIDED_ALL = MIF_GUIDED_MANUAL | MIF_GUIDED_HEAT | MIF_GUIDED_LASER | MIF_GUIDED_AI | MIF_GUIDED_TAG;
43 const int MIF_GUIDED_TRACKING = MIF_GUIDED_HEAT | MIF_GUIDED_LASER | MIF_GUIDED_AI | MIF_GUIDED_TAG;
44 const int MIF_GUIDED_CONFUSABLE = MIF_GUIDED_HEAT | MIF_GUIDED_AI;
45 
47 STATIC_INIT(g_projectiles) { g_projectiles = IL_NEW(); }
float autocvar_sv_strengthsound_antispam_time
Definition: common.qh:6
int missile_flags
Definition: common.qh:33
float autocvar_sv_strengthsound_antispam_refire_threshold
Definition: common.qh:5
bool W_DualWielding(entity player)
Definition: common.qc:20
void W_GiveWeapon(entity e, float wep)
void W_PrepareExplosionByDamage(entity this, entity attacker, void(entity this) explode)
Definition: common.qc:91
const int MIF_ARC
Definition: common.qh:35
const int MIF_SPLASH
Definition: common.qh:34
const int MIF_GUIDED_ALL
Definition: common.qh:42
STATIC_INIT(g_warpzones)
Definition: common.qh:7
#define IL_NEW()
const int MIF_GUIDED_LASER
Definition: common.qh:39
entity() spawn
const int MIF_GUIDED_TRACKING
Definition: common.qh:43
const int MIF_GUIDED_TAG
Definition: common.qh:41
limitations: NULL cannot be present elements can only be present once a maximum of IL_MAX lists can e...
const int MIF_GUIDED_CONFUSABLE
Definition: common.qh:44
bool autocvar_g_projectiles_keep_owner
Definition: common.qh:4
void W_PlayStrengthSound(entity player)
Definition: common.qc:44
bool WarpZone_Projectile_Touch_ImpactFilter_Callback(entity this, entity toucher)
Definition: common.qc:150
#define BIT(n)
Only ever assign into the first 24 bits in QC (so max is BIT(23)).
Definition: bits.qh:8
const int MIF_GUIDED_MANUAL
Definition: common.qh:37
float fade_rate
Definition: common.qh:23
float misc_bulletcounter
Definition: common.qh:18
int autocvar_g_projectiles_damage
Definition: common.qh:3
float W_CheckProjectileDamage(entity inflictor, entity projowner, int deathtype, float exception)
Definition: common.qc:49
IntrusiveList g_projectiles
Definition: common.qh:46
float fade_time
Definition: common.qh:22
entity realowner
Definition: common.qh:25
void adaptor_think2use_hittype_splash(entity this)
Definition: common.qc:110
const int MIF_GUIDED_HEAT
Definition: common.qh:38
const int MIF_PROXY
Definition: common.qh:36
const int MIF_GUIDED_AI
Definition: common.qh:40
int projectiledeathtype
Definition: common.qh:20