Skip to content
This repository has been archived by the owner on Dec 26, 2021. It is now read-only.

Commit

Permalink
Fix Velocity Signature 😎 (#4478)
Browse files Browse the repository at this point in the history
  • Loading branch information
Intoprelised authored Aug 28, 2021
1 parent 86dbcbe commit 0718e27
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Memory/Hooks.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -951,10 +951,8 @@ void Hooks::Actor_lerpMotion(C_Entity* _this, vec3_t motVec) {
static auto noKnockbackmod = moduleMgr->getModule<Velocity>();
if (noKnockbackmod->isEnabled()) {
static void* networkSender = nullptr;

if (!networkSender) {
networkSender = reinterpret_cast<void*>(3 + FindSignature("FF 50 ? 41 80 BE ? ? ? ? ? 0F 85 ? ? ? ? EB 76"));
}
if (!networkSender)
networkSender = reinterpret_cast<void*>(9 + FindSignature("48 8B CB FF ?? ?? ?? ?? 00 C6 47 ?? 01 48 8B 5C 24"));

if (networkSender == _ReturnAddress()) {
motVec = _this->velocity.lerp(motVec, noKnockbackmod->xModifier, noKnockbackmod->yModifier, noKnockbackmod->xModifier);
Expand Down

0 comments on commit 0718e27

Please sign in to comment.