-
-
Notifications
You must be signed in to change notification settings - Fork 101
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Autowall returning wrong damage #13
Comments
seems like u using old commit? |
Ok will try that one thanks for the help and the sdk Edit: nvm just compared my autowall.cpp and autowall.h and its the same version |
Ok i just noticed my VectorAngles function might be outdated so im gonna update that then ill report back Edit: yep it was the VectorAngles function, closing the issue and thanks for the attention |
its should be ok with hkp2000 |
Tried on dust2 and mirage, same result, the funny thing is that up until a point it works fine like it goes down as you aim into a corner but after aiming at a spot that you cant shoot through at all it spikes back up to 33 instead of zeroing out |
hm, i will test this today |
Yeah i think triggerbot works fine because the enemy is always visible so maybe you never noticed it, anyway if you manage to find it and fix it i would greatly appreciate it since im absolutely clueless when it comes to autowall |
shown it visually and recorded video for you code what i've used for that QAngle angView;
I::Engine->GetViewAngles(angView);
Vector vecStart, vecEnd, vecForward;
M::AngleVectors(angView, &vecForward);
vecStart = pLocal->GetEyePosition();
vecForward *= MAX_DISTANCE;
vecEnd = vecStart + vecForward;
float flDamage = CAutoWall::Get().GetDamage(pLocal, vecEnd);
pDrawList->AddRectFilled(ImVec2(vecScreenSize.x * 0.5f - 2, vecScreenSize.y * 0.5f - 2), ImVec2(vecScreenSize.x * 0.5f + 2, vecScreenSize.y * 0.5f + 2), (flDamage > 1.0f) ? Color(0, 255, 0).GetU32() : Color(255, 0, 0).GetU32());
pDrawList->AddText(ImVec2(vecScreenSize.x * 0.5f, vecScreenSize.y * 0.5f + 10), Color(255, 255, 255).GetU32(), std::to_string(flDamage).c_str()); |
So i am in the process of making a very simplified ragebot for matchmaking but when i used the GetDamage function from the autowall it returns a completely wrong number
`float CRageBot::GetBestHitboxPos(CBaseEntity* pLocal, CBaseEntity* Target,Vector& Hitbox) {
float flHigherDamage = 0.f;
}`
The damage it returns, btw at the time of the picture i was only using head hitbox instead of a hitbox loop
The text was updated successfully, but these errors were encountered: