Raised This Month: $32 Target: $400
 8% 

[CSS/CS:GO] Disable Radar


Post New Thread Reply   
 
Thread Tools Display Modes
Include1
Member
Join Date: Feb 2016
Old 06-25-2016 , 03:57   Re: [CSS/CS:GO] Disable Radar
Reply With Quote #21

L 06/24/2016 - 1544: [SM] Exception reported: Entity 1 (1) is invalid
L 06/24/2016 - 1544: [SM] Blaming: DisableRadar.smx()
L 06/24/2016 - 1544: [SM] Call stack trace:
L 06/24/2016 - 1544: [SM] [0] GetEntProp
L 06/24/2016 - 1544: [SM] [1] Line 33, F:\sm-hosties-master\addons\sourcemod\scripting\DisableRada r.sp::RemoveRadar()
Include1 is offline
Whim
Junior Member
Join Date: Apr 2012
Old 09-11-2016 , 21:26   Re: [CSS/CS:GO] Disable Radar
Reply With Quote #22

Do you think you could add a cvar to enable/disable the plugin?

I only want this addon enabled for certain maps, and if it had a cvar I could easily automatic it.
Whim is offline
tabakhase
New Member
Join Date: Oct 2014
Old 10-24-2016 , 20:40   Re: [CSS/CS:GO] Disable Radar
Reply With Quote #23

Based on 1.2.1 from Bacardi a page back,
but now 1.2.2:
- added a cvar to enable/disable (sm_disableradar_enabled=1 - default enabled)
Note: you need to respawn for changed settings to take affect

Tested on CSGO 1.35.5.4, SM 1.8.0 win&linux.

Plugin source code
Attached Files
File Type: sp Get Plugin or Get Source (DisableRadar.sp - 1456 views - 2.1 KB)
tabakhase is offline
Chrahb
Senior Member
Join Date: Jan 2017
Location: Somewhere in Denmark!
Old 05-26-2017 , 18:37   Re: [CSS/CS:GO] Disable Radar
Reply With Quote #24

Quote:
Originally Posted by freddddd View Post
Would it be possible to allow players to personally toggle this on or off via a command?
Would be cool with an option like !radar, to toggle it on, and off as a player.
Also maybe fix so it uses latest syntax
__________________
Chrahb is offline
shanapu
Veteran Member
Join Date: Apr 2015
Location: .de
Old 05-26-2017 , 20:45   Re: [CSS/CS:GO] Disable Radar
Reply With Quote #25

Quote:
Originally Posted by freddddd View Post
Would it be possible to allow players to personally toggle this on or off via a command?
Quote:
Originally Posted by Chrahb View Post
Would be cool with an option like !radar, to toggle it on, and off as a player.
Also maybe fix so it uses latest syntax
I coded something time ago. csgo only

PHP Code:
#define HIDEHUD_RADAR 1 << 12
#define SHOWHUD_RADAR 1 >> 12

bool radar[MAXPLAYERS 1] = true;

public 
void OnPluginStart()
{
    
RegConsoleCmd("sm_radar"Command_radar"Allows player to toggle the radar.");
}

public 
Action Command_radar(int clientint args)
{
    if(
radar[client])
    {
        
SetEntProp(clientProp_Send"m_iHideHUD"HIDEHUD_RADAR);
        
radar[client] = false;
    }
    else
    {
        
SetEntProp(clientProp_Send"m_iHideHUD"SHOWHUD_RADAR);
        
radar[client] = true;
    }

Attached Files
File Type: sp Get Plugin or Get Source (radar.sp - 919 views - 1.6 KB)
__________________
coding & free software

Last edited by shanapu; 05-26-2017 at 20:45.
shanapu is offline
Chrahb
Senior Member
Join Date: Jan 2017
Location: Somewhere in Denmark!
Old 05-27-2017 , 19:05   Re: [CSS/CS:GO] Disable Radar
Reply With Quote #26

Uhh, thanks!
__________________
Chrahb is offline
wazer
Senior Member
Join Date: Oct 2011
Old 02-07-2018 , 18:45   Re: [CSS/CS:GO] Disable Radar
Reply With Quote #27

Quote:
Originally Posted by tabakhase View Post
Based on 1.2.1 from Bacardi a page back,
but now 1.2.2:
- added a cvar to enable/disable (sm_disableradar_enabled=1 - default enabled)
Note: you need to respawn for changed settings to take affect

Tested on CSGO 1.35.5.4, SM 1.8.0 win&linux.

Plugin source code
I really love your addon, however theres a bug in the plugin where it seems that the radar still is disabled for dead players while watching specific players playing.

Sitiuation would be.

5v5 pracc,

I would toggle the command for Deathmatch and this sm_disableradar_enabled=1

while waiting for the rest to join the server, the minute we start the prac/war match it will be disabled to sm_disableradar_enabled=0, but some players would still be affected by the radar being disabled while spectation others as dead, any solution for this
wazer is offline
eyal282
Veteran Member
Join Date: Aug 2011
Old 12-28-2019 , 15:51   Re: [CSS/CS:GO] Disable Radar
Reply With Quote #28

Someone asked me to disable radar for spectators so I found this plugin and added the checks:
Attached Files
File Type: sp Get Plugin or Get Source (DisableRadar.sp - 735 views - 1.7 KB)
__________________
I am available to make plugins for pay.

Discord: Eyal282#1334
eyal282 is offline
bhop_alex
Member
Join Date: May 2014
Location: United States
Old 01-16-2020 , 13:25   Re: [CSS/CS:GO] Disable Radar
Reply With Quote #29

Is it possible to hide the radar while still drawing player names when looking at them?

Last edited by bhop_alex; 01-16-2020 at 16:06.
bhop_alex is offline
Reply


Thread Tools
Display Modes

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 14:50.


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