X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fcommon%2Fgamemodes%2Fgamemode%2Fonslaught%2Fsv_onslaught.qh;h=1f98522ba7db9f17054d12275bb91c260b7d1cc6;hb=c0add59c57c00b31e0db86871ad776ffacc9165e;hp=5c7fd469735b1e38cad2abdf8e11165d9ffb3d66;hpb=b2d3d16a9a3e5df1c518ecd2fce0bfa741db190a;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/common/gamemodes/gamemode/onslaught/sv_onslaught.qh b/qcsrc/common/gamemodes/gamemode/onslaught/sv_onslaught.qh index 5c7fd46973..1f98522ba7 100644 --- a/qcsrc/common/gamemodes/gamemode/onslaught/sv_onslaught.qh +++ b/qcsrc/common/gamemodes/gamemode/onslaught/sv_onslaught.qh @@ -1,6 +1,9 @@ #pragma once +#include + float autocvar_g_onslaught_point_limit; +IntrusiveList g_onsshields; void ons_Initialize(); REGISTER_MUTATOR(ons, false) @@ -67,7 +70,7 @@ float ons_notification_time[17]; // declarations for functions used outside gamemode_onslaught.qc void ons_Generator_UpdateSprite(entity e); void ons_ControlPoint_UpdateSprite(entity e); -bool ons_ControlPoint_Attackable(entity cp, int teamnumber); +bool ons_ControlPoint_Attackable(entity cp, int teamnum); // CaptureShield: Prevent capturing or destroying control point/generator if it is not available yet float ons_captureshield_force; // push force of the shield @@ -80,7 +83,6 @@ const int HAVOCBOT_ONS_ROLE_OFFENSE = 8; .entity havocbot_ons_target; -.int havocbot_role_flags; .float havocbot_attack_time; void havocbot_role_ons_defense(entity this);