X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fserver%2Fweapons%2Fthrowing.qh;h=22adc649b2e2504300d1d8bf3f388fb7e9c0a521;hb=aafb3956d4321d56a6c34ccb1796b8bf6fa89458;hp=01ab21ba63323427fd8783bf8895fbee3a16fbbd;hpb=707ef9331a9405bbf266ab5aa3a87a175cad8d8f;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/weapons/throwing.qh b/qcsrc/server/weapons/throwing.qh index 01ab21ba6..22adc649b 100644 --- a/qcsrc/server/weapons/throwing.qh +++ b/qcsrc/server/weapons/throwing.qh @@ -1,14 +1,17 @@ #pragma once +#include +#include + .float savenextthink; void thrown_wep_think(entity this); -// returns amount of ammo used as string, or -1 for failure, or 0 for no ammo count -string W_ThrowNewWeapon(entity own, float wpn, float doreduce, vector org, vector velo, .entity weaponentity); +// returns amount of ammo used, or -1 for failure, or 0 for no ammo count +float W_ThrowNewWeapon(entity own, float wpn, float doreduce, vector org, vector velo, .entity weaponentity); bool W_IsWeaponThrowable(entity this, int w); // toss current weapon void W_ThrowWeapon(entity this, .entity weaponentity, vector velo, vector delta, float doreduce); -void SpawnThrownWeapon(entity this, vector org, float w, .entity weaponentity); +void SpawnThrownWeapon(entity this, vector org, Weapon wep, .entity weaponentity);