Say text as a hud
Hey, i was able to make the say text in OOC chat for TSRP a hud. I was wondering if you can get it to stack instead of going over eachother.
Example [OOC] blackops (( Sup )) [OOC] DERKA (( hey )) Code:
public handle_say(id) |
Re: Say text as a hud
Anyone have any ideas?
(sorry for double post..) |
Re: Say text as a hud
Can you not wait one hour. Wait two days, and if nobody replies, then bump. But anyhow, this would be kind of hard to implement. To get you started look in the SDK on how it calcutes chat.
|
Re: Say text as a hud
Sry..
|
Re: Say text as a hud
Here's my attempt, it compiles but doesn't work. The main problem is getting the hud messages to act like text messages, meaning they stay on screen only for a short period of time, then move up in increments till the max is reached, etc. etc.
Someone more experienced could point out my errors and come up with something better. Code:
|
Re: Say text as a hud
what you could do is:
keep track of a certain ammount of messages, then just put all the messages together to make 1 hud. then after a time period, take away a message. heres some pseudo code(i think). player sends a message, message is saved into array[0][] another player sends a message, message is saved into array[1][] print array[0]+array[1]. after X seconds, array[0] should be overwritten by array[1] and array[1] should be filled with nothing print array[0]+array[1] that should give you a message like hud system. (it made sense in my mind, sorry if it doesn't in yours) |
Re: Say text as a hud
Could you post the code, cause i have no idea what your talking about :P
|
Re: Say text as a hud
Emp` has a clever idea, and I'm sure thats the way the one that you have seen works. I've seen the same plugin in action on a TSRP server.
This is employing a technique like Emp` was describing, but I am no expert on hud_message so someone more experienced will have to point out why it does not work properly. And it's not finished, it's just as far as I'm willing to go right now, because I don't have the time to sit and write a working version. Code:
|
Re: Say text as a hud
Well thanks for the help, ill see what i can do. +Karma
|
Re: Say text as a hud
bored and don't want to do hw...
Code:
|
| All times are GMT -4. The time now is 04:58. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.