Jump to content

How to target the characters Carry Capacity?


Daevinski

Recommended Posts

I'm trying to reduce the initial Carry Capacity of the character from the default 12 to something like 6, so the first thing you need before starting looting is a bag.

 

How can I target that? There is any specific file I need to change?

 

Seems like it's related to Strength, but I'm not sure how to target that either. :|

Link to comment
Share on other sites

It is hardcoded in IsoGameCharacter.class file.

BaseMaxWeight = 8.

And then there is the STR carry capacity bonus.

There is a function that is setMaxWeight().

So maybe in a function (called at creation of character with an event ?) you could change it :

 

getPlayer():setMaxWeight() = 2 ?

 

Or something like that...

Better coders will help you with that I guess :)

 

Link to comment
Share on other sites

I correct myself :

 

there is also a setMaxWeightBase() function,

 

so you should start with :

getPlayer():setMaxWeightBase() = 2

 

But I guess you have to mess up with OnCreatePlayer event, and I don't know how to handle that, sorry.

Link to comment
Share on other sites

I found the solution in the mod "MaxWeight Mod" by Starscream.

 

 

 

After hours looking for a solution, at the end it was part of a mod that does the opposite of what I'm trying to achieve. lol

 

I'm gonna add it to my mod, with the proper credit.

 

Thanks anyway.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...