Prototype/Turret: Difference between revisions
(1.0.0: added spawn_decorations_on_expansion, spawn_decoration) |
(1.1.43: energy_glow_animation_flicker_strength added) |
||
Line 70: | Line 70: | ||
{{Prototype property|glow_light_intensity|[[Types/float|float]]|0|optional=true}} | {{Prototype property|glow_light_intensity|[[Types/float|float]]|0|optional=true}} | ||
The intensity of light in the form of <code>energy_glow_animation</code> drawn on top of <code>energy_glow_animation</code>. | The intensity of light in the form of <code>energy_glow_animation</code> drawn on top of <code>energy_glow_animation</code>. | ||
{{Prototype property|energy_glow_animation_flicker_strength|[[Types/float|float]]|0.2|optional=true}} | |||
The range of the flickering of the alpha of <code>energy_glow_animation</code>. Default is range 0.2, so animation alpha can be anywhere between 0.8 and 1.0. | |||
{{Prototype property|starting_attack_sound|[[Types/Sound|Sound]]|optional=true}} | {{Prototype property|starting_attack_sound|[[Types/Sound|Sound]]|optional=true}} |
Revision as of 12:46, 24 November 2021
Template:Prototype parent A turret that needs no extra ammunition. See the extensions for turrets that need some kind of ammunition.
Extensions
- Prototype/AmmoTurret ammo-turret
- Prototype/ElectricTurret electric-turret
- Prototype/FluidTurret fluid-turret
Mandatory properties
This prototype inherits all the properties from Prototype/EntityWithHealth.
Template:Prototype property Requires ammo_type in attack_parameters.
Optional properties
Template:Prototype property The name of an entity. Note that this overrides how EntityWithHealth loads the corpse, forcing it to be a string instead of an array of strings.
Template:Prototype property
The intensity of light in the form of energy_glow_animation
drawn on top of energy_glow_animation
.
Template:Prototype property
The range of the flickering of the alpha of energy_glow_animation
. Default is range 0.2, so animation alpha can be anywhere between 0.8 and 1.0.
Template:Prototype property
Whether spawn_decoration
should be spawned when enemies expand.
Template:Prototype property
A single CreateDecorativesTriggerEffectItem or an array of them. Decoratives to be created when the spawner is created by the map generator. Placed when enemies expand if spawn_decorations_on_expansion
is set to true.