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

[NMRiH] Quality of Life: game fixes (v2.0.3, 2019-11-21)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Ryan.
Member
Join Date: Jan 2018
Plugin ID:
5999
Plugin Version:
2.0.3
Plugin Category:
Gameplay
Plugin Game:
No More Room in Hell
Plugin Dependencies:
    Servers with this Plugin:
    13 
    Plugin Description:
    Adds sound effects, fixes bugs, restores features, improves No More Room in Hell!
    Old 01-21-2018 , 21:59   [NMRiH] Quality of Life: game fixes (v2.0.3, 2019-11-21)
    Reply With Quote #1

    This is a plugin for No More Room in Hell that attempts to fix bugs, make gameplay changes, and improve the quality of the game.

    It requires DHooks: https://forums.alliedmods.net/showthread.php?t=180114

    Features/changes

    Each of the following features has an associated ConVar that can be used to disable or alter the behaviour. For the full ConVar list, refer to the included qol_readme.txt.

    Zombies:
    • Fixes zombies grabbing players during cutscenes.
    • Fixes zombies hurting player through some objects like doors.
    • Fixes zombies hurting players that they have their back to.
    • Fixes exploit where zombies won't attack when a prop is held within their hull.
    • Prevents zombies from grabbing players in some situations where the player can't shove back.
    • Reduced damage to barricades when hitting multiple at a time.

    National Guard:
    • Option to toggle frag grenade spawning (legacy feature).

    Kids:
    • Fixes boys T-posing when climbing.

    Player:
    • Infected players won't reanimate if killed by 100 points of damage.
    • Players can shove during ironsight animations.
    • Player's shove hits more than one zombie.
    • Players earn a kill on the scoreboard when suiciding and infected.

    Medicine:
    • Sounds are audible to other players.
    • Medical items can be equipped at any time to allow throwing.

    Barricade:
    • Hammering sounds are emitted to other players.
    • Damage is visualized through model darkening.
    • New sounds when damaged or breaking.
    • Nailed boards can be recollected with hammer's charged attack.

    Melee weapons:
    • Charged melee hits only drain stamina once.
    • Melee weapons ignore stamina drain on walls if at least one zombie was hit.
    • Heavy melee weapons (fubar, sledge and pickaxe) use 20% of stamina cost on additional hits.

    Firearms/explosives:
    • Arrows can be retrieved from doors and rotate with attached objects faithfully.
    • TNT and frag grenades detonate slightly off-ground for improved effectiveness.
    • Alternate explosion sounds (legacy feature).
    • Players are awarded kills from gas can fires.
    • Fixes board ammo that gave nothing.

    Other:
    • Fixes misplaced map items being unobtainable.
    • Fixes func_breakables damaging players when touched (glass roof on Brooklyn, vent on Fema, etc).
    • Client command to fix ice-skating movement.
    • Customizable grace period for spawning late-joining players.
    • Exposes forwards for other Sourcemod plugins (see below).

    Commands
    • sm_skaterboy - Fix jittery ice-skating player movement.

    Forwards
    PHP Code:
    // Called whenever a national guard spawns a loot drop.
    public void OnNationalGuardLoot(int national_guardint loot);

    // Called whenever player consumes a medical item.
    public void OnPlayerUsedBandages(int playerint item);
    public 
    void OnPlayerUsedPills(int playerint item);
    public 
    void OnPlayerUsedFirstAid(int playerint item);
    public 
    void OnPlayerUsedGeneTherapy(int playerint item);

    // Called when a player recollects a barricade board.
    public void OnBarricadeCollected(int playerint board); 
    Changelog

    2.0.3 - 2019-11-21
    • Added qol_prevent_late_spawn_abuse as suggested by Holy Crap
      • When enabled, players are eligible for late spawn once per respawn event. This means players cannot abuse the late spawn system by reconnecting after dying.

    2.0.2 - 2019-02-25
    2.0.1 - 2018-10-26
    • Fixed /skaterboy breaking during pre-round freeze time - Thanks Holy Crap
    • Fixed cvar typo in readme - Thanks mrpeanut188

    Previous changes

    Rationale

    Bandages, pills, gene therapy and first aid can be made equippable at all times. This allows players to preemptively select a medical item for anticipated damage or throw them to distant teammates. The rules for using the items remain unchanged.

    New sounds effects enhance the game's atmosphere. Player actions are immediately conveyed to teammates within earshot including medkit stitching sounds, pill bottle rattling and barricade nailing.

    A substantial change the plugin makes is to how stamina is drained using melee weapons. In vanilla NMRiH, melee weapons drain stamina for each object they make contact with in a swing. This means that fighting in a narrow hall or aiming downwards at a crawler nearly guarantees you'll lose stamina twice. With a weapon like the fubar, this results in a loss of 60% of your stamina in one swing at a single zombie.

    Quality of Life can change this behaviour so that hitting a wall doesn't drain your stamina if a zombie has also been hit. The fubar, sledge and pickaxe can be further changed to reduce less stamina on subsequent hits than normally. These weapons already have hefty stamina costs, typically 2x that of the smaller ones, so this change encourages multi-hits and makes the weapons more versatile.

    The barricade hammer can be used to retrieve nailed boards. Players need not sacrifice a misplaced board nor find an alternative entrance. By default, boards can only be recollected if they're at full health. This threshold, like everything else in QOL, is customizable.

    The /skaterboy command can fix the jittery, ice-skating movement caused by alt-tabbing.

    Special thanks
    Attached Files
    File Type: zip nmrih-qol-2.0.3.zip (107.6 KB, 815 views)
    __________________

    Last edited by Ryan.; 11-21-2019 at 21:09. Reason: Updated to v2.0.3
    Ryan. is offline
    MsDysphie
    AlliedModders Donor
    Join Date: Dec 2017
    Old 01-22-2018 , 08:35   Re: [NMRiH] Quality of Life: game fixes (v0.2 beta, 22/01/18)
    Reply With Quote #2

    NMRiH 1.11.5 Version

    https://github.com/dysphie/nmrih-qol...ses/tag/v2.1.5

    This is an unofficial fork maintained by me, made to work with the latest updates

    Last edited by MsDysphie; 08-30-2021 at 11:19.
    MsDysphie is offline
    Ryan.
    Member
    Join Date: Jan 2018
    Old 01-22-2018 , 17:18   Re: [NMRiH] Quality of Life: game fixes (v0.2 beta, 22/01/18)
    Reply With Quote #3

    Thanks for the feedback, MsDysphie. I will make that my next task. There's a couple ConVars right now for changes I anticipated to be controversial but I agree that ultimately everything should be up to the host.

    I hope you continue working on your plugin!

    Last edited by Ryan.; 01-22-2018 at 17:18.
    Ryan. is offline
    Ryan.
    Member
    Join Date: Jan 2018
    Old 01-26-2018 , 20:14   Re: [NMRiH] Quality of Life: game fixes (v0.5.0 beta, 26/01/2018)
    Reply With Quote #4

    New features in beta 0.5.0:
    • Added option to prevent exploit with supply drops and med-boxes where zombies wouldn't attack players.
    • Added option to emit bleedout pain sounds from other players.
    • Added National Guard crawlers.
    • Added ConVars to control scale of stamina drained by multi-hits for:
      • Any charged melee attack
      • Quick attack with fubar, sledge and pickaxe
      • Quick attack with other melee weapons
    • Changed QOL's default SV10 reload boost from 40% to 16%.

    Some ConVars were renamed and several more added so if you're running a previous version you'll probably want to delete your old plugins.qol.cfg under "nmrih/cfg/sourcemod".

    Last edited by Ryan.; 01-27-2018 at 16:29.
    Ryan. is offline
    Saref
    Junior Member
    Join Date: Jan 2018
    Old 01-28-2018 , 05:34   Re: [NMRiH] Quality of Life: game fixes (v0.5.0 beta, 26/01/2018)
    Reply With Quote #5

    Author plugin going to correct these errors?

    Code:
    L 01/24/2018 - 00:41:59: SourceMod error session started
    L 01/24/2018 - 00:41:59: Info (map "nmo_broadway") (file "errors_20180124.log")
    L 01/24/2018 - 00:41:59: [SM] Fatal error encountered parsing translation file "plugin.rockthevote.txt"
    L 01/24/2018 - 00:41:59: [SM] Error (line 0, column 0): Stream failed to open
    L 01/24/2018 - 14:51:30: SourceMod error session started
    L 01/24/2018 - 14:51:30: Info (map "nmo_fema") (file "errors_20180124.log")
    L 01/24/2018 - 14:51:30: [SM] Exception reported: Invalid entity index -1
    L 01/24/2018 - 14:51:30: [SM] Blaming: qol.smx
    L 01/24/2018 - 14:51:30: [SM] Call stack trace:
    L 01/24/2018 - 14:51:30: [SM]   [0] EntIndexToEntRef
    L 01/24/2018 - 14:51:30: [SM]   [1] Line 458, qol.sp::DHook_PreventPhantomMedical
    
    L 01/26/2018 - 10:07:12: SourceMod error session started
    L 01/26/2018 - 10:07:12: Info (map "nmo_brooklyn") (file "errors_20180126.log")
    L 01/26/2018 - 10:07:12: [SM] Exception reported: Invalid entity index -1
    L 01/26/2018 - 10:07:12: [SM] Blaming: qol.smx
    L 01/26/2018 - 10:07:12: [SM] Call stack trace:
    L 01/26/2018 - 10:07:12: [SM]   [0] EntIndexToEntRef
    L 01/26/2018 - 10:07:12: [SM]   [1] Line 481, qol.sp::DHook_PreventPhantomMedical
    L 01/26/2018 - 10:29:19: [SM] Exception reported: Invalid entity index -1
    L 01/26/2018 - 10:29:19: [SM] Blaming: qol.smx
    L 01/26/2018 - 10:29:19: [SM] Call stack trace:
    L 01/26/2018 - 10:29:19: [SM]   [0] EntIndexToEntRef
    L 01/26/2018 - 10:29:19: [SM]   [1] Line 481, qol.sp::DHook_PreventPhantomMedical
    L 01/26/2018 - 10:34:18: Error log file session closed.
    L 01/26/2018 - 13:32:57: SourceMod error session started
    L 01/26/2018 - 13:32:57: Info (map "nmo_brooklyn") (file "errors_20180126.log")
    L 01/26/2018 - 13:32:57: [SM] Exception reported: Invalid entity index -1
    L 01/26/2018 - 13:32:57: [SM] Blaming: qol.smx
    L 01/26/2018 - 13:32:57: [SM] Call stack trace:
    L 01/26/2018 - 13:32:57: [SM]   [0] EntIndexToEntRef
    L 01/26/2018 - 13:32:57: [SM]   [1] Line 481, qol.sp::DHook_PreventPhantomMedical
    L 01/26/2018 - 13:56:04: Error log file session closed.

    Last edited by Saref; 01-28-2018 at 05:42.
    Saref is offline
    Saref
    Junior Member
    Join Date: Jan 2018
    Old 01-28-2018 , 05:55   Re: [NMRiH] Quality of Life: game fixes (v0.2 beta, 22/01/18)
    Reply With Quote #6

    Quote:
    Originally Posted by MsDysphie View Post
    Looks really cool. Thanks for taking the time to make this. I'm actually working on a similar plugin and you beat me to it.

    Suggestions:
    - Make every change controllable by cvars. I really like some of those fixes but don't necessarily want faster reload times and the like.
    There are also code sources. What prevents you from correcting them by editing or deleting unnecessary parts of the code
    Saref is offline
    Ryan.
    Member
    Join Date: Jan 2018
    Old 01-28-2018 , 14:40   Re: [NMRiH] Quality of Life: game fixes (v0.5.1 beta, 28/01/2018)
    Reply With Quote #7

    Small update to 0.5.1 beta:
    • Fixed late load hooking connecting players too early.
    • Fixed phantom medical items assuming previous weapon exists.
    Ryan. is offline
    MsDysphie
    AlliedModders Donor
    Join Date: Dec 2017
    Old 01-28-2018 , 15:51   Re: [NMRiH] Quality of Life: game fixes (v0.2 beta, 22/01/18)
    Reply With Quote #8

    Quote:
    Originally Posted by Saref View Post
    There are also code sources. What prevents you from correcting them by editing or deleting unnecessary parts of the code
    It was merely a suggestion to try and improve usability for everyone. I know I'm able to edit the source code myself. So are you.
    __________________
    Discord: @dysphie
    Donations: ko-fi.com/dysphie

    Last edited by MsDysphie; 01-28-2018 at 15:58.
    MsDysphie is offline
    Saref
    Junior Member
    Join Date: Jan 2018
    Old 01-28-2018 , 16:06   Re: [NMRiH] Quality of Life: game fixes (v0.2 beta, 22/01/18)
    Reply With Quote #9

    Quote:
    Originally Posted by MsDysphie View Post
    It was merely a suggestion to try and improve usability for everyone. I know I'm able to edit the source code myself. So are you.
    If you create your own plugin, you probably know how to edit other plugins, and even more so add your cvars
    Saref is offline
    Saref
    Junior Member
    Join Date: Jan 2018
    Old 01-29-2018 , 15:52   Re: [NMRiH] Quality of Life: game fixes (v0.5.1 beta, 28/01/2018)
    Reply With Quote #10

    *Bug* You can not use flashlight with hammer.

    Last edited by Saref; 01-31-2018 at 14:13.
    Saref 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 17:58.


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