AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Snippets and Tutorials (https://forums.alliedmods.net/forumdisplay.php?f=112)
-   -   [Tutorial][CSS] Radar spot edit! (https://forums.alliedmods.net/showthread.php?t=135788)

berni 11-16-2010 12:10

Re: [Tutorial][CSS] Radar spot edit!
 
are you asking for help ? or was this just an information.
I'm sorry, I don't really have the time and mood for random guessing.
more info maybe ?

FireAnt 11-16-2010 13:26

Re: [Tutorial][CSS] Radar spot edit!
 
I have compiled the code without errors and the plugin loads and show no errors in the logg. The server is running latest stable SM, MM and Balis CSS DM and SDK Hooks. I still se my teammates in the radar.

Code:

stock Client_SetHud(client, flags) {
   
    SetEntProp(client, Prop_Send, "m_iHideHUD", flags);
}

public OnClientPutInServer(client) {

    Client_SetHud(client, ( 1<<4 ));
}


javalia 11-16-2010 15:10

Re: [Tutorial][CSS] Radar spot edit!
 
Quote:

Originally Posted by FireAnt (Post 1350694)
I have compiled the code without errors and the plugin loads and show no errors in the logg. The server is running latest stable SM, MM and Balis CSS DM and SDK Hooks. I still se my teammates in the radar.

Code:

stock Client_SetHud(client, flags) {
   
    SetEntProp(client, Prop_Send, "m_iHideHUD", flags);
}

public OnClientPutInServer(client) {

    Client_SetHud(client, ( 1<<4 ));
}


i think u should do that on every respawn of user.
from it will maybe resetted on respawn.

Peace-Maker 11-16-2010 16:13

Re: [Tutorial][CSS] Radar spot edit!
 
2 Attachment(s)
I got the problem, that players weren't able to change weapons when hiding the radar that way. It's still also buggy to set the m_bPlayerSpotted props to 0 for all players on PreThink, PostThink. Players sometimes still appear for a short time. I've been messing around with it a lot while writing hide and seek. If someone finds a better solution, please share!

HIDEHUD_ constants

javalia 11-16-2010 16:31

Re: [Tutorial][CSS] Radar spot edit!
 
Quote:

Originally Posted by Peace-Maker (Post 1350818)
I got the problem, that players weren't able to change weapons when hiding the radar that way. It's still also buggy to set the m_bPlayerSpotted props to 0 for all players on PreThink, PostThink. Players sometimes still appear for a short time. I've been messing around with it a lot while writing hide and seek. If someone finds a better solution, please share!

HIDEHUD_ constants

as i said on top of thread, u should hook postthink of player manage entity like this on map start

public OnMapStart(){

new PMIndex = FindEntityByClassname(0, "cs_player_manager");
SDKHook(PMIndex, SDKHook_ThinkPost, OnThinkPost);

}

cuz css will send radar data after it`s think(not sure but in other kind of think hook, it was not work correctly)

berni 11-16-2010 18:13

Re: [Tutorial][CSS] Radar spot edit!
 
Quote:

Originally Posted by javalia (Post 1350759)
i think u should do that on every respawn of user.
from it will maybe resetted on respawn.

Ok, I've tested it out on my test server, you need to delay it a little bit,
because the radar seems to get reset after spawning, here is working code to hide the radar with the hidehud property:

PHP Code:

public OnPluginStart() {
    
HookEvent("player_spawn"Event_PlayerSpawn);
}

public 
Action:Event_PlayerSpawn(Handle:event,const String:name[],bool:dontBroadcast) {
    
    new 
client GetClientOfUserId(GetEventInt(event"userid"));
    
CreateTimer(0.1PlayerSpawn_Delayedclient);
    
    return 
Plugin_Continue;
}

public 
Action:PlayerSpawn_Delayed(Handle:timerany:client) {
    
    
Client_SetHud(client1<<4);
    
    return 
Plugin_Stop;


Credit me, when you use this ;)

Peace-Maker 12-01-2010 15:33

Re: [Tutorial][CSS] Radar spot edit!
 
Well, i am unable to change weapons when using your method berni.
It also hides health/kevlar and ammo showings.

KawMAN 12-06-2010 10:39

Re: [Tutorial][CSS] Radar spot edit!
 
Try to block "UpdateRadar" usermessage

javalia 12-08-2010 14:34

Re: [Tutorial][CSS] Radar spot edit!
 
Quote:

Originally Posted by KawMAN (Post 1364504)
Try to block "UpdateRadar" usermessage

your idea is good and i think it will work, althrough i didnt tested it.

MoshMage 12-08-2010 18:39

Re: [Tutorial][CSS] Radar spot edit!
 
anyway, would anyone make a "plugin" for those of us who aren't that familiar with coding and whatsoever? :)

or hasn't anyone come to any conclusion?

I read somewhere that BAIL set the radar to scramble IF cssdm and ffa = 1 on server start?


All times are GMT -4. The time now is 18:19.

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