HitEffect

From Cosmoteer Wiki
Modding/HitEffect
Jump to navigation Jump to search
CalloutIconWarning.png
Work in Progress
This page is currently WORK IN PROGRESS. Some things may be missing.

Feel free to contribute and don't worry about perfection - other editors can make corrections if necessary. Just get creating!

HitEffectRules

.rules file/node location: Cosmoteer.Simulation.HitEffects.HitEffectRules

The base class for weapon hit gameplay effects.

Abstract class.

Inherits nothing. Has no specific parameters.

Inheritors :

HitEffectFlags

There are 3 :

None = 0,


   /// If specified, a part's underlying parts will not be spawned on destruction.

   DontSpawnUnderlying = 1,


   /// Specified if the part is being hit because it is being deconstructed.

   IsDeconstruction = 2,

HitEffectParams

Code location (what's this?): Cosmoteer.Simulation.HitEffects.HitEffectParams

Contains parameters for a single hit effect.

Inherits from ReferenceCounted.

Note : none of the following parameters are serialized.

Parameters
Name Type Access Description
Sim SimRoot { get; private set; }
Game GameRoot?
WorldPoint Vector2 { get; set; }
WorldVelocity Vector2 { get; set; }
FrameOfReference Vector2 { get; set; }
((WIP))

Notes

Very often nested inside a DeathEffects{} component.

Examples

reactor_small :

HitEffects
[
	{
		Type = ExplosiveDamage
		TotalDamage = 90000
		// ...
		Filter
		{
			//...
		}
	}
	{
		Type = ExplosiveDamage
		//...
		Filter
		{
			//...
		}
	}
]