Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Update to latest game build #37

Closed
wants to merge 8 commits into from
Closed

Update to latest game build #37

wants to merge 8 commits into from

Conversation

ifBars
Copy link
Collaborator

@ifBars ifBars commented Oct 14, 2023

This update, changes a few things, to work with the latest game build, as you can see below

image

So what changed?

  • Armor is no longer used as it is spectator exclusive or something like that
  • Health is now read from pCSPlayerPawn on the m_iHealth offset
  • Last but not least, of course the offsets changed as well

Small change I made
I moved the flag_render_distance continue statement to the beginning of rendering, so that it will not draw anything at all until the player is in range. I did this as some people may be confused as to why only part of the info shows up for certain people. Overall I think this is better, however feel free to change it however you see fit!

DISCLAIMER
Since the recent update changes how armor and health work, putting out a new release exe that handles the new method would probably be a good idea, as I bet 75% or more of the people that use the ESP do not know how to compile source, lol

- Update offsets to latest game build (10/14/23 1:08 AM Mountain Time MDT)
Fix indent in one offset
- Update offsets to latest game build (10/14/23 1:08 AM Mountain Time MDT)
- Update offsets to latest game build (10/14/23 1:08 AM Mountain Time MDT)
- Update offsets to latest game build (10/14/23 1:08 AM Mountain Time MDT)
- Removed armor as it no longer works
- Changed reading health to new update method
- Removed armor
- Moved the flag_render_distance so that nothing will be drawn unless player is in range

Feel free to change this how you see fit
@IMXNOOBX
Copy link
Owner

I will be reviewing the changes soon. Thanks for you clean and amazing collaboration!

@ifBars
Copy link
Collaborator Author

ifBars commented Oct 14, 2023

I will be reviewing the changes soon. Thanks for you clean and amazing collaboration!

Cool! My pleasure!

@ifBars
Copy link
Collaborator Author

ifBars commented Oct 14, 2023

I will be reviewing the changes soon. Thanks for you clean and amazing collaboration!

One thing I just thought about, I didn't move the distance back to where the armor was, so there is a gap between hp and distance, pretty sure changing the 32 value to 22 in this code would make it fit where the armor was previously.

render::RenderText( g::hdcBuffer, screenHead.x + (width / 2 + 5), screenHead.y + 32, (std::to_string(roundedDistance) + "m away").c_str(), config::esp_distance_color, 10 );

- Updated distance text to be where armor used to be
@IMXNOOBX
Copy link
Owner

I will be reviewing the changes soon. Thanks for you clean and amazing collaboration!

One thing I just thought about, I didn't move the distance back to where the armor was, so there is a gap between hp and distance, pretty sure changing the 32 value to 22 in this code would make it fit where the armor was previously.

render::RenderText( g::hdcBuffer, screenHead.x + (width / 2 + 5), screenHead.y + 32, (std::to_string(roundedDistance) + "m away").c_str(), config::esp_distance_color, 10 );

Ye i noticed, i already fixed that in your pull request, thanks for your contribution!

@IMXNOOBX IMXNOOBX closed this Oct 14, 2023
@syafiq99121
Copy link

can u compile all of this, please

@ifBars
Copy link
Collaborator Author

ifBars commented Oct 15, 2023

can u compile all of this, please

It's awaiting upload on uc

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants