View Single Post
Author Message
Ryan.
Member
Join Date: Jan 2018
Old 06-11-2018 , 01:55   [NMRiH] Backpack (v1.3.1, 2019-03-24)
Reply With Quote #1

This plugin for No More Room in Hell 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 coloured 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

Installation
Commands
By default all commands require slay permission.
  • /backpack - Opens the backpack menu
  • /createbackpack [#userid|name]
    • Creates a backpack for the executing player or in front of the player(s) specified
  • /removebackpack [#userid|name]
    • Removes a backpack targeted by the executing player or worn by the specified player(s)
  • /bringbackpack [#userid|name]
    • Opens a menu for teleporting backpacks to the player. Takes backpacks from the specified player(s)

ConVars
  • sm_backpack_count "1"
    • Number of backpacks to create at round start. Won't create more backpacks than there are players.
  • sm_backpack_ammo_stack_limit "4"
    • Number of ammo pickups that can be stored in each ammo slot. Use 0 for infinite.
  • sm_backpack_only_admins_can_wear "0"
    • Only allow admins to wear backpacks.
  • sm_backpack_only_admins_can_open "0"
    • Only allow admins to open backpacks.
  • sm_backpack_colorize "1"
    • Randomly colorize backpacks to help distinguish them.
  • sm_backpack_glow "1"
    • Glow dropped backpacks and add marker to compass.
  • sm_backpack_speed "0"
    • Whether players should be slowed down when carrying a backpack.
  • sm_backpack_speedfactor_norm "1.0"
    • Move speed factor when backpack is less than half full.
  • sm_backpack_speedfactor_half "0.9"
    • Move speed factor when backpack is at least half full.
  • sm_backpack_speedfactor_full "0.75"
    • Move speed factor when backpack is full.


Thanks to
NMRiH team
SourceMod team
Dr!fter
Peace-Maker
Flench
Flammable
GEEEX221
Changelog
1.3.1 - 2019/03/24
  • Fixed crash caused when a supply drop would arrive -- Thanks GEEEX221

1.3.0 - 2018-12-30
  • Added option to glow backpacks and show compass marker: sm_backpack_glow
  • Added option to slow down backpack carrier:
    • sm_backpack_speed, whether to slow down backpack carrier
    • sm_backpack_speedfactor_norm, move factor when backpack is less than half full
    • sm_backpack_speedfactor_half, move factor when backpack is more than half full
    • sm_backpack_speedfactor_full, move factor when backpack is full
  • Added support for multiple backpack types:
    • Defined in backpack.cfg
    • Each backpack type can specify its own model and sounds
    • Types can override sm_backpack_colorize and sm_backpack_only_admins_*
  • Fixed backpack blocking flare gun calling chopper -- Thanks GEEEX221
    • sm_backpack_keep_supply_drops, prevents non-empty inventory boxes from fading out when a new one is created
    • sm_backpack_supply_drop_cooldown, number of seconds players must wait between calling supply drops
  • Updated gamedata for NMRiH 1.10

1.2.1
  • Fixed gear items' ammo not saving correctly -- Thanks Flammable

1.2
  • More plugin control from backpack.cfg:
    • Added "itembox_model" and "ornament_model"
    • Added "backpack_sounds"
  • Added sm_backpack_colorize cvar
  • Implemented OnSupplyChancesModifyBox to cooperate with Supply Chances plugin
  • Fixed missing call to AutoExecConfig: will now load plugin.backpack.cfg

1.1
  • Per Flammable's feedback:
    • Added sm_backpack_only_admins_can_wear
    • Added sm_backpack_only_admins_can_open
    • Fixed readme showing wrong cvar name
Attached Files
File Type: zip nmrih-backpack-v1.3.1.zip (140.5 KB, 811 views)
__________________

Last edited by Ryan.; 03-24-2019 at 20:48. Reason: Updated to v1.3.1
Ryan. is offline