Skip to content

Conversation

@ef3d0c3e
Copy link

@ef3d0c3e ef3d0c3e commented Dec 8, 2020

Added this meme feature for griefing


bool crouchBlock = false;
if (target->GetBonePosition(BONE_PELVIS).z < localplayer->GetAbsOrigin().z &&
Vector(localplayer->GetAbsOrigin() - target->GetAbsOrigin()).LengthSqr() < 1e5)
Copy link

@acuifex acuifex Dec 8, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you could do something like
localplayer->GetAbsOrigin().z - target->GetAbsOrigin().z >= entity->GetCollideable()->OBBMaxs().z
and add other checks that i'm on top then i THINK it would be working better.

edit: that is probably some incorrect code but i think you get the idea.

@ef3d0c3e
Copy link
Author

ef3d0c3e commented Dec 8, 2020

I uptated the detection with your idea

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants