Xonotic
throwing.qh
Go to the documentation of this file.
1 #pragma once
2 
3 #include <common/weapons/_all.qh>
4 #include <common/stats.qh>
5 
7 
8 .float savenextthink;
9 void thrown_wep_think(entity this);
10 
11 // returns amount of ammo used, or -1 for failure, or 0 for no ammo count
12 float W_ThrowNewWeapon(entity own, float wpn, float doreduce, vector org, vector velo, .entity weaponentity);
13 
14 bool W_IsWeaponThrowable(entity this, int w);
15 
16 // toss current weapon
17 void W_ThrowWeapon(entity this, .entity weaponentity, vector velo, vector delta, float doreduce);
18 
19 void SpawnThrownWeapon(entity this, vector org, Weapon wep, .entity weaponentity);
entity() spawn
void W_ThrowWeapon(entity this,.entity weaponentity, vector velo, vector delta, float doreduce)
Definition: throwing.qc:153
void thrown_wep_think(entity this)
Definition: throwing.qc:21
void SpawnThrownWeapon(entity this, vector org, Weapon wep,.entity weaponentity)
Definition: throwing.qc:180
float W_ThrowNewWeapon(entity own, float wpn, float doreduce, vector org, vector velo,.entity weaponentity)
Definition: throwing.qc:40
float savenextthink
Definition: throwing.qh:8
bool W_IsWeaponThrowable(entity this, int w)
Definition: throwing.qc:138
vector(float skel, float bonenum) _skel_get_boneabs_hidden
bool autocvar_g_weapon_throwable
Definition: throwing.qh:6
fields which are explicitly/manually set are marked with "M", fields set automatically are marked wit...
Definition: weapon.qh:41