X-Git-Url: https://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=blobdiff_plain;f=qcsrc%2Fserver%2Fweapons%2Fthrowing.qh;h=01ab21ba63323427fd8783bf8895fbee3a16fbbd;hp=5a27025bc8bfcd146ed19a9a52eed1600ed66f75;hb=9e84ff8daa3826ef32e2891a7c5224a7cd436d23;hpb=eac60648c4017e495060dd3ba9e50ac4bad5000a diff --git a/qcsrc/server/weapons/throwing.qh b/qcsrc/server/weapons/throwing.qh index 5a27025bc..01ab21ba6 100644 --- a/qcsrc/server/weapons/throwing.qh +++ b/qcsrc/server/weapons/throwing.qh @@ -4,11 +4,11 @@ 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); bool W_IsWeaponThrowable(entity this, int w); // toss current weapon -void W_ThrowWeapon(entity this, 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); +void SpawnThrownWeapon(entity this, vector org, float w, .entity weaponentity);