Raised This Month: $12 Target: $400
 3% 

[L4D2] How do you make this hud?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
xonfire
Member
Join Date: Sep 2020
Old 10-25-2020 , 23:22   [L4D2] How do you make this hud?
Reply With Quote #1

How to do the information that is marked in red?


Last edited by xonfire; 10-26-2020 at 02:09.
xonfire is offline
Drixevel
AlliedModders Donor
Join Date: Sep 2009
Location: Somewhere headbangin'
Old 10-26-2020 , 08:23   Re: [L4D2] How do you make this hud?
Reply With Quote #2

That uses a system called Hud Syncs or just Hud Text, you can find more information by searching up through the API at https://sm.alliedmods.net/new-api/.

Code:
ClearSyncHud
CreateHudSynchronizer
SetHudTextParams
SetHudTextParamsEx
ShowHudText
ShowSyncHudText
Drixevel is offline
Marttt
Veteran Member
Join Date: Jan 2019
Location: Brazil
Old 10-26-2020 , 11:57   Re: [L4D2] How do you make this hud?
Reply With Quote #3

I think the hud thing doesn't work on L4D2, usually, people achieve that by messing with EMS vscript

Example:
https://forums.alliedmods.net/showthread.php?t=302730
__________________
Marttt is offline
Drixevel
AlliedModders Donor
Join Date: Sep 2009
Location: Somewhere headbangin'
Old 10-26-2020 , 16:36   Re: [L4D2] How do you make this hud?
Reply With Quote #4

Quote:
Originally Posted by Marttt View Post
I think the hud thing doesn't work on L4D2, usually, people achieve that by messing with EMS vscript

Example:
https://forums.alliedmods.net/showthread.php?t=302730
interesting
Drixevel is offline
xonfire
Member
Join Date: Sep 2020
Old 10-27-2020 , 02:44   Re: [L4D2] How do you make this hud?
Reply With Quote #5

Quote:
Originally Posted by Marttt View Post
I think the hud thing doesn't work on L4D2, usually, people achieve that by messing with EMS vscript

Example:
https://forums.alliedmods.net/showthread.php?t=302730
if I had seen it but there is a detail if I write a long name like "myhostgame" it is shown as "myhost..." it does not make the whole word as it is marked on the right
xonfire is offline
Marttt
Veteran Member
Join Date: Jan 2019
Location: Brazil
Old 10-27-2020 , 04:29   Re: [L4D2] How do you make this hud?
Reply With Quote #6

you have to increase the size of the box with HUDPlace, one of the parameters is the width, increasing should solve it
__________________

Last edited by Marttt; 10-27-2020 at 04:30.
Marttt is offline
sarahk99
New Member
Join Date: Oct 2020
Old 10-27-2020 , 18:42   Re: [L4D2] How do you make this hud?
Reply With Quote #7

Quote:
That uses a system called Hud Syncs or just Hud Text, you can find more information by searching up through the API at https://sm.alliedmods.net/new-api/.
Also from this one https://writemyessay4me.org/dissertation you can get some info
Code:
ClearSyncHud
CreateHudSynchronizer
SetHudTextParams
SetHudTextParamsEx
ShowHudText
ShowSyncHudText
what they are for???

Last edited by sarahk99; 11-08-2020 at 11:13.
sarahk99 is offline
Psyk0tik
Veteran Member
Join Date: May 2012
Location: Homeless
Old 10-27-2020 , 21:21   Re: [L4D2] How do you make this hud?
Reply With Quote #8

Quote:
Originally Posted by sarahk99 View Post
what they are for?
Those functions are used for setting up HUD texts in source games. Sadly, Left 4 Dead 1 & 2 (and perhaps other games, I don't know) don't support those functions. That's why we have to rely on the Extended Mutation System to create HUD texts in L4D2.
__________________
Psyk0tik is offline
xonfire
Member
Join Date: Sep 2020
Old 10-28-2020 , 19:15   Re: [L4D2] How do you make this hud?
Reply With Quote #9

Quote:
Originally Posted by Marttt View Post
you have to increase the size of the box with HUDPlace, one of the parameters is the width, increasing should solve it
Looking at the letters on the right since I don't know Chinese, I notice that it mentions the number of players and the current date, how could I do it? the left part that is the list of players oscillates the nick with the red color.

On the page you mentioned so far I have the logo made, but the author put another hud for when the players speak with the name "speakerhud" but I don't know how to make that work.

Last edited by xonfire; 10-28-2020 at 19:16.
xonfire is offline
Marttt
Veteran Member
Join Date: Jan 2019
Location: Brazil
Old 10-28-2020 , 23:37   Re: [L4D2] How do you make this hud?
Reply With Quote #10

He did it by plugin or by vscript, probably, I'm making a plugin similar but I'm far to finish
The EMS system is kinda hard to explain, you need know vscript, try to do the example from the post that I sent you then you may understand how it works.

Note: When I say "by plugin" I mean that a plugin generates the vscript (.nut) file from time to time.
__________________

Last edited by Marttt; 10-28-2020 at 23:38.
Marttt is offline
Reply


Thread Tools
Display Modes

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 18:56.


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