Jump to content

Masked Pig added combat component twice


_zwb
  • DLC VERSION - IMPORTANT!: Hamlet Pending

line 154-172 of prefabs/pigbandit.lua:

    inst:AddComponent("combat")
    inst.components.combat.hiteffectsymbol = "pig_torso"
    inst.components.combat:SetRange(4)

    MakeMediumBurnableCharacter(inst, "pig_torso")

	inst:AddComponent("homeseeker")
	--inst.components.homeseeker:SetHome(SpawnPrefab("pigbanditexit"))

    inst:AddComponent("follower")
    inst.components.follower.maxfollowtime = TUNING.PIG_LOYALTY_MAXTIME

	inst:AddComponent("combat")
	inst.components.combat:SetDefaultDamage(TUNING.PIG_BANDIT_DAMAGE)
    inst.components.combat:SetAttackPeriod(TUNING.PIG_BANDIT_ATTACK_PERIOD)
    --inst.components.combat:SetRange(3)--0.7)
    inst.components.combat:SetRetargetFunction(3, Retarget)
    inst.components.combat:SetKeepTargetFunction(KeepTarget)
	inst.components.combat.hiteffectsymbol = "chest"

Steps to Reproduce

The above




User Feedback


There are no comments to display.



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