Jump to content

How do I make a positive aura?


Recommended Posts

I'm making a character that gains sanity when in the presence of other players, and they gain sanity from his presence. How do I do this?

 

I found this:
inst.components.sanity.neg_aura_mult =

so is there a:
inst.components.sanity.pos_aura_mult = 

 

Can this be used for a positive aura?
inst.components.sanityaura.aura = TUNING.SANITYAURA_LARGE

Link to comment
Share on other sites

@TheDonkeyQueen,

 

What I posted before gives positive aura.
The only difference between the positive and negative is the minus symbol:

	inst:AddComponent("sanityaura")	inst.components.sanityaura.aura = -TUNING.SANITYAURA_LARGE --Gives negative Sanity

And Sanity Aura tuning values can be found in the games tuning.lua:

		SANITYAURA_TINY = 100/(seg_time*32),		SANITYAURA_SMALL_TINY = 100/(seg_time*20),		SANITYAURA_SMALL = 100/(seg_time*8),		SANITYAURA_MED = 100/(seg_time*5),		SANITYAURA_LARGE = 100/(seg_time*2),		SANITYAURA_HUGE = 100/(seg_time*.5),
Link to comment
Share on other sites

 

@TheDonkeyQueen,

 

What I posted before gives positive aura.

The only difference between the positive and negative is the minus symbol:

	inst:AddComponent("sanityaura")	inst.components.sanityaura.aura = -TUNING.SANITYAURA_LARGE --Gives negative Sanity

And Sanity Aura tuning values can be found in the games tuning.lua:

		SANITYAURA_TINY = 100/(seg_time*32),		SANITYAURA_SMALL_TINY = 100/(seg_time*20),		SANITYAURA_SMALL = 100/(seg_time*8),		SANITYAURA_MED = 100/(seg_time*5),		SANITYAURA_LARGE = 100/(seg_time*2),		SANITYAURA_HUGE = 100/(seg_time*.5),

 

Alright, thank you very much

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
 Share

×
  • Create New...