Jump to content

Ranged Volt Goat shock


maradyne
  • Pending

Shooting a charged Volt Goat with a Fire Dart shocks the attacker, because the fire dart pushes an event resembling a normal melee attack.
This may apply to other ranged weapons.

Untitled.png


Steps to Reproduce

Shoot a charged Volt Goat with a Fire Dart.

  • Like 2



User Feedback


I reported this before...

They even fixed it in ds....

 

pain, my guess is they dont want to fix this because it would require adding special support for all ranged weapons and that might break really old mods (idk??)

Edited by HalfEnder776

Share this comment


Link to comment
Share on other sites

On 7/4/2023 at 9:57 PM, HalfEnder776 said:

I reported this before...

They even fixed it in ds....

 

pain, my guess is they dont want to fix this because it would require adding special support for all ranged weapons and that might break really old mods (idk??)

There actually is specific code for ranged weapons, and the fire dart uses it...it just uh, also uses code to get things to aggro on the shooter that makes it look like a melee attack to the goat.

But these days, there are a few better ways to set the target without using that.

Share this comment


Link to comment
Share on other sites

9 hours ago, maradyne said:

There actually is specific code for ranged weapons, and the fire dart uses it...it just uh, also uses code to get things to aggro on the shooter that makes it look like a melee attack to the goat.

But these days, there are a few better ways to set the target without using that.

It's been a while but I think I gave up because of complex projectiles like wolfgangs dumbells (they can both be ranged and melee)

Share this comment


Link to comment
Share on other sites

16 minutes ago, HalfEnder776 said:

It's been a while but I think I gave up because of complex projectiles like wolfgangs dumbells (they can both be ranged and melee)

Oh.

No, the problem isn't in projectiles as a component or anything; other projectiles don't have this result unless they deal damage, or have specific code that causes it.
The problem is that fire darts have one line of code that pushes a damageless attack to trigger aggro.
There are better ways to push aggro, like combat:SetTarget. I've used this in a mod to fix the problem; maybe there are better methods, and I've seen other ways of setting aggro, but it seems to work.

Edited by maradyne

Share this comment


Link to comment
Share on other sites

Can Klei Fixed this? I want a volt goat milk farm but this electric reflect is hurting wionna catapult so much that its impossible for the farm to work 

  • Thanks 1

Share this comment


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