AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Snippets and Tutorials (https://forums.alliedmods.net/forumdisplay.php?f=112)
-   -   [CSGO] How to hide player from radar (https://forums.alliedmods.net/showthread.php?t=300268)

komashchenko 08-11-2017 05:06

[CSGO] How to hide player from radar
 
PHP Code:

#pragma semicolon 1
#include <sdktools>

//In fact these are flags Spotted the player, to understand them laziness but by default 9, 0 - blocks player update on the radar
//I did not notice that the game changed the flags in the middle of the game, player can change commands but the value does not change, as i understand it is put only 1 time at the entrance
Address g_aCanBeSpotted view_as<Address>(892); //windows 868

public void OnPluginStart()
{
    
RegConsoleCmd("hide"hide); 
    
RegConsoleCmd("uhide"uhide); 
}

public 
Action hide(int iClientint args
{
    
//It is necessary that when we block update player on the radar, he did not remain constantly visible on it
    
SetEntProp(iClientProp_Send"m_bSpotted"false);
    
SetEntProp(iClientProp_Send"m_bSpottedByMask"040);
    
SetEntProp(iClientProp_Send"m_bSpottedByMask"041);
   
    
//set flags to 0
    
StoreToAddress(GetEntityAddress(iClient)+g_aCanBeSpotted0NumberType_Int32);
}

public 
Action uhide(int iClientint args
{
    
//Flags are set by default
    
StoreToAddress(GetEntityAddress(iClient)+g_aCanBeSpotted9NumberType_Int32);



Operability Demonstration (Look at radar)
http://steamcommunity.com/sharedfile...?id=1106572386
http://steamcommunity.com/sharedfile...?id=1106572440
http://steamcommunity.com/sharedfile...?id=1106572472

shavit 08-11-2017 16:25

Re: [CSGO] How to hide player from radar
 
Quote:

//windows 868
How did you get this offset? I can't understand how to in CS:GO. However, for CS:S I can just attach a debugger, see client.dll (unless this is the wrong offset..? You haven't documented too much, tbh)

https://the.shav.it/i/kterpyi.png

micapat 08-11-2017 16:35

Re: [CSGO] How to hide player from radar
 
Does it remove the '?' too (Example: http://files.gamebanana.com/bitpit/84106017.png)?

komashchenko 08-11-2017 16:57

Re: [CSGO] How to hide player from radar
 
Quote:

Originally Posted by micapat (Post 2540966)
Does it remove the '?' too (Example: http://files.gamebanana.com/bitpit/84106017.png)?

I've attached screenshots
http://steamcommunity.com/sharedfile...?id=1106572440
http://steamcommunity.com/sharedfile...?id=1106572472

komashchenko 08-11-2017 17:14

Re: [CSGO] How to hide player from radar
 
2 Attachment(s)
Quote:

Originally Posted by shavit (Post 2540963)
How did you get this offset? I can't understand how to in CS:GO. However, for CS:S I can just attach a debugger, see client.dll (unless this is the wrong offset..? You haven't documented too much, tbh)

https://the.shav.it/i/kterpyi.png

On Linux, look for CCSEntitySpotting :: UpdateSpottedEntities-> CBaseEntity :: CanBeSpotted (on the version in which there are symbols), and then find the current version
On Windows look for "round_announce_last_round_half", then there will be screenshots

CamerDisco 08-12-2017 08:28

Re: [CSGO] How to hide player from radar
 
Have you tried maybe do a function which will show enemy team on radar for one player?

Qes 01-25-2019 15:43

Re: [CSGO] How to hide player from radar
 
Hello
It's still works?
I test and this is not work on my server
Address g_aCanBeSpotted = view_as<Address>(892); //windows 868 -> address has not changed after update?

Linux

#EDIT
If you have the same problem what I, use this
Code:

                int offset = FindSendPropInfo("CBaseEntity", "m_bSpotted");
                if (offset <= 0)
                {
                                SetFailState("Can't get m_bSpotted offset");
                }
                g_aCanBeSpotted = view_as<Address>(offset - 4);



All times are GMT -4. The time now is 23:24.

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