Update 'scripts/global.gd'

This commit is contained in:
Paul Black 2023-07-03 23:06:54 +00:00
parent 2438e71fe3
commit 481b8fee79

View file

@ -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()