Reducing Camera Shake When Using Explosive Projectiles

Started by Wildfire628, October 23, 2018, 07:40:55 AM

Previous topic - Next topic

Wildfire628

I've been looking for a way to modify the amount of camera shake explosive projectiles generate using XML. I've tried using the CompProperties_CameraShaker with a negative value under the projectile's thingDef to no avail (the effect does seem to apply to the weapon's thingDef when it explodes by CompProperties_Explosive however). Am I missing something or would this require a C# solution?


Wildfire628

Thank you! That was exactly the example I needed and my implementation worked like a dream!
I was also toying around with turning the constant value into a value to be parsed from the damageDef to make it adjustable outside of the explosion radius, but I've been struggling since my C# knowledge is limited to concepts. Gives me something to work toward though I guess lol