]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/server/weapons/throwing.qh
Fix FL_WEAPON flag overlapping FL_JUMPRELEASED. This unintentional change was introdu...
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / weapons / throwing.qh
1 #pragma once
2
3 #include <common/weapons/_all.qh>
4 #include <common/stats.qh>
5
6 bool autocvar_g_weapon_throwable;
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);