mirror of
https://github.com/shavitush/bhoptimer.git
synced 2025-12-09 03:18:25 +00:00
Bring compiler pragmas to the top
To ensure full support for the transitional syntax. Also updated DHooks.inc until Dr!fter does.
This commit is contained in:
parent
9b13e3b3e0
commit
ca6eae68d5
@ -450,7 +450,7 @@ public Extension __ext_dhooks =
|
||||
};
|
||||
|
||||
#if !defined REQUIRE_EXTENSIONS
|
||||
public __ext_dhooks_SetNTVOptional()
|
||||
public void __ext_dhooks_SetNTVOptional()
|
||||
{
|
||||
MarkNativeAsOptional("DHookAddEntityListener");
|
||||
MarkNativeAsOptional("DHookRemoveEntityListener");
|
||||
|
||||
@ -481,7 +481,7 @@ native int Shavit_PrintToChat(int client, const char[] format, any ...);
|
||||
|
||||
// same as Shavit_PrintToChat() but loops through the whole server
|
||||
// code stolen from the base halflife.inc file
|
||||
stock Shavit_PrintToChatAll(const char[] format, any ...)
|
||||
stock void Shavit_PrintToChatAll(const char[] format, any ...)
|
||||
{
|
||||
char[] buffer = new char[255];
|
||||
|
||||
|
||||
@ -18,6 +18,10 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#pragma newdecls required
|
||||
#pragma semicolon 1
|
||||
#pragma dynamic 131072
|
||||
|
||||
#include <sourcemod>
|
||||
#include <sdktools>
|
||||
#include <geoip>
|
||||
@ -30,10 +34,6 @@
|
||||
#undef REQUIRE_PLUGIN
|
||||
#include <adminmenu>
|
||||
|
||||
#pragma semicolon 1
|
||||
#pragma dynamic 131072
|
||||
#pragma newdecls required
|
||||
|
||||
//#define DEBUG
|
||||
|
||||
// game type (CS:S/CS:GO)
|
||||
|
||||
@ -18,6 +18,10 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#pragma newdecls required
|
||||
#pragma semicolon 1
|
||||
#pragma dynamic 131072
|
||||
|
||||
#include <sourcemod>
|
||||
|
||||
#define USES_STYLE_NAMES
|
||||
@ -25,10 +29,6 @@
|
||||
#include <shavit>
|
||||
#include <clientprefs>
|
||||
|
||||
#pragma semicolon 1
|
||||
#pragma dynamic 131072
|
||||
#pragma newdecls required
|
||||
|
||||
#define HUD_NONE (0)
|
||||
#define HUD_MASTER (1 << 0) // master setting
|
||||
#define HUD_CENTER (1 << 1) // show hud as hint text
|
||||
|
||||
@ -18,6 +18,10 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#pragma newdecls required
|
||||
#pragma semicolon 1
|
||||
#pragma dynamic 131072
|
||||
|
||||
#include <sourcemod>
|
||||
#include <cstrike>
|
||||
#include <sdktools>
|
||||
@ -30,10 +34,6 @@
|
||||
#undef REQUIRE_EXTENSIONS
|
||||
#include <dhooks>
|
||||
|
||||
#pragma semicolon 1
|
||||
#pragma dynamic 131072
|
||||
#pragma newdecls required
|
||||
|
||||
bool gB_Hide[MAXPLAYERS+1];
|
||||
bool gB_Late;
|
||||
int gF_LastFlags[MAXPLAYERS+1];
|
||||
|
||||
@ -20,6 +20,10 @@
|
||||
|
||||
// I have no idea if this plugin will work with CS:S, sorry.
|
||||
|
||||
#pragma semicolon 1
|
||||
#pragma dynamic 131072
|
||||
#pragma newdecls required
|
||||
|
||||
#include <sourcemod>
|
||||
#include <cstrike>
|
||||
#include <sdktools>
|
||||
@ -29,10 +33,6 @@
|
||||
#define USES_STYLE_PROPERTIES
|
||||
#include <shavit>
|
||||
|
||||
#pragma semicolon 1
|
||||
#pragma dynamic 131072
|
||||
#pragma newdecls required
|
||||
|
||||
ServerGame gSG_Type = Game_Unknown;
|
||||
|
||||
int gI_ReplayTick[MAX_STYLES];
|
||||
|
||||
@ -18,14 +18,14 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#include <sourcemod>
|
||||
#include <sdktools>
|
||||
#include <shavit>
|
||||
|
||||
#pragma semicolon 1
|
||||
#pragma dynamic 131072
|
||||
#pragma newdecls required
|
||||
|
||||
#include <sourcemod>
|
||||
#include <sdktools>
|
||||
#include <shavit>
|
||||
|
||||
#define SOUNDS_LIMIT 64 // we really don't need more than that
|
||||
|
||||
ServerGame gSG_Type = Game_Unknown;
|
||||
|
||||
@ -18,6 +18,10 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#pragma semicolon 1
|
||||
#pragma dynamic 131072
|
||||
#pragma newdecls required
|
||||
|
||||
#include <sourcemod>
|
||||
|
||||
#define USES_STYLE_NAMES
|
||||
@ -25,10 +29,6 @@
|
||||
#define USES_STYLE_PROPERTIES
|
||||
#include <shavit>
|
||||
|
||||
#pragma semicolon 1
|
||||
#pragma dynamic 131072
|
||||
#pragma newdecls required
|
||||
|
||||
// macros
|
||||
#define MAPSDONE 0
|
||||
#define MAPSLEFT 1
|
||||
|
||||
@ -20,13 +20,13 @@
|
||||
|
||||
// original idea from ckSurf.
|
||||
|
||||
#include <sourcemod>
|
||||
#include <shavit>
|
||||
|
||||
#pragma semicolon 1
|
||||
#pragma dynamic 131072
|
||||
#pragma newdecls required
|
||||
|
||||
#include <sourcemod>
|
||||
#include <shavit>
|
||||
|
||||
// #define DEBUG
|
||||
|
||||
// database handle
|
||||
|
||||
@ -18,6 +18,10 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#pragma semicolon 1
|
||||
#pragma dynamic 131072
|
||||
#pragma newdecls required
|
||||
|
||||
#include <sourcemod>
|
||||
|
||||
#define USES_STYLE_NAMES
|
||||
@ -27,10 +31,6 @@
|
||||
#undef REQUIRE_PLUGIN
|
||||
#include <adminmenu>
|
||||
|
||||
#pragma semicolon 1
|
||||
#pragma dynamic 131072
|
||||
#pragma newdecls required
|
||||
|
||||
//#define DEBUG
|
||||
|
||||
bool gB_Late;
|
||||
|
||||
@ -18,6 +18,10 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#pragma semicolon 1
|
||||
#pragma dynamic 131072
|
||||
#pragma newdecls required
|
||||
|
||||
#include <sourcemod>
|
||||
#include <sdktools>
|
||||
#include <cstrike>
|
||||
@ -26,10 +30,6 @@
|
||||
#undef REQUIRE_PLUGIN
|
||||
#include <adminmenu>
|
||||
|
||||
#pragma semicolon 1
|
||||
#pragma dynamic 131072
|
||||
#pragma newdecls required
|
||||
|
||||
#define PLACEHOLDER 32767
|
||||
|
||||
ServerGame gSG_Type = Game_Unknown;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user