Audio bus implemented and test pawn intro sound clips added. PawnBodies hooked up to PawnBaseData but not yet implemented.
This commit is contained in:
@@ -9,13 +9,13 @@ enum Type{
|
||||
CONTAIN
|
||||
}
|
||||
|
||||
const range_shapes : Dictionary = {
|
||||
Hack.Type.DESTROY : Vector3(4.25,3,4.25),
|
||||
Hack.Type.INFECT : Vector3(1,1,1),
|
||||
Hack.Type.CONTAIN : Vector3(1,1,1),
|
||||
Hack.Type.REDIRECT : Vector3(1,1,1),
|
||||
Hack.Type.TRIGGER : Vector3(3,1,3),
|
||||
Hack.Type.PURGE : Vector3(4.25,3,4.25),
|
||||
const range_radius : Dictionary = {
|
||||
Hack.Type.DESTROY : 2,
|
||||
Hack.Type.INFECT : .5,
|
||||
Hack.Type.CONTAIN : .5,
|
||||
Hack.Type.REDIRECT : .5,
|
||||
Hack.Type.TRIGGER : 1,
|
||||
Hack.Type.PURGE : 1.5,
|
||||
}
|
||||
const hack_icons : Dictionary = {
|
||||
Hack.Type.DESTROY : preload("res://external/destroy-icon.png"),
|
||||
@@ -34,7 +34,7 @@ const infect_emitter_template = preload("res://templates/gas_emitter.tscn")
|
||||
const force_activate_sound = preload("res://audio/sounds/TomWinandySFX_UI_ScifiTech_Start_06.wav")
|
||||
|
||||
@onready var range_area : Area3D = %RangeArea
|
||||
@onready var range_shape : BoxShape3D = %RangeShape.shape
|
||||
@onready var range_shape : SphereShape3D = %RangeShape.shape
|
||||
@onready var model : MeshInstance3D = %Model
|
||||
@onready var icon : Sprite3D = %Icon
|
||||
@onready var force_strip : Sprite3D = %ForceStrip
|
||||
@@ -113,7 +113,7 @@ func _ready() -> void:
|
||||
icon.texture = hack_icons[type]
|
||||
model.visible = owns_hack
|
||||
icon.visible = owns_hack
|
||||
range_shape.size = range_shapes[type]
|
||||
range_shape.radius = range_radius[type]
|
||||
match(type):
|
||||
Type.DESTROY:
|
||||
damage = 15
|
||||
|
||||
Reference in New Issue
Block a user