AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugin/Gameplay Ideas and Requests (https://forums.alliedmods.net/forumdisplay.php?f=60)
-   -   [L4D2] How do you make this hud? (https://forums.alliedmods.net/showthread.php?t=328081)

xonfire 10-25-2020 23:22

[L4D2] How do you make this hud?
 
How to do the information that is marked in red?

https://cdn.discordapp.com/attachmen...tel0003_LI.jpg

Drixevel 10-26-2020 08:23

Re: [L4D2] How do you make this hud?
 
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


Marttt 10-26-2020 11:57

Re: [L4D2] How do you make this hud?
 
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

Drixevel 10-26-2020 16:36

Re: [L4D2] How do you make this hud?
 
Quote:

Originally Posted by Marttt (Post 2722623)
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

xonfire 10-27-2020 02:44

Re: [L4D2] How do you make this hud?
 
Quote:

Originally Posted by Marttt (Post 2722623)
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

Marttt 10-27-2020 04:29

Re: [L4D2] How do you make this hud?
 
you have to increase the size of the box with HUDPlace, one of the parameters is the width, increasing should solve it

sarahk99 10-27-2020 18:42

Re: [L4D2] How do you make this hud?
 
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???

Psyk0tik 10-27-2020 21:21

Re: [L4D2] How do you make this hud?
 
Quote:

Originally Posted by sarahk99 (Post 2722794)
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.

xonfire 10-28-2020 19:15

Re: [L4D2] How do you make this hud?
 
Quote:

Originally Posted by Marttt (Post 2722705)
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.

Marttt 10-28-2020 23:37

Re: [L4D2] How do you make this hud?
 
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.


All times are GMT -4. The time now is 08:25.

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