Jump to content

Recommended Posts

ok. maybe not that huge. but i was tooling around with some hunger and sanity and now ive done goofed.

the game crashes. and the mod wont even load. have a look

 

local fn = function(inst)
    inst.components.health.maxhealth = 100
    inst.components.hunger.maxhunger = 125
    inst.components.sanity.max = 250
    inst.components.sanity.current = 250
    inst.components.sanity.night_drain_mult = 2
    inst.components.locomotor.walkspeed = (TUNING.WILSON_WALK_SPEED * 1.2)
    inst.components.locomotor.runspeed = (TUNING.WILSON_RUN_SPEED * 1.3)
    inst.components.hunger:SetMax(TUNING.WILSON_HUNGER * 1.0)
    inst.components.combat.damagemultiplier = 1.0
 
MakeGhostPhysics(inst, 75, .5)
inst.MiniMapEntity:SetIcon( "visited.png" )
inst.soundsname = "wilson"
 
end
 
im not done. this is basically just a template of what i planned on doing.

 

 

ok. maybe not that huge. but i was tooling around with some hunger and sanity and now ive done goofed.

the game crashes. and the mod wont even load. have a look

 

local fn = function(inst)
    inst.components.health.maxhealth = 100
    inst.components.hunger.maxhunger = 125
    inst.components.sanity.max = 250
    inst.components.sanity.current = 250
    inst.components.sanity.night_drain_mult = 2
    inst.components.locomotor.walkspeed = (TUNING.WILSON_WALK_SPEED * 1.2)
    inst.components.locomotor.runspeed = (TUNING.WILSON_RUN_SPEED * 1.3)
    inst.components.hunger:SetMax(TUNING.WILSON_HUNGER * 1.0)
    inst.components.combat.damagemultiplier = 1.0
 
MakeGhostPhysics(inst, 75, .5)
inst.MiniMapEntity:SetIcon( "visited.png" )
inst.soundsname = "wilson"
 
end
 
im not done. this is basically just a template of what i planned on doing.

 

 

You're setting max hunger twice?

Other than that, I can't help you either

 

 

ok. maybe not that huge. but i was tooling around with some hunger and sanity and now ive done goofed.

the game crashes. and the mod wont even load. have a look

 

local fn = function(inst)
    inst.components.health.maxhealth = 100
    inst.components.hunger.maxhunger = 125
    inst.components.sanity.max = 250
    inst.components.sanity.current = 250
    inst.components.sanity.night_drain_mult = 2
    inst.components.locomotor.walkspeed = (TUNING.WILSON_WALK_SPEED * 1.2)
    inst.components.locomotor.runspeed = (TUNING.WILSON_RUN_SPEED * 1.3)
    inst.components.hunger:SetMax(TUNING.WILSON_HUNGER * 1.0)
    inst.components.combat.damagemultiplier = 1.0
 
MakeGhostPhysics(inst, 75, .5)
inst.MiniMapEntity:SetIcon( "visited.png" )
inst.soundsname = "wilson"
 
end
 
im not done. this is basically just a template of what i planned on doing.

 

If you were going for hunger rate on the second one, it should've been:

inst.components.hunger:SetRate(TUNING.WILSON_HUNGER_RATE* YOUR_NUMBER_HERE)

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...