Fixed shield crash and material coloring

This commit is contained in:
gotfishmakesticks 2024-01-18 13:43:03 +03:00
commit 255a47f6da
7 changed files with 10 additions and 12 deletions

View file

@ -45,5 +45,5 @@ func shoot():
proj_inst.global_position = spawner.global_position
proj_inst.global_rotation = spawner.global_rotation + randf_range(-deviation/2, deviation/2)
proj_inst.faction = ship.faction
proj_inst.modulate = ship.modulate
proj_inst.modulate = ship.material.get_shader_parameter('color')
weapon_shooted.emit()