Jump to content

Recommended Posts

In SGlightninggoat.lua, you see this code:

if inst.charged then
	inst.components.combat:DoAttack(inst.sg.statemem.target, nil, nil, "electric")
else
	inst.components.combat:DoAttack(inst.sg.statemem.target)
end

The "electric" part determines the stimuli of the attack. If it is electric, then there will be a certain amount of bonus damage if the target is wet.

Also the shock damage that you see defined in lightninggoat.lua is the damage that you receive when you attack a charged lightninggoat, which is why it is called in OnAttacked. The DoAttack call in SGlightninggoat.lua on the other hand is when the lightninggoat itself attacks.

Edited by Joachim

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