TheDonkeyQueen Posted December 5, 2015 Share Posted December 5, 2015 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 https://forums.kleientertainment.com/forums/topic/60138-how-do-i-make-a-positive-aura/ Share on other sites More sharing options...
Fancy_Fox_Pers Posted December 5, 2015 Share Posted December 5, 2015 @TheDonkeyQueen,I don't know much about this but maybe you should check out the code of this mod Link to comment https://forums.kleientertainment.com/forums/topic/60138-how-do-i-make-a-positive-aura/#findComment-693011 Share on other sites More sharing options...
TheDonkeyQueen Posted December 5, 2015 Author Share Posted December 5, 2015 @TheDonkeyQueen,I don't know much about this but maybe you should check out the code of this mod Thank you, I'll have a look Link to comment https://forums.kleientertainment.com/forums/topic/60138-how-do-i-make-a-positive-aura/#findComment-693016 Share on other sites More sharing options...
rons0n Posted December 5, 2015 Share Posted December 5, 2015 @TheDonkeyQueen, In your common_postinit: inst:AddComponent("sanityaura") inst.components.sanityaura.aura = TUNING.SANITYAURA_TINY Link to comment https://forums.kleientertainment.com/forums/topic/60138-how-do-i-make-a-positive-aura/#findComment-693062 Share on other sites More sharing options...
TheDonkeyQueen Posted December 5, 2015 Author Share Posted December 5, 2015 @TheDonkeyQueen, In your common_postinit: inst:AddComponent("sanityaura") inst.components.sanityaura.aura = TUNING.SANITYAURA_TINYAnd that doesn't yield negative sanity? What about LARGE and MEDIUM Link to comment https://forums.kleientertainment.com/forums/topic/60138-how-do-i-make-a-positive-aura/#findComment-693088 Share on other sites More sharing options...
rons0n Posted December 5, 2015 Share Posted December 5, 2015 @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 SanityAnd 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 https://forums.kleientertainment.com/forums/topic/60138-how-do-i-make-a-positive-aura/#findComment-693097 Share on other sites More sharing options...
TheDonkeyQueen Posted December 5, 2015 Author Share Posted December 5, 2015 @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 SanityAnd 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 https://forums.kleientertainment.com/forums/topic/60138-how-do-i-make-a-positive-aura/#findComment-693109 Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now