X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fserver%2Fweapons%2Fthrowing.qh;h=20732753e4fe66f11c1fdd802df01eda300fc658;hb=b9ed1a38cd897084d0ed8beb6033a761e095d64d;hp=a03968083edbd5e1e0a1c06a8471a1058b8b8843;hpb=34e7f534e2015466228eb3a78c9857741b736dca;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/weapons/throwing.qh b/qcsrc/server/weapons/throwing.qh index a03968083e..20732753e4 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); +// 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); +void SpawnThrownWeapon(entity this, vector org, Weapon wep, .entity weaponentity);