Raised This Month: $ Target: $400
 0% 

[ANY] Poof


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
blackalegator
Member
Join Date: Jan 2010
Old 06-30-2011 , 16:49   Re: [L4D2] Poof
Reply With Quote #11

Quote:
Originally Posted by Silvers View Post
You SetTransmit hook on an entity, usually a prop_dynamic or something. The transmit callback is fired for that prop_dynamic entity (or in this case the client) and fires every frame for all clients. You can then decide who should see that entity by return Plugin_Continue or not allowed to see that entity with return Plugin_Handled.

Because the entity you hooked is a client, all you have to do is check the entity and client are the same and allow that person to see themselves (so they can move etc), while they are blocked to everyone else.
Oh! Nice one. Thank you so much. In fact it looks like a lot of my friends actually liked the plugin. (Of course not my nasty bit of code)
__________________
I am Russian so DONT look at my english
blackalegator is offline
Send a message via Skype™ to blackalegator
 



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 05:24.


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