AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Showing dhudmessage in a fast beat (https://forums.alliedmods.net/showthread.php?t=174650)

Diegorkable 12-23-2011 08:22

Showing dhudmessage in a fast beat
 
Hey,

I am trying to show on the screen a dhudmessage that will show the time running by milliseconds (means it will show something like this:
1.1 -> 1.2 -> 1.3, in a really fast way, where each dhudmessage is being displayed for [holdtime] 0.1 seconds and then the next one comes )

for some reason when I do it that way, the seconds are displayed the way I want them (1.1 -> 1.2 -> ...... -> 3.5 and so on... ) but the hud message is looking bad, like, the current displayed dhudmessage is being displayed even before the pervious one disappeared, so it looks like this:

0.0 -> 0.1(the 0.1 is displayed but when the '1' looks shitty cuz the '0' is still there), why is that?

here is the set_dhudmessage:
(NOTE: I put the same settings on the NORMAL hudmessage, and it works good)

PHP Code:

set_dhudmessage(255000.50.500.10.10.10.1

(just to save you suggestions, settings effects to 1 or 2 doesnt help, also removing the last 2 '0.1's just make it worst [which are the fade in/out time], also holdtime is 0.1 just like i wanted so it'll work good in miliseconds, and the 0.1 before that is the fxtime, which didnt matter when it was 6.0 or 0.1 ...)

MyPc 12-23-2011 08:25

Re: Showing dhudmessage in a fast beat
 
Quote:

Originally Posted by Diegorkable (Post 1618281)
Hey,

I am trying to show on the screen a dhudmessage that will show the time running by milliseconds (means it will show something like this:
1.1 -> 1.2 -> 1.3, in a really fast way, where each dhudmessage is being displayed for [holdtime] 0.1 seconds and then the next one comes )

for some reason when I do it that way, the seconds are displayed the way I want them (1.1 -> 1.2 -> ...... -> 3.5 and so on... ) but the hud message is looking bad, like, the current displayed dhudmessage is being displayed even before the pervious one disappeared, so it looks like this:

0.0 -> 0.1(the 0.1 is displayed but when the '1' looks shitty cuz the '0' is still there), why is that?

here is the set_dhudmessage:
(NOTE: I put the same settings on the NORMAL hudmessage, and it works good)

PHP Code:

set_dhudmessage(255000.50.500.10.10.10.1

(just to save you suggestions, settings effects to 1 or 2 doesnt help, also removing the last 2 '0.1's just make it worst [which are the fade in/out time], also holdtime is 0.1 just like i wanted so it'll work good in miliseconds, and the 0.1 before that is the fxtime, which didnt matter when it was 6.0 or 0.1 ...)

set the channel to -1

Diegorkable 12-23-2011 09:11

Re: Showing dhudmessage in a fast beat
 
There's no channel in DHUDmessages, +, in the normal hudmessage it would make it look real shitty...

and I fixed it, had to set fade in/out time to 0.0 and NOT default, and the holdtime to 0.13


All times are GMT -4. The time now is 11:52.

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