X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fserver%2Fweapons%2Fthrowing.qh;fp=qcsrc%2Fserver%2Fweapons%2Fthrowing.qh;h=5a27025bc8bfcd146ed19a9a52eed1600ed66f75;hb=e2fd71a5add1338f211d84d6b1de8c3a552b76ad;hp=4994d02aed20a467aed1c6e5500648493d5f7c73;hpb=33f268f100a4fb570ba5143195376b704079fdbd;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/weapons/throwing.qh b/qcsrc/server/weapons/throwing.qh index 4994d02ae..5a27025bc 100644 --- a/qcsrc/server/weapons/throwing.qh +++ b/qcsrc/server/weapons/throwing.qh @@ -1,16 +1,14 @@ -#ifndef THROWING_H -#define THROWING_H +#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); -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, vector velo, vector delta, float doreduce); -void SpawnThrownWeapon(vector org, float w); -#endif +void SpawnThrownWeapon(entity this, vector org, float w);