Skip to content

Commit

Permalink
Gamedata Update for TF2 2024-04-18
Browse files Browse the repository at this point in the history
  • Loading branch information
FortyTwoFortyTwo committed Apr 19, 2024
1 parent 6f2520f commit 34a511b
Showing 1 changed file with 57 additions and 34 deletions.
91 changes: 57 additions & 34 deletions gamedata/randomizer.txt
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"PatchReplace_08" //Demoman class check for kill refilling meter
{
"linux" "\x90\xE9" // Replace 'jz' (if '==' jump) to 'jmp' (always jump)
"windows" "\x90\x90\x90\x90\x90\x90" // Replace 'jz' (if '==' jump) to to NOP (skip)
"windows" "\x90\x90\x90\x90\x90\x90" // Replace 'jnz' to NOP (skip)
}
"PatchReplace_09" //Sniper class check for Hitman's Heatmaker rage on kill
{
Expand All @@ -52,9 +52,8 @@
"PatchReplace_IsPlayerClass" //Given class check, this patch makes it always return true
{
// \xB8\x01\x00\x00\x00 mov eax, 1
// \x5D pop ebp
// \xC3 retn
"linux" "\xB8\x01\x00\x00\x00\x5D\xC3"
"linux" "\xB8\x01\x00\x00\x00\xC3"

// \xB8\x01\x00\x00\x00 mov eax, 1
// \x90 nop
Expand All @@ -66,6 +65,10 @@
"PatchSig_01"
{
"signature" "PatchSig_01"
"linux"
{
"offset" "95"
}
"windows"
{
"offset" "7" //Start is pushed back by 7 to make good unique sig
Expand Down Expand Up @@ -94,25 +97,45 @@
"PatchSig_06"
{
"signature" "PatchSig_06"
"linux"
{
"offset" "3" //Start is pushed back by 3 to make good unique sig
}
}
"PatchSig_07"
{
"signature" "PatchSig_07"
"linux"
{
"offset" "649"
}
"windows"
{
"offset" "4" //Start is pushed back by 4 to make good unique sig
}
}
"PatchSig_08"
{
"signature" "PatchSig_08"
"windows"
{
"offset" "4" //Start is pushed back by 4 to make good unique sig
}
}
"PatchSig_09"
{
"signature" "PatchSig_09"
"linux"
{
"offset" "1890"
}
}
"PatchSig_IsPlayerClass"
{
"signature" "PatchSig_IsPlayerClass"
"linux"
{
"offset" "2" //Start is pushed back by 2 to make good unique sig
"offset" "10"
}
"windows"
{
Expand All @@ -124,12 +147,12 @@
{
"PatchSig_01" //CTFPlayer::GetMaxHealthForBuffing
{
"linux" "\x0F\x84\x2A\x2A\x2A\x2A\x89\x3C\x24\xE8\x2A\x2A\x2A\x2A\xC7\x44\x24\x2A\x2A\x2A\x2A\x00\x01\xD8"
"linux" "@_ZN9CTFPlayer22GetMaxHealthForBuffingEv"
"windows" "\x83\xBF\x2A\x2A\x2A\x2A\x04\x75\x2A\x6A\x00"
}
"PatchSig_02" //CTFPlayer::TeamFortress_CalculateMaxSpeed
{
"linux" "\x0F\x84\x2A\x2A\x2A\x2A\xA1\x2A\x2A\x2A\x2A\x80\xBB\x2A\x1E\x00\x00\x00"
"linux" "\x0F\x84\x2A\x2A\x2A\x2A\xA1\x2A\x2A\x2A\x2A\x80\xB8\x2A\x0C\x00\x00\x00\x75\x2A\x80\xBB\x2A\x1E\x00\x00\x00"
"windows" "\x75\x2A\x6A\x00\x68\x2A\x2A\x2A\x2A\x68\x2A\x2A\x2A\x2A\x6A\x00\x6A\x40\x8B\xCE"
}
"PatchSig_03" //CTFPlayer::TeamFortress_CalculateMaxSpeed
Expand All @@ -139,7 +162,7 @@
}
"PatchSig_04" //CTFPlayer::TeamFortress_CalculateMaxSpeed
{
"linux" "\x0F\x84\x2A\x2A\x2A\x2A\x8B\x45\xB8\xC7\x44\x24\x2A\x2A\x2A\x2A\x00\xC7\x44\x24\x2A\x2A\x2A\x2A\x00"
"linux" "\x0F\x84\x2A\x2A\x2A\x2A\x83\xEC\x0C\x6A\x01\x6A\x00\xFF\x75\xD8"
"windows" "\x75\x2A\x6A\x00\x68\x2A\x2A\x2A\x2A\x68\x2A\x2A\x2A\x2A\x6A\x00\x6A\x32"
}
"PatchSig_05" //CTFPlayer::TeamFortress_CalculateMaxSpeed
Expand All @@ -149,40 +172,40 @@
}
"PatchSig_06" //CTFPlayer::TeamFortress_CalculateMaxSpeed
{
"linux" "\x0F\x84\x2A\x2A\x2A\x2A\xA1\x2A\x2A\x2A\x2A\x85\xC0\x74\x2A\x80\xB8\x2A\x0C\x00\x00\x00\x74\x2A\x89\x1C\x24"
"linux" "\x83\xFF\x01\x0F\x84\x2A\x2A\x2A\x2A\xA1\x2A\x2A\x2A\x2A\x85\xC0"
"windows" "\x75\x2A\x6A\x55\x8B\xCE\xE8\x2A\x2A\x2A\x2A\x85\xC0"
}
"PatchSig_07" //CTFPlayer::Event_KilledOther
{
"linux" "\x0F\x84\x2A\x2A\x2A\x2A\x8B\x03\x8D\x95\x2A\x2A\x2A\x2A\xC7\x44\x24\x2A\x2A\x2A\x2A\x00"
"windows" "\x74\x2A\x56\x68\x2A\x2A\x2A\x2A\xE8\x2A\x2A\x2A\x2A\x83\xC4\x08\x85\xC0\x75\x2A"
"linux" "@_ZN9CTFPlayer17Event_KilledOtherEP11CBaseEntityRK15CTakeDamageInfo"
"windows" "\x83\x78\x04\x08\x75\x2A\x56"
}
"PatchSig_08" //CTFPlayer::Event_KilledOther
{
"linux" "\x0F\x84\x2A\x2A\x2A\x2A\x83\xF8\x02\x0F\x84\x2A\x2A\x2A\x2A\x8B\x83\x2A\x2A\x2A\x2A"
"windows" "\x0F\x84\x2A\x2A\x2A\x2A\x8B\x4D\x08\xDD\xD8"
"windows" "\x83\x78\x04\x04\x0F\x85\x2A\x2A\x2A\x2A"
}
"PatchSig_09" //CTFPlayer::Event_KilledOther
{
"linux" "\x0F\x84\x2A\x2A\x2A\x2A\x8B\x83\x2A\x2A\x2A\x2A\x31\xF6\x31\xFF\x85\xC0\x0F\x8E\x2A\x2A\x2A\x2A"
"windows" "\x74\x2A\x6A\x01\x6A\x00\x53\x68\x2A\x2A\x2A\x2A\x51\xD9\x1C\x24\xE8\x2A\x2A\x2A\x2A\xD9\xEE"
"linux" "@_ZN9CTFPlayer17Event_KilledOtherEP11CBaseEntityRK15CTakeDamageInfo"
"windows" "\x75\x2A\xD9\xEE\x6A\x01\x6A\x00\x53"
}
"PatchSig_IsPlayerClass" //CTFPlayer::IsPlayerClass
{
"linux" "\x74\x2A\x8B\x80\x2A\x2A\x2A\x2A\x39\x45\x0C"
"linux" "@_ZNK9CTFPlayer13IsPlayerClassEi"
"windows" "\x8B\x40\x04\x3B\x45\x08"
}
"CTFPlayer::GiveAmmo"
{
"library" "server"
"linux" "@_ZN9CTFPlayer8GiveAmmoEiib11EAmmoSource"
"windows" "\x55\x8B\xEC\x51\x53\x56\x8B\x75\x08\x8B\xD9\x89\x75\xFC"
"windows" "\x55\x8B\xEC\x53\x56\x8B\x75\x08\x8B\xD9\x57\x8B\x7D\x0C\x89\x75\x0C"
}
"CTFPlayer::GetMaxAmmo"
{
"library" "server"
"linux" "@_ZN9CTFPlayer10GetMaxAmmoEii"
"windows" "\x55\x8B\xEC\x8B\x45\x0C\x56\x57\x8B\xF9\x83\xF8\xFF\x75\x2A\xFF\xB7\x2A\x2A\x2A\x2A\xEB\x01\x50\xE8"
"windows" "\x55\x8B\xEC\x8B\x45\x0C\x53\x8B\xD9"
}
"CTFPlayer::Taunt"
{
Expand All @@ -194,31 +217,31 @@
{
"library" "server"
"linux" "@_ZNK9CTFPlayer10CanAirDashEv"
"windows" "\x55\x8B\xEC\x83\xEC\x08\x57\x8B\xF9\xF7\x87\xB4\x1B\x00\x00\x00\x00\x04\x00"
"windows" "\x55\x8B\xEC\x83\xEC\x08\x53\x57\x8B\xF9\x8B\x87\xB4\x1B\x00\x00"
}
"CTFPlayer::AddObject"
{
"library" "server"
"linux" "@_ZN9CTFPlayer9AddObjectEP11CBaseObject"
"windows" "\x55\x8B\xEC\x56\x8B\x75\x08\x57\x8B\xF9\x85\xF6\x74\x2A\x8B\x06\x8B\xCE\xFF\x50\x08\x8B\x00\x89\x45\x08\xEB\x2A\xC7\x45\x08\xFF\xFF\xFF\xFF\x8D\x45\x08\x50\x8D\x8F\x38\x23\x00\x00"
"windows" "\x55\x8B\xEC\x51\x53\x56\x57\x8B\x7D\x08\x8B\xD9\x85\xFF\x74\x2A\x8B\x07\x8B\xCF\xFF\x50\x08\x8B\x00\xEB\x2A\x83\xC8\xFF\x33\xF6\x89\x45\xFC\x39\xB3\x44\x23\x00\x00"
}
"CTFPlayer::RemoveObject"
{
"library" "server"
"linux" "@_ZN9CTFPlayer12RemoveObjectEP11CBaseObject"
"windows" "\x55\x8B\xEC\x56\x8B\xF1\x57\x8B\xBE\x44\x23\x00\x00"
"windows" "\x55\x8B\xEC\x56\x57\x8B\xF9\x8B\xB7\x44\x23\x00\x00"
}
"CTFPlayer::Weapon_GetWeaponByType"
{
"library" "server"
"linux" "@_ZN9CTFPlayer22Weapon_GetWeaponByTypeEi"
"windows" "\x55\x8B\xEC\x53\x56\x57\x33\xF6\x8D\xB9\x70\x07\x00\x00"
"windows" "\x55\x8B\xEC\x53\x56\x57\x33\xF6"
}
"CTFPlayer::DoClassSpecialSkill"
{
"library" "server"
"linux" "@_ZN9CTFPlayer19DoClassSpecialSkillEv"
"windows" "\x56\x8B\xF1\x8B\x06\x8B\x80\x0C\x01\x00\x00\xFF\xD0\x84\xC0\x75\x2A\x32\xC0\x5E\xC3\xF7\x86\xB4\x1B\x00\x00\x00\x00\x04\x00"
"windows" "\x56\x8B\xF1\x8B\x06\x8B\x80\x0C\x01\x00\x00\xFF\xD0\x84\xC0\x0F\x84\x2A\x2A\x2A\x2A\xF7\x86\xB4\x1B\x00\x00\x00\x00\x04\x00"
}
"CTFPlayer::EndClassSpecialSkill"
{
Expand All @@ -236,7 +259,7 @@
{
"library" "server"
"linux" "@_ZN9CTFPlayer14GetLoadoutItemEiib"
"windows" "\x55\x8B\xEC\x51\x53\x56\x8B\xF1\x8B\x0D\x2A\x2A\x2A\x2A\x57\x89\x75\xFC"
"windows" "\x55\x8B\xEC\x83\xEC\x10\x53\x56\x8B\xF1\x8B\x0D\x2A\x2A\x2A\x2A"
}
"CTFPlayer::GetMaxHealthForBuffing"
{
Expand All @@ -248,25 +271,25 @@
{
"library" "server"
"linux" "@_ZNK9CTFPlayer30TeamFortress_CalculateMaxSpeedEb"
"windows" "\x55\x8B\xEC\x83\xEC\x18\x83\x3D\x2A\x2A\x2A\x2A\x00\x56"
"windows" "\x55\x8B\xEC\x83\xEC\x18\x56\x8B\xF1\x8B\x0D\x2A\x2A\x2A\x2A"
}
"CTFPlayer::TakeHealth"
{
"library" "server"
"linux" "@_ZN9CTFPlayer10TakeHealthEfi"
"windows" "\x55\x8B\xEC\x56\x8B\xF1\x6A\x1F"
"windows" "\x55\x8B\xEC\x51\x56\x8B\xF1\x6A\x1F"
}
"CTFPlayer::CheckBlockBackstab"
{
"library" "server"
"linux" "@_ZN9CTFPlayer18CheckBlockBackstabEPS_"
"windows" "\x55\x8B\xEC\x83\xEC\x14\x53\x56\x57\x8B\xF9\x8D\x9F\xE0\x1A\x00\x00"
"windows" "\x55\x8B\xEC\x83\xEC\x14\x53\x56\x57\x8B\xF9\x8D\x8F\xE0\x1A\x00\x00"
}
"CTFPlayer::CanPickupBuilding"
{
"library" "server"
"linux" "@_ZN9CTFPlayer17CanPickupBuildingEP11CBaseObject"
"windows" "\x55\x8B\xEC\x83\xEC\x24\x53\x57\x8B\x7D\x08"
"windows" "\x55\x8B\xEC\x83\xEC\x24\x53\x56\x57\x8B\x7D\x08\x8B\xD9\x85\xFF"
}
"CTFPlayer::DropRune"
{
Expand All @@ -290,7 +313,7 @@
{
"library" "server"
"linux" "@_ZN8CTFKnife14DisguiseOnKillEv"
"windows" "\x53\x56\x8B\xF1\x8B\x96\x28\x08\x00\x00"
"windows" "\x55\x8B\xEC\x51\x56\x8B\xF1\x8B\x96\x28\x08\x00\x00"
}
"CTFLunchBox::ApplyBiteEffects"
{
Expand All @@ -302,25 +325,25 @@
{
"library" "server"
"linux" "@_ZN12CTFSpellBook12RollNewSpellEib"
"windows" "\x55\x8B\xEC\x57\x8B\xF9\x83\xBF\x24\x08\x00\x00\x00"
"windows" "\x55\x8B\xEC\x56\x8B\xF1\x83\xBE\x24\x08\x00\x00\x00"
}
"CTFGameStats::Event_PlayerFiredWeapon"
{
"library" "server"
"linux" "@_ZN12CTFGameStats23Event_PlayerFiredWeaponEP9CTFPlayerb"
"windows" "\x55\x8B\xEC\xA1\x2A\x2A\x2A\x2A\x56\x8B\x75\x08"
"windows" "\x55\x8B\xEC\xA1\x2A\x2A\x2A\x2A\x56\x8B\x75\x08\x57\x83\xB8\xCC\x03\x00\x00\x04"
}
"CTFPlayerShared::UpdateRageBuffsAndRage"
{
"library" "server"
"linux" "@_ZN15CTFPlayerShared22UpdateRageBuffsAndRageEv"
"windows" "\x55\x8B\xEC\x83\xEC\x08\x53\x8B\xD9\x8B\x8B\x8C\x01\x00\x00\x8B\x01\x8B\x80\x0C\x01\x00\x00\xFF\xD0\x84\xC0\x75\x2A"
"windows" "\x55\x8B\xEC\x51\xF3\x0F\x10\x05\x2A\x2A\x2A\x2A\x56\x8B\xF1\x57"
}
"CTFPlayerShared::ModifyRage"
{
"library" "server"
"linux" "@_ZN15CTFPlayerShared10ModifyRageEf"
"windows" "\x55\x8B\xEC\xF3\x0F\x10\x81\x88\x02\x00\x00"
"windows" "\x55\x8B\xEC\xF3\x0F\x10\x45\x08\x83\xEC\x08"
}
"CTFPlayerShared::ActivateRageBuff"
{
Expand All @@ -332,13 +355,13 @@
{
"library" "server"
"linux" "@_ZN15CTFPlayerShared19SetCarryingRuneTypeE11RuneTypes_t"
"windows" "\x55\x8B\xEC\x53\x8B\x5D\x08\x56\x57\x8B\xF9\x83\xFB\xFF\x74\x2A"
"windows" "\x55\x8B\xEC\x51\x53\x8B\x5D\x08\x56\x57\x8B\xF9\x83\xFB\xFF"
}
"CTFGameRules::ApplyOnDamageModifyRules"
{
"library" "server"
"linux" "@_ZN12CTFGameRules24ApplyOnDamageModifyRulesER15CTakeDamageInfoP11CBaseEntityb"
"windows" "\x55\x8B\xEC\x81\xEC\xAC\x00\x00\x00\x56\x8B\x75\x0C"
"windows" "\x55\x8B\xEC\x81\xEC\xD4\x00\x00\x00\x53\x8B\x5D\x0C"
}
"HandleRageGain"
{
Expand All @@ -350,7 +373,7 @@
{
"library" "server"
"linux" "@_ZN13CEconItemViewaSERKS_"
"windows" "\x55\x8B\xEC\x51\x53\x8B\x5D\x08\x56\x8B\xF1\xB1\x20"
"windows" "\x55\x8B\xEC\x83\xEC\x08\x53\x56\x8B\xF1\x57\x8B\x7D\x08\x8D\x5E\x18"
}
}
"Offsets"
Expand Down

0 comments on commit 34a511b

Please sign in to comment.