X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fserver%2Fhook.qc;h=a50830348a49caaf109b60fd7269ca3fc02c1554;hb=6f10a41e9b8a94b457328629e392fedc35e8311e;hp=596b542e76a0453e380e7f23b46acd8608d60088;hpb=67610c5b92e218cc245c040209c1a79ab6b02758;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/hook.qc b/qcsrc/server/hook.qc index 596b542e7..a50830348 100644 --- a/qcsrc/server/hook.qc +++ b/qcsrc/server/hook.qc @@ -1,30 +1,30 @@ #include "hook.qh" -#include -#include +#include +#include +#include +#include +#include #include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include #include +#include +#include +#include +#include +#include +#include +#include #include -#include -#include "weapons/common.qh" -#include "weapons/csqcprojectile.qh" -#include "weapons/weaponsystem.qh" -#include "weapons/selection.qh" -#include "weapons/tracing.qh" -#include "player.qh" -#include "command/common.qh" -#include "command/vote.qh" -#include "round_handler.qh" -#include "../common/state.qh" -#include "../common/physics/player.qh" -#include "../common/vehicles/all.qh" -#include "../common/constants.qh" -#include "../common/util.qh" -#include -#include -#include "../lib/warpzone/common.qh" -#include "../lib/warpzone/server.qh" /*============================================ @@ -161,7 +161,9 @@ void GrapplingHookThink(entity this) error("Owner lost the hook!\n"); return; } - if(LostMovetypeFollow(this) || game_stopped || (round_handler_IsActive() && !round_handler_IsRoundStarted()) || ((this.aiment.flags & FL_PROJECTILE) && this.aiment.classname != "nade")) + if((this.move_movetype == MOVETYPE_FOLLOW && LostMovetypeFollow(this)) + || game_stopped || (round_handler_IsActive() && !round_handler_IsRoundStarted()) + || ((this.aiment.flags & FL_PROJECTILE) && this.aiment.classname != "nade")) { RemoveHook(this); return;