Prototype/Turret: Difference between revisions
(fixed rotating_sound type) |
(0.18.35) |
||
Line 23: | Line 23: | ||
{{Prototype property|corpse|[[Types/string|string]]|optional=true}} | {{Prototype property|corpse|[[Types/string|string]]|optional=true}} | ||
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. | 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. | ||
{{Prototype property|attack_target_mask|[[Types/TriggerTargetMask|TriggerTargetMask]]|all masks|optional=true}} | |||
{{Prototype property|ignore_target_mask|[[Types/TriggerTargetMask|TriggerTargetMask]]|no masks|optional=true}} | |||
{{Prototype property|shoot_in_prepare_state|[[Types/bool|bool]]|false|optional=true}} | {{Prototype property|shoot_in_prepare_state|[[Types/bool|bool]]|false|optional=true}} | ||
Line 78: | Line 82: | ||
{{Prototype property|prepared_alternative_sound|[[Types/Sound|Sound]]|optional=true}} | {{Prototype property|prepared_alternative_sound|[[Types/Sound|Sound]]|optional=true}} | ||
{{Prototype property|rotation_speed|[[Types/float|float]]|1|optional=true}} | {{Prototype property|rotation_speed|[[Types/float|float]]|1|optional=true}} |
Revision as of 07:44, 8 July 2020
Prototype definitions » PrototypeBase » Prototype/Entity » Prototype/EntityWithHealth » Prototype/EntityWithOwner » Prototype/Turret
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.
attack_parameters
Type: AttackParameters
Requires ammo_type in attack_parameters.
folded_animation
Type: RotatedAnimation4Way
call_for_help_radius
Type: double
Optional properties
corpse
Type: string
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.
attack_target_mask
Type: TriggerTargetMask
Default: all masks
ignore_target_mask
Type: TriggerTargetMask
Default: no masks
shoot_in_prepare_state
Type: bool
Default: false
turret_base_has_direction
Type: bool
Default: false
random_animation_offset
Type: bool
Default: false
secondary_animation
Type: bool
Default: false
attack_from_start_frame
Type: bool
Default: false
allow_turning_when_starting_attack
Type: bool
Default: false
base_picture_secondary_draw_order
Type: uint8
Default: 0
gun_animation_secondary_draw_order
Type: uint8
Default: 0
base_picture_render_layer
Type: RenderLayer
Default: "lower-object"
gun_animation_render_layer
Type: RenderLayer
Default: "object"
base_picture
Type: Animation4Way
preparing_animation
Type: RotatedAnimation4Way
prepared_animation
Type: RotatedAnimation4Way
prepared_alternative_animation
Type: RotatedAnimation4Way
starting_attack_animation
Type: RotatedAnimation4Way
attacking_animation
Type: RotatedAnimation4Way
energy_glow_animation
Type: RotatedAnimation4Way
ending_attack_animation
Type: RotatedAnimation4Way
folding_animation
Type: RotatedAnimation4Way
integration
Type: Sprite
glow_light_intensity
Type: float
Default: 0
The intensity of light in the form of energy_glow_animation
drawn on top of energy_glow_animation
.
starting_attack_sound
Type: Sound
dying_sound
Type: Sound
preparing_sound
Type: Sound
folding_sound
Type: Sound
prepared_sound
Type: Sound
prepared_alternative_sound
Type: Sound
rotation_speed
Type: float
Default: 1
preparing_speed
Type: float
Default: 1
folded_speed
Type: float
Default: 1
folded_speed_secondary
Type: float
Default: 1
prepared_speed
Type: float
Default: 1
prepared_speed_secondary
Type: float
Default: 1
prepared_alternative_speed
Type: float
Default: 1
prepared_alternative_speed_secondary
Type: float
Default: 1
prepared_alternative_chance
Type: float
Default: 0
starting_attack_speed
Type: float
Default: 1
attacking_speed
Type: float
Default: 1
ending_attack_speed
Type: float
Default: 1
folding_speed
Type: float
Default: 1
prepare_range
Type: double
Default: The range defined in the attack_parameters
alert_when_attacking
Type: bool
Default: true