Jump to content

Whip's Super Crack hits oneself

  • Fixed

During the development of a mod I noticed function whip.lua:33 supercrack search did not exclude the inst itself. So when a mob rather than a player is using a whip, it can actually hit itself, which makes an awkward situation.

Just add a check can avoid this.

for i,v in ipairs(ents) do
	if v~=inst then


Steps to Reproduce

Give a mob a whip and let it attack you.

User Feedback

A developer has marked this issue as fixed. This means that the issue has been addressed in the current development build and will likely be in the next update.

Not as simple as that check but yes the idea is sound.

Changed Status to Fixed

  • Like 2
  • GL Happy 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...