From f31e0e405f41d616c40feba04eadea37f3877897 Mon Sep 17 00:00:00 2001 From: Arkshine Date: Fri, 9 Oct 2015 10:53:53 +0200 Subject: [PATCH] Add gamerules offsets for supported mods --- .../cstrike/offsets-cgamerules.txt | 53 ++ .../cstrike/offsets-chalflifemultiplay.txt | 710 ++++++++++++++++++ .../cstrike/offsets-chalflifetraining.txt | 79 ++ .../dod/offsets-cdodteamplay.txt | 660 ++++++++++++++++ .../dod/offsets-cspdodrules.txt | 243 ++++++ .../gearbox/offsets-chalflifecoopplay.txt | 52 ++ .../gearbox/offsets-chalflifectfplay.txt | 88 +++ .../gearbox/offsets-chalflifemultiplay.txt | 51 ++ .../gearbox/offsets-chalflifeteamplay.txt | 71 ++ .../gamerules.games/master.games.txt | 90 +++ .../tfc/offsets-chalflifemultiplay.txt | 60 ++ .../tfc/offsets-chalflifeteamplay.txt | 52 ++ .../tfc/offsets-cteamfortress.txt | 44 ++ .../valve/offsets-chalflifemultiplay.txt | 51 ++ .../valve/offsets-chalflifeteamplay.txt | 71 ++ support/PackageScript | 45 ++ 16 files changed, 2420 insertions(+) create mode 100644 gamedata/common.games/gamerules.games/cstrike/offsets-cgamerules.txt create mode 100644 gamedata/common.games/gamerules.games/cstrike/offsets-chalflifemultiplay.txt create mode 100644 gamedata/common.games/gamerules.games/cstrike/offsets-chalflifetraining.txt create mode 100644 gamedata/common.games/gamerules.games/dod/offsets-cdodteamplay.txt create mode 100644 gamedata/common.games/gamerules.games/dod/offsets-cspdodrules.txt create mode 100644 gamedata/common.games/gamerules.games/gearbox/offsets-chalflifecoopplay.txt create mode 100644 gamedata/common.games/gamerules.games/gearbox/offsets-chalflifectfplay.txt create mode 100644 gamedata/common.games/gamerules.games/gearbox/offsets-chalflifemultiplay.txt create mode 100644 gamedata/common.games/gamerules.games/gearbox/offsets-chalflifeteamplay.txt create mode 100644 gamedata/common.games/gamerules.games/master.games.txt create mode 100644 gamedata/common.games/gamerules.games/tfc/offsets-chalflifemultiplay.txt create mode 100644 gamedata/common.games/gamerules.games/tfc/offsets-chalflifeteamplay.txt create mode 100644 gamedata/common.games/gamerules.games/tfc/offsets-cteamfortress.txt create mode 100644 gamedata/common.games/gamerules.games/valve/offsets-chalflifemultiplay.txt create mode 100644 gamedata/common.games/gamerules.games/valve/offsets-chalflifeteamplay.txt diff --git a/gamedata/common.games/gamerules.games/cstrike/offsets-cgamerules.txt b/gamedata/common.games/gamerules.games/cstrike/offsets-cgamerules.txt new file mode 100644 index 00000000..b424504a --- /dev/null +++ b/gamedata/common.games/gamerules.games/cstrike/offsets-cgamerules.txt @@ -0,0 +1,53 @@ +/** + * Do not edit this file. Any changes will be overwritten by the gamedata + * updater or by upgrading your AMX Mod X install. + * + * To override data in this file, create a subdirectory named "custom" and + * place your own gamedata file(s) inside of it. Such files will be parsed + * after AMXX's own. + * + * For more information, see http://wiki.alliedmods.net/Gamedata_Updating_(AMX_Mod_X) + */ + +"Games" +{ + "#default" + { + "Classes" + { + "CGameRules" + { + "Offsets" + { + "m_bFreezePeriod" // BOOL + { + "type" "integer" + + "windows" "4" + "linux" "4" + "mac" "4" + } + + "m_bBombDropped" // BOOL + { + "type" "integer" + + "windows" "8" + "linux" "8" + "mac" "8" + } + } + } + } + } +} + + +/** + * Class Hierarchy + * - + * CGameRules + * CHalfLifeMultiplay + * CHalfLifeTraining + * CHalfLifeRules + */ diff --git a/gamedata/common.games/gamerules.games/cstrike/offsets-chalflifemultiplay.txt b/gamedata/common.games/gamerules.games/cstrike/offsets-chalflifemultiplay.txt new file mode 100644 index 00000000..967f481b --- /dev/null +++ b/gamedata/common.games/gamerules.games/cstrike/offsets-chalflifemultiplay.txt @@ -0,0 +1,710 @@ +/** + * Do not edit this file. Any changes will be overwritten by the gamedata + * updater or by upgrading your AMX Mod X install. + * + * To override data in this file, create a subdirectory named "custom" and + * place your own gamedata file(s) inside of it. Such files will be parsed + * after AMXX's own. + * + * For more information, see http://wiki.alliedmods.net/Gamedata_Updating_(AMX_Mod_X) + */ + +"Games" +{ + "#default" + { + "Classes" + { + "CHalfLifeMultiplay" + { + "Offsets" + { + "m_VoiceGameMgr" // class CVoiceGameMgr + { + "type" "class" + + "windows" "16" + "linux" "12" + "mac" "12" + } + + "m_fTeamCount" // float + { + "type" "float" + + "windows" "48" + "linux" "40" + "mac" "40" + } + + "m_flCheckWinConditions" // float + { + "type" "float" + + "windows" "52" + "linux" "44" + "mac" "44" + } + + "m_fRoundCount" // float + { + "type" "float" + + "windows" "56" + "linux" "48" + "mac" "48" + } + + "m_iRoundTime" // int + { + "type" "integer" + + "windows" "60" + "linux" "52" + "mac" "52" + } + + "m_iRoundTimeSecs" // int + { + "type" "integer" + + "windows" "64" + "linux" "56" + "mac" "56" + } + + "m_iIntroRoundTime" // int + { + "type" "integer" + + "windows" "68" + "linux" "60" + "mac" "60" + } + + "m_fIntroRoundCount" // float + { + "type" "float" + + "windows" "72" + "linux" "64" + "mac" "64" + } + + "m_iAccountTerrorist" // int + { + "type" "integer" + + "windows" "76" + "linux" "68" + "mac" "68" + } + + "m_iAccountCT" // int + { + "type" "integer" + + "windows" "80" + "linux" "72" + "mac" "72" + } + + "m_iNumTerrorist" // int + { + "type" "integer" + + "windows" "84" + "linux" "76" + "mac" "76" + } + + "m_iNumCT" // int + { + "type" "integer" + + "windows" "88" + "linux" "80" + "mac" "80" + } + + "m_iNumSpawnableTerrorist" // int + { + "type" "integer" + + "windows" "92" + "linux" "84" + "mac" "84" + } + + "m_iNumSpawnableCT" // int + { + "type" "integer" + + "windows" "96" + "linux" "88" + "mac" "88" + } + + "m_iSpawnPointCount_Terrorist" // int + { + "type" "integer" + + "windows" "100" + "linux" "92" + "mac" "92" + } + + "m_iSpawnPointCount_CT" // int + { + "type" "integer" + + "windows" "104" + "linux" "96" + "mac" "96" + } + + "m_iHostagesRescued" // int + { + "type" "integer" + + "windows" "108" + "linux" "100" + "mac" "100" + } + + "m_iHostagesTouched" // int + { + "type" "integer" + + "windows" "112" + "linux" "104" + "mac" "104" + } + + "m_iRoundWinStatus" // int + { + "type" "integer" + + "windows" "116" + "linux" "108" + "mac" "108" + } + + "m_iNumCTWins" // short int + { + "type" "short" + + "windows" "120" + "linux" "112" + "mac" "112" + } + + "m_iNumTerroristWins" // short int + { + "type" "short" + + "windows" "122" + "linux" "114" + "mac" "114" + } + + "m_bTargetBombed" // bool + { + "type" "boolean" + + "windows" "124" + "linux" "116" + "mac" "116" + } + + "m_bBombDefused" // bool + { + "type" "boolean" + + "windows" "125" + "linux" "117" + "mac" "117" + } + + "m_bMapHasBombTarget" // bool + { + "type" "boolean" + + "windows" "126" + "linux" "118" + "mac" "118" + } + + "m_bMapHasBombZone" // bool + { + "type" "boolean" + + "windows" "127" + "linux" "119" + "mac" "119" + } + + "m_bMapHasBuyZone" // bool + { + "type" "boolean" + + "windows" "128" + "linux" "120" + "mac" "120" + } + + "m_bMapHasRescueZone" // bool + { + "type" "boolean" + + "windows" "129" + "linux" "121" + "mac" "121" + } + + "m_bMapHasEscapeZone" // bool + { + "type" "boolean" + + "windows" "130" + "linux" "122" + "mac" "122" + } + + "m_iMapHasVIPSafetyZone" // int + { + "type" "integer" + + "windows" "132" + "linux" "124" + "mac" "124" + } + + "m_bMapHasCameras" // int + { + "type" "integer" + + "windows" "136" + "linux" "128" + "mac" "128" + } + + "m_iC4Timer" // int + { + "type" "integer" + + "windows" "140" + "linux" "132" + "mac" "132" + } + + "m_iC4Guy" // int + { + "type" "integer" + + "windows" "144" + "linux" "136" + "mac" "136" + } + + "m_iLoserBonus" // int + { + "type" "integer" + + "windows" "148" + "linux" "140" + "mac" "140" + } + + "m_iNumConsecutiveCTLoses" // int + { + "type" "integer" + + "windows" "152" + "linux" "144" + "mac" "144" + } + + "m_iNumConsecutiveTerroristLoses" // int + { + "type" "integer" + + "windows" "156" + "linux" "148" + "mac" "148" + } + + "m_fMaxIdlePeriod" // float + { + "type" "float" + + "windows" "160" + "linux" "152" + "mac" "152" + } + + "m_iLimitTeams" // int + { + "type" "integer" + + "windows" "164" + "linux" "156" + "mac" "156" + } + + "m_bLevelInitialized" // bool + { + "type" "boolean" + + "windows" "168" + "linux" "160" + "mac" "160" + } + + "m_bRoundTerminating" // bool + { + "type" "boolean" + + "windows" "169" + "linux" "161" + "mac" "161" + } + + "m_bCompleteReset" // bool + { + "type" "boolean" + + "windows" "170" + "linux" "162" + "mac" "162" + } + + "m_flRequiredEscapeRatio" // float + { + "type" "float" + + "windows" "172" + "linux" "164" + "mac" "164" + } + + "m_iNumEscapers" // int + { + "type" "integer" + + "windows" "176" + "linux" "168" + "mac" "168" + } + + "m_iHaveEscaped" // int + { + "type" "integer" + + "windows" "180" + "linux" "172" + "mac" "172" + } + + "m_bCTCantBuy" // bool + { + "type" "boolean" + + "windows" "184" + "linux" "176" + "mac" "176" + } + + "m_bTCantBuy" // bool + { + "type" "boolean" + + "windows" "185" + "linux" "177" + "mac" "177" + } + + "m_flBombRadius" // float + { + "type" "float" + + "windows" "188" + "linux" "180" + "mac" "180" + } + + "m_iConsecutiveVIP" // int + { + "type" "integer" + + "windows" "192" + "linux" "184" + "mac" "184" + } + + "m_iTotalGunCount" // int + { + "type" "integer" + + "windows" "196" + "linux" "188" + "mac" "188" + } + + "m_iTotalGrenadeCount" // int + { + "type" "integer" + + "windows" "200" + "linux" "192" + "mac" "192" + } + + "m_iTotalArmourCount" // int + { + "type" "integer" + + "windows" "204" + "linux" "196" + "mac" "196" + } + + "m_iUnBalancedRounds" // int + { + "type" "integer" + + "windows" "208" + "linux" "200" + "mac" "200" + } + + "m_iNumEscapeRounds" // int + { + "type" "integer" + + "windows" "212" + "linux" "204" + "mac" "204" + } + + "m_iMapVotes" // int[100] + { + "type" "integer" + "size" "100" + + "windows" "216" + "linux" "208" + "mac" "208" + } + + "m_iLastPick" // int + { + "type" "integer" + + "windows" "616" + "linux" "608" + "mac" "608" + } + + "m_iMaxMapTime" // int + { + "type" "integer" + + "windows" "620" + "linux" "612" + "mac" "612" + } + + "m_iMaxRounds" // int + { + "type" "integer" + + "windows" "624" + "linux" "616" + "mac" "616" + } + + "m_iTotalRoundsPlayed" // int + { + "type" "integer" + + "windows" "628" + "linux" "620" + "mac" "620" + } + + "m_iMaxRoundsWon" // int + { + "type" "integer" + + "windows" "632" + "linux" "624" + "mac" "624" + } + + "m_iStoredSpectValue" // int + { + "type" "integer" + + "windows" "636" + "linux" "628" + "mac" "628" + } + + "m_flForceCameraValue" // float + { + "type" "float" + + "windows" "640" + "linux" "632" + "mac" "632" + } + + "m_flForceChaseCamValue" // float + { + "type" "float" + + "windows" "644" + "linux" "636" + "mac" "636" + } + + "m_flFadeToBlackValue" // float + { + "type" "float" + + "windows" "648" + "linux" "640" + "mac" "640" + } + + "m_pVIP" // CBasePlayer* + { + "type" "classptr" + + "windows" "652" + "linux" "644" + "mac" "644" + } + + "VIPQueue" // CBasePlayer*[5] + { + "type" "classptr" + "size" "5" + + "windows" "656" + "linux" "648" + "mac" "648" + } + + "m_flIntermissionEndTime" // float + { + "type" "float" + + "windows" "676" + "linux" "668" + "mac" "668" + } + + "m_flIntermissionStartTime" // float + { + "type" "float" + + "windows" "680" + "linux" "672" + "mac" "672" + } + + "m_iEndIntermissionButtonHit" // BOOL + { + "type" "integer" + + "windows" "684" + "linux" "676" + "mac" "676" + } + + "m_tmNextPeriodicThink" // float + { + "type" "float" + + "windows" "688" + "linux" "680" + "mac" "680" + } + + "m_bFirstConnected" // bool + { + "type" "boolean" + + "windows" "692" + "linux" "684" + "mac" "684" + } + + "m_bInCareerGame" // bool + { + "type" "boolean" + + "windows" "693" + "linux" "685" + "mac" "685" + } + + "m_fCareerRoundMenuTime" // float + { + "type" "float" + + "windows" "696" + "linux" "688" + "mac" "688" + } + + "m_iCareerMatchWins" // int + { + "type" "integer" + + "windows" "700" + "linux" "692" + "mac" "692" + } + + "m_iRoundWinDifference" // int + { + "type" "integer" + + "windows" "704" + "linux" "696" + "mac" "696" + } + + "m_fCareerMatchMenuTime" // float + { + "type" "float" + + "windows" "708" + "linux" "700" + "mac" "700" + } + + "m_bSkipSpawn" // bool + { + "type" "boolean" + + "windows" "712" + "linux" "704" + "mac" "704" + } + } + } + } + } +} + + +/** + * Class Hierarchy + * - + * CGameRules + * CHalfLifeMultiplay + */ diff --git a/gamedata/common.games/gamerules.games/cstrike/offsets-chalflifetraining.txt b/gamedata/common.games/gamerules.games/cstrike/offsets-chalflifetraining.txt new file mode 100644 index 00000000..6f52ca83 --- /dev/null +++ b/gamedata/common.games/gamerules.games/cstrike/offsets-chalflifetraining.txt @@ -0,0 +1,79 @@ +/** + * Do not edit this file. Any changes will be overwritten by the gamedata + * updater or by upgrading your AMX Mod X install. + * + * To override data in this file, create a subdirectory named "custom" and + * place your own gamedata file(s) inside of it. Such files will be parsed + * after AMXX's own. + * + * For more information, see http://wiki.alliedmods.net/Gamedata_Updating_(AMX_Mod_X) + */ + +"Games" +{ + "#default" + { + "Classes" + { + "CHalfLifeTraining" + { + "Offsets" + { + "FillAccountTime" // float + { + "type" "float" + + "windows" "708" + "linux" "708" + "mac" "708" + } + + "ServerRestartTime" // float + { + "type" "float" + + "windows" "712" + "linux" "712" + "mac" "712" + } + + "fInBuyArea" // BOOL + { + "type" "integer" + + "windows" "716" + "linux" "716" + "mac" "716" + } + + "fVisitedBuyArea" // BOOL + { + "type" "integer" + + "windows" "720" + "linux" "720" + "mac" "720" + } + + "fVGUIMenus" // bool + { + "type" "boolean" + + "windows" "724" + "linux" "724" + "mac" "724" + } + } + } + } + } +} + + +/** + * Class Hierarchy + * - + * CGameRules + * CHalfLifeMultiplay + * CHalfLifeTraining + */ diff --git a/gamedata/common.games/gamerules.games/dod/offsets-cdodteamplay.txt b/gamedata/common.games/gamerules.games/dod/offsets-cdodteamplay.txt new file mode 100644 index 00000000..fdc30e5d --- /dev/null +++ b/gamedata/common.games/gamerules.games/dod/offsets-cdodteamplay.txt @@ -0,0 +1,660 @@ +/** + * Do not edit this file. Any changes will be overwritten by the gamedata + * updater or by upgrading your AMX Mod X install. + * + * To override data in this file, create a subdirectory named "custom" and + * place your own gamedata file(s) inside of it. Such files will be parsed + * after AMXX's own. + * + * For more information, see http://wiki.alliedmods.net/Gamedata_Updating_(AMX_Mod_X) + */ + +"Games" +{ + "#default" + { + "Classes" + { + "CDoDTeamPlay" + { + "Offsets" + { + "m_RoundDoesCount" // int + { + "type" "integer" + + "windows" "4" + "linux" "4" + "mac" "4" + } + + "m_DoDCameraState" // int + { + "type" "integer" + + "windows" "8" + "linux" "8" + "mac" "8" + } + + "m_RoundParaCanJoin" // int + { + "type" "integer" + + "windows" "12" + "linux" "12" + "mac" "12" + } + + "m_flGoodToGoTime" // float + { + "type" "float" + + "windows" "16" + "linux" "16" + "mac" "16" + } + + "m_flRoundTime" // float + { + "type" "float" + + "windows" "20" + "linux" "20" + "mac" "20" + } + + "m_flCanJoinTime" // float + { + "type" "float" + + "windows" "24" + "linux" "24" + "mac" "24" + } + + "m_flRestartTime" // float + { + "type" "float" + + "windows" "28" + "linux" "28" + "mac" "28" + } + + "m_flFinalCheckTime" // float + { + "type" "float" + + "windows" "32" + "linux" "32" + "mac" "32" + } + + "m_flDoDMapTime" // float + { + "type" "float" + + "windows" "36" + "linux" "36" + "mac" "36" + } + + "m_flAlliesWaveTime" // float + { + "type" "float" + + "windows" "40" + "linux" "40" + "mac" "40" + } + + "m_flAxisWaveTime" // float + { + "type" "float" + + "windows" "44" + "linux" "44" + "mac" "44" + } + + "m_flAlliesRespawn" // float + { + "type" "float" + + "windows" "48" + "linux" "48" + "mac" "48" + } + + "m_flAxisRespawn" // float + { + "type" "float" + + "windows" "52" + "linux" "52" + "mac" "52" + } + + "m_iTeamScores" // int[32] + { + "type" "integer" + "size" "32" + + "windows" "56" + "linux" "56" + "mac" "56" + } + + "m_szTeamNames" // char*[32] + { + "type" "stringptr" + "size" "32" + + "windows" "184" + "linux" "184" + "mac" "184" + } + + "m_flSpamResetTime" // float + { + "type" "float" + + "windows" "312" + "linux" "312" + "mac" "312" + } + + "m_bClanMatch" // bool + { + "type" "boolean" + + "windows" "316" + "linux" "316" + "mac" "316" + } + + "m_bClanMatchActive" // bool + { + "type" "boolean" + + "windows" "317" + "linux" "317" + "mac" "317" + } + + "m_szAuthID" // char[32] + { + "type" "string" + "size" "32" + + "windows" "318" + "linux" "318" + "mac" "318" + } + + "m_vKickENT" // CBasePlayer* + { + "type" "classptr" + + "windows" "352" + "linux" "352" + "mac" "352" + } + + "m_vKick" // int + { + "type" "integer" + + "windows" "356" + "linux" "356" + "mac" "356" + } + + "m_vKickVotes" // int + { + "type" "integer" + + "windows" "360" + "linux" "360" + "mac" "360" + } + + "m_vKickSessionState" // int + { + "type" "integer" + + "windows" "364" + "linux" "364" + "mac" "364" + } + + "m_vKickTime" // float + { + "type" "float" + + "windows" "368" + "linux" "368" + "mac" "368" + } + + "m_rRoundStartCount" // float + { + "type" "float" + + "windows" "372" + "linux" "372" + "mac" "372" + } + + "m_rReadyToUnFreeze" // int + { + "type" "integer" + + "windows" "376" + "linux" "376" + "mac" "376" + } + + "gr_gameRules" // int + { + "type" "integer" + + "windows" "380" + "linux" "380" + "mac" "380" + } + + "m_GamePlayRules" // gameplay_rules_t + { + "type" "structure" + + "windows" "384" + "linux" "384" + "mac" "384" + } + + "m_iNumAlliesAlive" // int + { + "type" "integer" + + "windows" "432" + "linux" "432" + "mac" "432" + } + + "m_iNumAxisAlive" // int + { + "type" "integer" + + "windows" "436" + "linux" "436" + "mac" "436" + } + + "m_iNumAlliesOnTeam" // int + { + "type" "integer" + + "windows" "440" + "linux" "440" + "mac" "440" + } + + "m_iNumAxisOnTeam" // int + { + "type" "integer" + + "windows" "444" + "linux" "444" + "mac" "444" + } + + "m_Camera" // short unsigned int + { + "type" "short" + "unsigned" "1" + + "windows" "448" + "linux" "448" + "mac" "448" + } + + "m_usVoice" // short unsigned int + { + "type" "short" + "unsigned" "1" + + "windows" "450" + "linux" "450" + "mac" "450" + } + + "m_bodyDamage" // short unsigned int + { + "type" "short" + "unsigned" "1" + + "windows" "452" + "linux" "452" + "mac" "452" + } + + "m_roundRestartSound" // short unsigned int + { + "type" "short" + "unsigned" "1" + + "windows" "454" + "linux" "454" + "mac" "454" + } + + "m_gerVoice" // short unsigned int + { + "type" "short" + "unsigned" "1" + + "windows" "456" + "linux" "456" + "mac" "456" + } + + "m_Pain" // short unsigned int + { + "type" "short" + "unsigned" "1" + + "windows" "458" + "linux" "458" + "mac" "458" + } + + "m_Smoke" // short unsigned int + { + "type" "short" + "unsigned" "1" + + "windows" "460" + "linux" "460" + "mac" "460" + } + + "m_Prone" // short unsigned int + { + "type" "short" + "unsigned" "1" + + "windows" "462" + "linux" "462" + "mac" "462" + } + + "m_BloodSprite" // short unsigned int + { + "type" "short" + "unsigned" "1" + + "windows" "464" + "linux" "464" + "mac" "464" + } + + "m_BloodStream" // short unsigned int + { + "type" "short" + "unsigned" "1" + + "windows" "466" + "linux" "466" + "mac" "466" + } + + "m_BulletTracers" // short unsigned int + { + "type" "short" + "unsigned" "1" + + "windows" "468" + "linux" "468" + "mac" "468" + } + + "m_SparkShower" // short unsigned int + { + "type" "short" + "unsigned" "1" + + "windows" "470" + "linux" "470" + "mac" "470" + } + + "m_ScreenFades" // short unsigned int + { + "type" "short" + "unsigned" "1" + + "windows" "472" + "linux" "472" + "mac" "472" + } + + "m_BubbleTrails" // short unsigned int + { + "type" "short" + "unsigned" "1" + + "windows" "474" + "linux" "474" + "mac" "474" + } + + "m_Bubbles" // short unsigned int + { + "type" "short" + "unsigned" "1" + + "windows" "476" + "linux" "476" + "mac" "476" + } + + "m_Shards" // short unsigned int + { + "type" "short" + "unsigned" "1" + + "windows" "478" + "linux" "478" + "mac" "478" + } + + "m_Explosion" // short unsigned int + { + "type" "short" + "unsigned" "1" + + "windows" "480" + "linux" "480" + "mac" "480" + } + + "m_PopHelmet" // short unsigned int + { + "type" "short" + "unsigned" "1" + + "windows" "482" + "linux" "482" + "mac" "482" + } + + "m_RoundReset" // short unsigned int + { + "type" "short" + "unsigned" "1" + + "windows" "484" + "linux" "484" + "mac" "484" + } + + "m_RocketTrail" // short unsigned int + { + "type" "short" + "unsigned" "1" + + "windows" "486" + "linux" "486" + "mac" "486" + } + + "sNextMap" // char[32] + { + "type" "string" + "size" "32" + + "windows" "488" + "linux" "488" + "mac" "488" + } + + "MapChangeFromTime" // int + { + "type" "integer" + + "windows" "520" + "linux" "520" + "mac" "520" + } + + "m_bIsRoundFrozen" // bool + { + "type" "boolean" + + "windows" "524" + "linux" "524" + "mac" "524" + } + + "m_DisableDeathMessages" // BOOL + { + "type" "integer" + + "windows" "528" + "linux" "528" + "mac" "528" + } + + "m_DisableDeathPenalty" // BOOL + { + "type" "integer" + + "windows" "532" + "linux" "532" + "mac" "532" + } + + "m_pParaTimer" // CDodParaRoundTimer* + { + "type" "classptr" + + "windows" "536" + "linux" "536" + "mac" "536" + } + + "m_RoundState" // int + { + "type" "integer" + + "windows" "540" + "linux" "540" + "mac" "540" + } + + "m_bRoundRestarting" // BOOL + { + "type" "integer" + + "windows" "544" + "linux" "544" + "mac" "544" + } + + "m_bAwaitingReadyRestart" // BOOL + { + "type" "integer" + + "windows" "548" + "linux" "548" + "mac" "548" + } + + "m_bHeardAlliesReady" // BOOL + { + "type" "integer" + + "windows" "552" + "linux" "552" + "mac" "552" + } + + "m_bHeardAxisReady" // BOOL + { + "type" "integer" + + "windows" "556" + "linux" "556" + "mac" "556" + } + + "m_flRestartRoundTime" // float + { + "type" "float" + + "windows" "560" + "linux" "560" + "mac" "560" + } + + "m_fLogScoresTime" // float + { + "type" "float" + + "windows" "564" + "linux" "564" + "mac" "564" + } + + "m_flIntermissionEndTime" // float + { + "type" "float" + + "windows" "568" + "linux" "568" + "mac" "568" + } + + "m_iEndIntermissionButtonHit" // BOOL + { + "type" "integer" + + "windows" "572" + "linux" "572" + "mac" "572" + } + } + } + } + } +} + + +/** + * Class Hierarchy + * - + * CGameRules + * CDoDTeamPlay + */ diff --git a/gamedata/common.games/gamerules.games/dod/offsets-cspdodrules.txt b/gamedata/common.games/gamerules.games/dod/offsets-cspdodrules.txt new file mode 100644 index 00000000..4d1410e2 --- /dev/null +++ b/gamedata/common.games/gamerules.games/dod/offsets-cspdodrules.txt @@ -0,0 +1,243 @@ +/** + * Do not edit this file. Any changes will be overwritten by the gamedata + * updater or by upgrading your AMX Mod X install. + * + * To override data in this file, create a subdirectory named "custom" and + * place your own gamedata file(s) inside of it. Such files will be parsed + * after AMXX's own. + * + * For more information, see http://wiki.alliedmods.net/Gamedata_Updating_(AMX_Mod_X) + */ + +"Games" +{ + "#default" + { + "Classes" + { + "CSPDoDRules" + { + "Offsets" + { + "m_Camera" // short unsigned int + { + "type" "short" + "unsigned" "1" + + "windows" "4" + "linux" "4" + "mac" "4" + } + + "m_usVoice" // short unsigned int + { + "type" "short" + "unsigned" "1" + + "windows" "6" + "linux" "6" + "mac" "6" + } + + "m_bodyDamage" // short unsigned int + { + "type" "short" + "unsigned" "1" + + "windows" "8" + "linux" "8" + "mac" "8" + } + + "m_roundRestartSound" // short unsigned int + { + "type" "short" + "unsigned" "1" + + "windows" "10" + "linux" "10" + "mac" "10" + } + + "m_gerVoice" // short unsigned int + { + "type" "short" + "unsigned" "1" + + "windows" "12" + "linux" "12" + "mac" "12" + } + + "m_Pain" // short unsigned int + { + "type" "short" + "unsigned" "1" + + "windows" "14" + "linux" "14" + "mac" "14" + } + + "m_Smoke" // short unsigned int + { + "type" "short" + "unsigned" "1" + + "windows" "16" + "linux" "16" + "mac" "16" + } + + "m_BloodSprite" // short unsigned int + { + "type" "short" + "unsigned" "1" + + "windows" "18" + "linux" "18" + "mac" "18" + } + + "m_Prone" // short unsigned int + { + "type" "short" + "unsigned" "1" + + "windows" "20" + "linux" "20" + "mac" "20" + } + + "m_BloodStream" // short unsigned int + { + "type" "short" + "unsigned" "1" + + "windows" "22" + "linux" "22" + "mac" "22" + } + + "m_BulletTracers" // short unsigned int + { + "type" "short" + "unsigned" "1" + + "windows" "24" + "linux" "24" + "mac" "24" + } + + "m_SparkShower" // short unsigned int + { + "type" "short" + "unsigned" "1" + + "windows" "26" + "linux" "26" + "mac" "26" + } + + "m_ScreenFades" // short unsigned int + { + "type" "short" + "unsigned" "1" + + "windows" "28" + "linux" "28" + "mac" "28" + } + + "m_BubbleTrails" // short unsigned int + { + "type" "short" + "unsigned" "1" + + "windows" "30" + "linux" "30" + "mac" "30" + } + + "m_Bubbles" // short unsigned int + { + "type" "short" + "unsigned" "1" + + "windows" "32" + "linux" "32" + "mac" "32" + } + + "m_Shards" // short unsigned int + { + "type" "short" + "unsigned" "1" + + "windows" "34" + "linux" "34" + "mac" "34" + } + + "m_Explosion" // short unsigned int + { + "type" "short" + "unsigned" "1" + + "windows" "36" + "linux" "36" + "mac" "36" + } + + "m_DeadBodies" // short unsigned int + { + "type" "short" + "unsigned" "1" + + "windows" "38" + "linux" "38" + "mac" "38" + } + + "m_PopHelmet" // short unsigned int + { + "type" "short" + "unsigned" "1" + + "windows" "40" + "linux" "40" + "mac" "40" + } + + "m_RoundReset" // short unsigned int + { + "type" "short" + "unsigned" "1" + + "windows" "42" + "linux" "42" + "mac" "42" + } + + "m_RocketTrail" // short unsigned int + { + "type" "short" + "unsigned" "1" + + "windows" "44" + "linux" "44" + "mac" "44" + } + } + } + } + } +} + + +/** + * Class Hierarchy + * - + * CGameRules + * CSPDoDRules + */ diff --git a/gamedata/common.games/gamerules.games/gearbox/offsets-chalflifecoopplay.txt b/gamedata/common.games/gamerules.games/gearbox/offsets-chalflifecoopplay.txt new file mode 100644 index 00000000..a0073660 --- /dev/null +++ b/gamedata/common.games/gamerules.games/gearbox/offsets-chalflifecoopplay.txt @@ -0,0 +1,52 @@ +/** + * Do not edit this file. Any changes will be overwritten by the gamedata + * updater or by upgrading your AMX Mod X install. + * + * To override data in this file, create a subdirectory named "custom" and + * place your own gamedata file(s) inside of it. Such files will be parsed + * after AMXX's own. + * + * For more information, see http://wiki.alliedmods.net/Gamedata_Updating_(AMX_Mod_X) + */ + +"Games" +{ + "#default" + { + "Classes" + { + "CHalfLifeCoopplay" + { + "Offsets" + { + "m_DisableDeathMessages" // BOOL + { + "type" "integer" + + "windows" "12" + "linux" "12" + "mac" "12" + } + + "m_DisableDeathPenalty" // BOOL + { + "type" "integer" + + "windows" "16" + "linux" "16" + "mac" "16" + } + } + } + } + } +} + + +/** + * Class Hierarchy + * - + * CGameRules + * CHalfLifeMultiplay + * CHalfLifeCoopplay + */ diff --git a/gamedata/common.games/gamerules.games/gearbox/offsets-chalflifectfplay.txt b/gamedata/common.games/gamerules.games/gearbox/offsets-chalflifectfplay.txt new file mode 100644 index 00000000..d4e4dd12 --- /dev/null +++ b/gamedata/common.games/gamerules.games/gearbox/offsets-chalflifectfplay.txt @@ -0,0 +1,88 @@ +/** + * Do not edit this file. Any changes will be overwritten by the gamedata + * updater or by upgrading your AMX Mod X install. + * + * To override data in this file, create a subdirectory named "custom" and + * place your own gamedata file(s) inside of it. Such files will be parsed + * after AMXX's own. + * + * For more information, see http://wiki.alliedmods.net/Gamedata_Updating_(AMX_Mod_X) + */ + +"Games" +{ + "#default" + { + "Classes" + { + "CHalfLifeCTFplay" + { + "Offsets" + { + "m_DisableDeathMessages" // BOOL + { + "type" "integer" + + "windows" "12" + "linux" "12" + "mac" "12" + } + + "m_DisableDeathPenalty" // BOOL + { + "type" "integer" + + "windows" "16" + "linux" "16" + "mac" "16" + } + + "m_fRefreshScores" // BOOL + { + "type" "integer" + + "windows" "20" + "linux" "20" + "mac" "20" + } + + "m_flNextStatsSend" // float + { + "type" "float" + + "windows" "24" + "linux" "24" + "mac" "24" + } + + "m_iStatsPhase" // int + { + "type" "integer" + + "windows" "28" + "linux" "28" + "mac" "28" + } + + "m_iStatsPlayer" // int + { + "type" "integer" + + "windows" "32" + "linux" "32" + "mac" "32" + } + } + } + } + } +} + + +/** + * Class Hierarchy + * - + * CGameRules + * CHalfLifeMultiplay + * CHalfLifeCTFplay + */ diff --git a/gamedata/common.games/gamerules.games/gearbox/offsets-chalflifemultiplay.txt b/gamedata/common.games/gamerules.games/gearbox/offsets-chalflifemultiplay.txt new file mode 100644 index 00000000..9931d094 --- /dev/null +++ b/gamedata/common.games/gamerules.games/gearbox/offsets-chalflifemultiplay.txt @@ -0,0 +1,51 @@ +/** + * Do not edit this file. Any changes will be overwritten by the gamedata + * updater or by upgrading your AMX Mod X install. + * + * To override data in this file, create a subdirectory named "custom" and + * place your own gamedata file(s) inside of it. Such files will be parsed + * after AMXX's own. + * + * For more information, see http://wiki.alliedmods.net/Gamedata_Updating_(AMX_Mod_X) + */ + +"Games" +{ + "#default" + { + "Classes" + { + "CHalfLifeMultiplay" + { + "Offsets" + { + "m_flIntermissionEndTime" // float + { + "type" "float" + + "windows" "4" + "linux" "4" + "mac" "4" + } + + "m_iEndIntermissionButtonHit" // BOOL + { + "type" "integer" + + "windows" "8" + "linux" "8" + "mac" "8" + } + } + } + } + } +} + + +/** + * Class Hierarchy + * - + * CGameRules + * CHalfLifeMultiplay + */ diff --git a/gamedata/common.games/gamerules.games/gearbox/offsets-chalflifeteamplay.txt b/gamedata/common.games/gamerules.games/gearbox/offsets-chalflifeteamplay.txt new file mode 100644 index 00000000..efaa6429 --- /dev/null +++ b/gamedata/common.games/gamerules.games/gearbox/offsets-chalflifeteamplay.txt @@ -0,0 +1,71 @@ +/** + * Do not edit this file. Any changes will be overwritten by the gamedata + * updater or by upgrading your AMX Mod X install. + * + * To override data in this file, create a subdirectory named "custom" and + * place your own gamedata file(s) inside of it. Such files will be parsed + * after AMXX's own. + * + * For more information, see http://wiki.alliedmods.net/Gamedata_Updating_(AMX_Mod_X) + */ + +"Games" +{ + "#default" + { + "Classes" + { + "CHalfLifeTeamplay" + { + "Offsets" + { + "m_DisableDeathMessages" // BOOL + { + "type" "integer" + + "windows" "12" + "linux" "12" + "mac" "12" + } + + "m_DisableDeathPenalty" // BOOL + { + "type" "integer" + + "windows" "16" + "linux" "16" + "mac" "16" + } + + "m_teamLimit" // BOOL + { + "type" "integer" + + "windows" "20" + "linux" "20" + "mac" "20" + } + + "m_szTeamList" // char[512] + { + "type" "string" + "size" "512" + + "windows" "24" + "linux" "24" + "mac" "24" + } + } + } + } + } +} + + +/** + * Class Hierarchy + * - + * CGameRules + * CHalfLifeMultiplay + * CHalfLifeTeamplay + */ diff --git a/gamedata/common.games/gamerules.games/master.games.txt b/gamedata/common.games/gamerules.games/master.games.txt new file mode 100644 index 00000000..86f73f66 --- /dev/null +++ b/gamedata/common.games/gamerules.games/master.games.txt @@ -0,0 +1,90 @@ +/** + * Do not edit this file. Any changes will be overwritten by the gamedata + * updater or by upgrading your AMX Mod X install. + * + * To override data in this file, create a subdirectory named "custom" and + * place your own gamedata file(s) inside of it. Such files will be parsed + * after AMXX's own. + * + * For more information, see http://wiki.alliedmods.net/Gamedata_Updating_(AMX_Mod_X) + */ + +"Game Master" +{ + "cstrike/offsets-cgamerules.txt" + { + "game" "cstrike" + "game" "czero" + } + + "cstrike/offsets-chalflifemultiplay.txt" + { + "game" "cstrike" + "game" "czero" + } + + "cstrike/offsets-chalflifetraining.txt" + { + "game" "cstrike" + "game" "czero" + } + + + "dod/offsets-cdodteamplay.txt" + { + "game" "dod" + } + + "dod/offsets-cspdodrules.txt" + { + "game" "dod" + } + + + "gearbox/offsets-chalflifemultiplay.txt" + { + "game" "gearbox" + } + + "gearbox/offsets-chalflifectfplay.txt" + { + "game" "gearbox" + } + + "gearbox/offsets-chalflifecoopplay.txt" + { + "game" "gearbox" + } + + "gearbox/offsets-chalflifeteamplay.txt" + { + "game" "gearbox" + } + + + "tfc/offsets-chalflifemultiplay.txt" + { + "game" "tfc" + } + + "tfc/offsets-chalflifeteamplay.txt" + { + "game" "tfc" + } + + "tfc/offsets-cteamfortress.txt" + { + "game" "tfc" + } + + + "valve/offsets-chalflifemultiplay.txt" + { + "game" "valve" + } + + "valve/offsets-chalflifeteamplay.txt" + { + "game" "valve" + } +} diff --git a/gamedata/common.games/gamerules.games/tfc/offsets-chalflifemultiplay.txt b/gamedata/common.games/gamerules.games/tfc/offsets-chalflifemultiplay.txt new file mode 100644 index 00000000..54caf6ca --- /dev/null +++ b/gamedata/common.games/gamerules.games/tfc/offsets-chalflifemultiplay.txt @@ -0,0 +1,60 @@ +/** + * Do not edit this file. Any changes will be overwritten by the gamedata + * updater or by upgrading your AMX Mod X install. + * + * To override data in this file, create a subdirectory named "custom" and + * place your own gamedata file(s) inside of it. Such files will be parsed + * after AMXX's own. + * + * For more information, see http://wiki.alliedmods.net/Gamedata_Updating_(AMX_Mod_X) + */ + +"Games" +{ + "#default" + { + "Classes" + { + "CHalfLifeMultiplay" + { + "Offsets" + { + "m_flIntermissionEndTime" // float + { + "type" "float" + + "windows" "4" + "linux" "4" + "mac" "4" + } + + "m_flIntermissionStartTime" // float + { + "type" "float" + + "windows" "8" + "linux" "8" + "mac" "8" + } + + "m_iEndIntermissionButtonHit" // BOOL + { + "type" "integer" + + "windows" "12" + "linux" "12" + "mac" "12" + } + } + } + } + } +} + + +/** + * Class Hierarchy + * - + * CGameRules + * CHalfLifeMultiplay + */ diff --git a/gamedata/common.games/gamerules.games/tfc/offsets-chalflifeteamplay.txt b/gamedata/common.games/gamerules.games/tfc/offsets-chalflifeteamplay.txt new file mode 100644 index 00000000..12a3b6a7 --- /dev/null +++ b/gamedata/common.games/gamerules.games/tfc/offsets-chalflifeteamplay.txt @@ -0,0 +1,52 @@ +/** + * Do not edit this file. Any changes will be overwritten by the gamedata + * updater or by upgrading your AMX Mod X install. + * + * To override data in this file, create a subdirectory named "custom" and + * place your own gamedata file(s) inside of it. Such files will be parsed + * after AMXX's own. + * + * For more information, see http://wiki.alliedmods.net/Gamedata_Updating_(AMX_Mod_X) + */ + +"Games" +{ + "#default" + { + "Classes" + { + "CHalfLifeTeamplay" + { + "Offsets" + { + "m_DisableDeathMessages" // BOOL + { + "type" "integer" + + "windows" "16" + "linux" "16" + "mac" "16" + } + + "m_DisableDeathPenalty" // BOOL + { + "type" "integer" + + "windows" "20" + "linux" "20" + "mac" "20" + } + } + } + } + } +} + + +/** + * Class Hierarchy + * - + * CGameRules + * CHalfLifeMultiplay + * CHalfLifeTeamplay + */ diff --git a/gamedata/common.games/gamerules.games/tfc/offsets-cteamfortress.txt b/gamedata/common.games/gamerules.games/tfc/offsets-cteamfortress.txt new file mode 100644 index 00000000..1ea819a0 --- /dev/null +++ b/gamedata/common.games/gamerules.games/tfc/offsets-cteamfortress.txt @@ -0,0 +1,44 @@ +/** + * Do not edit this file. Any changes will be overwritten by the gamedata + * updater or by upgrading your AMX Mod X install. + * + * To override data in this file, create a subdirectory named "custom" and + * place your own gamedata file(s) inside of it. Such files will be parsed + * after AMXX's own. + * + * For more information, see http://wiki.alliedmods.net/Gamedata_Updating_(AMX_Mod_X) + */ + +"Games" +{ + "#default" + { + "Classes" + { + "CTeamFortress" + { + "Offsets" + { + "m_VoiceGameMgr" // class CVoiceGameMgr + { + "type" "class" + + "windows" "28" + "linux" "24" + "mac" "24" + } + } + } + } + } +} + + +/** + * Class Hierarchy + * - + * CGameRules + * CHalfLifeMultiplay + * CHalfLifeTeamplay + * CTeamFortress + */ diff --git a/gamedata/common.games/gamerules.games/valve/offsets-chalflifemultiplay.txt b/gamedata/common.games/gamerules.games/valve/offsets-chalflifemultiplay.txt new file mode 100644 index 00000000..9931d094 --- /dev/null +++ b/gamedata/common.games/gamerules.games/valve/offsets-chalflifemultiplay.txt @@ -0,0 +1,51 @@ +/** + * Do not edit this file. Any changes will be overwritten by the gamedata + * updater or by upgrading your AMX Mod X install. + * + * To override data in this file, create a subdirectory named "custom" and + * place your own gamedata file(s) inside of it. Such files will be parsed + * after AMXX's own. + * + * For more information, see http://wiki.alliedmods.net/Gamedata_Updating_(AMX_Mod_X) + */ + +"Games" +{ + "#default" + { + "Classes" + { + "CHalfLifeMultiplay" + { + "Offsets" + { + "m_flIntermissionEndTime" // float + { + "type" "float" + + "windows" "4" + "linux" "4" + "mac" "4" + } + + "m_iEndIntermissionButtonHit" // BOOL + { + "type" "integer" + + "windows" "8" + "linux" "8" + "mac" "8" + } + } + } + } + } +} + + +/** + * Class Hierarchy + * - + * CGameRules + * CHalfLifeMultiplay + */ diff --git a/gamedata/common.games/gamerules.games/valve/offsets-chalflifeteamplay.txt b/gamedata/common.games/gamerules.games/valve/offsets-chalflifeteamplay.txt new file mode 100644 index 00000000..efaa6429 --- /dev/null +++ b/gamedata/common.games/gamerules.games/valve/offsets-chalflifeteamplay.txt @@ -0,0 +1,71 @@ +/** + * Do not edit this file. Any changes will be overwritten by the gamedata + * updater or by upgrading your AMX Mod X install. + * + * To override data in this file, create a subdirectory named "custom" and + * place your own gamedata file(s) inside of it. Such files will be parsed + * after AMXX's own. + * + * For more information, see http://wiki.alliedmods.net/Gamedata_Updating_(AMX_Mod_X) + */ + +"Games" +{ + "#default" + { + "Classes" + { + "CHalfLifeTeamplay" + { + "Offsets" + { + "m_DisableDeathMessages" // BOOL + { + "type" "integer" + + "windows" "12" + "linux" "12" + "mac" "12" + } + + "m_DisableDeathPenalty" // BOOL + { + "type" "integer" + + "windows" "16" + "linux" "16" + "mac" "16" + } + + "m_teamLimit" // BOOL + { + "type" "integer" + + "windows" "20" + "linux" "20" + "mac" "20" + } + + "m_szTeamList" // char[512] + { + "type" "string" + "size" "512" + + "windows" "24" + "linux" "24" + "mac" "24" + } + } + } + } + } +} + + +/** + * Class Hierarchy + * - + * CGameRules + * CHalfLifeMultiplay + * CHalfLifeTeamplay + */ diff --git a/support/PackageScript b/support/PackageScript index 3dc7cd78..1d42f07e 100644 --- a/support/PackageScript +++ b/support/PackageScript @@ -29,6 +29,12 @@ folder_list = [ 'base/addons/amxmodx/data/gamedata/common.games/hostages.games/cstrike', 'base/addons/amxmodx/data/gamedata/common.games/others.games', 'base/addons/amxmodx/data/gamedata/common.games/others.games/cstrike', + 'base/addons/amxmodx/data/gamedata/common.games/gamerules.games', + 'base/addons/amxmodx/data/gamedata/common.games/gamerules.games/cstrike', + 'base/addons/amxmodx/data/gamedata/common.games/gamerules.games/dod', + 'base/addons/amxmodx/data/gamedata/common.games/gamerules.games/tfc', + 'base/addons/amxmodx/data/gamedata/common.games/gamerules.games/gearbox', + 'base/addons/amxmodx/data/gamedata/common.games/gamerules.games/valve', 'base/addons/amxmodx/data/gamedata/modules.games', 'base/addons/amxmodx/data/lang', 'base/addons/amxmodx/dlls', @@ -1212,6 +1218,45 @@ CopyFiles('gamedata/common.games/entities.games/valve', 'base/addons/amxmodx/dat ] ) +CopyFiles('gamedata/common.games/gamerules.games/cstrike', 'base/addons/amxmodx/data/gamedata/common.games/gamerules.games/cstrike', + [ + 'offsets-cgamerules.txt', + 'offsets-chalflifemultiplay.txt', + 'offsets-chalflifetraining.txt', + ] +) + +CopyFiles('gamedata/common.games/gamerules.games/dod', 'base/addons/amxmodx/data/gamedata/common.games/gamerules.games/dod', + [ + 'offsets-cdodteamplay.txt', + 'offsets-cspdodrules.txt', + ] +) + +CopyFiles('gamedata/common.games/gamerules.games/gearbox', 'base/addons/amxmodx/data/gamedata/common.games/gamerules.games/gearbox', + [ + 'offsets-chalflifecoopplay.txt', + 'offsets-chalflifectfplay.txt', + 'offsets-chalflifemultiplay.txt', + 'offsets-chalflifeteamplay.txt', + ] +) + +CopyFiles('gamedata/common.games/gamerules.games/tfc', 'base/addons/amxmodx/data/gamedata/common.games/gamerules.games/tfc', + [ + 'offsets-chalflifemultiplay.txt', + 'offsets-chalflifeteamplay.txt', + 'offsets-cteamfortress.txt', + ] +) + +CopyFiles('gamedata/common.games/gamerules.games/valve', 'base/addons/amxmodx/data/gamedata/common.games/gamerules.games/valve', + [ + 'offsets-chalflifemultiplay.txt', + 'offsets-chalflifeteamplay.txt', + ] +) + # Copy license files licenses = [ 'ACKNOWLEDGEMENTS.txt',