AnimatedSprite

From Cosmoteer Wiki
< Modding‎ | Projectile (modding)‎ | Projectile ComponentsModding/Projectile/Components/AnimatedSprite
Jump to navigation Jump to search
Code location (what's this?): Cosmoteer.Bullets.Graphics.BulletAnimatedSpriteRules

Renders an animated sprite on the bullet.

This projectile component gives visuals to the attached projectile, making it visible. These visuals are animated (they can change over time).

Parameters

The meaning of many of these is still undocumented or uncertain, please assist if you have the knowledge!

Complete list
Name Type Required? Buffable? Default value Description
Animation IAnimatedSprite

meaning :

?

Yes No - Presumably an animation in image format referenced by a file path.
NormalsTexture Texture?

meaning :

?

No No - Presumably an image file that contains "normals", a type of image that conveys depth information.
NormalsShader Shader?

meaning :

?

No No - A shader.
DiffuseShader Shader?

meaning :

?

No No - A shader.
IsLight bool No No - Probably something to do with low graphics settings
Offset Vector2

meaning : [float, float]

No No - Displaces the visual by a certain amount.
RotOffset Direction

meaning : 123d where 123 is your angle in degrees

No No - Rotates (turns) the visual by a certain amount.
Spin Angle No No - ??
Z float No No - Presumably makes that visual show above visuals with a lower Z, and below otherwise.
RenderBucket ID<MediaEffectBucketsRules>

meaning : ??

No No "default_bullet" ??
ReduceScaleWith ID<BulletComponentRules>?

meaning : A path to a field in a projectile's .rules file?

No No - ??
ReduceScaleExponent float No No 1 ??
LerpScaleFrom Vector2?

meaning : [float, float] ?

No No - ??
LerpTime Time

meaning : float ? (could be [float, float])

No No - Time over which to Lerp something.
LerpIntervalWith ID<BulletComponentRules>?

meaning : A path to a field in a projectile's .rules file?

No No - ??
IntervalLerp Range<float>

meaning : (float, float)

No No - ??
StartTime Time No No Time.Zero Presumably when the animation starts
EndTime Time No No Time.PositiveInfinity Presumably when the animation ends
AnimationOffset Time No No Time.Zero Presumably by how much time the animation in the referenced file(s) is fast-forwarded (or delayed).
CaptureBackBuffer bool No No - ??

Example mods

CalloutIconWarning.pngWork in Progress
This list is currently work-in-progress. Some things may be missing.

Feel free to contribute to make it better!