AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   question about way to show HudMsg (https://forums.alliedmods.net/showthread.php?t=333943)

Celena Luna 08-19-2021 06:40

question about way to show HudMsg
 
Which of this following method is the best way to show a scoreboard/InfoHud (Ammopack, Class,...) with HudMsg?
- looping with set_task and flag "b"
- loop using entity think
- override it with new msg on that channel

Natsheh 08-19-2021 06:58

Re: question about way to show HudMsg
 
set_task

Celena Luna 08-19-2021 08:02

Re: question about way to show HudMsg
 
Quote:

Originally Posted by Natsheh (Post 2755603)
set_task

Could you give more detail why? I saw a lot of people loop 0.1s and cause Overflow if they have 3-4 Hud on the screen

Natsheh 08-19-2021 09:17

Re: question about way to show HudMsg
 
First Well set_task won't consume any resources such as entities, second set task will never cause overflow depending on the hud messages you have, they are limited to 4 channels only and you can use channel -1 which will look for an empty channel and use it, third You can use dhud messages if you want to display 8 messages at once, or you can use HudSync you can find more about this in the documentation..


All times are GMT -4. The time now is 02:29.

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