X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fserver%2Fweapons%2Fthrowing.qh;h=9ea5e5cb8e442c930f628f47f1e93ff29ef150de;hb=32c7f0d0047b1d919b83b754bb6fc733065ef85b;hp=1bf50c14a400e0bd7e16ca9ac203471de1970e54;hpb=7bcb3a89b3271e018da4d92437dc5ba125ea8698;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/weapons/throwing.qh b/qcsrc/server/weapons/throwing.qh index 1bf50c14a..9ea5e5cb8 100644 --- a/qcsrc/server/weapons/throwing.qh +++ b/qcsrc/server/weapons/throwing.qh @@ -1,16 +1,17 @@ -#ifndef THROWING_H -#define THROWING_H +#pragma once + +#include +#include .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(entity this, vector org, float w); -#endif +void SpawnThrownWeapon(entity this, vector org, Weapon wep, .entity weaponentity);