Page 1 of 1
max items
Posted:
Sat Nov 10, 12 8:24 am
by LinaInverse
Can some1 tell me is it possible to edit the max quantity of items in inventory. For ex. if I want to carry 24 sodacans, or 31 medkit.
I already tried to export all and search for that, but no success...
I can't see the "maxCopies" anywhere in the classes (where I need).
Posted:
Sat Nov 10, 12 11:30 am
by Alex
To carry multiple items, you need to set these variables, in the defaultproperties:
- Code: Select all
maxCopies=10
bCanHaveMultipleCopies=True
The actual code that uses those variables is
HandlePickupQuery in DeusExPickup (line 32)
Posted:
Sat Nov 10, 12 11:51 am
by LinaInverse
Thank you. But how the game knows how many sodacans i can pickup, if there's no such property as maxcopies in the "default" settings of it's class, for example, like in ammo (than again - no "maxcopies" for LAM)? Is it hardcoded?
Posted:
Sat Nov 10, 12 10:19 pm
by Alex
The variable maxCopies is in the SodaCan class, on line 31 to be exact.
Posted:
Sun Nov 11, 12 1:12 am
by LinaInverse
oh my god... ok, i admit that i'm blind, and my noobishness reaches beyond limits, but allow me one more question - why i can't see these "maxcopies" in the editor, only when exported? it's a bug? or my stupidity again?
---
OK lets consider this topic as closed. Thanks again.