X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fserver%2Fweapons%2Fthrowing.qh;h=20732753e4fe66f11c1fdd802df01eda300fc658;hb=b9ed1a38cd897084d0ed8beb6033a761e095d64d;hp=01ab21ba63323427fd8783bf8895fbee3a16fbbd;hpb=64f2b309aa5be8aafb9ad2137174bb6d99aeb876;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/weapons/throwing.qh b/qcsrc/server/weapons/throwing.qh index 01ab21ba6..20732753e 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);