X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;ds=sidebyside;f=qcsrc%2Fserver%2Fweapons%2Fthrowing.qh;h=01ab21ba63323427fd8783bf8895fbee3a16fbbd;hb=f4c77946d2b388b2ef4fae1057d1a636d9850923;hp=c09a8f88296c4da90d6743e686d960513f5692be;hpb=57e8b59f96ec28979c3dc01811412c9c26e60fdc;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/weapons/throwing.qh b/qcsrc/server/weapons/throwing.qh index c09a8f882..01ab21ba6 100644 --- a/qcsrc/server/weapons/throwing.qh +++ b/qcsrc/server/weapons/throwing.qh @@ -1,12 +1,14 @@ +#pragma once + .float savenextthink; -void thrown_wep_think(); +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); +string W_ThrowNewWeapon(entity own, float wpn, float doreduce, vector org, vector velo, .entity weaponentity); -float W_IsWeaponThrowable(float w); +bool W_IsWeaponThrowable(entity this, int w); // toss current weapon -void W_ThrowWeapon(vector velo, vector delta, float doreduce); +void W_ThrowWeapon(entity this, .entity weaponentity, vector velo, vector delta, float doreduce); -void SpawnThrownWeapon(vector org, float w); +void SpawnThrownWeapon(entity this, vector org, float w, .entity weaponentity);