HitEffect
< Modding
Modding/HitEffectWork 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 :
- ResourceDrain
- AreaReseourceDrain
- Feedback
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.
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
{
//...
}
}
]