Update 'scripts/global.gd'
This commit is contained in:
parent
2438e71fe3
commit
481b8fee79
1 changed files with 3 additions and 0 deletions
|
@ -53,6 +53,7 @@ var tutorialTimerCompleted = false # Used for after the timer goes off in the tu
|
|||
var playerDisable = false # Can be used to disable the player
|
||||
var playerDeathHealth = 100 # Can be changed by death.gd
|
||||
var kickAllPlayers = false # Can be set to true to kick all players in-game
|
||||
var respawnLocationChosen = true # When set to false, the game will be allowed to select a spawnpoint for the player
|
||||
|
||||
func _process(delta):
|
||||
spawn_locations()
|
||||
|
@ -74,6 +75,7 @@ func player_dead():
|
|||
if deathShield <= 0:
|
||||
deathShield = 50
|
||||
if playerAlive:
|
||||
respawnLocationChosen = false
|
||||
print("Player be deaddddd brooooooo")
|
||||
var scene_trs =load("res://scenes/death.tscn")
|
||||
var scene=scene_trs.instantiate()
|
||||
|
@ -124,6 +126,7 @@ func reset_variables_hard():
|
|||
playerDisable = false
|
||||
playerDeathHealth = 100
|
||||
kickAllPlayers = false
|
||||
respawnLocationChosen = true
|
||||
|
||||
func save_data():
|
||||
SettingsFile.save_data()
|
||||
|
|
Loading…
Reference in a new issue