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

Make m_bGlowEnabled only Client-Visual?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Amatowarrior
Junior Member
Join Date: May 2012
Old 07-24-2013 , 01:14   Make m_bGlowEnabled only Client-Visual?
Reply With Quote #1

Hey guys, I've been working on a mod for tf2 and I'm trying to make it so that the red team glows (like m_bGlowEnabled). That's great, I got it working, but the thing is that the people on red team can see it also. The mod is similar to VSH and is 1 against all, I want only that one person to see it. So I've been wondering if there's an alternative to m_bGlowEnabled, as on another server they were successfully able to make it so that only the boss on their VSH server can see the glow.

This is the basic code i'm using

PHP Code:
for( new 1<= MaxClientsj++ )
    {
        if( 
IsClientInGame(j) && IsPlayerAlive(j) && GetClientTeam(j) == 2//Red
        
{
            
SetEntProp(jProp_Send"m_bGlowEnabled"1);
        }
    } 
The question was also asked here, but never answered: http://forums.steampowered.com/forum....php?t=1711298
__________________


Amatowarrior is offline
Chaosxk
Veteran Member
Join Date: Aug 2010
Location: Westeros
Old 07-24-2013 , 01:38   Re: Make m_bGlowEnabled only Client-Visual?
Reply With Quote #2

You can use SendProxy Manager to send who can see who glows.
https://forums.alliedmods.net/showthread.php?t=169795
__________________
Chaosxk is offline
psychonic

BAFFLED
Join Date: May 2008
Old 07-24-2013 , 07:56   Re: Make m_bGlowEnabled only Client-Visual?
Reply With Quote #3

Quote:
Originally Posted by Chaosxk View Post
You can use SendProxy Manager to send who can see who glows.
https://forums.alliedmods.net/showthread.php?t=169795
That only allows the value for (all) clients to be different than the server's value. It does not let you change values per client.
psychonic is offline
Amatowarrior
Junior Member
Join Date: May 2012
Old 07-24-2013 , 13:57   Re: Make m_bGlowEnabled only Client-Visual?
Reply With Quote #4

Damn, guess I got my hopes up too soon then. Is there anything else? I do know it's possible but I have no idea how.
__________________


Amatowarrior is offline
Oshizu
Veteran Member
Join Date: Nov 2012
Location: Warsaw
Old 07-24-2013 , 14:18   Re: Make m_bGlowEnabled only Client-Visual?
Reply With Quote #5

You can try ask creator of SendProxy Manager for adding sending proxy to just one client / recoding extension to add receiver value.
example:
PHP Code:
SendProxy_Hook(clientreceiver"m_bGlowEnabled"Prop_IntProxyCallback
Receiver would be person who would see false informations relating to client / entity.

But i guess that would result in really messy code.
__________________
...

Last edited by Oshizu; 07-24-2013 at 14:22.
Oshizu is offline
Amatowarrior
Junior Member
Join Date: May 2012
Old 07-24-2013 , 15:05   Re: Make m_bGlowEnabled only Client-Visual?
Reply With Quote #6

Quote:
Originally Posted by Oshizu View Post
You can try ask creator of SendProxy Manager for adding sending proxy to just one client / recoding extension to add receiver value.
example:
PHP Code:
SendProxy_Hook(clientreceiver"m_bGlowEnabled"Prop_IntProxyCallback
Receiver would be person who would see false informations relating to client / entity.

But i guess that would result in really messy code.
Someone already requested that, and for the same reason too (glow). It was the last post I saw
__________________


Amatowarrior is offline
bl4nk
SourceMod Developer
Join Date: Jul 2007
Old 07-24-2013 , 17:06   Re: Make m_bGlowEnabled only Client-Visual?
Reply With Quote #7

Why not create a sprite/model/whatever with a material that you can see through walls, and have it only show to the one client using a SetTransmit hook?
bl4nk is offline
Oshizu
Veteran Member
Join Date: Nov 2012
Location: Warsaw
Old 07-24-2013 , 19:49   Re: Make m_bGlowEnabled only Client-Visual?
Reply With Quote #8

Quote:
Originally Posted by bl4nk View Post
Why not create a sprite/model/whatever with a material that you can see through walls, and have it only show to the one client using a SetTransmit hook?
This is one heavenishly brilliant idea
__________________
...
Oshizu is offline
ReFlexPoison
☠☠☠
Join Date: Jul 2011
Location: ☠☠☠
Old 07-24-2013 , 21:29   Re: Make m_bGlowEnabled only Client-Visual?
Reply With Quote #9

Quote:
Originally Posted by bl4nk View Post
Why not create a sprite/model/whatever with a material that you can see through walls, and have it only show to the one client using a SetTransmit hook?
Yes, but who is going to do that?
ReFlexPoison is offline
Oshizu
Veteran Member
Join Date: Nov 2012
Location: Warsaw
Old 07-25-2013 , 07:39   Re: Make m_bGlowEnabled only Client-Visual?
Reply With Quote #10

Quote:
Originally Posted by ReFlexPoison View Post
Yes, but who is going to do that?
Not me.
__________________
...
Oshizu is offline
Reply



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 00:57.


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