Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit e00bc62

Browse filesBrowse files
authored
fix bohp
1 parent e00f721 commit e00bc62
Copy full SHA for e00bc62

File tree

Expand file treeCollapse file tree

1 file changed

+8
-3
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+8
-3
lines changed

‎SingleFile/sf.c

Copy file name to clipboardExpand all lines: SingleFile/sf.c
+8-3Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,8 @@ VOID Menu_Checkbox(LPCWSTR Name, PBOOLEAN Byte) {
9696
ActiveY += 0xF;
9797
}
9898
VOID Features_Bhop(struct CUserCmd* Command) {
99-
if (!Config.bBunnyHop)
100-
return;
101-
PBYTE LocalPlayer = EntityList_GetEntity(1);
99+
if (!Config.bBunnyHop) return;
100+
PBYTE LocalPlayer = EntityList_GetEntity(Engine_GetLocalPlayer());
102101
if (CBaseEntity_Health(LocalPlayer) < 1)
103102
return;
104103
INT nMoveType = CBaseEntity_MoveType(LocalPlayer);
@@ -107,6 +106,12 @@ VOID Features_Bhop(struct CUserCmd* Command) {
107106
if (!(CBaseEntity_MoveFlags(LocalPlayer) & 0x1))
108107
Command->Buttons &= ~0x2;
109108
}
109+
VOID Features_AutoStrafe(struct CUserCmd* Command) {
110+
if (!Config.bBunnyHop) return;
111+
PBYTE LocalPlayer = EntityList_GetEntity(Engine_GetLocalPlayer());
112+
if (CBaseEntity_Health(LocalPlayer) < 1)
113+
return;
114+
}
110115
VOID(__fastcall* PaintTraverseOriginal)(LPVOID, PVOID, DWORD, BOOLEAN, BOOLEAN);
111116
BOOLEAN(WINAPI* CreateMoveOriginal)(FLOAT, struct CUserCmd*);
112117
BOOLEAN WINAPI _CreateMove(FLOAT flInputTime, struct CUserCmd* Command ) {

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.