Raised This Month: $32 Target: $400
 8% 

[NMRiH] Backpack 2 (v2.0.13) [19-Jun-22]


Post New Thread Reply   
 
Thread Tools Display Modes
Author
MsDysphie
AlliedModders Donor
Join Date: Dec 2017
Plugin ID:
7855
Plugin Version:
2.0.13
Plugin Category:
Gameplay
Plugin Game:
No More Room in Hell
Plugin Dependencies:
    Servers with this Plugin:
    70 
    Plugin Description:
    Portable inventory boxes
    Old 11-15-2021 , 18:22   [NMRiH] Backpack 2 (v2.0.13) [19-Jun-22]
    Reply With Quote #1

    This is a complete rewrite of Backpack by Ryan with added features and bug fixes.

    What does this do?
    It adds portable inventory boxes to the game. They function just like normal inventory boxes except they also pick up items that are dropped on top of them. Punching one will place it on your back and allow you to carry it around the level.

    Backpacks are able to store more ammo than a regular inventory box. By default backpacks store up to 4 boxes worth of ammo per slot. This means one slot holds 4 barricade boards or 40 rounds of 9mm or 80 rounds of .22.

    Backpacks are randomly colored to help distinguish them.
    Video
    https://streamable.com/ijn9j
    Using backpacks
    • Punch backpack to wear it
    • Press drop weapon key when fists are equipped to drop it
    • Press use on a dropped backpack to access its inventory
    • Drop items on top of the backpack to store them inside

    What's new

    - NMRiH 1.12.1 support
    - No gamedata dependency, the plugin should be less prone to breaking on new updates
    - DHooks is no longer required
    - Zombies can spawn with backpacks. The backpacks can contain loot.
    - Backpacks can be made to blink instead of glow
    - Less edicts. Backpacks consume 1 entity when created instead of 2 or 3
    - No conflicts with NMS. Backpacks no longer prevent supply choppers from spawning
    - Toggleable screen hints for carrying/using backpacks
    - Fixed items colliding with the player when dropped
    What's missing

    These features are currently unavailable, though I plan on adding them

    - Speed penalties for backpack carrier
    - Backpack settings: weight, admin_can_use, admin_can_wear, zombie_can_wear, colorize
    - Admin menu
    Full info: https://github.com/dysphie/nmrih-backpack2#readme
    Download: https://github.com/dysphie/nmrih-backpack2/releases
    Source code: https://github.com/dysphie/nmrih-backpack2
    __________________
    Discord: @dysphie
    Donations: ko-fi.com/dysphie

    Last edited by MsDysphie; 06-20-2022 at 12:52.
    MsDysphie is offline
    newpsw
    Junior Member
    Join Date: Jul 2020
    Location: Korea
    Old 11-18-2021 , 15:31   Re: [NMRiH] Backpack 2 (v2.0.0) [15-Nov-21]
    Reply With Quote #2

    Hello,

    I think I found some problem.
    When I drop empty guns to backpack that gun just disappeared.
    So I try to fix like below and it looks like works.
    Is it ok to fix like that? if not could you please fix it?

    Original code :

    PHP Code:

    int AddItem
    (int ammoCountItem regbool suppressSound falsebool allowStacking true)
    {
        
    int leftover ammoCount;

        for (
    int iCOL_MAXi++) {
            if (
    leftover && (reg.columns & (<< i))) {
                
    leftover this.AddItemToColumn(iammoCountregsuppressSoundallowStacking);
            }
        }

        return 
    leftover;

    I try to fix :

    PHP Code:

    int AddItem
    (int ammoCountItem regbool suppressSound falsebool allowStacking true)
    {
        
    int leftover ammoCount;

        for (
    int iCOL_MAXi++) {
            if (
    leftover > -&& (reg.columns & (<< i))) {
                
    leftover this.AddItemToColumn(iammoCountregsuppressSoundallowStacking);
            }
        }

        return 
    leftover;

    And when I try to Equip backpack it looks like all type of slash weapon can equit it. Not just only works with punch.

    Thank you!

    Last edited by newpsw; 11-18-2021 at 15:41.
    newpsw is offline
    MsDysphie
    AlliedModders Donor
    Join Date: Dec 2017
    Old 11-19-2021 , 00:40   Re: [NMRiH] Backpack 2 (v2.0.0) [15-Nov-21]
    Reply With Quote #3

    Quote:
    Originally Posted by newpsw View Post
    Hello,

    I think I found some problem.
    When I drop empty guns to backpack that gun just disappeared.
    So I try to fix like below and it looks like works.
    Is it ok to fix like that? if not could you please fix it?
    Thanks for the bug report! this should be fixed in 2.0.2+. As for being able to pick up backpacks by shoving and slashing, that's an intentional addition

    Last edited by MsDysphie; 02-28-2022 at 03:26.
    MsDysphie is offline
    newpsw
    Junior Member
    Join Date: Jul 2020
    Location: Korea
    Old 11-21-2021 , 20:21   Re: [NMRiH] Backpack 2 (v2.0.0) [15-Nov-21]
    Reply With Quote #4

    Thank you for your quick update!
    Problem is resolved now~

    Last edited by newpsw; 11-21-2021 at 20:23.
    newpsw is offline
    backafk
    New Member
    Join Date: May 2022
    Old 06-16-2022 , 08:02   Re: [NMRiH] Backpack 2 (v2.0.12) [23-Feb-22]
    Reply With Quote #5

    Sorry, English is not my native language. Hope you can understand what I mean

    Under normal circumstances should be 120 rounds of ammunition





    drop a few bullets



    Taking ammo through the backpack will exceed the limit.


    Last edited by backafk; 06-16-2022 at 08:04.
    backafk is offline
    MsDysphie
    AlliedModders Donor
    Join Date: Dec 2017
    Old 06-19-2022 , 17:09   Re: [NMRiH] Backpack 2 (v2.0.12) [23-Feb-22]
    Reply With Quote #6

    Quote:
    Originally Posted by backafk View Post
    Taking ammo through the backpack will exceed the limit.
    Thanks for the report! This has been fixed in version 2.0.13
    __________________
    Discord: @dysphie
    Donations: ko-fi.com/dysphie
    MsDysphie is offline
    qingshanchengg
    Junior Member
    Join Date: Jan 2023
    Old 05-29-2023 , 08:43   Re: [NMRiH] Backpack 2 (v2.0.13) [19-Jun-22]
    Reply With Quote #7

    When using a first aid kit, drop it into your backpack as soon as you complete the action. Health is increased, and the first aid kit is not consumed
    __________________
    :>
    qingshanchengg is offline
    MsDysphie
    AlliedModders Donor
    Join Date: Dec 2017
    Old 05-31-2023 , 17:46   Re: [NMRiH] Backpack 2 (v2.0.13) [19-Jun-22]
    Reply With Quote #8

    Quote:
    Originally Posted by qingshanchengg View Post
    When using a first aid kit, drop it into your backpack as soon as you complete the action. Health is increased, and the first aid kit is not consumed
    Thanks, fixed in 2.0.16
    __________________
    Discord: @dysphie
    Donations: ko-fi.com/dysphie
    MsDysphie 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 18:46.


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