Skip to content

Commit 8966334

Browse files
committed
boomer修复
1 parent 8ec97fd commit 8966334

4 files changed

Lines changed: 84 additions & 0 deletions

File tree

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
"Games"
2+
{
3+
"left4dead2"
4+
{
5+
"Addresses"
6+
{
7+
"patch1"
8+
{
9+
"linux"
10+
{
11+
"signature" "vomit_fix"
12+
"offset" "1534"
13+
}
14+
"windows"
15+
{
16+
"signature" "vomit_fix"
17+
"offset" "886"
18+
}
19+
}
20+
"patch2"
21+
{
22+
"windows"
23+
{
24+
"signature" "vomit_fix"
25+
"offset" "1347"
26+
}
27+
}
28+
"frametime"
29+
{
30+
"linux"
31+
{
32+
"signature" "vomit_fix"
33+
"offset" "-20"
34+
}
35+
"windows"
36+
{
37+
"signature" "vomit_fix"
38+
"offset" "-20"
39+
}
40+
}
41+
}
42+
"Signatures"
43+
{
44+
"vomit_fix"
45+
{
46+
"library" "server"
47+
"linux" "@_ZN6CVomit13UpdateAbilityEv"
48+
"windows" "*******************\x53\x56\x57\x8b\xf9\x8b\x87\x38\x04\x00\x00"
49+
}
50+
// "vomit_fix"
51+
// {
52+
// "library" "server"
53+
// "linux" "\xA1****\xF3\x0F\x10\x40\x10\xF3\x0F\x59"
54+
// "windows" "\xA1****\x89**x89**\xF3\x0F\x10\x40\x10"
55+
// }
56+
}
57+
}
58+
}
3.06 KB
Binary file not shown.
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
#include <sourcemod>
2+
3+
public Plugin myinfo = {
4+
name = "[L4D2] vomit fix",
5+
author = "lakwsh",
6+
version = "1.1.1"
7+
};
8+
9+
public void Patch(Address func, Address time) {
10+
StoreToAddress(time + view_as<Address>(16), 0x3d088889, NumberType_Int32);
11+
StoreToAddress(func, 0xB8, NumberType_Int8);
12+
StoreToAddress(func + view_as<Address>(1), time, NumberType_Int32);
13+
}
14+
15+
public void OnPluginStart() {
16+
GameData hGameData = new GameData("l4d2_vomit_fix");
17+
if(!hGameData) SetFailState("Failed to load 'l4d2_vomit_fix.txt' gamedata.");
18+
Address patch1 = hGameData.GetAddress("patch1");
19+
Address patch2 = hGameData.GetAddress("patch2");
20+
Address time = hGameData.GetAddress("frametime");
21+
CloseHandle(hGameData);
22+
if(!patch1) SetFailState("'vomit_fix' Signature broken.");
23+
Patch(patch1, time);
24+
if(patch2) Patch(patch2, time);
25+
}

‎cfg/generalfixes.cfg‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,3 +84,4 @@ sm plugins load fixes/l4d_prop_touching_rules.smx
8484
sm plugins load anticheat/l4d2_noghostcheat.smx
8585

8686
sm plugins load fixes/l4d2_a2s_fix.smx
87+
sm plugins load fixes/l4d2_vomit_fix.smx

0 commit comments

Comments
 (0)