ekknod / EC

open-source cheat [CS:GO/CS2/Apex]
350 stars 161 forks source link

make RCS work again when using aimbot again #4

Closed koassount closed 1 year ago

koassount commented 1 year ago

no clue why this was ever changed, maybe

if (m_aimbot_active) to make it rcs only activate when actually pressing the aimbot key?

kaisersoju commented 1 year ago

if (!m_aimbot_active) <-- this is needed so you don't run rcs twice (aimbot already includes rcs)

input::mouse_move(final_angle_x, final_angle_y) <-- this function used to direct mouse input by um/km versus source engine (commented out section was using a method that isn't recommended)

https://github.com/ekknod/EC/blob/main/csgo/shared/features.cpp#L134 Look at m_aimbot_active and you will see aim/trigger button will turn it on/off. So if your button is mouse1 then it will never enable rcs. That is one possible reason why it's not working. You can instead see if there is a target within fov instead to set m_aimbot_active if you prefer to keep mouse1.

ekknod commented 1 year ago

Yeah. @ksoju explained it just like it is. This m_aimbot_active could be configured to somewhere else in future, to indicate state of aimbot. Currently it has active flag always, when aimbot/triggerbot key is pressed.