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

Only team players can see glowing


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Maurice
Senior Member
Join Date: Nov 2006
Location: Netherlands
Old 07-01-2008 , 17:40   Only team players can see glowing
Reply With Quote #1

There are a few good glow plugins out here but where i'm searching for i can't find. Is it possible to script only CT can see glowing players and the other way only terrorists see glowing players? note this is not a plugin request but a questions if it is possible to script.
__________________
Luck? Luck is only one feeling of amazement concerning a seemingly incidental circumstance which one himself must create.
Maurice is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 07-01-2008 , 18:03   Re: Only team players can see glowing
Reply With Quote #2

Yes it is possible.

Code:
public plugin_init() {     register_forward(FM_AddToFullPack, "fwdAddToFullPackPost", 1); } public fwdAddToFullPackPost(es, e, ent, host, flags, player, pSet) {     if( player )     {         if( get_user_team(ent) == get_user_team(host) )         {             set_es(es, ES_RenderFx, kRenderFxGlowShell);             set_es(es, ES_RenderColor, {255, 255, 255});             set_es(es, ES_RenderAmt, 16);         }     }         return FMRES_IGNORED; }
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Maurice
Senior Member
Join Date: Nov 2006
Location: Netherlands
Old 07-02-2008 , 13:56   Re: Only team players can see glowing
Reply With Quote #3

Thanks for looking at it and posting an example X-olent.
__________________
Luck? Luck is only one feeling of amazement concerning a seemingly incidental circumstance which one himself must create.
Maurice is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 07-02-2008 , 16:07   Re: Only team players can see glowing
Reply With Quote #4

Well, I enjoy scripting and helping others. However, the main credit goes to coderiz for the semiclip plugin. His code makes players transparent, and I just changed it to make them glow.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 07-02-2008 , 16:13   Re: Only team players can see glowing
Reply With Quote #5

Very interesting. Didn't know about that
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
Salamon
Senior Member
Join Date: Dec 2007
Location: P(r)oland
Old 07-02-2008 , 16:40   Re: Only team players can see glowing
Reply With Quote #6

huh ^.^

btw who is ent and who host?

i need it to make a glow only for current player from someones team, i mean this player something[id] is true, and i want make him glow, only him, and not all players from CT/T team
__________________
This is 10% luck, 20% skill, 15% concentrated power of will,
5% pleasure, 50% pain and 100% reason to remember my name..
Salamon is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 07-02-2008 , 16:47   Re: Only team players can see glowing
Reply With Quote #7

You could test.
I just don't know which is which either

Code:
public plugin_init() {     register_forward(FM_AddToFullPack, "fwdAddToFullPackPost", 1); } public fwdAddToFullPackPost(es, e, ent, host, flags, player, pSet) {     if( player )     {         static sNameEnt[32], sNameHost[32];         get_user_name(ent, sNameEnt, 31);         get_user_name(host, sNameHost, 31);                 server_print("Host = %s | Ent = %s", sNameHost, sNameEnt);                 /*if( get_user_team(ent) == get_user_team(host) )         {             set_es(es, ES_RenderFx, kRenderFxGlowShell);             set_es(es, ES_RenderColor, {255, 255, 255});             set_es(es, ES_RenderAmt, 16);         }*/     }         return FMRES_IGNORED; }
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Salamon
Senior Member
Join Date: Dec 2007
Location: P(r)oland
Old 07-02-2008 , 19:23   Re: Only team players can see glowing
Reply With Quote #8

yea i could, but its almost 1.30 at night my time i dont have strength, maybe later ill test ^.^
__________________
This is 10% luck, 20% skill, 15% concentrated power of will,
5% pleasure, 50% pain and 100% reason to remember my name..
Salamon 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 10:06.


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