Raised This Month: $52 Target: $400
 13% 

[NMRiH] Weapon Configs (v1.0.2, 2018-12-29)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Ryan.
Member
Join Date: Jan 2018
Plugin ID:
6364
Plugin Version:
1.0.2
Plugin Category:
Gameplay
Plugin Game:
No More Room in Hell
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Cutomize weapon speeds and behavior
    Old 12-12-2018 , 21:31   [NMRiH] Weapon Configs (v1.0.2, 2018-12-29)
    Reply With Quote #1

    Brief
    Customize No More Room in Hell's weapon stats and animation speeds. See below for all customizable properties.

    This plugin re-creates a feature that used to be included in the Quality of Life plugin.

    It requires DHooks with Dynamic Detours extension.
    Features
    Customize weapon behavior:
    • Damage (normal, headshot, shove and thrown)
    • Pushback chance (normal and headshot)
    • Stamina cost (shove and melee attack)
    • Shove cooldown time
    • Magazine capacity
    • Explosion radius of grenades and flare gun
    • Whether weapon can be used to suicide (gimmicky due to missing animations)
    • Whether weapon can perform skillshot (Linux servers only)

    Customize weapon speeds:
    • Melee, shove and charged attack
    • Hip-fire and ironsight shooting
    • Reload, unload and ammo check
    • Maglite activation
    • Barricade speed, e-tool toggle
    Example config
    PHP Code:
    "weapon_options"
    {
        
    // High-capacity, super revolver
        
    "fa_sw686"
        
    {
            
    // Super damage
            
    "damage" "500"
            "damage_headshot" "1000"
            "damage_shove" "25"

            
    // High capacity
            
    "capacity" "12"

            
    // No cooldown between shots (shoot as fast as you can click)
            
    "hip_fire_delay" "0"

            
    // 2x faster ironsight shooting speed
            
    "sight_fire" "2"

            
    // 1.5x faster reload speed
            
    "reload" "1.5"

            
    // 4x faster ammo check speed
            
    "check_ammo" "4"
        
    }

        
    // Faster, more agile knife
        
    "me_kitknife"
        
    {
            
    // 6% faster charge-up and charge-release speed
            
    "charge" "1.06"
            "release" "1.06"

            
    // Time between attacks is 0.4 seconds
            
    "quick_delay" "0.4"
            "release_delay" "0.4"
            "shove_delay"   "0.4"
            
            
    // Charge attack can be unleashed after 0.1 seconds of charging
            
    "charge_delay" "0.1"

            
    // Throwing knife of death
            
    "damage_thrown" "1000"
        
    }

    See 'addons/sourcemod/configs/weapon-configs-example.cfg' for more examples.
    ConVars
    • sm_weapon_config - Name of active weapon configuration excluding the .cfg extension. Set to "" to disable weapon configs.

    Weapon configs are relative to your nmrih/addons/sourcemod/configs folder.

    Installation
    1. Install Metamod Source
    2. Install Sourcemod
    3. Install DHooks with Dynamic Detours extension
      • For Windows servers that use Sourcemod versions newer than 1.10.0.6225, download the DHooks-detours7 build attached to the bottom of this post
      • Otherwise download the latest build from its thread
    4. Download nmrih-weapon-configs.zip from below and extract it into your nmrih/addons directory

    Credits
    • NMRiH dev team
    • Sourcemod crew
    • Drifter and Peacemaker for DHooks extension
    • rio for their suggestion on how to return a null CBaseEntity from DHooks
    • overmase for spotting problem with qol.cfg overwriting other plugin's config
    • Kevin for spotting issues with the bow and QOL config

    Changelog
    1.0.2 - 2018-12-29
    • Added damage_thrown_headshot and damage_shove_headshot
    • Added QOL's old bayonet changes to QOL config
    • Fixed bow shooting too fast and removed 20-round revolver from QOL config (Thanks Kevin)

    1.0.1 - 2018-12-13
    • Renamed qol.cfg so it doesn't overwrite QOL plugin's config (Thanks overmase)

    1.0.0 - 2018-12-12
    • Re-release of original QOL system in separate plugin
    Attached Files
    File Type: zip dhooks-detours7-for-sourcemod-1.10.zip (442.5 KB, 62 views)
    File Type: zip nmrih-weapon-configs-1.0.2-sm1.9.zip (53.6 KB, 30 views)
    __________________

    Last edited by Ryan.; 12-30-2018 at 15:50. Reason: Updated to version 1.0.2
    Ryan. is offline
    Ryan.
    Member
    Join Date: Jan 2018
    Old 12-13-2018 , 20:11   Re: [NMRiH] Weapon Configs (v1.0.1, 2018-12-13)
    Reply With Quote #2

    Fixed an issue where this plugin's qol.cfg would overwrite another plugin's config. Thanks overmase!
    Ryan. is offline
    Maxovich
    New Member
    Join Date: Nov 2017
    Old 12-20-2018 , 21:24   Re: [NMRiH] Weapon Configs (v1.0.1, 2018-12-13)
    Reply With Quote #3

    Nice work!
    Maxovich is offline
    Ryan.
    Member
    Join Date: Jan 2018
    Old 12-29-2018 , 02:09   Re: [NMRiH] Weapon Configs (v1.0.2, 2018-12-29)
    Reply With Quote #4

    Changes in version 1.0.2:
    • Added damage_thrown_headshot and damage_shove_headshot
    • Added QOL's old bayonet changes to QOL config
    • Fixed bow shooting too fast and removed 20-round revolver from QOL config (Thanks Kevin)

    Thanks to Kevin for spotting some big mistakes in the way bow behavior was working as well as oversights in the Quality of Life weapon config.

    The new weapon options (damage_thrown_headshot and damage_shove_headshot) control the amount of damage zombies take when hit in the head by a thrown weapon or weapon shove. If a weapon defines "damage_thrown" but doesn't define "damage_thrown_headshot" then the plugin will fallback to the custom "damage_thrown" value when a zombie is hit in the head by a thrown weapon. Similar thing happens with damage_shove and damage_shove_headshot.

    This upload was made using Sourcemod 1.9 so it should work correctly in both Sourcemod versions 1.9 and 1.10.
    Ryan. is offline
    GEEEX221
    New Member
    Join Date: Jun 2018
    Old Today , 08:34   Re: [NMRiH] Weapon Configs (v1.0.2, 2018-12-29)
    Reply With Quote #5

    Hi Ryan!
    I have a problem.
    I am trying to use your plugin, but only the parameters for changing the speed of reloading / firing / checking the number of ammo work in it.
    Parameters of damage, capacity - the most important - do not work.
    For example:
    "weapon_options"
    {
    "fa_mp5a3"
    {
    "damage_headshot" "500"
    "capacity" "40"
    }
    }
    When I create this weapon for verification, it appears with 30 cartridges, as by default. Well, it can still be recharged to 40, but still, something is wrong.
    Damage to the head remains the same - 300.
    What have I done wrong?

    P.S.:I copied the text of the file, but it is displayed incorrectly. In fact, I did everything right.

    Last edited by GEEEX221; Today at 08:35.
    GEEEX221 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 11:54.


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