From 2dca39be8ae595ca82f827949542eef7b0aa70d6 Mon Sep 17 00:00:00 2001 From: jenz Date: Sun, 22 Nov 2026 22:12:20 +0100 Subject: [PATCH] just updating plugins to 64bit support --- Couch/gamedata/Couch.txt | 4 + Couch/scripting/Couch.sp | 4 +- Extend/gamedata/Extend.games.txt | 5 + Extend/scripting/Extend.sp | 606 +++++++++------ Extend/translations/extend.phrases.txt | 456 +++++++++++ .../gamedata/FixFuncRotating.games.txt | 12 +- FixFuncRotating/scripting/FixFuncRotating.sp | 79 +- .../gamedata/FixVPhysicsCrush.games.txt | 14 + .../scripting/FixVPhysicsCrush.sp | 79 +- .../scripting/include/FullUpdate.inc | 24 - .../gamedata/FullUpdate.games.txt | 51 +- .../scripting/FullUpdate.sp | 120 +-- .../scripting/include/FullUpdate.inc | 37 + Hitmarker/gamedata/Hitmarker.games.txt | 3 +- NapalmLagFix/gamedata/fixnapalmlag.games.txt | 16 + NapalmLagFix/scripting/FixNapalmLag.sp | 74 ++ .../gamedata/napalmlagfix.games.txt | 0 .../scripting/NapalmLagFix.sp | 0 .../gamedata/NoGrenadeRinging.games.txt | 20 +- .../scripting/NoGrenadeRinging.sp | 23 +- PropSpawner/gamedata/PropSpawner.txt | 4 +- TickrateChanger/gamedata/tickrate_changer.txt | 83 ++ TickrateChanger/scripting/tickrate_changer.sp | 153 ++++ _ItemSpawn/gamedata/entWatch.games.txt | 36 + ...n.ItemSpawn.txt => obsolete.ItemSpawn.txt} | 0 _ItemSpawn/gamedata/plugin.entWatch.txt | 27 + filenetwork/gamedata/filenetwork.txt | 142 ++++ filenetwork/scripting/filenetwork.sp | 714 ++++++++++++++++++ filenetwork/scripting/include/filenetwork.inc | 134 ++++ rngfix/gamedata/rngfix.games.txt | 96 ++- rngfix/scripting/include/rngfix.inc | 51 ++ rngfix/scripting/rngfix.sp | 439 +++++++++-- 32 files changed, 2990 insertions(+), 516 deletions(-) create mode 100644 Extend/translations/extend.phrases.txt delete mode 100644 FullUpdate_nide_1.12/scripting/include/FullUpdate.inc rename {FullUpdate_nide_1.12 => FullUpdate_nide_1.13}/gamedata/FullUpdate.games.txt (77%) rename {FullUpdate_nide_1.12 => FullUpdate_nide_1.13}/scripting/FullUpdate.sp (50%) create mode 100644 FullUpdate_nide_1.13/scripting/include/FullUpdate.inc create mode 100644 NapalmLagFix/gamedata/fixnapalmlag.games.txt create mode 100644 NapalmLagFix/scripting/FixNapalmLag.sp rename {NapalmLagFix => NapalmLagFixObsolete}/gamedata/napalmlagfix.games.txt (100%) rename {NapalmLagFix => NapalmLagFixObsolete}/scripting/NapalmLagFix.sp (100%) create mode 100644 TickrateChanger/gamedata/tickrate_changer.txt create mode 100644 TickrateChanger/scripting/tickrate_changer.sp create mode 100644 _ItemSpawn/gamedata/entWatch.games.txt rename _ItemSpawn/gamedata/{plugin.ItemSpawn.txt => obsolete.ItemSpawn.txt} (100%) create mode 100644 _ItemSpawn/gamedata/plugin.entWatch.txt create mode 100644 filenetwork/gamedata/filenetwork.txt create mode 100644 filenetwork/scripting/filenetwork.sp create mode 100644 filenetwork/scripting/include/filenetwork.inc create mode 100644 rngfix/scripting/include/rngfix.inc diff --git a/Couch/gamedata/Couch.txt b/Couch/gamedata/Couch.txt index 45f8821..e292e1d 100644 --- a/Couch/gamedata/Couch.txt +++ b/Couch/gamedata/Couch.txt @@ -8,6 +8,7 @@ "ForceVPhysicsCollide" { "linux" "160" + "linux64" "160" "windows" "159" } @@ -15,6 +16,7 @@ "PlayerUse" { "linux" "414" + "linux64" "414" "windows" "413" } } @@ -28,6 +30,7 @@ { "library" "server" "linux" "@_ZN15CCollisionEvent13ShouldCollideEP14IPhysicsObjectS1_PvS2_" + "linux64" "@_ZN15CCollisionEvent13ShouldCollideEP14IPhysicsObjectS1_PvS2_" } // CBaseEntity::CollisionRulesChanged(). Makes vphysics re-ask ShouldCollide for cached pairs. @@ -35,6 +38,7 @@ { "library" "server" "linux" "@_ZN11CBaseEntity21CollisionRulesChangedEv" + "linux64" "@_ZN11CBaseEntity21CollisionRulesChangedEv" } } } diff --git a/Couch/scripting/Couch.sp b/Couch/scripting/Couch.sp index ce322d9..2c5bd36 100644 --- a/Couch/scripting/Couch.sp +++ b/Couch/scripting/Couch.sp @@ -1182,8 +1182,8 @@ void LoadGameData() } else { - DHookAddParam(g_hShouldCollideDetour, HookParamType_Int); // IPhysicsObject *pObj0 - DHookAddParam(g_hShouldCollideDetour, HookParamType_Int); // IPhysicsObject *pObj1 + DHookAddParam(g_hShouldCollideDetour, HookParamType_ObjectPtr); // IPhysicsObject *pObj0 (pointer-sized: 4 bytes x86, 8 bytes x64) + DHookAddParam(g_hShouldCollideDetour, HookParamType_ObjectPtr); // IPhysicsObject *pObj1 DHookAddParam(g_hShouldCollideDetour, HookParamType_CBaseEntity); // void *pGameData0: entity behind pObj0 DHookAddParam(g_hShouldCollideDetour, HookParamType_CBaseEntity); // void *pGameData1: entity behind pObj1 } diff --git a/Extend/gamedata/Extend.games.txt b/Extend/gamedata/Extend.games.txt index 3c6177e..0e46d86 100644 --- a/Extend/gamedata/Extend.games.txt +++ b/Extend/gamedata/Extend.games.txt @@ -10,6 +10,10 @@ { "signature" "g_fGameOver" } + "linux64" + { + "signature" "g_fGameOver" + } } } @@ -19,6 +23,7 @@ { "library" "server" "linux" "@g_fGameOver" + "linux64" "@g_fGameOver" } } } diff --git a/Extend/scripting/Extend.sp b/Extend/scripting/Extend.sp index 6ea08cf..6044439 100644 --- a/Extend/scripting/Extend.sp +++ b/Extend/scripting/Extend.sp @@ -3,43 +3,70 @@ #include #include +#include + +#undef REQUIRE_PLUGIN +#tryinclude +#define REQUIRE_PLUGIN #define VOTE_NO "###no###" #define VOTE_YES "###yes###" +#define PLUGIN_TAG "{green}[Extend]" -ConVar g_cvarExtendVoteTime = null; -ConVar g_cvarExtendVotePercent = null; -ConVar g_cvarMpMaxRounds = null; -ConVar g_cvarMpFragLimit = null; -ConVar g_cvarMpWinLimit = null; -ConVar g_cvarMpTimeLimit = null; +// Largest mp_timelimit we allow; floats are exact up to 2^24 and the engine also converts it to int +#define MAX_TIMELIMIT_MINUTES 16777216.0 -bool g_bGameOver = false; +int g_iNumAttempts = 0; +int g_iExtendCount = 0; +int g_iExtendTime = 0; +float g_fVoteRequired = 0.0; + +ConVar g_cvarExtendVoteTime; +ConVar g_cvarExtendVoteMaxDuration; +ConVar g_cvarExtendVotePercent; +ConVar g_cvarExtendVotePercentIncrement; +ConVar g_cvarExtendVotePercentMax; +ConVar g_cvarExtendVoteMaxFailedAttempt; +ConVar g_cvarExtendVote; +ConVar g_cvarMpMaxRounds; +ConVar g_cvarMpFragLimit; +ConVar g_cvarMpWinLimit; +ConVar g_cvarMpTimeLimit; +ConVar g_cvarRequireAllExtends; + +bool g_bCanCancelGameOver = false; Address g_pGameOver; public Plugin myinfo = { - name = "Map extend tools", - author = "Obus + BotoX", - description = "Adds map extension commands.", - version = "1.0", - url = "" + name = "Map Extend Tools", + author = "Obus, BotoX, .Rushaway, koen", + description = "Adds map extension commands.", + version = "1.4.5", + url = "" }; public void OnPluginStart() { LoadTranslations("common.phrases"); LoadTranslations("basevotes.phrases"); + LoadTranslations("extend.phrases"); g_cvarMpMaxRounds = FindConVar("mp_maxrounds"); g_cvarMpFragLimit = FindConVar("mp_fraglimit"); g_cvarMpWinLimit = FindConVar("mp_winlimit"); g_cvarMpTimeLimit = FindConVar("mp_timelimit"); + g_cvarExtendVote = CreateConVar("sm_extendvote_enabled", "1", "Enable Extend Vote? [1 = Enable | 0 = Disable]", FCVAR_NONE, true, 0.0, true, 1.0); g_cvarExtendVoteTime = CreateConVar("sm_extendvote_time", "15", "Time that will be added to mp_timelimit shall the extend vote succeed", FCVAR_NONE, true, 1.0); + g_cvarExtendVoteMaxDuration = CreateConVar("sm_extendvote_max_duration", "30", "Maximum minutes an admin can request with \"sm_extend