Raised This Month: $ Target: $400
 0% 

[Solved] UpdateRadar usermessage structure reading/writing


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Peace-Maker
SourceMod Plugin Approver
Join Date: Aug 2008
Location: Germany
Old 12-05-2011 , 13:49   Re: [Solved] UpdateRadar usermessage structure reading/writing
Reply With Quote #11

Quote:
Originally Posted by GoD-Tony View Post
That's because the radar is done half server-side, half client-side. A few conditions apply:

- If a player comes within transmitting distance of the client, then the client will manage the radar point for that player and ignore what the server tells it.
- The client will only show a point on the radar for a player that is InGame (and alive?).
- The client will only show one point per client index, and never one for itself.
- Sending a second radar point for the same client index will overwrite the previous one.

In theory you could create your own points by spawning a FakeClient far away and sending your own radar data. You would also have to set CCSPlayerResource::m_bPlayerSpotted to true for that index.
That's an interesting idea. I'll mess around with that. You'd need to manage the round end conditions either, since those bots would never die. And you would need to skip them as spectator and hide them from the scoreboard, so you don't see random bots floating around midair. Sounds all possible
__________________
Peace-Maker is offline
 



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 19:26.


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