Jump to content

Recommended Posts

Is there a way to change the range of a sanity aura?

I can only find scripts that set inst.components.sanityaura.aura to some value like TUNING.SANITYAURA_TINY

But I think this value is the amount of sanity gain or sanity drain that you get from the aura, not the radius of the aura. I want a sanity aura with a large radius that provides a small amount of sanity.

Link to comment
https://forums.kleientertainment.com/forums/topic/77859-sanityaura-range/
Share on other sites

The radius formula is calculated to be an exponential based on distance squared.

More info from here:

The last post on that page has working code on changing the curve itself to whatever function you want it to be for all sanityauras.

If you want a custom sanity aura component behaviour then set the sanityaura component added's aurafn to a function that returns the nominal value multiplied by math.max(1, self.inst:GetDistanceSqToInst(observer)) for linear normalization.

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