Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local function onbecamehuman(inst)
- if inst.prefab == nil then
- --when entity is being spawned
- CustomSetDebuffSymbolForSkinMode(inst, "normal_skin")
- --CustomSetShadowForSkinMode(inst, "normal_skin") --should be same as default already
- elseif not inst.sg:HasStateTag("ghostbuild") then
- CustomSetSkinMode(inst, "normal_skin")
- end
- inst.MiniMapEntity:SetIcon("woodie.png")
- inst.components.locomotor.runspeed = TUNING.WILSON_RUN_SPEED
- inst.components.combat:SetDefaultDamage(TUNING.UNARMED_DAMAGE)
- inst.components.combat.bonusdamagefn = nil
- inst.components.health:SetAbsorptionAmount(0)
- inst.components.sanity.custom_rate_fn = nil
- inst.components.pinnable.canbepinned = true
- if not GetGameModeProperty("no_hunger") then
- inst.components.hunger:Resume()
- if IsWereMode(inst.weremode:value()) then
- inst.components.hunger:SetPercent(0, true)
- end
- end
- inst.components.temperature.inherentinsulation = 0
- inst.components.temperature.inherentsummerinsulation = 0
- inst.components.moisture:SetInherentWaterproofness(0)
- inst.components.talker:StopIgnoringAll("becamewere")
- inst.components.catcher:SetEnabled(true)
- inst.components.stormwatcher:SetSandstormSpeedMultiplier(TUNING.SANDSTORM_SPEED_MOD)
- inst.components.carefulwalker:SetCarefulWalkingSpeedMultiplier(TUNING.CAREFUL_SPEED_MOD)
- inst.components.wereeater:ResetFoodMemory()
- inst.components.wereness:StopDraining()
- if inst.components.inspectable.getstatus == GetWereStatus then
- inst.components.inspectable.getstatus = inst._getstatus
- inst._getstatus = nil
- end
- inst.CanExamine = nil
- --[[if inst.components.playercontroller ~= nil then
- inst.components.playercontroller:SetCanUseMap(true)
- end]]
- SetWereDrowning(inst, WEREMODES.NONE)
- SetWereRunner(inst, WEREMODES.NONE)
- SetWereWorker(inst, WEREMODES.NONE)
- SetWereFighter(inst, WEREMODES.NONE)
- SetWereActions(inst, WEREMODES.NONE)
- SetWereSounds(inst, WEREMODES.NONE)
- SetWereVision(inst, WEREMODES.NONE)
- ChangeWereModeValue(inst, WEREMODES.NONE)
- OnResetBeard(inst)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement