Raised This Month: $248 Target: $400
 62% 

Pijudo: new hud menu system


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Roccoxx
AlliedModders Donor
Join Date: Jan 2012
Location: Argentina
Old 09-16-2020 , 09:17   Pijudo: new hud menu system
Reply With Quote #1

Well this is a menu system per hud, I always wanted to make one when I was a teenager but I did not have the capacity to do it, so I share it with you. I publish it more as a contribution than as a plugin because the idea is that it is a guide and that they make the modifications that they believe necessary in terms of menu positions and elements.

The system uses 3 dhud: 1 for the title, X for the items and 1 for the Exit, Return, Next options.

Where X depends on the content of the elements, minimum 1 DHUD.

It has support for both static menus and dynamic menus.

Natives

Spoiler


Example
Spoiler


Important: the title of hud_menu_register and hud_menu_create_title must match!

Credits:
Matias_Esf -> Testing
Metalicross -> For guiding me to the game sdk to investigate the dhud
r0ma' -> For the suggestions <3

Put HudMenu.amxx before your plugins that use the menu.

Some images
Spoiler


GITHUB
Attached Files
File Type: inc hudmenu.inc (1.3 KB, 3 views)
File Type: sma Get Plugin or Get Source (TestHudMenu.sma - 3 views - 4.1 KB)
File Type: sma Get Plugin or Get Source (HudMenu.sma - 3 views - 8.8 KB)
__________________

Last edited by Roccoxx; 09-16-2020 at 12:53.
Roccoxx is offline
Send a message via MSN to Roccoxx
Old 09-16-2020, 09:24
Roccoxx
This message has been deleted by Roccoxx. Reason: bug
Supremache
Veteran Member
Join Date: Sep 2019
Old 09-16-2020 , 15:45   Re: Pijudo: new hud menu system
Reply With Quote #2

If i used this plugin it will make drop fps ??
Some of huds in menu will get disappear and appear like default dhud?
Mean, when i use more then two hud in one faction the huds will get disappear and appear and if i used more than 5 hud in server i will get drop fps and server will bugging !!!!
Have you tested it on server have 32/32 players "FULL" ?
Supremache is offline
Roccoxx
AlliedModders Donor
Join Date: Jan 2012
Location: Argentina
Old 09-16-2020 , 17:25   Re: Pijudo: new hud menu system
Reply With Quote #3

Quote:
Originally Posted by Supremache View Post
If i used this plugin it will make drop fps ??
Some of huds in menu will get disappear and appear like default dhud?
Mean, when i use more then two hud in one faction the huds will get disappear and appear and if i used more than 5 hud in server i will get drop fps and server will bugging !!!!
Have you tested it on server have 32/32 players "FULL" ?
You can try it before asking. I have tested it and also other programmers, we had no problems.
They are dhud not hud ...
I have tested with 6 dhud at the same time (4 items + title + exit / entry option)
I have tried to replicate the part of the calculation of the position X and y based on the number of characters to optimize the dhud channels, but I have not had any luck, if you want you can try and give me a hand: https://github.com/alliedmodders/hls...ssage.cpp#L242
Regarding your last question, I have not been able to test it with 32 players, today it is an old game, and here there are very few players and it is difficult to fill a server.
It is an API anyway and you can use it to your liking based on your proposed situations and wishes.
__________________

Last edited by Roccoxx; 09-16-2020 at 17:25.
Roccoxx is offline
Send a message via MSN to Roccoxx
Supremache
Veteran Member
Join Date: Sep 2019
Old 09-16-2020 , 18:36   Re: Pijudo: new hud menu system
Reply With Quote #4

Quote:
Originally Posted by Roccoxx View Post
You can try it before asking. I have tested it and also other programmers, we had no problems.
They are dhud not hud ...
I have tested with 6 dhud at the same time (4 items + title + exit / entry option)
I have tried to replicate the part of the calculation of the position X and y based on the number of characters to optimize the dhud channels, but I have not had any luck, if you want you can try and give me a hand: https://github.com/alliedmodders/hls...ssage.cpp#L242
Regarding your last question, I have not been able to test it with 32 players, today it is an old game, and here there are very few players and it is difficult to fill a server.
It is an API anyway and you can use it to your liking based on your proposed situations and wishes.
Without trying it, When i saw your post about dhud menu, I was shocked, I was think those problems will happens.
I am not sure what will happen to the server by this api system but let others trying it those have a good servers, i want to see how this menu work on server having full players.
I'm sorry but my experience is limit but in the future i think i will help.
Supremache 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 03:21.


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