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

[CSGO] remove radar and teammate arrows for DM/FFA?


Post New Thread Reply   
 
Thread Tools Display Modes
PartialCloning
Senior Member
Join Date: Dec 2015
Old 02-21-2016 , 00:12   Re: [CSGO] remove radar and teammate arrows for DM/FFA?
Reply With Quote #11

Quote:
Originally Posted by h3bus View Post
Deathmatch plugins do that.
This is fairly easy to code as its own plugin using
PHP Code:
SetEntProp(clientIndexProp_Send"m_iHideHUD"HIDEHUD_RADAR); 
On a 0.0 second timer after OnClientSpawn.
What is the point of using a 0.0 second timer here? What does it do that just simply changing the m_iHideHUD in the function can't do?

Edit: Unless a 0.0 timer runs continuously? In that case is it possible to hide the radar through a different method?

Last edited by PartialCloning; 02-21-2016 at 00:16.
PartialCloning is offline
Neuro Toxin
Veteran Member
Join Date: Oct 2013
Location: { closing the void; }
Old 02-22-2016 , 02:49   Re: [CSGO] remove radar and teammate arrows for DM/FFA?
Reply With Quote #12

I figure the game updates the netprop after the call to spawn.

A 0 second timer means the netprop is updated on the next frame.
__________________
Neuro Toxin is offline
micapat
Veteran Member
Join Date: Feb 2010
Location: Nyuu, nyuu (France).
Old 02-22-2016 , 09:09   Re: [CSGO] remove radar and teammate arrows for DM/FFA?
Reply With Quote #13

What about "SDKHook_SpawnPost"?

I use it and I never had any issue.

PHP Code:
public void OnClientPutInServer(int iClient)
{
    
SDKHook(iClientSDKHook_SpawnPostCCSPlayer__SpawnPost);
}

public 
void CCSPlayer__SpawnPost(int iPlayer)
{
    if (
IsPlayerAlive(iPlayer) && (CS_TEAM_T <= GetClientTeam(iPlayer) <= CS_TEAM_CT))
    {
        
SetEntProp(iPlayerProp_Send"m_iHideHUD"GetEntProp(iPlayerProp_Send"m_iHideHUD") | (<< 12));
    }

__________________
micapat 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 16:06.


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