Raised This Month: $51 Target: $400
 12% 

[CSGO] Disable scoreboard / set kills, assists & deaths to 0


Post New Thread Reply   
 
Thread Tools Display Modes
joses89480
Junior Member
Join Date: Feb 2023
Old 02-18-2023 , 07:14   Re: [CSGO] Disable scoreboard / set kills, assists & deaths to 0
Reply With Quote #11

Quote:
Originally Posted by Bacardi View Post
I post simple version now.
- It reset kills, assists, deaths, mvps, scores to 0
- Reset happen on player_spawn, player_death, round_end, hostage_follows, bomb_planted events.

This works on both OS, Windows and Linux. Until CSGO update breaks again.


About other player "stats", it takes some time to look those address offset.
Some stats are saved on each round (in array) to get average result, I just need look those... pointers.

Lets see those later.
Thank you so much mate, you are a legend!! Works perfectly!

For some reason if I click on advanced stats I just shoot although I pressed right mouse before so I can't access advanced stats. Not sure if this is caused by your script but it is a great side effect, exactly what I was looking for.

Thanks again, you were a huge help!
joses89480 is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 02-18-2023 , 12:47   Re: [CSGO] Disable scoreboard / set kills, assists & deaths to 0
Reply With Quote #12

Quote:
Originally Posted by joses89480 View Post
Thank you so much mate, you are a legend!! Works perfectly!

For some reason if I click on advanced stats I just shoot although I pressed right mouse before so I can't access advanced stats. Not sure if this is caused by your script but it is a great side effect, exactly what I was looking for.

Thanks again, you were a huge help!
Which OS is your server running?
__________________
Do not Private Message @me
Bacardi is offline
joses89480
Junior Member
Join Date: Feb 2023
Old 02-19-2023 , 09:43   Re: [CSGO] Disable scoreboard / set kills, assists & deaths to 0
Reply With Quote #13

Quote:
Originally Posted by Bacardi View Post
Which OS is your server running?
Windows 11
joses89480 is offline
databomb
Veteran Member
Join Date: Jun 2009
Location: california
Old 02-19-2023 , 14:09   Re: [CSGO] Disable scoreboard / set kills, assists & deaths to 0
Reply With Quote #14

Quote:
Originally Posted by Bacardi View Post
I post simple version now.
- It reset kills, assists, deaths, mvps, scores to 0
- Reset happen on player_spawn, player_death, round_end, hostage_follows, bomb_planted events.

This works on both OS, Windows and Linux. Until CSGO update breaks again.


About other player "stats", it takes some time to look those address offset.
Some stats are saved on each round (in array) to get average result, I just need look those... pointers.

Lets see those later.
Yeah, it's probably more likely that these offsets from the client entity will break with future CS:GO updates. But the functions like ResetAssistsCount are so small that if you mask out the offsets from the client entity then it won't find a unique signature and it ends up being the same situation. CBasePlayer::ResetScores might offer the best bet at future-proofing it from updates but I couldn't get a unique signature on that one. Any idea why the SetEnt* approach didn't work for joses? That approach would be best in the long run.
__________________
databomb is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 02-19-2023 , 15:45   Re: [CSGO] Disable scoreboard / set kills, assists & deaths to 0
Reply With Quote #15

Quote:
Originally Posted by databomb View Post
Yeah, it's probably more likely that these offsets from the client entity will break with future CS:GO updates. But the functions like ResetAssistsCount are so small that if you mask out the offsets from the client entity then it won't find a unique signature and it ends up being the same situation. CBasePlayer::ResetScores might offer the best bet at future-proofing it from updates but I couldn't get a unique signature on that one. Any idea why the SetEnt* approach didn't work for joses? That approach would be best in the long run.
I don't know much c++ coding but reading "old" leaked source codes,
- player class have private variables, you can change those using right class functions. ::ResetScores is good option if you can find sign.
- Now I went too hard way, changing values from memory address... It's not good but work.

- Again, entity cs_player_manager hold player stats, m_iKills, m_iAssists, m_iDeaths, m_iMVPs, m_iScore, you can try change values but it get updated back, what I tried.
So you could fake score value using PreThink() callback. (But I don't like spammy codes).
There is also m_iMatchStats_* variables, I have not tested, can you change those normally. I gonna try.

My guess, cs_player_manager give player status "globally" to all players in server (update scoreboard etc.) ?

*edit
Do I remember wrong...in CS:S you can change values from cs_player_manager ? Maybe this is legacy entity in cs:go
seems cstrike works same way as csgo.

*edit
Here is "offset" of that CBasePlayer::ResetScores(void)
- It only zero kills, assists, deaths. And maybe else.
PHP Code:
    // void    ResetScores( void )
//Windows Signature for ResetScores_sub_10210D80:
//C7 81 B4 0F 00 00 00 00 00 00

// Linux ResetScores_sub_6158E0
//55 89 E5 53 83 EC 10 8B 5D ? 53 E8 D0 D1 1A 00 89 1C 24 E8 F8 D1 1A 00

    
StartPrepSDKCall(SDKCall_Player);
    
//PrepSDKCall_SetVirtual(498); //win
    
PrepSDKCall_SetVirtual(499); //linux
    
Handle reset EndPrepSDKCall();
    
SDKCall(resetclient); 
__________________
Do not Private Message @me

Last edited by Bacardi; 02-19-2023 at 18:03.
Bacardi is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 02-21-2023 , 16:30   Re: [CSGO] Disable scoreboard / set kills, assists & deaths to 0
Reply With Quote #16

Sry double post. I assume I found those rest "stats" what you see in scoreboard behind stats cyle. HS%, averg. dmg, utilitydmg, flashed enemies,
I have looked Windows offsets now only, need next to look Linux.

Also code is mess, I need figure how I can make it usefull and more readable.

So it takes some time, again.
__________________
Do not Private Message @me
Bacardi is offline
wsky
Junior Member
Join Date: Dec 2020
Old 03-01-2023 , 19:29   Re: [CSGO] Disable scoreboard / set kills, assists & deaths to 0
Reply With Quote #17

Unless I'm missing something you can just do this
PHP Code:
SetEntProp(GetPlayerResourceEntity(),Prop_Send,"m_iMatchStats_Kills_Total",num,4,client
edit: doesn't seem to work for kills, but works for things like m_iMatchStats_UtilityDamage_Total and m_iMatchStats_EnemiesFlashed_Total
also seems to change back to its original value once the game updates it (e.g. on round end)

Last edited by wsky; 03-01-2023 at 19:36.
wsky is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 03-01-2023 , 23:09   Re: [CSGO] Disable scoreboard / set kills, assists & deaths to 0
Reply With Quote #18

exactly.

I have look other stats from Linux side, need look also Windows... I try figure how average damage per round works.
And I try learn also read asembly code.

I post results some day
Bacardi is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 22:45.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode