3 #include <common/weapons/_all.qh>
4 #include <common/stats.qh>
6 bool autocvar_g_weapon_throwable;
8 // returns amount of ammo used, or -1 for failure, or 0 for no ammo count
9 float W_ThrowNewWeapon(entity own, float wpn, float doreduce, vector org, vector velo, .entity weaponentity);
11 bool W_IsWeaponThrowable(entity this, int w);
13 // toss current weapon
14 void W_ThrowWeapon(entity this, .entity weaponentity, vector velo, vector delta, float doreduce);
16 void SpawnThrownWeapon(entity this, vector org, Weapon wep, .entity weaponentity);