Quests system + Elimination quest
This commit is contained in:
parent
30e53f858f
commit
2bca6b2fe5
6 changed files with 92 additions and 0 deletions
|
|
@ -15,6 +15,8 @@ var id : String = "SingleLaserMk1"
|
|||
|
||||
var deviation : float = deg_to_rad(spread)
|
||||
|
||||
signal weapon_shooted
|
||||
|
||||
func _ready():
|
||||
randomize()
|
||||
if ship is MainShip:
|
||||
|
|
@ -23,6 +25,7 @@ func _ready():
|
|||
shoot_action = "shootprimary"
|
||||
"SecondaryWeapon":
|
||||
shoot_action = "shootsecondary"
|
||||
weapon_shooted.connect(ship.quest._restriction_no_weapon)
|
||||
elif ship is NPCShip:
|
||||
shoot_action = "npc"
|
||||
|
||||
|
|
@ -43,3 +46,4 @@ func shoot():
|
|||
proj_inst.global_rotation = spawner.global_rotation + randf_range(-deviation/2, deviation/2)
|
||||
proj_inst.faction = ship.faction
|
||||
proj_inst.modulate = ship.modulate
|
||||
weapon_shooted.emit()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue