Osiris icon indicating copy to clipboard operation
Osiris copied to clipboard

Multiplatform Aimbot::traceToExit() function (AutoWall for Linux)

Open mdilai opened this issue 2 years ago • 8 comments

Reversed traceToExit() function instead of relying on fancy ASM hack on Windows and... nothing at all on Linux. Unfortunately, i was not able to fully abandon usage of memory patterns, because isBreakableEntity() function is hard to reverse as it depend on dynamic casts while Osiris compiled without RTTI support. But if it can be called without workarounds, it's a better to search for it than for traceToExit() memory pattern. Expected to be multiplatform but tested on Linux only. I am not sure if __FASTCALL is a right calling convention at Osiris/Memory.h line 71. If will not work on Windows (or just work worse than ASM hack) it can be embraced into #ifdef's to make it linux-only.

mdilai avatar Oct 18 '21 20:10 mdilai

Added comments about "range" and "step" parameters used by me instead of hardcoding Valve constants. It's useful to be able to play with this parameters but they using Valve default constants by default.

mdilai avatar Oct 18 '21 20:10 mdilai

Great release! Time to make a decent auto-stop for this

mxez avatar Oct 19 '21 12:10 mxez

Great release! Time to make a decent auto-stop for this

@mxez Did you (or anybody) tested this on Windows? How it's going?

mdilai avatar Oct 23 '21 16:10 mdilai

no problem on windows

Nep-Timeline avatar Oct 24 '21 00:10 Nep-Timeline

@2933968621 Great news, so hope Daniel is just busy to accept this but does not silently think that my code is a shit :smile:

@mxez

Time to make a decent auto-stop for this

Btw, its have nothing related to autowall but anyway should be as simple as (pseudocode, don't paste thoughtlessly):

void Misc::autoStop(UserCmd* cmd) noexcept
if (cmd->buttons & UserCmd::IN_ATTACK) {
    cmd->forwardmove = 0.f;
    cmd->sidemove = 0.f;
}

Or enable your brain and paste this. Anyway, to make Osiris HVH-ready (at least against cheap cheats) you must ~~know~~ be able to learn basic C++ because Osiris AimBot is more legit than legit players lol. To be honest, it missed even standing legit players until #1040. If you are not too lazy you need to start with this, this and this theory and my outdated proof of concept.

mdilai avatar Oct 25 '21 22:10 mdilai

An easy way to code an autostop, is to save the velocity before engine prediction and use that velocity with the code from fast stop

notgoodusename avatar Oct 28 '21 02:10 notgoodusename

works great for semirage, only missing hitchance for autoshoot.

Metaphysical1 avatar Nov 11 '21 03:11 Metaphysical1

works great for semirage, only missing hitchance for autoshoot.

It will never be accepted but soon i will try to PR legit trigerbot hitchance (which is critically needed for current, almost always missed trigerbot) and you will be able to use your brain and enable it for aimbot too. Anyway, very outdated rewritten semi-rage aimbot (with hitchance, of course) are in my github.

mdilai avatar Nov 12 '21 21:11 mdilai