Raised This Month: $147 Target: $400
 36% 

[L4D2] How do you make this hud?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
xonfire
Junior Member
Join Date: Sep 2020
Old 10-26-2020 , 00: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 03:09.
xonfire is offline
Drixevel
AlliedModders Donor
Join Date: Sep 2009
Location: Somewhere headbangin'
Old 10-26-2020 , 09: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
__________________
Discord: Drixevel#5049 - Steam Profile
Drixevel is offline
Marttt
Veteran Member
Join Date: Jan 2019
Location: Brazil
Old 10-26-2020 , 12: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 online now
Drixevel
AlliedModders Donor
Join Date: Sep 2009
Location: Somewhere headbangin'
Old 10-26-2020 , 17: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
__________________
Discord: Drixevel#5049 - Steam Profile
Drixevel is offline
xonfire
Junior Member
Join Date: Sep 2020
Old 10-27-2020 , 03: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 , 05: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 05:30.
Marttt is online now
sarahk99
New Member
Join Date: Oct 2020
Old 10-27-2020 , 19: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 12:13.
sarahk99 is offline
Crasher_3637
AlliedModders Donor
Join Date: May 2012
Old 10-27-2020 , 22: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.
__________________
AFK like JFK
Crasher_3637 is offline
xonfire
Junior Member
Join Date: Sep 2020
Old 10-28-2020 , 20: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 20:16.
xonfire is offline
Marttt
Veteran Member
Join Date: Jan 2019
Location: Brazil
Old 10-29-2020 , 00: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-29-2020 at 00:38.
Marttt is online now
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 13:09.


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