Skip to content

Commit

Permalink
Update l4d2 gamedata (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
A1mDev authored Feb 11, 2024
1 parent 2c3d68e commit cf6f06d
Showing 1 changed file with 46 additions and 19 deletions.
65 changes: 46 additions & 19 deletions sourcetvmanager.games.txt
Original file line number Diff line number Diff line change
Expand Up @@ -756,35 +756,42 @@

"Offsets"
{
// String: "NetMsg"
"CNetChan::SendNetMsg"
{
"windows" "41"
"linux" "42"
}


// cvar sv_maxrate->ClampClientRate->CBaseClient::SetRate (located below)
// CBaseClient::SetRate
"CBaseClient::m_NetChannel"
{
"windows" "224"
"linux" "228"
"windows" "228"
"linux" "232"
}

"CGameClient::ClientPrintf"
{
"linux" "26"
}


// String: "%s unpaused the game\n"
// The string above is passed to this function
"CBaseServer::BroadcastPrintf"
{
"windows" "36"
"linux" "37"
}

// Siring: "Valve_Reject_Background_Map"
"CHLTVServer::ConnectClient"
{
"windows" "50"
"linux" "51"
}

// String: "RejectConnection: %s - %s"
"CHLTVServer::RejectConnection"
{
"windows" "48"
Expand All @@ -796,13 +803,15 @@
"windows" "54"
"linux" "55"
}


// String: "UpdatePlayers"
"CBaseClient::ActivatePlayer"
{
"windows" "15"
"linux" "61"
}


// String: "server_pre_shutdown"
"CBaseClient::FireGameEvent"
{
"windows" "1"
Expand All @@ -814,29 +823,43 @@
"linux" "15"
}

// String: "Server shutting down"
"CHLTVServer::Shutdown"
{
"windows" "42"
"linux" "43"
}

// Library - server.dll
// String: "hltv_fixed"
// we will find the function - CHLTVDirector::StartFixedCameraShot,
// required offset inside
"CHLTVDirector::m_iPVSEntity"
{
"windows" "16"
"linux" "16"
"windows" "32"
"linux" "32"
}


// Library - server.dll
// String: "hltv_fixed"
// we will find the function - CHLTVDirector::StartFixedCameraShot,
// required offset inside
"CHLTVDirector::m_vPVSOrigin"
{
"windows" "20"
"linux" "20"
"windows" "36"
"linux" "36"
}

// Library - server.dll
// String: "Please wait for broadcast to start ...",
// we will find the function - CHLTVDirector::StartDelayMessage,
// required offset inside
"CHLTVDirector::m_nNextShotTick"
{
"windows" "40"
"linux" "40"
"windows" "56"
"linux" "56"
}

"CHLTVDemoRecorder_BaseOffset"
{
"windows" "0"
Expand All @@ -850,6 +873,7 @@
"library" "engine"
"linux" "@host_client"
// ping(CCommand const&) "Client ping times:\n"
// 55 8B EC 51 83 3D ? ? ? ? 01 75 ?
"windows" "\x55\x8B\xEC\x51\x83\x3D\x2A\x2A\x2A\x2A\x01\x75\x2A"
}

Expand All @@ -858,23 +882,26 @@
"library" "engine"
"linux" "@_ZN11CHLTVServer19BroadcastEventLocalEP10IGameEventb"
// "SourceTV broadcast local event: %s\n"
"windows" "\x55\x8B\xEC\x81\xEC\x58\x04\x00\x00\xA1\x2A\x2A\x2A\x2A\x33\xC5\x89\x45\xFC\x53\x56"
// 55 8B EC 81 EC A4 04 00 00 A1 ? ? ? ? 33 C5 89 45 FC D9 EE
"windows" "\x55\x8B\xEC\x81\xEC\xA4\x04\x00\x00\xA1\x2A\x2A\x2A\x2A\x33\xC5\x89\x45\xFC\xD9\xEE"
}

"CHLTVServer::BroadcastLocalChat"
{
"library" "engine"
"linux" "@_ZN11CHLTVServer18BroadcastLocalChatEPKcS1_"
// "hltv_chat"
"windows" "\x55\x8B\xEC\x81\xEC\x60\x04\x00\x00\xA1\x2A\x2A\x2A\x2A\x33\xC5\x89\x45\xFC\x8B\x45\x0C\x53\x8B\x5D\x08\x56\x57\x8B\xF1"
// "hltv_chat", "CHLTVServer: failed to serialize chat '%s'.\n"
// 55 8B EC 81 EC A8 04 00 00 A1 ? ? ? ? 33 C5 89 45 FC 8B 45 0C
"windows" "\x55\x8B\xEC\x81\xEC\xA8\x04\x00\x00\xA1\x2A\x2A\x2A\x2A\x33\xC5\x89\x45\xFC\x8B\x45\x0C"
}

"CHLTVServer::Shutdown"
{
"library" "engine"
"linux" "@_ZN11CHLTVServer8ShutdownEv"
"library" "engine"
"linux" "@_ZN11CHLTVServer8ShutdownEv"
// "SourceTV stop."
"windows" "\x56\x8B\xF1\x8B\x86\x2A\x2A\x2A\x2A\x8B\x50\x2A\x8D\x8E\x2A\x2A\x2A\x2A\xFF\xD2\x8B\x86\x2A\x2A\x2A\x2A\x8B\x50\x2A\x8D\x8E"
// 56 8B F1 8B 86 ? ? ? ? 8B 50 ? 8D 8E ? ? ? ? FF D2 8B 86 ? ? ? ? 8B 50 ? 8D 8E
"windows" "\x56\x8B\xF1\x8B\x86\x2A\x2A\x2A\x2A\x8B\x50\x2A\x8D\x8E\x2A\x2A\x2A\x2A\xFF\xD2\x8B\x86\x2A\x2A\x2A\x2A\x8B\x50\x2A\x8D\x8E"
}

// StartRecording and StopRecording are virtual, but get called directly in the linux binary..
Expand Down

0 comments on commit cf6f06d

Please sign in to comment.