CS-Junkies Forums
Outdated - How to find GlobalVars for L4D2 - Printable Version

+- CS-Junkies Forums (https://www.cs-junkies.com/forums)
+-- Forum: Forums (https://www.cs-junkies.com/forums/Forum-Forums)
+--- Forum: Source Engine Tools (https://www.cs-junkies.com/forums/Forum-Source-Engine-Tools)
+--- Thread: Outdated - How to find GlobalVars for L4D2 (/Thread-Outdated-How-to-find-GlobalVars-for-L4D2)



How to find GlobalVars for L4D2 - redogg - 03-05-2021

Get IDA software in the following link https://www.hex-rays.com/products/ida/ free, Open IDA and import your client.dll thats located in Left 4 Dead 2\left4dead2\bin
When IDA fully loads the file, Press on search>text and find the following text below
var_C
Make sure to search it 3 times from the top

Your screen should look like this
[Image: lIEfijA.png]
As you see in the screenshot the red marker is the 3rd search from the top of "var_C", Allitle bit above that hides the actual offset of GlobalVars
The offset for now is 0x4730 as you see in the screenshot .text:10004730 turns to be 0x4730 offset


I attached the client.dll used in this tutorial, In case someone gets lost
Download: https://www.cs-junkies.com/forums/mydownloads.php?action=view_down&did=3


RE: How to find GlobalVars for L4D2 - pixelgm - 02-14-2022

Hi, where did you get this from? What's the logic behind it? Can you explain please?


RE: How to find GlobalVars for L4D2 - redogg - 02-20-2022

(02-14-2022, 02:43 AM)pixelgm Wrote: Hi, where did you get this from? What's the logic behind it? Can you explain please?

the logic is kinda complex, most people dont understand it. i dont even remember it my self for 100%, its just reversing stuff and compering with sdk if you familiar with ida software or ghidra
i actually posted here the simplest and fastest way to get it by remembering the place where globalvars is located
https://github.com/VSES/SourceEngine2007