]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/server/weapons/throwing.qh
8ebd4080ca172b6edbac7676eafa268a52bc0e24
[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 #include <server/miscfunctions.qh>
6
7 .float savenextthink;
8 void thrown_wep_think(entity this);
9
10 // returns amount of ammo used, or -1 for failure, or 0 for no ammo count
11 float W_ThrowNewWeapon(entity own, float wpn, float doreduce, vector org, vector velo, .entity weaponentity);
12
13 bool W_IsWeaponThrowable(entity this, int w);
14
15 // toss current weapon
16 void W_ThrowWeapon(entity this, .entity weaponentity, vector velo, vector delta, float doreduce);
17
18 void SpawnThrownWeapon(entity this, vector org, Weapon wep, .entity weaponentity);