Jump to content

Some insanity/sanity aura can't be detected


hoxi
  • Pending
    inst:AddComponent("sanityaura")
    inst.components.sanityaura.aura = -TUNING.SANITYAURA_MED

Despite them having a negative sanity aura, they can't be detected due to having the "NOCLICK" tag. Just removing the tag and doing nothing else isn't a good solution as they can block the mouse, so maybe the following could be done instead?

  • Remove line that adds "NOCLICK" tag.
  • Add "ignoremouseover" tag.
  • Add "notarget" tag if the entity would have a combat component.
  • Add inst.CanMouseThrough function that always returns true.
  • Optional, add "NOBLOCK" tag to prevent them from getting in the way of placing structures (sometimes the arm origin point can be unreachable or be across a large gap).

Not sure which of two, the "ignoremouseover" tag or the CanMouseThrough function are needed, or if both, but after testing with both, it seems to properly prevent the hands from getting in the way of the mouse or a controller, without having the "NOCLICK" tag, so that their sanity aura works.

EDIT:
Upon further investigating, it seems that all of the following entities are affected by this:

  • shadowhand
  • bigshadowtentacle
  • stageusher_attackhand
  • gestalt_alterguardian_projectile
  • smallguard_alterguardian_projectile
  • largeguard_alterguardian_projectile

As well as, there's no reason to exclude "NOCLICK" in Sanity:Recalc(), there's no entities that are incorrectly assigned both the tag and a sanity aura component, the best solution seems to just be to remove that tag from the exclude tags there. I also recommend adding something to automatically report entities that get a sanity aura component (on its creation) while having the "FX" or "DECOR" tags, as they won't be detected.

And if that changes at some point, they can be removed as well from the exclude list, the only tag that seems to make sense to exclude there is INLIMBO.

 

With that said, it also seems that some of these entities are missing certain tags, that I found out about while looking into all this:

  • shadowtentacle is missing "NOCLICK", unlike bigshadowtentacle.
  • bigshadowtentacle is missing "notarget", unlike shadowtentacle.
  • stageusher_attackhand and stageusher are missing "shadow_aligned".
  • gestalt_alterguardian_projectile, smallguard_alterguardian_projectile, alterguardianhat_projectile and largeguard_alterguardian_projectile are all missing "lunar_aligned", and all but gestalt_alterguardian_projectile (due to no combat component) are missing "notarget".

The alignment ones might be unrelated but I thought I'd mention them while at it.


Steps to Reproduce
  1. Walk close to a Night Hand (don't play as Walter).
  2. Notice how there's no change to your sanity drain, despite them having a medium drain.

EDIT:

  1. Walk close to any of the entities mentioned in the thread above (without playing as Walter).
  2. Notice how they don't affect your sanity, despite all of them having an insanity/sanity aura.



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