File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed
Filter options
Expand file tree Collapse file tree 1 file changed +8
-3
lines changed
Original file line number Diff line number Diff line change @@ -96,9 +96,8 @@ VOID Menu_Checkbox(LPCWSTR Name, PBOOLEAN Byte) {
96
96
ActiveY += 0xF ;
97
97
}
98
98
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 ());
102
101
if (CBaseEntity_Health (LocalPlayer ) < 1 )
103
102
return ;
104
103
INT nMoveType = CBaseEntity_MoveType (LocalPlayer );
@@ -107,6 +106,12 @@ VOID Features_Bhop(struct CUserCmd* Command) {
107
106
if (!(CBaseEntity_MoveFlags (LocalPlayer ) & 0x1 ))
108
107
Command -> Buttons &= ~0x2 ;
109
108
}
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
+ }
110
115
VOID (__fastcall * PaintTraverseOriginal )(LPVOID , PVOID , DWORD , BOOLEAN , BOOLEAN );
111
116
BOOLEAN (WINAPI * CreateMoveOriginal )(FLOAT , struct CUserCmd * );
112
117
BOOLEAN WINAPI _CreateMove (FLOAT flInputTime , struct CUserCmd * Command ) {
You can’t perform that action at this time.
0 commit comments