AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [CSS] Gun Menu v1.1.3 [2021/10/07] (https://forums.alliedmods.net/showthread.php?t=327347)

Grey83 09-13-2020 07:39

[CSS] Gun Menu v1.1.3 [2021/10/07]
 
2 Attachment(s)
Name: Gun Menu

Description: Weapon selection menu with the ability to customize access to each of the types.
The plugin blocks the buy menu and the buy zone. Bots are always given a random weapon.
Weapons are issued only once after spawn (no spam by weapons ^_^).
After the first choice of weapons on the server, the player is given weapons immediately.
This choice is saved in the database (clientprefs) and on subsequent logins the previously selected set is issued.
Also, the plugin gives out grenades (you can select only one type at a time, the maximum amount set by the corresponding cvar ammo_*_max) and armor. Counter-terrorists also receive defuse kits.
All weapons thrown out and dropped from the corpses will be destroyed after the time set by the cvar (no spam by weapons, although the removal can be turned off).
For each of the types of weapons, you can choose the option "Random" and then every time a random one will be issued from the available ones (grenades can be turned off altogether).
There are no separate settings for admins.

Installation: Place compiled plugin (css_gunmenu.smx) into the plugins folder (../addons/sourcemod/plugins/).
Needed SM1.8+ for compile.
The plugin creates a config named css_gun_menu.cfg

CVars:
  • sm_gun_menu_primary - Allowed primary weapons
    Code:

    AWP - 1
    SG 550 - 2
    G3/SG1 - 4
    Scout - 8
    AK - 16
    M4A1 - 32
    SG 552 - 64
    AUG - 128
    Galil - 256
    FAMAS - 512
    MAC-10 - 1024
    MP5 - 2048
    TMP - 4096
    UMP 45 - 8192
    P90 - 16384
    M3 - 32768
    М4 - 65536 // aka xm1014
    M249 - 131072

  • sm_gun_menu_secondary - Allowed secondary weapons
    Code:

    Glock - 1
    USP - 2
    P228 - 4
    Desert Eagle - 8
    Five-SeveN - 16
    Dual Beretta - 32

  • sm_gun_menu_grenades - Allowed grenades (0 - disallow all grenades)
    Code:

    HE grenade - 1
    Stun grenade - 2
    Smoke grenade - 4

  • sm_gun_menu_armor - Give to player: 0 - nothing, 1 - armor, 2 - armor + helmet
  • sm_gun_menu_clear - Time after which the dropped weapon will be removed (-1 - disable cleaning)
Changes in 1.1.3 [2021/10/07]:
  • Dropped C4 is no longer removed

Screenshots:
Primary weapons menu (allowed AWP and Scout only, sm_gun_menu_primary = 9)
Secondary weapons menu
Secondary weapons menu (the few pistols are prohibited, sm_gun_menu_secondary = 5)
Grenades menu
Grenades menu (flashbangs are resricted, sm_gun_menu_grenades = 5)

Cats869 02-20-2021 13:16

Re: [CSS] Gun Menu
 
Hello, is there a way so that the player can select a different gun if they chose something before but now want something different? Thanks.

Grey83 02-20-2021 13:39

Re: [CSS] Gun Menu
 
Cats869, player can choose weapon in any moment but new weapon he will get only after new spawn.

The Spirit of Morpheus 06-17-2021 00:21

Re: [CSS] Gun Menu
 
Hello,

I installed Gun Menu exactly as documented, but it does not show up when I start a private server with bots! (it's normal CSS gameplay mode - no DM or any other custom game mode)

Thanks for support,

T.S.O.M.

Edit: My folder structure looks like this: "\cstrike\addons\sourcemod\plugins\css_gunmen u 1.1.2.smx" - is it correct?

I also get the following error message(s) in the developer console:

No valid signature found for d:\steam library\steamapps\common\counter-strike source\cstrike\addons\metamod\bin\server.dll
No valid signature found for d:\steam library\steamapps\common\counter-strike source\cstrike\addons\metamod\bin\win64\serve r.dll

Grey83 06-17-2021 07:22

Re: [CSS] Gun Menu
 
The Spirit of Morpheus, maybe you should reinstall Metamod: https://forums.alliedmods.net/showthread.php?t=164647

The Spirit of Morpheus 06-17-2021 17:00

Re: [CSS] Gun Menu
 
Quote:

Originally Posted by Grey83 (Post 2750109)
The Spirit of Morpheus, maybe you should reinstall Metamod: https://forums.alliedmods.net/showthread.php?t=164647

Putting the "-insecure" argument into CS:S launch options solved the problem. However, there is something else that bothers me:

Can I really select only one grenade type? When I select flashbang grenades, I cannot add HE and smoke grenades on top of that - unlike the standard CS:S buy menu! And how do I select NV goggles? How (which key/command) do I open up Gun Menu, when I want to select a different weapon/grenade for the next round?

T.S.O.M.

Darkwob 06-20-2021 14:45

Re: [CSS] Gun Menu
 
can you rewrite this for l4d2?

Grey83 10-07-2021 04:04

Re: [CSS] Gun Menu v1.1.3 [2021/10/07]
 
Changes in 1.1.3 [2021/10/07]:
  • Dropped C4 is no longer removed

nidzo 07-13-2022 23:17

Re: [CSS] Gun Menu v1.1.3 [2021/10/07]
 
Hello. This guns menu doesn't work on my server. I can clearly see it shown for like 0.5 second but then the native CSSDM menu is shown instead. Any suggestions? Thank you in advance.

Grey83 07-14-2022 08:29

Re: [CSS] Gun Menu v1.1.3 [2021/10/07]
 
nidzo, you can change command in this string: RegConsoleCmd("sm_guns", Menu_PrimaryWeapon);


All times are GMT -4. The time now is 22:51.

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