View Single Post
Ryan.
Member
Join Date: Jan 2018
Old 06-21-2018 , 16:28   Re: [NMRiH] Backpack (v1.2.1, 2018/06/21)
Reply With Quote #9

Quote:
Originally Posted by GEEEX221 View Post
What do I change in the file backpack.sp to make it possible to use all the cells in the bag?
Quite a bit would have to be changed since it essentially tries to mimic vanilla inventory boxes. It was built with the assumption that each item has a specific category it belongs to. As you've seen, the game doesn't like when ammo and weapons mix; names don't appear correctly and items become unobtainable.

Sourcemod can make items obtainable and the names can be fixed by adding to your resources/nmrih_<language>.txt
PHP Code:
"weapon_ammobox_9mm_short" "9mm" // Add 9mm name for weapons category
"item_pills_short" "Pills"       // Add pills name for ammo category 
ITEMBOX_MAX_SLOTS and MAX_GEAR are hardcoded limits. Increasing them beyond their original value can lead to memory stomping. The backpack's inventory space could be extended beyond 20 cells using separate memory but this would lead to some difficult usability questions (UI).

Quote:
Originally Posted by Flammable View Post
But I'v found a bug about backpacks... You see, gear and weapons is not compatible. When any firearm get's into gear selection, it will give the wrong ammo.
Fixed in newest version. Thanks for spotting it.
__________________
Ryan. is offline