ani
This commit is contained in:
@@ -5,6 +5,7 @@ extends SceneTree
|
||||
|
||||
var _frames := 0
|
||||
var _out_dir := "."
|
||||
var _skin_id := "default"
|
||||
var _player: Node = null
|
||||
var _model: Node = null
|
||||
var _jets: PlayerJetVFX = null
|
||||
@@ -17,6 +18,8 @@ func _initialize() -> void:
|
||||
var args := OS.get_cmdline_user_args()
|
||||
if not args.is_empty():
|
||||
_out_dir = args[0]
|
||||
if args.size() > 1:
|
||||
_skin_id = args[1]
|
||||
if not _out_dir.is_absolute_path():
|
||||
_out_dir = ProjectSettings.globalize_path(_out_dir)
|
||||
var err := DirAccess.make_dir_recursive_absolute(_out_dir)
|
||||
@@ -32,7 +35,7 @@ func _process(_delta: float) -> bool:
|
||||
if _frames == 35:
|
||||
var skins = root.get_node_or_null("SkinManager")
|
||||
if skins:
|
||||
skins.set_active_skin("miku")
|
||||
skins.set_active_skin(_skin_id)
|
||||
var network = root.get_node_or_null("NetworkManager")
|
||||
if network and network.has_method("start_singleplayer_match"):
|
||||
network.start_singleplayer_match(GameMode.DEATHMATCH)
|
||||
|
||||
Reference in New Issue
Block a user