Raised This Month: $ Target: $400
 0% 

[TF2] Player-Following Annotations Snippet


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Mitchell
~lick~
Join Date: Mar 2010
Old 12-30-2013 , 13:30   Re: [TF2] Player-Following Annotations Snippet
Reply With Quote #1

I was asking because i want to make an annotation that only certain players can see over another player's head.
Mitchell is offline
404UserNotFound
BANNED
Join Date: Dec 2011
Old 12-30-2013 , 13:33   Re: [TF2] Player-Following Annotations Snippet
Reply With Quote #2

Quote:
Originally Posted by Mitchell View Post
I was asking because i want to make an annotation that only certain players can see over another player's head.
Hmm....yeah, I'm not exactly sure. Sorry

EDIT: Actually, I think I may have an idea. Gimme a mo!

PHP Code:
public BuildBitString(Float:position[3])
{
    new 
bitstring 1;
    for (new 
client=1client <= MaxClientsclient++)
    {
        
// Check if client is ingame, and is a donator. Not sure if this'd work though.
        
if (IsClientInGame(client) && GetUserFlagBits(client) && ADMFLAG_CUSTOM1)
        {
            
decl Float:EyePos[3];
            
GetClientEyePosition(clientEyePos);
            if (
GetVectorDistance(positionEyePos) < 400)
            {
                
bitstring |= RoundFloat(Pow(2.0float(client)));
            }
        }
    }
    return 
bitstring;


Last edited by 404UserNotFound; 12-30-2013 at 13:35.
404UserNotFound 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 18:27.


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