Raised This Month: $ Target: $400
 0% 

[Tutorial][CSS] Radar spot edit!


Post New Thread Reply   
 
Thread Tools Display Modes
klausenbusk
AlliedModders Donor
Join Date: Jan 2011
Old 07-03-2011 , 09:34   Re: [Tutorial][CSS] Radar spot edit!
Reply With Quote #31

Is it possible to make such all CT can see all T, but T can only see all T?

Last edited by klausenbusk; 07-03-2011 at 09:43.
klausenbusk is offline
Peace-Maker
SourceMod Plugin Approver
Join Date: Aug 2008
Location: Germany
Old 07-03-2011 , 13:09   Re: [Tutorial][CSS] Radar spot edit!
Reply With Quote #32

Sure, since teammates are always on your radar, you only have to set m_bPlayerSpotted to 1 for all Ts.
__________________
Peace-Maker is offline
ojmdk476oj
AlliedModders Donor
Join Date: Dec 2009
Old 07-22-2011 , 06:56   Re: [Tutorial][CSS] Radar spot edit!
Reply With Quote #33

Quote:
Originally Posted by berni View Post
Just for information, since the orange box update it's possible in CS:S to hide the radar completely for players serverside:

PHP Code:
/**
* Sets the Hud flags of a client
*
* @param client        Client index.
* @param flags            Flag to set, use one of the HIDEHUD_ hiding constants
* @noreturn
*/
stock Client_SetHud(clientflags) {
    
    
SetEntProp(clientProp_Send"m_iHideHUD"flags);
}

public 
OnClientPutInServer(client) {

    
Client_SetHud(client, ( 1<<));

This should be executed every spawn, because if the player spawns after it has been set on him the radar will show up again, and.. When this is on you can't change weapon, don't know why.. But i used this code to test it.

PHP Code:
#include <sourcemod>
#pragma semicolon 1

public OnPluginStart()
{
    
RegConsoleCmd("sm_hideradar"hide"Will hide the clients radar");
}

public 
Action:hide(clientargs)
{
    
Client_SetHud(client, ( 1<<));
}

stock Client_SetHud(clientflags)
{
    
SetEntProp(clientProp_Send"m_iHideHUD"flags);

ojmdk476oj is offline
zeroibis
Veteran Member
Join Date: Jun 2007
Old 07-27-2011 , 01:36   Re: [Tutorial][CSS] Radar spot edit!
Reply With Quote #34

Does anyone know of a way to change the way a player is displayed to other players on the radar? For example lets say I want to have a given ct player show up as a gold star or something to the rest of his team only.
__________________
zeroibis is offline
Bimbo1
Senior Member
Join Date: Jan 2010
Location: brazil
Old 08-14-2011 , 00:06   Re: [Tutorial][CSS] Radar spot edit!
Reply With Quote #35

Quote:
Originally Posted by zeroibis View Post
Does anyone know of a way to change the way a player is displayed to other players on the radar? For example lets say I want to have a given ct player show up as a gold star or something to the rest of his team only.
No, i dont think so.
I have already tried to do something like that, and I got nothing.
Bimbo1 is offline
morion
Junior Member
Join Date: Apr 2010
Old 08-24-2011 , 13:09   Re: [Tutorial][CSS] Radar spot edit!
Reply With Quote #36

Is there a way to change the default radar icon for a dropped bomb. I tried just changing it server site. I believe it is located at "orangebox/cstrike/materials/sprites/bomb_dropped.vtf" but nothing happened. Or has this to be changed client side as well.
morion is offline
zeroibis
Veteran Member
Join Date: Jun 2007
Old 08-24-2011 , 17:21   Re: [Tutorial][CSS] Radar spot edit!
Reply With Quote #37

Read above it appears that none of us have found a way to edit the images themselves just if you can see them. I would bet that it is a client side file and we can not do anything to it
__________________
zeroibis is offline
Experto
Member
Join Date: Jan 2008
Location: Brasil
Old 09-29-2011 , 22:42   Re: [Tutorial][CSS] Radar spot edit!
Reply With Quote #38

How do I get anyone as a spectator or dead, do not see the radar?

I tried using the code posted by Berni,
however, when a person dies or is a spectator
the radar remains
__________________
My Plugins:
-IP Block: This plugin block the entry in the server of players with same IP. Too is possible to config exceptions for some IPs
-Auto Swap Team: This plugin does the automatic swap of teams according to the options selected
-Welcome Sound: Plays sound of welcome for the players
Experto is offline
Mitchell
~lick~
Join Date: Mar 2010
Old 03-14-2012 , 13:19   Re: [Tutorial][CSS] Radar spot edit!
Reply With Quote #39

Did this die?
Mitchell is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 03-14-2012 , 15:12   Re: [Tutorial][CSS] Radar spot edit!
Reply With Quote #40


Very easy and maybe useful to someone.

PHP Code:
new Handle:mp_forcecamera INVALID_HANDLE;
public 
OnPluginStart()
{
    if((
mp_forcecamera FindConVar("mp_forcecamera")) == INVALID_HANDLE)
    {
        
SetFailState("Convar mp_forcecamera not found");
    }
}

public 
OnClientPutInServer(client)
{
    if(!
IsFakeClient(client))
    {
        
SendConVarValue(clientmp_forcecamera"1");
    }

What this do ?
- Set to players convar mp_forcecamera to 1 when joined server, even server mp_forcecamera is 0.
- This however not prevent players to spectate other team like in real mp_forcecamera 1 mode.
- Radar still work like mp_forcecamera 1 mode, dead players see only teammates in radar, enemies hidden.
*edit
when ever change server mp_forcecamera value, also players cvar change, disabling this trick. Player need re-connect.

*edit
mp_forcecamera "2" hide both teams on radar when dead

Last edited by Bacardi; 04-29-2012 at 10:20.
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 23:12.


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