From 03bcedfad6a187aae3b3991708702cbf79a92f04 Mon Sep 17 00:00:00 2001 From: FortyTwoFortyTwo Date: Tue, 3 Dec 2024 15:08:58 +0000 Subject: [PATCH] Fix compile warnings from SM 1.12 --- addons/sourcemod/scripting/saxtonhale.sp | 12 +----------- .../sourcemod/scripting/vsh/bosses/boss_pyrocar.sp | 1 - addons/sourcemod/scripting/vsh/stocks.sp | 2 -- 3 files changed, 1 insertion(+), 14 deletions(-) diff --git a/addons/sourcemod/scripting/saxtonhale.sp b/addons/sourcemod/scripting/saxtonhale.sp index 9045b992..656d587c 100644 --- a/addons/sourcemod/scripting/saxtonhale.sp +++ b/addons/sourcemod/scripting/saxtonhale.sp @@ -36,6 +36,7 @@ #define ATTRIB_MELEE_RANGE_MULTIPLIER 264 #define ATTRIB_BIDERECTIONAL 276 #define ATTRIB_JUMP_HEIGHT 326 +#define ATTRIB_LESSHEALING 734 #define ITEM_ROCK_PAPER_SCISSORS 1110 @@ -48,17 +49,6 @@ #define PARTICLE_GHOST "ghost_appearation" -#define FL_EDICT_CHANGED (1<<0) // Game DLL sets this when the entity state changes - // Mutually exclusive with FL_EDICT_PARTIAL_CHANGE. - -#define FL_EDICT_FREE (1<<1) // this edict if free for reuse -#define FL_EDICT_FULL (1<<2) // this is a full server entity - -#define FL_EDICT_FULLCHECK (0<<0) // call ShouldTransmit() each time, this is a fake flag -#define FL_EDICT_ALWAYS (1<<3) // always transmit this entity -#define FL_EDICT_DONTSEND (1<<4) // don't transmit this entity -#define FL_EDICT_PVSCHECK (1<<5) // always transmit entity, but cull against PVS - #define TEXT_TAG "\x07E19300[\x07E17100VSH REWRITE\x07E19300]\x01" #define TEXT_COLOR "\x07E19F00" #define TEXT_DARK "\x07E17100" diff --git a/addons/sourcemod/scripting/vsh/bosses/boss_pyrocar.sp b/addons/sourcemod/scripting/vsh/bosses/boss_pyrocar.sp index 0e5144d0..f3b2d70e 100644 --- a/addons/sourcemod/scripting/vsh/bosses/boss_pyrocar.sp +++ b/addons/sourcemod/scripting/vsh/bosses/boss_pyrocar.sp @@ -2,7 +2,6 @@ #define ITEM_BACKBURNER 40 #define ITEM_THERMAL_THRUSTER 1179 #define ITEM_GAS_PASSER 1180 -#define ATTRIB_LESSHEALING 734 #define TF_DMG_AFTERBURN DMG_PREVENT_PHYSICS_FORCE | DMG_BURN #define TF_DMG_GAS_AFTERBURN DMG_BURN|DMG_PREVENT_PHYSICS_FORCE|DMG_ACID #define PYROCAR_BACKBURNER_ATTRIBUTES "24 ; 1.0 ; 72 ; 0.5 ; 74 ; 0.0 ; 112 ; 0.25 ; 178 ; 0.2 ; 181 ; 1.0 ; 252 ; 0.5 ; 259 ; 1.0 ; 356 ; 1.0 ; 839 ; 2.8 ; 841 ; 0 ; 843 ; 8.5 ; 844 ; 1850.0 ; 862 ; 0.45 ; 863 ; 0.01 ; 865 ; 85 ; 214 ; %d" diff --git a/addons/sourcemod/scripting/vsh/stocks.sp b/addons/sourcemod/scripting/vsh/stocks.sp index a4c20bb0..d2a782a6 100644 --- a/addons/sourcemod/scripting/vsh/stocks.sp +++ b/addons/sourcemod/scripting/vsh/stocks.sp @@ -1,5 +1,3 @@ -#define ATTRIB_LESSHEALING 734 - stock void Client_AddHealth(int iClient, int iAdditionalHeal, int iMaxOverHeal=0) { int iMaxHealth = SDK_GetMaxHealth(iClient);