Raised This Month: $12 Target: $400
 3% 

How to hide player on CSS radar


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
joshtrav
Senior Member
Join Date: Sep 2009
Old 09-23-2018 , 23:31   How to hide player on CSS radar
Reply With Quote #1

It has been a long time...

I have searched quite a bit and found a few ways that don't seem to work in CSS. I just want to hide specific players for short durations on the radar. I am hooking settransmit and onpostthink for visibility and addonbits.

Anyone recall the best way?

I did read about flash duration and the m_bBombSpotted prop. Wasn't having any luck.
__________________

joshtrav is offline
eyal282
Veteran Member
Join Date: Aug 2011
Old 09-24-2018 , 19:15   Re: How to hide player on CSS radar
Reply With Quote #2

Quote:
Originally Posted by joshtrav View Post
It has been a long time...

I have searched quite a bit and found a few ways that don't seem to work in CSS. I just want to hide specific players for short durations on the radar. I am hooking settransmit and onpostthink for visibility and addonbits.

Anyone recall the best way?

I did read about flash duration and the m_bBombSpotted prop. Wasn't having any luck.
Let's break down the letters:

m_ - No clue, appears always.

b - boolian, translates to true or false, 1 or 0.
Bomb - BOMBBBBBBBBBBBB, C4, THE THING THAT EXPLODES
Spotted - Was it spotted by anybody?


Now look at the netprop I brought with sm_dump_netprops ( google the command if mine is wrong ) { You might need !rcon sm_dump_netprops and take the file from FTP }


m_bSpotted

It might need to be on prethink, post think or both. I don't know, that's your job to check.

When you finish, please send out the complete code for others to use in the future. ( If your code is private just post a simple new plugin demonstrating, so people like you next time will be able to find help )
__________________
I am available to make plugins for pay.

Discord: Eyal282#1334

Last edited by eyal282; 09-24-2018 at 19:17.
eyal282 is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 09-24-2018 , 22:33   Re: How to hide player on CSS radar
Reply With Quote #3

m_ is an old school Hungarian Notation thing that stands for "member" which just means the variable is a member of a class rather than a local or global variable.
__________________
Not currently working on SourceMod plugin development.
Powerlord is offline
joshtrav
Senior Member
Join Date: Sep 2009
Old 09-25-2018 , 22:25   Re: How to hide player on CSS radar
Reply With Quote #4

Code:
 Member: m_bBombSpotted (offset 2988) (type integer) (bits 1) (Unsigned)
 Table: m_bPlayerSpotted (offset 2989) (type m_bPlayerSpotted)
The above are the only spotted props that register in netprops. I use to use m_bSpotted but that now doesn't seem to be a valid prop.
__________________

joshtrav is offline
Neuro Toxin
Veteran Member
Join Date: Oct 2013
Location: { closing the void; }
Old 09-26-2018 , 04:56   Re: How to hide player on CSS radar
Reply With Quote #5

Quote:
Originally Posted by joshtrav View Post
Code:
 Member: m_bBombSpotted (offset 2988) (type integer) (bits 1) (Unsigned)
 Table: m_bPlayerSpotted (offset 2989) (type m_bPlayerSpotted)
The above are the only spotted props that register in netprops. I use to use m_bSpotted but that now doesn't seem to be a valid prop.
So try m_bPlayerSpotted.

If it doesnt work provide code and your error.
__________________
Neuro Toxin is offline
joshtrav
Senior Member
Join Date: Sep 2009
Old 09-27-2018 , 11:44   Re: How to hide player on CSS radar
Reply With Quote #6

I suspect it would, it just requires iterating through every player on every postthink tick. There use to be a much simpler method. I will let you know if it works.
__________________

joshtrav is offline
Reply


Thread Tools
Display Modes

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 03:27.


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