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

[NMRiH] Weapon Menu (v1.1.0, 01/13/14)


Post New Thread Reply   
 
Thread Tools Display Modes
Petepete
Junior Member
Join Date: Nov 2013
Old 12-03-2013 , 19:21   Re: [NMRiH] Weapon Menu (v1.0.6, 11/08/13)
Reply With Quote #51

Quote:
Originally Posted by Marcus_Brown001 View Post
You have to add the category both inside the config file and inside the plugin. If you can survive a little without those, I am working on a version right now that adds in all explosives and medical supplies. It really shouldn't take me as long as it has to get it out there, but with the holidays and personal matters to attend to, I have been rather behind lately.
I managed to make it wok by JUST changing the .ini

NO idea how, as the table changed with it, so I assume the .smx file changed with it.. Anyway I got it to work
Petepete is offline
Marcus_Brown001
AlliedModders Donor
Join Date: Nov 2012
Location: Illinois, United States
Old 12-03-2013 , 22:31   Re: [NMRiH] Weapon Menu (v1.0.6, 11/08/13)
Reply With Quote #52

Nah, it would work if you put one of the other category's names in for that object, but the object would show in that category (e.g. placing a grenade inside the rifle category).
Marcus_Brown001 is offline
Petepete
Junior Member
Join Date: Nov 2013
Old 12-04-2013 , 12:26   Re: [NMRiH] Weapon Menu (v1.0.6, 11/08/13)
Reply With Quote #53

"37"
{
"display_name" "Nades"
"entity_name" "exp_grenade"
"entity_category" "tool"
}
"38"
{
"display_name" "FirstAid"
"entity_name" "item_first_aid"
"entity_category" "tool"
Petepete is offline
khanhtruong777
Junior Member
Join Date: Apr 2013
Location: Vietnam
Old 12-04-2013 , 19:56   Re: [NMRiH] Weapon Menu (v1.0.6, 11/08/13)
Reply With Quote #54

Good news is...I've already added 2 new categories for medkit and grenades named "Medic" and "Explosive". And there's no need to add ammo category, just use Chanz's infinite ammo mod.

Default cvars:
sv_nmrih_weaponmenu_enabled 1
sv_weaponmenu_rifle_limit 1
sv_weaponmenu_smg_limit 1
sv_weaponmenu_shotgun_limit 1
sv_weaponmenu_pistol_limit 1
sv_weaponmenu_tool_limit 10
sv_weaponmenu_melee_limit 1
sv_weaponmenu_medic_limit 100
sv_weaponmenu_exp_limit 100
sv_weaponmenu_admin_override 1

I've also cleaned up the menu interface (no more -|abcxyz|-), the only issues is sometimes when i click back button, the menu closes instead of going back to category menu. Besides, the server crashes after running for a few hours.

If anyone still wants to add ammo, look here for entity name:
http://wiki.nomoreroominhell.com/wik...Spawning_Setup
Attached Files
File Type: zip nmrih-weapon-menu.zip (16.9 KB, 103 views)
khanhtruong777 is offline
Marcus_Brown001
AlliedModders Donor
Join Date: Nov 2012
Location: Illinois, United States
Old 12-05-2013 , 02:31   Re: [NMRiH] Weapon Menu (v1.0.6, 11/08/13)
Reply With Quote #55

I noticed that the back buttons never worked on my servers. Every time I click them, they exit out of the menu. Have never been able to figure out why, so I just made my own O.o.

** Edit **

Released version 1.0.8. See change log for what was done.
Marcus_Brown001 is offline
Sev
Veteran Member
Join Date: May 2010
Old 12-05-2013 , 18:50   Re: [NMRiH] Weapon Menu (v1.0.8, 12/05/13)
Reply With Quote #56

Another convar I hope you can add in the near future is the option to restrict the menu to admins only.
Sev is offline
Marcus_Brown001
AlliedModders Donor
Join Date: Nov 2012
Location: Illinois, United States
Old 12-05-2013 , 21:58   Re: [NMRiH] Weapon Menu (v1.0.8, 12/05/13)
Reply With Quote #57

Alright, I can put that in. That is a really simple addition.

** Edit **

I will add the convar, but you can already make it admin only. All you have to do is override the sm_guns commands.

Last edited by Marcus_Brown001; 12-05-2013 at 22:18.
Marcus_Brown001 is offline
khanhtruong777
Junior Member
Join Date: Apr 2013
Location: Vietnam
Old 12-06-2013 , 00:21   Re: [NMRiH] Weapon Menu (v1.0.8, 12/05/13)
Reply With Quote #58

An announcement would be nice too, like "Type !guns or /guns in chat window and press Esc to open weapon menu." When someone join the game or respawn, he'll see this.
khanhtruong777 is offline
Marcus_Brown001
AlliedModders Donor
Join Date: Nov 2012
Location: Illinois, United States
Old 12-06-2013 , 16:33   Re: [NMRiH] Weapon Menu (v1.0.8, 12/05/13)
Reply With Quote #59

Eh ... I agree it is nice. On my servers, however, I am accustomed to running Advertisements to show that message. I could, perhaps, make it display a message on user spawn that they can use the weapon menu, and then add a command and/or convar to disable that message. What do you think?
Marcus_Brown001 is offline
khanhtruong777
Junior Member
Join Date: Apr 2013
Location: Vietnam
Old 12-06-2013 , 19:37   Re: [NMRiH] Weapon Menu (v1.0.8, 12/05/13)
Reply With Quote #60

Yeah, I've seen many plugins like cssdm or quake_sound which displays a message for a few seconds at the beginning. A new convar to turn off the message might not be necessary, who wants to disable it?
khanhtruong777 is offline
Reply



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 14:36.


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