max items

The best and quickest support by a group of top-notch editing specialists, guaranteed!

Moderator: Forum Guards

max items

Postby LinaInverse » Sat Nov 10, 12 8:24 am

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).
Last edited by LinaInverse on Sat Nov 10, 12 8:52 am, edited 3 times in total.
LinaInverse
Newbie
 
Posts: 4
Joined: Sat Nov 10, 12 8:15 am

Postby Alex » Sat Nov 10, 12 11:30 am

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)
Alex
Alpha
 
Posts: 8060
Joined: Wed Nov 12, 03 4:51 pm

Postby LinaInverse » Sat Nov 10, 12 11:51 am

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?
LinaInverse
Newbie
 
Posts: 4
Joined: Sat Nov 10, 12 8:15 am

Postby Alex » Sat Nov 10, 12 10:19 pm

The variable maxCopies is in the SodaCan class, on line 31 to be exact.
Alex
Alpha
 
Posts: 8060
Joined: Wed Nov 12, 03 4:51 pm

Postby LinaInverse » Sun Nov 11, 12 1:12 am

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.
Last edited by LinaInverse on Tue Nov 13, 12 7:42 pm, edited 2 times in total.
LinaInverse
Newbie
 
Posts: 4
Joined: Sat Nov 10, 12 8:15 am


Return to Editing issues

Who is online

Users browsing this forum: No registered users and 1 guest
cron