removed jolt physics addon as it is now default, started playing with seed generation of playlists
This commit is contained in:
@@ -3,7 +3,6 @@ class_name level
|
||||
|
||||
@export var map_name : String = "Map Name"
|
||||
@export var gamemode : gamemode = preload("res://GameModes/standard.tres")
|
||||
@export var player : Node
|
||||
@export var MAX_PARTICLES = 100
|
||||
@export var time_based_sun : DirectionalLight3D
|
||||
|
||||
@@ -14,6 +13,7 @@ const DEAD_ANNOUNCE = preload("res://assets/dead_announce.tscn")
|
||||
const CHEST_1 = preload("res://chest1.tscn")
|
||||
|
||||
var level_name
|
||||
var player
|
||||
var paused = false
|
||||
var chest_spawners = []
|
||||
var pickups = []
|
||||
@@ -106,28 +106,6 @@ func refresh_scene():
|
||||
respawn_position = player.camera.global_position
|
||||
respawn_cam_rotation = player.global_transform.basis
|
||||
|
||||
if player:
|
||||
#Set up starting guns and ammo
|
||||
if gamemode.gun_1 != null:
|
||||
GameGlobals.held_guns = [gamemode.gun_1]
|
||||
var instance_gun = GameGlobals.held_guns[0].instantiate()
|
||||
player.add_ammo(true,instance_gun.gun_name,instance_gun.ammo_type,instance_gun.max_ammo,instance_gun.start_mags)
|
||||
|
||||
if gamemode.gun_2 != null:
|
||||
GameGlobals.held_guns.append(gamemode.gun_2)
|
||||
var instance_gun_2 = GameGlobals.held_guns[1].instantiate()
|
||||
player.add_ammo(true,instance_gun_2.gun_name,instance_gun_2.ammo_type,instance_gun_2.max_ammo,instance_gun_2.start_mags)
|
||||
|
||||
# Spawn first gun
|
||||
if gamemode.gun_1 != null:
|
||||
GameGlobals.current_gun_index = 0
|
||||
gun_spawn(0)
|
||||
|
||||
|
||||
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||
func _process(_delta):
|
||||
pass
|
||||
|
||||
|
||||
func gun_spawn(index):
|
||||
|
||||
|
||||
Reference in New Issue
Block a user