[Tutorial][CSS] Radar spot edit!
on this post, i will give u some way to make u able to edit radar info of player.
first, see this thing Code:
the answer is, radar system of css. if someone is your team, u can see him on rader regardless of some other teammate is able to spot him or not. but, if u are not teammate, u cannot see someone is not in spottabl position from any of your teammate but, if any of teammates able to spot that enemy, all of your team will able to see him. that is why that infomation is only bool, not something like bitflags or... but all of these rules are accepted until u are alive. if u are dead, opserver setting of server will determind whom will be spoted in your radar. anyway, to set this, simply u can do this. Code:
public OnMapStart(){if u want to set this not all, per client, should do like this: Code:
public OnThinkPost(entity)##many guys talked on this thread and someguys uploaded nice research result. thanks for em and i am writing some of that results on top of the thread to let other guys easy to see it Quote:
|
Re: [Tutorial][CSS] Radar spot edit!
very nice
|
Re: [Tutorial][CSS] Radar spot edit!
That's nice to know.
I'm reversing it to not show anyone in radar to use in hide and seek:) Thank you! |
Re: [Tutorial][CSS] Radar spot edit!
Why not just disable the radar completely then ?
|
Re: [Tutorial][CSS] Radar spot edit!
It's not showing, when setting all to false, but how would you disable radar completely via plugin?
|
Re: [Tutorial][CSS] Radar spot edit!
Quote:
client should disable it in manually before game. so instead of forcing clients to set that cvar before game, editing serverside radar is more easy for player |
Re: [Tutorial][CSS] Radar spot edit!
and i were found this method to make some clients to show in radar, more than not show someone. so it was not so helpful to me radar disable of client side.
i were used this method to sensor of tactical gun mod can show spotted enemy on radar of sensor`s owner`s team |
Re: [Tutorial][CSS] Radar spot edit!
in example :
if someone is in cloak mod, he will never able to spotted in radar! |
Re: [Tutorial][CSS] Radar spot edit!
Just for information, since the orange box update it's possible in CS:S to hide the radar completely for players serverside:
PHP Code:
|
Re: [Tutorial][CSS] Radar spot edit!
Quote:
I can't get this to work :oops:, need this for a CS:S FFA server. |
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 ? |
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) { |
Re: [Tutorial][CSS] Radar spot edit!
Quote:
from it will maybe resetted on respawn. |
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 |
Re: [Tutorial][CSS] Radar spot edit!
Quote:
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) |
Re: [Tutorial][CSS] Radar spot edit!
Quote:
because the radar seems to get reset after spawning, here is working code to hide the radar with the hidehud property: PHP Code:
|
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. |
Re: [Tutorial][CSS] Radar spot edit!
Try to block "UpdateRadar" usermessage
|
Re: [Tutorial][CSS] Radar spot edit!
Quote:
|
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? |
Re: [Tutorial][CSS] Radar spot edit!
Quote:
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 |
Re: [Tutorial][CSS] Radar spot edit!
Quote:
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? |
Re: [Tutorial][CSS] Radar spot edit!
You should hook player PreThink, otherwise you'll get many visual glitches on the radar.
|
Re: [Tutorial][CSS] Radar spot edit!
How hide the position of teammates?
Make a example for the gametype DM-FFA. |
Re: [Tutorial][CSS] Radar spot edit!
Quote:
Edit: Plugin Posted |
Re: [Tutorial][CSS] Radar spot edit!
The value 0 and 2 works fine, but the value 1 shows me still teammates.
|
Re: [Tutorial][CSS] Radar spot edit!
Ok, maybe I'll play around with it later to see if I can get it working.
|
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;)
|
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 |
Re: [Tutorial][CSS] Radar spot edit!
Nice find!
|
Re: [Tutorial][CSS] Radar spot edit!
Is it possible to make such all CT can see all T, but T can only see all T?
|
Re: [Tutorial][CSS] Radar spot edit!
Sure, since teammates are always on your radar, you only have to set m_bPlayerSpotted to 1 for all Ts.
|
Re: [Tutorial][CSS] Radar spot edit!
Quote:
PHP Code:
|
Re: [Tutorial][CSS] Radar spot edit!
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.
|
Re: [Tutorial][CSS] Radar spot edit!
Quote:
I have already tried to do something like that, and I got nothing. |
Re: [Tutorial][CSS] Radar spot edit!
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.
|
Re: [Tutorial][CSS] Radar spot edit!
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 :(
|
Re: [Tutorial][CSS] Radar spot edit!
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 |
Re: [Tutorial][CSS] Radar spot edit!
Did this die?
|
Re: [Tutorial][CSS] Radar spot edit!
:3
Very easy and maybe useful to someone. PHP Code:
- 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 |
| All times are GMT -4. The time now is 18:19. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.