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)

javalia 12-09-2010 01:34

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

Originally Posted by MoshMage (Post 1366351)
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?

well, i am not thinking to make some other plugins that using this code,
but if u ask about some conclusion, i will show u my tacticalgunmod,
when sensor detects other enemy in the map, it will let u see them in minimap,
and if enemy is cloacked and is not detected by sensor, they will not even exist in minimap. this is what i made for my plugin. so, i believe other guys can use this way, and it is perfectly working

Peace-Maker 12-09-2010 19:47

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

Originally Posted by javalia (Post 1350831)
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)

Using this method and setting the bPlayerSpotted offsets all to 0 still shows all players on radar. I also noticed a difference in hiding bots and real players.

I already tried blocking the UpdateRadar message, but i'm unable to do it in sourcepawn itself. The message get's through anyways. Maybe one need some kind of extension?

Seta00 12-31-2010 10:53

Re: [Tutorial][CSS] Radar spot edit!
 
You should hook player PreThink, otherwise you'll get many visual glitches on the radar.

Wiskyjim 05-15-2011 19:32

Re: [Tutorial][CSS] Radar spot edit!
 
How hide the position of teammates?
Make a example for the gametype DM-FFA.

GoD-Tony 05-16-2011 07:58

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

Originally Posted by Wiskyjim (Post 1470183)
How hide the position of teammates?
Make a example for the gametype DM-FFA.

You can try this plugin I made when testing this a while ago. If it works then I'll post it in the plugin section. Requires SDKHooks.

Edit: Plugin Posted

Wiskyjim 05-16-2011 17:03

Re: [Tutorial][CSS] Radar spot edit!
 
The value 0 and 2 works fine, but the value 1 shows me still teammates.

GoD-Tony 05-16-2011 17:27

Re: [Tutorial][CSS] Radar spot edit!
 
Ok, maybe I'll play around with it later to see if I can get it working.

Peace-Maker 05-16-2011 17:48

Re: [Tutorial][CSS] Radar spot edit!
 
You can't hide teammates from the radar using the m_bPlayerSpotted property. Since they are in the same team as you, they're shown anyway. You may try to set everyones m_iTeam to 1 or similar in PostThink. Don't know if that will change anything though;)

GoD-Tony 05-18-2011 08:36

Re: [Tutorial][CSS] Radar spot edit!
 
I noticed that the radar is hidden while a player is flashed and he can still change his weapons. I also noticed that the client's m_iHideHUD property isn't changed whether he is flashed or not, so it must be something else triggering it.

To hide radar: Simulate a long flashbang with 0 alpha (no whitescreen).

Example: http://forums.alliedmods.net/showthread.php?p=1471473

Peace-Maker 05-18-2011 12:41

Re: [Tutorial][CSS] Radar spot edit!
 
Nice find!


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

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