X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fserver%2Fweapons%2Fthrowing.qh;h=01ab21ba63323427fd8783bf8895fbee3a16fbbd;hb=468b023e4b41cbd40bae363aa136b102a63fc811;hp=ccb4d5a67f235f1634b6f8a26ef82cbcb4a4aa9c;hpb=35e8f712933b0ebf9b163b7289cf975825b33803;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/weapons/throwing.qh b/qcsrc/server/weapons/throwing.qh index ccb4d5a67..01ab21ba6 100644 --- a/qcsrc/server/weapons/throwing.qh +++ b/qcsrc/server/weapons/throwing.qh @@ -1,57 +1,14 @@ -#ifndef THROWING_H -#define THROWING_H - -#if defined(CSQC) -#elif defined(MENUQC) -#elif defined(SVQC) - #include "../../common/util-pre.qh" - #include "../sys-pre.qh" - #include "../../dpdefs/progsdefs.qh" - #include "../../dpdefs/dpextensions.qh" - #include "../sys-post.qh" - #include "../../warpzonelib/anglestransform.qh" - #include "../../warpzonelib/mathlib.qh" - #include "../../warpzonelib/common.qh" - #include "../../warpzonelib/util_server.qh" - #include "../../warpzonelib/server.qh" - #include "../../common/constants.qh" - #include "../../common/stats.qh" - #include "../../common/teams.qh" - #include "../../common/util.qh" - #include "../../common/nades.qh" - #include "../../common/buffs.qh" - #include "../../common/test.qh" - #include "../../common/counting.qh" - #include "../../common/urllib.qh" - #include "../../common/command/markup.qh" - #include "../../common/command/rpn.qh" - #include "../../common/command/generic.qh" - #include "../../common/command/shared_defs.qh" - #include "../../common/net_notice.qh" - #include "../../common/animdecide.qh" - #include "../../common/monsters/monsters.qh" - #include "../../common/monsters/sv_monsters.qh" - #include "../../common/monsters/spawn.qh" - #include "../../common/weapons/config.qh" - #include "../../common/weapons/weapons.qh" - #include "accuracy.qh" - #include "common.qh" - #include "csqcprojectile.qh" - #include "hitplot.qh" - #include "selection.qh" - #include "spawning.qh" -#endif +#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); -#endif \ No newline at end of file +void SpawnThrownWeapon(entity this, vector org, float w, .entity weaponentity);