Raised This Month: $ Target: $400
 0% 

number of huds at the same time


Post New Thread Reply   
 
Thread Tools Display Modes
CVarsMaster
Junior Member
Join Date: Mar 2009
Old 05-06-2012 , 03:43   Re: number of huds at the same time
Reply With Quote #11

Quote:
Originally Posted by Neeeeeeeeeel.- View Post
there is no way to add a channel? (without recreate the hud message system).
Do you know that "Hudmessages" are created by the client? Start thinking that you can't modify client messages
CVarsMaster is offline
Neeeeeeeeeel.-
Some Guy Yellin'
Join Date: Jul 2010
Location: Argentina
Old 05-06-2012 , 17:44   Re: number of huds at the same time
Reply With Quote #12

I didn't know that ¬¬
thx.
__________________
Neeeeeeeeeel.- is offline
Send a message via Skype™ to Neeeeeeeeeel.-
CVarsMaster
Junior Member
Join Date: Mar 2009
Old 05-06-2012 , 22:05   Re: number of huds at the same time
Reply With Quote #13

Quote:
Originally Posted by Neeeeeeeeeel.- View Post
I didn't know that ¬¬
thx.
PHP Code:
void UTIL_HudMessage(CBaseEntity *pEntity, const hudtextparms_t &textparms
        const 
char *pMessage)
{
    if ( !
pEntity )
        return;

    
MESSAGE_BEGINMSG_ONESVC_TEMPENTITYNULLENT(pEntity->pev) );
        
WRITE_BYTETE_TEXTMESSAGE );
        
WRITE_BYTEtextparms.channel 0xFF );

        
WRITE_SHORTFixedSigned16textparms.x1<<13 ) );
        
WRITE_SHORTFixedSigned16textparms.y1<<13 ) );
        
WRITE_BYTEtextparms.effect );

        
WRITE_BYTEtextparms.r1 );
        
WRITE_BYTEtextparms.g1 );
        
WRITE_BYTEtextparms.b1 );
        
WRITE_BYTEtextparms.a1 );

        
WRITE_BYTEtextparms.r2 );
        
WRITE_BYTEtextparms.g2 );
        
WRITE_BYTEtextparms.b2 );
        
WRITE_BYTEtextparms.a2 );

        
WRITE_SHORTFixedUnsigned16textparms.fadeinTime1<<) );
        
WRITE_SHORTFixedUnsigned16textparms.fadeoutTime1<<) );
        
WRITE_SHORTFixedUnsigned16textparms.holdTime1<<) );

        if ( 
textparms.effect == )
            
WRITE_SHORTFixedUnsigned16textparms.fxTime1<<) );
        
        if ( 
strlenpMessage ) < 512 )
        {
            
WRITE_STRINGpMessage );
        }
        else
        {
            
char tmp[512];
            
strncpytmppMessage511 );
            
tmp[511] = 0;
            
WRITE_STRINGtmp );
        }
    
MESSAGE_END();

You can download the AMXx source, and see how it works, these functions, and more
CVarsMaster 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:31.


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