Raised This Month: $ Target: $400
 0% 

Moving set_hudmessage Text


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Roach
Writes love letters to sawce Daily
Join Date: Jul 2006
Location: Internet
Old 12-15-2006 , 02:13   Moving set_hudmessage Text
Reply With Quote #1

I'm not too sure I fully understand this line of code, but im going to give it a shot...

I'm working with the seemingly abandoned plugin server_rules (http://forums.alliedmods.net/showthread.php?t=7703) and attempting to modify it to fit my needs...as well as to get a greater understand of how the text display system works.

And herein I am stuck. I am understanding that the first three numbers in this line of code:
Code:
set_hudmessage(255, 0, 0, -1.0, 0.01)
Are for the actual color of the hudmessage (rrr,ggg,bbb respectively). However, im not too sure how the final two numbers work. Any explination on that? I understand that the snippet I just put up is for red, left centered, but I dont quite understand how the coordinates work for the text (which I assume are the final two numbers).

I know that this line puts the text in the upper left hand corner. I want to bring the text down so that if a player joins the black bar from the spectator menu isnt blocking off the first 4-5 rules.

Code:
set_hudmessage( DISPLAYCOLOR[0], DISPLAYCOLOR[1], DISPLAYCOLOR[2], 0.05, 0.05, 2, 0.01, nDisplayTime, 0.01, 0.1, 4 )
But then I see lines like this on a similar plugin...and my brain doesnt comprehend.

Code:
set_hudmessage ( 200, 150, 0, 0.02, 0.25, 2, 0.1, get_cvar_float("rules_hudmessage_time"), 0.05, 1.0, 1)
I know that the hudmessage coordinates for this code display it in somewhat of the center of the screen.

Edit:

Well shit, im a moron...I didnt realize that there is a message text generator in the studio...

I feel like a total dumbass.

Last edited by Roach; 12-15-2006 at 02:18.
Roach is offline
 



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 06:49.


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