fixed chest spawn location

This commit is contained in:
derek
2025-03-03 10:46:34 -06:00
parent ea68629594
commit 3e6ad2a56d
6 changed files with 8 additions and 4 deletions

View File

@@ -8,6 +8,7 @@ gamemode_name = "Cookie Mode"
estimated_difficulty = 4
win_conditions = 0
survival_time = 160.0
max_number_of_chests = 3
money_lost_multiplier = 0.5
weapon_penalty = 0
weapon_drop_percentage = 0.5

View File

@@ -8,6 +8,7 @@ gamemode_name = "HUB"
estimated_difficulty = 0
win_conditions = null
survival_time = 160.0
max_number_of_chests = 3
money_lost_multiplier = 1.0
weapon_penalty = 2
weapon_drop_percentage = 0.0

View File

@@ -8,6 +8,7 @@ gamemode_name = "Standard"
estimated_difficulty = 2
win_conditions = 0
survival_time = 160.0
max_number_of_chests = 3
money_lost_multiplier = 0.5
weapon_penalty = 0
weapon_drop_percentage = 0.5

View File

@@ -5,7 +5,7 @@
[ext_resource type="Resource" uid="uid://dn3t7wcoumlm3" path="res://GameModes/standard.tres" id="2_85uje"]
[ext_resource type="Script" path="res://gamemode.gd" id="2_hoyqc"]
[ext_resource type="Resource" uid="uid://bs8yvpq65yh3w" path="res://GameModes/cookie_mode.tres" id="3_t0mxh"]
[ext_resource type="Resource" uid="uid://dlvhtdmtln3bb" path="res://GameModes/do_not_get_hit.tres" id="4_8wht4"]
[ext_resource type="Resource" uid="uid://cwwvseoidm6ha" path="res://GameModes/DoNotGetHit.tres" id="4_8wht4"]
[ext_resource type="Resource" uid="uid://u32xafejp3rq" path="res://GameModes/standard_stam_regen.tres" id="6_vu1w7"]
[sub_resource type="Resource" id="Resource_3w5k4"]

View File

@@ -1626,7 +1626,7 @@ level_gamemode = ExtResource("44_1akso")
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -32.0955, 8.4123, 48.532)
[node name="ChestSpawner2" parent="." instance=ExtResource("43_480ap")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 32.9675, 14.6394, -0.15157)
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 32.9675, 15.717, -0.15157)
[node name="ChestSpawner3" parent="." instance=ExtResource("43_480ap")]
transform = Transform3D(-0.999819, 0, -0.0190229, 0, 1, 0, 0.0190229, 0, -0.999819, -0.87897, 5.42587, 4.28007)
transform = Transform3D(-0.999819, 0, -0.0190229, 0, 1, 0, 0.0190229, 0, -0.999819, -0.87897, 5.93516, 4.28007)

View File

@@ -97,9 +97,10 @@ func _ready():
var chest_loc = chest_spawners.pick_random()
var instance_chest = CHEST_1.instantiate()
print("SPAWNING CHEST AT : ",chest_loc.name)
get_tree().current_scene.add_child(instance_chest)
instance_chest.basis = chest_loc.basis
instance_chest.global_position = chest_loc.global_position
instance_chest.global_rotation = chest_loc.global_rotation
get_tree().current_scene.add_child(instance_chest)
number_chests -= 1