multiplayer pretty much works now i think
This commit is contained in:
@ -6,12 +6,12 @@
|
||||
[sub_resource type="Resource" id="Resource_bukji"]
|
||||
script = ExtResource("1_cwxf1")
|
||||
key = "Fire Delay"
|
||||
value = 1.0
|
||||
value = 0.5
|
||||
|
||||
[sub_resource type="Resource" id="Resource_2e75s"]
|
||||
script = ExtResource("1_cwxf1")
|
||||
key = "Damage"
|
||||
value = 0.5
|
||||
value = 1.0
|
||||
|
||||
[sub_resource type="Resource" id="Resource_1vpnf"]
|
||||
script = ExtResource("1_cwxf1")
|
||||
|
@ -14,7 +14,7 @@ region = Rect2(0, 0, 64, 64)
|
||||
[resource]
|
||||
script = ExtResource("1_nobd8")
|
||||
title = "Blowdart"
|
||||
rarity = 2
|
||||
rarity = 1
|
||||
faction = 0
|
||||
sprite = SubResource("AtlasTexture_jl74p")
|
||||
turret_scene = ExtResource("4_wvh75")
|
||||
|
@ -7,6 +7,8 @@ var bounces := 0
|
||||
|
||||
func _ready() -> void:
|
||||
apply_central_impulse(direction * force)
|
||||
if owner_id == 0:
|
||||
max_bounces = 0
|
||||
|
||||
|
||||
func _on_body_entered(_body: Node) -> void:
|
||||
|
@ -1,11 +0,0 @@
|
||||
[gd_resource type="Resource" script_class="Card" load_steps=3 format=3 uid="uid://0p0i7m5ciwtq"]
|
||||
|
||||
[ext_resource type="Script" path="res://Scripts/Resources/card.gd" id="1_hj6hq"]
|
||||
[ext_resource type="Texture2D" uid="uid://ca4lwwd3e0y73" path="res://PCs/Universal/ClassCards/Assault/g_assault.tres" id="2_irvam"]
|
||||
|
||||
[resource]
|
||||
script = ExtResource("1_hj6hq")
|
||||
title = "Damage Enhancer"
|
||||
rarity = 2
|
||||
faction = 0
|
||||
sprite = ExtResource("2_irvam")
|
@ -1,19 +1,23 @@
|
||||
[gd_resource type="Resource" script_class="Card" load_steps=7 format=3 uid="uid://1xke2uy2vfuf"]
|
||||
[gd_resource type="Resource" script_class="Card" load_steps=8 format=3 uid="uid://dg4pjt47q8xpw"]
|
||||
|
||||
[ext_resource type="Script" path="res://Scripts/Resources/card.gd" id="1_xmwih"]
|
||||
[ext_resource type="Resource" uid="uid://5ywipj3632u8" path="res://Resources/TurretStats/flametower.tres" id="2_80w0f"]
|
||||
[ext_resource type="Texture2D" uid="uid://jmxhiwsiw1f5" path="res://Assets/TextureAtlases/g_glue_gun.tres" id="2_ukaax"]
|
||||
[ext_resource type="PackedScene" uid="uid://dvqk2lysu02gf" path="res://PCs/Universal/ClassCards/Flamethrower/tower_flamethrower.tscn" id="3_yfmjg"]
|
||||
[ext_resource type="Resource" uid="uid://c4ihsd13o1esd" path="res://Resources/WeaponStats/flamethrower.tres" id="4_rdoaa"]
|
||||
[ext_resource type="PackedScene" uid="uid://cprppqfd2wf6s" path="res://PCs/Universal/ClassCards/Flamethrower/weapon_flamethrower.tscn" id="5_6v5br"]
|
||||
[ext_resource type="Texture2D" uid="uid://oblavj8vj30n" path="res://PCs/Universal/ClassCards/GlueLauncher/glue_gun.png" id="2_ocjdv"]
|
||||
[ext_resource type="Resource" uid="uid://cdtjbxs21peqg" path="res://PCs/Universal/ClassCards/Flamethrower/tower_stats.tres" id="3_sjxkl"]
|
||||
[ext_resource type="PackedScene" uid="uid://dhv7m4lky7bd8" path="res://PCs/Universal/ClassCards/Flamethrower/weapon_flamethrower.tscn" id="4_800j1"]
|
||||
[ext_resource type="PackedScene" uid="uid://dkoj1766ygo3f" path="res://PCs/Universal/ClassCards/Flamethrower/tower_flamethrower.tscn" id="4_rgkdc"]
|
||||
[ext_resource type="Resource" uid="uid://yjknwdimtm8g" path="res://PCs/Universal/ClassCards/Flamethrower/weapon_stats.tres" id="5_qi4e4"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_bcolm"]
|
||||
atlas = ExtResource("2_ocjdv")
|
||||
region = Rect2(0, 0, 64, 64)
|
||||
|
||||
[resource]
|
||||
script = ExtResource("1_xmwih")
|
||||
title = "Flamethrower"
|
||||
rarity = 2
|
||||
faction = 0
|
||||
sprite = ExtResource("2_ukaax")
|
||||
turret = ExtResource("3_yfmjg")
|
||||
weapon = ExtResource("5_6v5br")
|
||||
weapon_stats = ExtResource("4_rdoaa")
|
||||
tower_stats = ExtResource("2_80w0f")
|
||||
sprite = SubResource("AtlasTexture_bcolm")
|
||||
turret_scene = ExtResource("4_rgkdc")
|
||||
weapon_scene = ExtResource("4_800j1")
|
||||
weapon_stats = ExtResource("5_qi4e4")
|
||||
tower_stats = ExtResource("3_sjxkl")
|
||||
|
19
PCs/Universal/ClassCards/Flamethrower/flame_particles.tres
Normal file
19
PCs/Universal/ClassCards/Flamethrower/flame_particles.tres
Normal file
@ -0,0 +1,19 @@
|
||||
[gd_resource type="ParticleProcessMaterial" load_steps=3 format=3 uid="uid://gyeamtekshor"]
|
||||
|
||||
[sub_resource type="Gradient" id="Gradient_eiw3y"]
|
||||
interpolation_color_space = 2
|
||||
offsets = PackedFloat32Array(0, 0.178862, 0.455285, 1)
|
||||
colors = PackedColorArray(0.94, 0.830333, 0, 1, 1, 0.222923, 0.00252032, 1, 0.517571, 0.0343237, 0.0001635, 1, 0.0352941, 0, 0, 1)
|
||||
|
||||
[sub_resource type="GradientTexture1D" id="GradientTexture1D_arw7j"]
|
||||
gradient = SubResource("Gradient_eiw3y")
|
||||
|
||||
[resource]
|
||||
direction = Vector3(0, 0, -1)
|
||||
spread = 15.0
|
||||
gravity = Vector3(0, 0, 0)
|
||||
initial_velocity_min = 3.0
|
||||
initial_velocity_max = 3.0
|
||||
scale_min = 0.3
|
||||
scale_max = 0.3
|
||||
color_ramp = SubResource("GradientTexture1D_arw7j")
|
@ -1,27 +1,8 @@
|
||||
extends Tower
|
||||
class_name FlameyTower
|
||||
|
||||
@export var shapecast : ShapeCast3D
|
||||
@export var particlesystem : GPUParticles3D
|
||||
@export var status_stats : StatusStats
|
||||
extends ShapecastTower
|
||||
class_name FlamethrowerTower
|
||||
|
||||
|
||||
func _process(delta: float) -> void:
|
||||
super._process(delta)
|
||||
if targeted_enemy:
|
||||
particlesystem.emitting = true
|
||||
else:
|
||||
particlesystem.emitting = false
|
||||
|
||||
|
||||
func shoot():
|
||||
for index in shapecast.get_collision_count():
|
||||
var target = shapecast.get_collider(index) as CharacterBody3D
|
||||
var status = StatusOnFire.new()
|
||||
status.stats = status_stats
|
||||
target.status_manager.add_effect(status)
|
||||
|
||||
|
||||
func aim():
|
||||
model.look_at(targeted_enemy.global_position)
|
||||
model.rotation.x = 0.0
|
||||
func build_status_object() -> StatusEffect:
|
||||
var status = StatusDoT.new()
|
||||
status.stats = status_stats
|
||||
return status
|
||||
|
@ -1,83 +1,47 @@
|
||||
[gd_scene load_steps=10 format=3 uid="uid://dvqk2lysu02gf"]
|
||||
[gd_scene load_steps=11 format=3 uid="uid://dkoj1766ygo3f"]
|
||||
|
||||
[ext_resource type="Script" path="res://PCs/Universal/ClassCards/Flamethrower/tower_flamethrower.gd" id="1_6dcsj"]
|
||||
[ext_resource type="Resource" uid="uid://dbanx8taicddm" path="res://Resources/StatusEffects/on_fire.tres" id="2_yo2b7"]
|
||||
[ext_resource type="PackedScene" uid="uid://8uxu72vjo0cv" path="res://Scenes/Towers/shapecast_tower.tscn" id="1_jagpf"]
|
||||
[ext_resource type="Script" path="res://PCs/Universal/ClassCards/Flamethrower/tower_flamethrower.gd" id="2_7vewc"]
|
||||
[ext_resource type="Resource" uid="uid://dbanx8taicddm" path="res://Resources/StatusEffects/on_fire.tres" id="3_aop2h"]
|
||||
[ext_resource type="Resource" uid="uid://cdtjbxs21peqg" path="res://PCs/Universal/ClassCards/Flamethrower/tower_stats.tres" id="4_by7c8"]
|
||||
|
||||
[sub_resource type="Gradient" id="Gradient_kkqms"]
|
||||
offsets = PackedFloat32Array(0.00591716, 1)
|
||||
colors = PackedColorArray(0.898039, 0.447059, 0, 1, 1, 0, 0, 0.34902)
|
||||
[sub_resource type="BoxShape3D" id="BoxShape3D_r367g"]
|
||||
size = Vector3(2, 2, 3)
|
||||
|
||||
[sub_resource type="GradientTexture1D" id="GradientTexture1D_4cwgw"]
|
||||
gradient = SubResource("Gradient_kkqms")
|
||||
[sub_resource type="Gradient" id="Gradient_ay233"]
|
||||
offsets = PackedFloat32Array(0, 0.178862, 0.455285, 1)
|
||||
colors = PackedColorArray(0.94, 0.830333, 0, 1, 1, 0.222923, 0.00252032, 1, 0.517571, 0.0343237, 0.0001635, 1, 0.0352941, 0, 0, 1)
|
||||
|
||||
[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_2nhns"]
|
||||
direction = Vector3(0, 1, 0)
|
||||
spread = 20.0
|
||||
[sub_resource type="GradientTexture1D" id="GradientTexture1D_7rrxx"]
|
||||
gradient = SubResource("Gradient_ay233")
|
||||
|
||||
[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_r7587"]
|
||||
direction = Vector3(0, 0, -1)
|
||||
spread = 15.0
|
||||
gravity = Vector3(0, 0, 0)
|
||||
initial_velocity_min = 5.0
|
||||
initial_velocity_max = 5.0
|
||||
damping_min = 4.464
|
||||
damping_max = 4.464
|
||||
color_ramp = SubResource("GradientTexture1D_4cwgw")
|
||||
initial_velocity_min = 3.0
|
||||
initial_velocity_max = 3.0
|
||||
color_ramp = SubResource("GradientTexture1D_7rrxx")
|
||||
|
||||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_ycjd1"]
|
||||
transparency = 1
|
||||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_p8aw8"]
|
||||
vertex_color_use_as_albedo = true
|
||||
|
||||
[sub_resource type="BoxMesh" id="BoxMesh_q83y7"]
|
||||
material = SubResource("StandardMaterial3D_ycjd1")
|
||||
[sub_resource type="BoxMesh" id="BoxMesh_h4c6o"]
|
||||
material = SubResource("StandardMaterial3D_p8aw8")
|
||||
size = Vector3(0.3, 0.3, 0.3)
|
||||
|
||||
[sub_resource type="BoxShape3D" id="BoxShape3D_vck5q"]
|
||||
size = Vector3(2.145, 3.125, 2.415)
|
||||
[node name="ShapecastTower" instance=ExtResource("1_jagpf")]
|
||||
script = ExtResource("2_7vewc")
|
||||
status_stats = ExtResource("3_aop2h")
|
||||
stats = ExtResource("4_by7c8")
|
||||
|
||||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_imgrm"]
|
||||
transparency = 1
|
||||
cull_mode = 2
|
||||
shading_mode = 0
|
||||
albedo_color = Color(0.686275, 0, 0, 0.278431)
|
||||
|
||||
[node name="Node3D" type="Node3D" node_paths=PackedStringArray("shapecast", "particlesystem", "model", "range_sphere", "minimap_range_sphere")]
|
||||
script = ExtResource("1_6dcsj")
|
||||
shapecast = NodePath("Model/Node3D/ShapeCast3D")
|
||||
particlesystem = NodePath("Model/Node3D/GPUParticles3D")
|
||||
status_stats = ExtResource("2_yo2b7")
|
||||
model = NodePath("Model")
|
||||
range_sphere = NodePath("Model/CSGSphere3D")
|
||||
minimap_range_sphere = NodePath("Model/CSGSphere3D2")
|
||||
|
||||
[node name="Model" type="Node3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2, 0)
|
||||
|
||||
[node name="CSGBox3D" type="CSGBox3D" parent="Model"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.968366, 0)
|
||||
size = Vector3(1, 1.25244, 1)
|
||||
|
||||
[node name="CSGBox3D2" type="CSGBox3D" parent="Model"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.00567371, -0.780982, -0.514041)
|
||||
size = Vector3(0.481654, 0.427749, 1.38438)
|
||||
|
||||
[node name="Node3D" type="Node3D" parent="Model"]
|
||||
transform = Transform3D(1, 0, 0, 0, -4.37114e-08, 1, 0, -1, -4.37114e-08, 0, -0.807848, -1.2154)
|
||||
|
||||
[node name="GPUParticles3D" type="GPUParticles3D" parent="Model/Node3D"]
|
||||
amount = 48
|
||||
visibility_aabb = AABB(-2.2922, -3.14731, -1.92995, 4.5844, 6.29461, 3.85991)
|
||||
process_material = SubResource("ParticleProcessMaterial_2nhns")
|
||||
draw_pass_1 = SubResource("BoxMesh_q83y7")
|
||||
|
||||
[node name="ShapeCast3D" type="ShapeCast3D" parent="Model/Node3D"]
|
||||
shape = SubResource("BoxShape3D_vck5q")
|
||||
target_position = Vector3(0, 1.51, 0)
|
||||
[node name="ShapeCast3D" parent="Yaw" index="0"]
|
||||
shape = SubResource("BoxShape3D_r367g")
|
||||
target_position = Vector3(0, 0, -2)
|
||||
collision_mask = 4
|
||||
|
||||
[node name="CSGSphere3D" type="CSGSphere3D" parent="Model"]
|
||||
visible = false
|
||||
radius = 7.5
|
||||
material = SubResource("StandardMaterial3D_imgrm")
|
||||
|
||||
[node name="CSGSphere3D2" type="CSGSphere3D" parent="Model"]
|
||||
visible = false
|
||||
layers = 4
|
||||
radius = 7.5
|
||||
material = SubResource("StandardMaterial3D_imgrm")
|
||||
[node name="GPUParticles3D" parent="Yaw/ShapeCast3D" index="0"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -0.534666)
|
||||
amount = 16
|
||||
process_material = SubResource("ParticleProcessMaterial_r7587")
|
||||
draw_pass_1 = SubResource("BoxMesh_h4c6o")
|
||||
|
25
PCs/Universal/ClassCards/Flamethrower/tower_stats.tres
Normal file
25
PCs/Universal/ClassCards/Flamethrower/tower_stats.tres
Normal file
@ -0,0 +1,25 @@
|
||||
[gd_resource type="Resource" script_class="CardText" load_steps=6 format=3 uid="uid://cdtjbxs21peqg"]
|
||||
|
||||
[ext_resource type="Script" path="res://Scripts/Resources/stat_attribute.gd" id="1_jc00v"]
|
||||
[ext_resource type="Script" path="res://Scripts/Resources/card_text.gd" id="2_mmknc"]
|
||||
|
||||
[sub_resource type="Resource" id="Resource_j28f4"]
|
||||
script = ExtResource("1_jc00v")
|
||||
key = "Fire Delay"
|
||||
value = 0.5
|
||||
|
||||
[sub_resource type="Resource" id="Resource_likes"]
|
||||
script = ExtResource("1_jc00v")
|
||||
key = "Damage"
|
||||
value = 0.0
|
||||
|
||||
[sub_resource type="Resource" id="Resource_b65mk"]
|
||||
script = ExtResource("1_jc00v")
|
||||
key = "Range"
|
||||
value = 3.0
|
||||
|
||||
[resource]
|
||||
script = ExtResource("2_mmknc")
|
||||
target_type = 1
|
||||
attributes = Array[ExtResource("1_jc00v")]([SubResource("Resource_j28f4"), SubResource("Resource_likes"), SubResource("Resource_b65mk")])
|
||||
text = "Hold to apply Burning to enemies in front of you"
|
@ -1,30 +1,7 @@
|
||||
extends Weapon
|
||||
extends ShapecastWeapon
|
||||
class_name FlamethrowerWeapon
|
||||
|
||||
@export var shapecast : ShapeCast3D
|
||||
@export var particlesystem : GPUParticles3D
|
||||
@export var status_stats : StatusStats
|
||||
|
||||
|
||||
func _ready() -> void:
|
||||
cooldown = 1.0 / stats.fire_rate
|
||||
|
||||
|
||||
func set_raycast_origin(_node):
|
||||
pass
|
||||
|
||||
|
||||
func shoot():
|
||||
if other_cooldown <= 0 and stats != null:
|
||||
other_cooldown = cooldown
|
||||
particlesystem.emitting = true
|
||||
$AnimationPlayer.play("shoot")
|
||||
for index in shapecast.get_collision_count():
|
||||
var target = shapecast.get_collider(index) as CharacterBody3D
|
||||
var status = StatusOnFire.new()
|
||||
status.stats = status_stats
|
||||
target.status_manager.add_effect(status)
|
||||
|
||||
|
||||
func release_trigger():
|
||||
trigger_held = false
|
||||
particlesystem.emitting = false
|
||||
func build_status_object() -> StatusEffect:
|
||||
var status = StatusDoT.new()
|
||||
status.stats = status_stats
|
||||
return status
|
||||
|
@ -1,100 +1,23 @@
|
||||
[gd_scene load_steps=14 format=3 uid="uid://cprppqfd2wf6s"]
|
||||
[gd_scene load_steps=8 format=3 uid="uid://dhv7m4lky7bd8"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://jmxhiwsiw1f5" path="res://Assets/TextureAtlases/g_glue_gun.tres" id="1_kpb2q"]
|
||||
[ext_resource type="Script" path="res://PCs/Universal/ClassCards/Flamethrower/weapon_flamethrower.gd" id="2_18t5l"]
|
||||
[ext_resource type="Resource" uid="uid://dbanx8taicddm" path="res://Resources/StatusEffects/on_fire.tres" id="3_2sa8l"]
|
||||
[ext_resource type="Resource" uid="uid://c4ihsd13o1esd" path="res://Resources/WeaponStats/flamethrower.tres" id="4_ih15j"]
|
||||
[ext_resource type="PackedScene" uid="uid://dp4gfr5h0tbcd" path="res://Scenes/Weapons/shapecast_weapon.tscn" id="1_ovmdp"]
|
||||
[ext_resource type="Script" path="res://PCs/Universal/ClassCards/Flamethrower/weapon_flamethrower.gd" id="2_227rf"]
|
||||
[ext_resource type="Resource" uid="uid://dbanx8taicddm" path="res://Resources/StatusEffects/on_fire.tres" id="3_fqch8"]
|
||||
[ext_resource type="Resource" uid="uid://yjknwdimtm8g" path="res://PCs/Universal/ClassCards/Flamethrower/weapon_stats.tres" id="4_oafdt"]
|
||||
[ext_resource type="Texture2D" uid="uid://oblavj8vj30n" path="res://PCs/Universal/ClassCards/GlueLauncher/glue_gun.png" id="5_wdw3e"]
|
||||
[ext_resource type="Material" uid="uid://gyeamtekshor" path="res://PCs/Universal/ClassCards/Flamethrower/flame_particles.tres" id="6_idhp2"]
|
||||
|
||||
[sub_resource type="Animation" id="Animation_n8b32"]
|
||||
length = 0.001
|
||||
tracks/0/type = "value"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath(".:texture:region")
|
||||
tracks/0/interp = 1
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = {
|
||||
"times": PackedFloat32Array(0),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"update": 0,
|
||||
"values": [Rect2(0, 0, 64, 64)]
|
||||
}
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_3hank"]
|
||||
atlas = ExtResource("5_wdw3e")
|
||||
region = Rect2(0, 0, 64, 64)
|
||||
|
||||
[sub_resource type="Animation" id="Animation_g0h8q"]
|
||||
resource_name = "shoot"
|
||||
length = 0.15
|
||||
tracks/0/type = "value"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath(".:texture:region")
|
||||
tracks/0/interp = 1
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = {
|
||||
"times": PackedFloat32Array(0, 0.15),
|
||||
"transitions": PackedFloat32Array(0, 0),
|
||||
"update": 0,
|
||||
"values": [Rect2(64, 0, 64, 64), Rect2(0, 0, 64, 64)]
|
||||
}
|
||||
[node name="FlamethrowerWeapon" instance=ExtResource("1_ovmdp")]
|
||||
script = ExtResource("2_227rf")
|
||||
status_stats = ExtResource("3_fqch8")
|
||||
stats = ExtResource("4_oafdt")
|
||||
|
||||
[sub_resource type="AnimationLibrary" id="AnimationLibrary_ntl6p"]
|
||||
_data = {
|
||||
"RESET": SubResource("Animation_n8b32"),
|
||||
"shoot": SubResource("Animation_g0h8q")
|
||||
}
|
||||
[node name="Sprite3D" parent="." index="0"]
|
||||
texture = SubResource("AtlasTexture_3hank")
|
||||
|
||||
[sub_resource type="BoxShape3D" id="BoxShape3D_q7gll"]
|
||||
size = Vector3(3, 3, 4)
|
||||
|
||||
[sub_resource type="Gradient" id="Gradient_nneoo"]
|
||||
offsets = PackedFloat32Array(0.00591716, 1)
|
||||
colors = PackedColorArray(0.898039, 0.447059, 0, 1, 1, 0, 0, 0.34902)
|
||||
|
||||
[sub_resource type="GradientTexture1D" id="GradientTexture1D_gpquw"]
|
||||
gradient = SubResource("Gradient_nneoo")
|
||||
|
||||
[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_cp5dw"]
|
||||
direction = Vector3(0, 1, 0)
|
||||
spread = 20.0
|
||||
gravity = Vector3(0, 0, 0)
|
||||
initial_velocity_min = 5.0
|
||||
initial_velocity_max = 5.0
|
||||
damping_min = 1.9
|
||||
damping_max = 1.9
|
||||
color_ramp = SubResource("GradientTexture1D_gpquw")
|
||||
|
||||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_2yd7w"]
|
||||
transparency = 1
|
||||
vertex_color_use_as_albedo = true
|
||||
|
||||
[sub_resource type="BoxMesh" id="BoxMesh_ggcx2"]
|
||||
material = SubResource("StandardMaterial3D_2yd7w")
|
||||
size = Vector3(0.3, 0.3, 0.3)
|
||||
|
||||
[node name="Weapon" type="Sprite3D" node_paths=PackedStringArray("shapecast", "particlesystem")]
|
||||
layers = 2
|
||||
billboard = 1
|
||||
texture_filter = 0
|
||||
texture = ExtResource("1_kpb2q")
|
||||
script = ExtResource("2_18t5l")
|
||||
shapecast = NodePath("ShapeCast3D")
|
||||
particlesystem = NodePath("GPUParticles3D")
|
||||
status_stats = ExtResource("3_2sa8l")
|
||||
stats = ExtResource("4_ih15j")
|
||||
|
||||
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
|
||||
libraries = {
|
||||
"": SubResource("AnimationLibrary_ntl6p")
|
||||
}
|
||||
|
||||
[node name="ShapeCast3D" type="ShapeCast3D" parent="."]
|
||||
transform = Transform3D(0.975695, 0, 0.219131, 0, 1, 0, -0.219131, 0, 0.975695, 0, 0, 0)
|
||||
shape = SubResource("BoxShape3D_q7gll")
|
||||
target_position = Vector3(0, 0, -2)
|
||||
collision_mask = 4
|
||||
|
||||
[node name="GPUParticles3D" type="GPUParticles3D" parent="."]
|
||||
transform = Transform3D(0.975695, -0.219131, -9.57852e-09, 0, -4.37114e-08, 1, -0.219131, -0.975695, -4.2649e-08, 0, 0, 0)
|
||||
amount = 32
|
||||
visibility_aabb = AABB(-2.2922, -3.14731, -1.92995, 4.5844, 6.29461, 3.85991)
|
||||
process_material = SubResource("ParticleProcessMaterial_cp5dw")
|
||||
draw_pass_1 = SubResource("BoxMesh_ggcx2")
|
||||
[node name="GPUParticles3D" parent="ShapeCast3D" index="0"]
|
||||
process_material = ExtResource("6_idhp2")
|
||||
|
25
PCs/Universal/ClassCards/Flamethrower/weapon_stats.tres
Normal file
25
PCs/Universal/ClassCards/Flamethrower/weapon_stats.tres
Normal file
@ -0,0 +1,25 @@
|
||||
[gd_resource type="Resource" script_class="CardText" load_steps=6 format=3 uid="uid://yjknwdimtm8g"]
|
||||
|
||||
[ext_resource type="Script" path="res://Scripts/Resources/card_text.gd" id="1_7qcx8"]
|
||||
[ext_resource type="Script" path="res://Scripts/Resources/stat_attribute.gd" id="1_g5aby"]
|
||||
|
||||
[sub_resource type="Resource" id="Resource_j28f4"]
|
||||
script = ExtResource("1_g5aby")
|
||||
key = "Fire Delay"
|
||||
value = 0.4
|
||||
|
||||
[sub_resource type="Resource" id="Resource_likes"]
|
||||
script = ExtResource("1_g5aby")
|
||||
key = "Damage"
|
||||
value = 1.0
|
||||
|
||||
[sub_resource type="Resource" id="Resource_b65mk"]
|
||||
script = ExtResource("1_g5aby")
|
||||
key = "Range"
|
||||
value = 3.0
|
||||
|
||||
[resource]
|
||||
script = ExtResource("1_7qcx8")
|
||||
target_type = 0
|
||||
attributes = Array[ExtResource("1_g5aby")]([SubResource("Resource_j28f4"), SubResource("Resource_likes"), SubResource("Resource_b65mk")])
|
||||
text = "Hold to apply Burning to enemies in front of you"
|
@ -1,11 +0,0 @@
|
||||
[gd_resource type="Resource" script_class="Card" load_steps=3 format=3 uid="uid://qyhlpglghda3"]
|
||||
|
||||
[ext_resource type="Script" path="res://Scripts/Resources/card.gd" id="1_goeex"]
|
||||
[ext_resource type="Texture2D" uid="uid://ca4lwwd3e0y73" path="res://PCs/Universal/ClassCards/Assault/g_assault.tres" id="2_a7b2p"]
|
||||
|
||||
[resource]
|
||||
script = ExtResource("1_goeex")
|
||||
title = "Gamma Laser"
|
||||
rarity = 3
|
||||
faction = 0
|
||||
sprite = ExtResource("2_a7b2p")
|
@ -1,11 +0,0 @@
|
||||
[gd_resource type="Resource" script_class="Card" load_steps=3 format=3 uid="uid://biy2kw34h5t8n"]
|
||||
|
||||
[ext_resource type="Script" path="res://Scripts/Resources/card.gd" id="1_oj1u6"]
|
||||
[ext_resource type="Texture2D" uid="uid://ca4lwwd3e0y73" path="res://PCs/Universal/ClassCards/Assault/g_assault.tres" id="2_eyg7w"]
|
||||
|
||||
[resource]
|
||||
script = ExtResource("1_oj1u6")
|
||||
title = "Lightning"
|
||||
rarity = 4
|
||||
faction = 0
|
||||
sprite = ExtResource("2_eyg7w")
|
@ -1,19 +1,23 @@
|
||||
[gd_resource type="Resource" script_class="Card" load_steps=7 format=3 uid="uid://dra640am6ykri"]
|
||||
[gd_resource type="Resource" script_class="Card" load_steps=8 format=3 uid="uid://b3o112jw3loiu"]
|
||||
|
||||
[ext_resource type="Script" path="res://Scripts/Resources/card.gd" id="1_7065k"]
|
||||
[ext_resource type="Texture2D" uid="uid://ca4lwwd3e0y73" path="res://PCs/Universal/ClassCards/Assault/g_assault.tres" id="2_8hvde"]
|
||||
[ext_resource type="Resource" uid="uid://baa8sauri4218" path="res://Resources/TurretStats/reactor.tres" id="3_ikj6b"]
|
||||
[ext_resource type="PackedScene" uid="uid://byglhh0etuy6" path="res://PCs/Universal/ClassCards/Reactor/tower_reactor.tscn" id="4_y3lkh"]
|
||||
[ext_resource type="PackedScene" uid="uid://cpe3b700kwj48" path="res://PCs/Universal/ClassCards/Reactor/weapon_reactor.tscn" id="5_atmmn"]
|
||||
[ext_resource type="Resource" uid="uid://b5eakeawu3gle" path="res://Resources/WeaponStats/reactor.tres" id="5_erecn"]
|
||||
[ext_resource type="Script" path="res://Scripts/Resources/card.gd" id="1_0ciid"]
|
||||
[ext_resource type="Texture2D" uid="uid://oblavj8vj30n" path="res://PCs/Universal/ClassCards/GlueLauncher/glue_gun.png" id="2_as4jg"]
|
||||
[ext_resource type="Resource" uid="uid://cssdyxk8oefsd" path="res://PCs/Universal/ClassCards/Reactor/tower_stats.tres" id="3_7vuex"]
|
||||
[ext_resource type="PackedScene" uid="uid://yymj42pp6v1t" path="res://PCs/Universal/ClassCards/Reactor/weapon_reactor.tscn" id="3_de72q"]
|
||||
[ext_resource type="PackedScene" uid="uid://dqrkn0vp2tmrh" path="res://PCs/Universal/ClassCards/Reactor/tower_reactor.tscn" id="4_1krig"]
|
||||
[ext_resource type="Resource" uid="uid://ipfr7emuarbj" path="res://PCs/Universal/ClassCards/Reactor/weapon_stats.tres" id="4_wilo7"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_7aw4q"]
|
||||
atlas = ExtResource("2_as4jg")
|
||||
region = Rect2(0, 0, 64, 64)
|
||||
|
||||
[resource]
|
||||
script = ExtResource("1_7065k")
|
||||
script = ExtResource("1_0ciid")
|
||||
title = "Reactor"
|
||||
rarity = 4
|
||||
faction = 0
|
||||
sprite = ExtResource("2_8hvde")
|
||||
turret = ExtResource("4_y3lkh")
|
||||
weapon = ExtResource("5_atmmn")
|
||||
weapon_stats = ExtResource("5_erecn")
|
||||
tower_stats = ExtResource("3_ikj6b")
|
||||
sprite = SubResource("AtlasTexture_7aw4q")
|
||||
turret_scene = ExtResource("4_1krig")
|
||||
weapon_scene = ExtResource("3_de72q")
|
||||
weapon_stats = ExtResource("4_wilo7")
|
||||
tower_stats = ExtResource("3_7vuex")
|
||||
|
19
PCs/Universal/ClassCards/Reactor/radiation_particles.tres
Normal file
19
PCs/Universal/ClassCards/Reactor/radiation_particles.tres
Normal file
@ -0,0 +1,19 @@
|
||||
[gd_resource type="ParticleProcessMaterial" load_steps=3 format=3 uid="uid://bjab6t4n0s5ac"]
|
||||
|
||||
[sub_resource type="Gradient" id="Gradient_eiw3y"]
|
||||
interpolation_color_space = 2
|
||||
offsets = PackedFloat32Array(0, 0.0894309, 1)
|
||||
colors = PackedColorArray(0, 0.831373, 0, 1, 4.21144e-08, 0.320987, -4.81308e-08, 0.721201, 0, 0.254902, 0, 0)
|
||||
|
||||
[sub_resource type="GradientTexture1D" id="GradientTexture1D_arw7j"]
|
||||
gradient = SubResource("Gradient_eiw3y")
|
||||
|
||||
[resource]
|
||||
direction = Vector3(0, 0, -1)
|
||||
spread = 15.0
|
||||
gravity = Vector3(0, 0, 0)
|
||||
initial_velocity_min = 3.0
|
||||
initial_velocity_max = 3.0
|
||||
scale_min = 0.3
|
||||
scale_max = 0.3
|
||||
color_ramp = SubResource("GradientTexture1D_arw7j")
|
@ -1,17 +0,0 @@
|
||||
extends Tower
|
||||
class_name ReactorTower
|
||||
|
||||
@export var status_stats : StatusStats
|
||||
@export var particlesystem : GPUParticles3D
|
||||
|
||||
|
||||
func aim():
|
||||
pass
|
||||
|
||||
|
||||
func shoot():
|
||||
for enemy in get_tree().get_nodes_in_group("Enemies"):
|
||||
if global_position.distance_to(enemy.global_position) <= stats.fire_range:
|
||||
var status = StatusRadioactive.new()
|
||||
status.stats = status_stats
|
||||
enemy.status_manager.add_effect(status)
|
@ -1,30 +0,0 @@
|
||||
extends Weapon
|
||||
|
||||
@export var shapecast : ShapeCast3D
|
||||
@export var particlesystem : GPUParticles3D
|
||||
@export var status_stats : StatusStats
|
||||
|
||||
|
||||
func _ready() -> void:
|
||||
cooldown = 1.0 / stats.fire_rate
|
||||
|
||||
|
||||
func set_raycast_origin(_node):
|
||||
pass
|
||||
|
||||
|
||||
func shoot():
|
||||
if other_cooldown <= 0 and stats != null:
|
||||
other_cooldown = cooldown
|
||||
particlesystem.emitting = true
|
||||
$AnimationPlayer.play("shoot")
|
||||
for index in shapecast.get_collision_count():
|
||||
var target = shapecast.get_collider(index) as CharacterBody3D
|
||||
var status = StatusRadioactive.new()
|
||||
status.stats = status_stats
|
||||
target.status_manager.add_effect(status)
|
||||
|
||||
|
||||
func release_trigger():
|
||||
trigger_held = false
|
||||
particlesystem.emitting = false
|
15
PCs/Universal/ClassCards/Reactor/tower_reactor.gd
Normal file
15
PCs/Universal/ClassCards/Reactor/tower_reactor.gd
Normal file
@ -0,0 +1,15 @@
|
||||
extends RangeAffectingTower
|
||||
class_name ReactorTower
|
||||
|
||||
@export var particles : GPUParticles3D
|
||||
|
||||
|
||||
func _ready() -> void:
|
||||
super._ready()
|
||||
particles.process_material.emission_ring_radius = target_range
|
||||
|
||||
|
||||
func build_status_object() -> StatusEffect:
|
||||
var status = StatusDoT.new()
|
||||
status.stats = status_stats
|
||||
return status
|
@ -1,72 +1,43 @@
|
||||
[gd_scene load_steps=10 format=3 uid="uid://byglhh0etuy6"]
|
||||
[gd_scene load_steps=10 format=3 uid="uid://dqrkn0vp2tmrh"]
|
||||
|
||||
[ext_resource type="Script" path="res://PCs/Universal/ClassCards/Reactor/reactortower.gd" id="1_rb733"]
|
||||
[ext_resource type="Resource" uid="uid://dxlisoas4xlmo" path="res://Resources/StatusEffects/radioactive.tres" id="2_vyodb"]
|
||||
[ext_resource type="Resource" uid="uid://baa8sauri4218" path="res://Resources/TurretStats/reactor.tres" id="3_a6b2i"]
|
||||
[ext_resource type="PackedScene" uid="uid://bi6b2r6wek7he" path="res://Scenes/Towers/range_affecting_tower.tscn" id="1_afsqn"]
|
||||
[ext_resource type="Script" path="res://PCs/Universal/ClassCards/Reactor/tower_reactor.gd" id="2_6w83m"]
|
||||
[ext_resource type="Resource" uid="uid://dxlisoas4xlmo" path="res://Resources/StatusEffects/radioactive.tres" id="3_xhrj0"]
|
||||
[ext_resource type="Resource" uid="uid://cssdyxk8oefsd" path="res://PCs/Universal/ClassCards/Reactor/tower_stats.tres" id="4_rkhup"]
|
||||
|
||||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_imgrm"]
|
||||
transparency = 1
|
||||
cull_mode = 2
|
||||
shading_mode = 0
|
||||
albedo_color = Color(0.686275, 0, 0, 0.278431)
|
||||
[sub_resource type="Gradient" id="Gradient_ranod"]
|
||||
interpolation_color_space = 2
|
||||
offsets = PackedFloat32Array(0.252033, 1)
|
||||
colors = PackedColorArray(0, 0.533333, 0, 1, 0, 1, 0, 0.34902)
|
||||
|
||||
[sub_resource type="Gradient" id="Gradient_kkqms"]
|
||||
colors = PackedColorArray(0.376471, 0.976471, 0, 0.435294, 0.127613, 0.391512, 0, 0.870588)
|
||||
[sub_resource type="GradientTexture1D" id="GradientTexture1D_iinp2"]
|
||||
gradient = SubResource("Gradient_ranod")
|
||||
|
||||
[sub_resource type="GradientTexture1D" id="GradientTexture1D_4cwgw"]
|
||||
gradient = SubResource("Gradient_kkqms")
|
||||
|
||||
[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_2nhns"]
|
||||
[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_q1hpa"]
|
||||
emission_shape = 6
|
||||
emission_ring_axis = Vector3(0, 1, 0)
|
||||
emission_ring_height = 0.5
|
||||
emission_ring_radius = 20.0
|
||||
emission_ring_height = 0.1
|
||||
emission_ring_radius = 30.0
|
||||
emission_ring_inner_radius = 0.0
|
||||
gravity = Vector3(0, 1, 0)
|
||||
color_ramp = SubResource("GradientTexture1D_4cwgw")
|
||||
gravity = Vector3(0, 3, 0)
|
||||
color_ramp = SubResource("GradientTexture1D_iinp2")
|
||||
|
||||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_ycjd1"]
|
||||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_rl0f7"]
|
||||
transparency = 1
|
||||
vertex_color_use_as_albedo = true
|
||||
|
||||
[sub_resource type="BoxMesh" id="BoxMesh_q83y7"]
|
||||
material = SubResource("StandardMaterial3D_ycjd1")
|
||||
[sub_resource type="BoxMesh" id="BoxMesh_fr4f1"]
|
||||
material = SubResource("StandardMaterial3D_rl0f7")
|
||||
size = Vector3(0.3, 0.3, 0.3)
|
||||
|
||||
[node name="Node3D" type="Node3D" node_paths=PackedStringArray("particlesystem", "model", "range_sphere", "minimap_range_sphere")]
|
||||
script = ExtResource("1_rb733")
|
||||
status_stats = ExtResource("2_vyodb")
|
||||
particlesystem = NodePath("Model/GPUParticles3D")
|
||||
stats = ExtResource("3_a6b2i")
|
||||
model = NodePath("Model")
|
||||
range_sphere = NodePath("Model/CSGSphere3D")
|
||||
minimap_range_sphere = NodePath("Model/CSGSphere3D2")
|
||||
[node name="ReactorTower" node_paths=PackedStringArray("particles") instance=ExtResource("1_afsqn")]
|
||||
script = ExtResource("2_6w83m")
|
||||
particles = NodePath("GPUParticles3D")
|
||||
status_stats = ExtResource("3_xhrj0")
|
||||
stats = ExtResource("4_rkhup")
|
||||
|
||||
[node name="Model" type="Node3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2, 0)
|
||||
|
||||
[node name="CSGBox3D" type="CSGBox3D" parent="Model"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.968366, 0)
|
||||
size = Vector3(1, 1.25244, 1)
|
||||
|
||||
[node name="CSGBox3D2" type="CSGBox3D" parent="Model"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.426601, 0)
|
||||
size = Vector3(0.661144, 1.25244, 0.721315)
|
||||
|
||||
[node name="CSGSphere3D" type="CSGSphere3D" parent="Model"]
|
||||
visible = false
|
||||
radius = 7.5
|
||||
material = SubResource("StandardMaterial3D_imgrm")
|
||||
|
||||
[node name="CSGSphere3D2" type="CSGSphere3D" parent="Model"]
|
||||
visible = false
|
||||
layers = 4
|
||||
radius = 7.5
|
||||
material = SubResource("StandardMaterial3D_imgrm")
|
||||
|
||||
[node name="GPUParticles3D" type="GPUParticles3D" parent="Model"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -2, 0)
|
||||
[node name="GPUParticles3D" type="GPUParticles3D" parent="." index="5"]
|
||||
amount = 12
|
||||
visibility_aabb = AABB(-110.773, -4, -105.31, 221.547, 8, 210.62)
|
||||
process_material = SubResource("ParticleProcessMaterial_2nhns")
|
||||
draw_pass_1 = SubResource("BoxMesh_q83y7")
|
||||
lifetime = 0.6
|
||||
process_material = SubResource("ParticleProcessMaterial_q1hpa")
|
||||
draw_pass_1 = SubResource("BoxMesh_fr4f1")
|
||||
|
25
PCs/Universal/ClassCards/Reactor/tower_stats.tres
Normal file
25
PCs/Universal/ClassCards/Reactor/tower_stats.tres
Normal file
@ -0,0 +1,25 @@
|
||||
[gd_resource type="Resource" script_class="CardText" load_steps=6 format=3 uid="uid://cssdyxk8oefsd"]
|
||||
|
||||
[ext_resource type="Script" path="res://Scripts/Resources/stat_attribute.gd" id="1_ppnfm"]
|
||||
[ext_resource type="Script" path="res://Scripts/Resources/card_text.gd" id="2_5jdx5"]
|
||||
|
||||
[sub_resource type="Resource" id="Resource_j28f4"]
|
||||
script = ExtResource("1_ppnfm")
|
||||
key = "Fire Delay"
|
||||
value = 2.0
|
||||
|
||||
[sub_resource type="Resource" id="Resource_likes"]
|
||||
script = ExtResource("1_ppnfm")
|
||||
key = "Damage"
|
||||
value = 0.0
|
||||
|
||||
[sub_resource type="Resource" id="Resource_b65mk"]
|
||||
script = ExtResource("1_ppnfm")
|
||||
key = "Range"
|
||||
value = 30.0
|
||||
|
||||
[resource]
|
||||
script = ExtResource("2_5jdx5")
|
||||
target_type = 1
|
||||
attributes = Array[ExtResource("1_ppnfm")]([SubResource("Resource_j28f4"), SubResource("Resource_likes"), SubResource("Resource_b65mk")])
|
||||
text = "Slowly applies Radioactive to enemies around itself at a range of /Range\\m"
|
7
PCs/Universal/ClassCards/Reactor/weapon_reactor.gd
Normal file
7
PCs/Universal/ClassCards/Reactor/weapon_reactor.gd
Normal file
@ -0,0 +1,7 @@
|
||||
extends ShapecastWeapon
|
||||
class_name ReactorWeapon
|
||||
|
||||
func build_status_object() -> StatusEffect:
|
||||
var status = StatusDoT.new()
|
||||
status.stats = status_stats
|
||||
return status
|
@ -1,99 +1,31 @@
|
||||
[gd_scene load_steps=14 format=3 uid="uid://cpe3b700kwj48"]
|
||||
[gd_scene load_steps=10 format=3 uid="uid://yymj42pp6v1t"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://jmxhiwsiw1f5" path="res://Assets/TextureAtlases/g_glue_gun.tres" id="1_lmai4"]
|
||||
[ext_resource type="Script" path="res://PCs/Universal/ClassCards/Reactor/reactorweapon.gd" id="2_mpd2q"]
|
||||
[ext_resource type="Resource" uid="uid://dxlisoas4xlmo" path="res://Resources/StatusEffects/radioactive.tres" id="3_x464r"]
|
||||
[ext_resource type="Resource" uid="uid://b5eakeawu3gle" path="res://Resources/WeaponStats/reactor.tres" id="4_lclha"]
|
||||
[ext_resource type="PackedScene" uid="uid://dp4gfr5h0tbcd" path="res://Scenes/Weapons/shapecast_weapon.tscn" id="1_du35a"]
|
||||
[ext_resource type="Script" path="res://PCs/Universal/ClassCards/Reactor/weapon_reactor.gd" id="2_oe7hd"]
|
||||
[ext_resource type="Resource" uid="uid://dxlisoas4xlmo" path="res://Resources/StatusEffects/radioactive.tres" id="3_hsfwd"]
|
||||
[ext_resource type="Resource" uid="uid://ipfr7emuarbj" path="res://PCs/Universal/ClassCards/Reactor/weapon_stats.tres" id="4_83mkk"]
|
||||
[ext_resource type="Texture2D" uid="uid://oblavj8vj30n" path="res://PCs/Universal/ClassCards/GlueLauncher/glue_gun.png" id="5_bawfy"]
|
||||
[ext_resource type="Material" uid="uid://bjab6t4n0s5ac" path="res://PCs/Universal/ClassCards/Reactor/radiation_particles.tres" id="6_0sgt1"]
|
||||
|
||||
[sub_resource type="Animation" id="Animation_n8b32"]
|
||||
length = 0.001
|
||||
tracks/0/type = "value"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath(".:texture:region")
|
||||
tracks/0/interp = 1
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = {
|
||||
"times": PackedFloat32Array(0),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"update": 0,
|
||||
"values": [Rect2(0, 0, 64, 64)]
|
||||
}
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_0dpt5"]
|
||||
atlas = ExtResource("5_bawfy")
|
||||
region = Rect2(0, 0, 64, 64)
|
||||
|
||||
[sub_resource type="Animation" id="Animation_g0h8q"]
|
||||
resource_name = "shoot"
|
||||
length = 0.15
|
||||
tracks/0/type = "value"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath(".:texture:region")
|
||||
tracks/0/interp = 1
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = {
|
||||
"times": PackedFloat32Array(0, 0.15),
|
||||
"transitions": PackedFloat32Array(0, 0),
|
||||
"update": 0,
|
||||
"values": [Rect2(64, 0, 64, 64), Rect2(0, 0, 64, 64)]
|
||||
}
|
||||
|
||||
[sub_resource type="AnimationLibrary" id="AnimationLibrary_ntl6p"]
|
||||
_data = {
|
||||
"RESET": SubResource("Animation_n8b32"),
|
||||
"shoot": SubResource("Animation_g0h8q")
|
||||
}
|
||||
|
||||
[sub_resource type="BoxShape3D" id="BoxShape3D_q7gll"]
|
||||
size = Vector3(3, 3, 4)
|
||||
|
||||
[sub_resource type="Gradient" id="Gradient_kkqms"]
|
||||
colors = PackedColorArray(0.376471, 0.976471, 0, 0.435294, 0.127613, 0.391512, 0, 0.870588)
|
||||
|
||||
[sub_resource type="GradientTexture1D" id="GradientTexture1D_gpquw"]
|
||||
gradient = SubResource("Gradient_kkqms")
|
||||
|
||||
[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_cp5dw"]
|
||||
direction = Vector3(0, 1, 0)
|
||||
spread = 20.0
|
||||
gravity = Vector3(0, 0, 0)
|
||||
initial_velocity_min = 5.0
|
||||
initial_velocity_max = 5.0
|
||||
damping_min = 1.9
|
||||
damping_max = 1.9
|
||||
color_ramp = SubResource("GradientTexture1D_gpquw")
|
||||
|
||||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_2yd7w"]
|
||||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_l4nsh"]
|
||||
transparency = 1
|
||||
vertex_color_use_as_albedo = true
|
||||
|
||||
[sub_resource type="BoxMesh" id="BoxMesh_ggcx2"]
|
||||
material = SubResource("StandardMaterial3D_2yd7w")
|
||||
size = Vector3(0.3, 0.3, 0.3)
|
||||
[sub_resource type="BoxMesh" id="BoxMesh_5o1ws"]
|
||||
material = SubResource("StandardMaterial3D_l4nsh")
|
||||
|
||||
[node name="Weapon" type="Sprite3D" node_paths=PackedStringArray("shapecast", "particlesystem")]
|
||||
layers = 2
|
||||
billboard = 1
|
||||
texture_filter = 0
|
||||
texture = ExtResource("1_lmai4")
|
||||
script = ExtResource("2_mpd2q")
|
||||
shapecast = NodePath("ShapeCast3D")
|
||||
particlesystem = NodePath("GPUParticles3D")
|
||||
status_stats = ExtResource("3_x464r")
|
||||
stats = ExtResource("4_lclha")
|
||||
[node name="ReactorWeapon" instance=ExtResource("1_du35a")]
|
||||
script = ExtResource("2_oe7hd")
|
||||
status_stats = ExtResource("3_hsfwd")
|
||||
stats = ExtResource("4_83mkk")
|
||||
|
||||
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
|
||||
libraries = {
|
||||
"": SubResource("AnimationLibrary_ntl6p")
|
||||
}
|
||||
[node name="Sprite3D" parent="." index="0"]
|
||||
texture = SubResource("AtlasTexture_0dpt5")
|
||||
|
||||
[node name="ShapeCast3D" type="ShapeCast3D" parent="."]
|
||||
transform = Transform3D(0.975695, 0, 0.219131, 0, 1, 0, -0.219131, 0, 0.975695, 0, 0, 0)
|
||||
shape = SubResource("BoxShape3D_q7gll")
|
||||
target_position = Vector3(0, 0, -2)
|
||||
collision_mask = 4
|
||||
|
||||
[node name="GPUParticles3D" type="GPUParticles3D" parent="."]
|
||||
transform = Transform3D(0.975695, -0.219131, -9.57852e-09, 0, -4.37114e-08, 1, -0.219131, -0.975695, -4.2649e-08, 0, 0, 0)
|
||||
amount = 32
|
||||
visibility_aabb = AABB(-2.2922, -3.14731, -1.92995, 4.5844, 6.29461, 3.85991)
|
||||
process_material = SubResource("ParticleProcessMaterial_cp5dw")
|
||||
draw_pass_1 = SubResource("BoxMesh_ggcx2")
|
||||
[node name="GPUParticles3D" parent="ShapeCast3D" index="0"]
|
||||
process_material = ExtResource("6_0sgt1")
|
||||
draw_pass_1 = SubResource("BoxMesh_5o1ws")
|
||||
|
25
PCs/Universal/ClassCards/Reactor/weapon_stats.tres
Normal file
25
PCs/Universal/ClassCards/Reactor/weapon_stats.tres
Normal file
@ -0,0 +1,25 @@
|
||||
[gd_resource type="Resource" script_class="CardText" load_steps=6 format=3 uid="uid://ipfr7emuarbj"]
|
||||
|
||||
[ext_resource type="Script" path="res://Scripts/Resources/stat_attribute.gd" id="1_biwk3"]
|
||||
[ext_resource type="Script" path="res://Scripts/Resources/card_text.gd" id="2_62mnm"]
|
||||
|
||||
[sub_resource type="Resource" id="Resource_j28f4"]
|
||||
script = ExtResource("1_biwk3")
|
||||
key = "Fire Delay"
|
||||
value = 0.5
|
||||
|
||||
[sub_resource type="Resource" id="Resource_likes"]
|
||||
script = ExtResource("1_biwk3")
|
||||
key = "Damage"
|
||||
value = 1.0
|
||||
|
||||
[sub_resource type="Resource" id="Resource_b65mk"]
|
||||
script = ExtResource("1_biwk3")
|
||||
key = "Range"
|
||||
value = 3.0
|
||||
|
||||
[resource]
|
||||
script = ExtResource("2_62mnm")
|
||||
target_type = 0
|
||||
attributes = Array[ExtResource("1_biwk3")]([SubResource("Resource_j28f4"), SubResource("Resource_likes"), SubResource("Resource_b65mk")])
|
||||
text = "Hold to apply Radioactive to enemies in front of you"
|
@ -1,19 +0,0 @@
|
||||
[gd_resource type="Resource" script_class="Card" load_steps=7 format=3 uid="uid://dmd5730tvyp6a"]
|
||||
|
||||
[ext_resource type="Script" path="res://Scripts/Resources/card.gd" id="1_yreyk"]
|
||||
[ext_resource type="Texture2D" uid="uid://ca4lwwd3e0y73" path="res://PCs/Universal/ClassCards/Assault/g_assault.tres" id="2_fgsd3"]
|
||||
[ext_resource type="Resource" uid="uid://ugpxwdjfvssu" path="res://Resources/TurretStats/refridgerator.tres" id="3_b48s2"]
|
||||
[ext_resource type="PackedScene" uid="uid://bxjyrqs8bvi41" path="res://PCs/Universal/ClassCards/Refridgerator/tower_refridgerator.tscn" id="4_t5vm7"]
|
||||
[ext_resource type="PackedScene" uid="uid://b1457hrmd4xm7" path="res://PCs/Universal/ClassCards/Refridgerator/weapon_refridgerator.tscn" id="5_axlkp"]
|
||||
[ext_resource type="Resource" uid="uid://cpyrdja71sboe" path="res://Resources/WeaponStats/refridgerator.tres" id="5_xe410"]
|
||||
|
||||
[resource]
|
||||
script = ExtResource("1_yreyk")
|
||||
title = "Refridgerator"
|
||||
rarity = 1
|
||||
faction = 0
|
||||
sprite = ExtResource("2_fgsd3")
|
||||
turret = ExtResource("4_t5vm7")
|
||||
weapon = ExtResource("5_axlkp")
|
||||
weapon_stats = ExtResource("5_xe410")
|
||||
tower_stats = ExtResource("3_b48s2")
|
@ -1,17 +0,0 @@
|
||||
extends Tower
|
||||
class_name RefridgeratorTower
|
||||
|
||||
@export var status_stats : StatusStats
|
||||
@export var particlesystem : GPUParticles3D
|
||||
|
||||
|
||||
func aim():
|
||||
pass
|
||||
|
||||
|
||||
func shoot():
|
||||
for enemy in get_tree().get_nodes_in_group("Enemies"):
|
||||
if global_position.distance_to(enemy.global_position) <= stats.fire_range:
|
||||
var status = StatusCold.new()
|
||||
status.stats = status_stats
|
||||
enemy.status_manager.add_effect(status)
|
@ -1,30 +0,0 @@
|
||||
extends Weapon
|
||||
|
||||
@export var shapecast : ShapeCast3D
|
||||
@export var particlesystem : GPUParticles3D
|
||||
@export var status_stats : StatusStats
|
||||
|
||||
|
||||
func _ready() -> void:
|
||||
cooldown = 1.0 / stats.fire_rate
|
||||
|
||||
|
||||
func set_raycast_origin(_node):
|
||||
pass
|
||||
|
||||
|
||||
func shoot():
|
||||
if other_cooldown <= 0 and stats != null:
|
||||
other_cooldown = cooldown
|
||||
particlesystem.emitting = true
|
||||
$AnimationPlayer.play("shoot")
|
||||
for index in shapecast.get_collision_count():
|
||||
var target = shapecast.get_collider(index) as CharacterBody3D
|
||||
var status = StatusCold.new()
|
||||
status.stats = status_stats
|
||||
target.status_manager.add_effect(status)
|
||||
|
||||
|
||||
func release_trigger():
|
||||
trigger_held = false
|
||||
particlesystem.emitting = false
|
@ -1,76 +0,0 @@
|
||||
[gd_scene load_steps=10 format=3 uid="uid://bxjyrqs8bvi41"]
|
||||
|
||||
[ext_resource type="Script" path="res://PCs/Universal/ClassCards/Refridgerator/fridgetower.gd" id="1_wo1ar"]
|
||||
[ext_resource type="Resource" uid="uid://fed6kimfbcwv" path="res://Resources/StatusEffects/cold.tres" id="2_ccxwb"]
|
||||
[ext_resource type="Resource" uid="uid://ugpxwdjfvssu" path="res://Resources/TurretStats/refridgerator.tres" id="3_hmanw"]
|
||||
|
||||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_imgrm"]
|
||||
transparency = 1
|
||||
cull_mode = 2
|
||||
shading_mode = 0
|
||||
albedo_color = Color(0.686275, 0, 0, 0.278431)
|
||||
|
||||
[sub_resource type="Gradient" id="Gradient_kkqms"]
|
||||
offsets = PackedFloat32Array(0, 0.512195, 1)
|
||||
colors = PackedColorArray(1, 1, 1, 1, 0.189479, 0.632903, 0.66198, 0.818269, 0.12549, 0.603922, 0.635294, 0.803922)
|
||||
|
||||
[sub_resource type="GradientTexture1D" id="GradientTexture1D_4cwgw"]
|
||||
gradient = SubResource("Gradient_kkqms")
|
||||
|
||||
[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_2nhns"]
|
||||
spread = 180.0
|
||||
flatness = 1.0
|
||||
gravity = Vector3(0, -3, 0)
|
||||
initial_velocity_min = 7.0
|
||||
initial_velocity_max = 7.0
|
||||
tangential_accel_min = 5.0
|
||||
tangential_accel_max = 13.48
|
||||
damping_min = 8.0
|
||||
damping_max = 8.0
|
||||
color_ramp = SubResource("GradientTexture1D_4cwgw")
|
||||
|
||||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_ycjd1"]
|
||||
transparency = 1
|
||||
vertex_color_use_as_albedo = true
|
||||
|
||||
[sub_resource type="BoxMesh" id="BoxMesh_q83y7"]
|
||||
material = SubResource("StandardMaterial3D_ycjd1")
|
||||
size = Vector3(0.3, 0.3, 0.3)
|
||||
|
||||
[node name="Node3D" type="Node3D" node_paths=PackedStringArray("particlesystem", "model", "range_sphere", "minimap_range_sphere")]
|
||||
script = ExtResource("1_wo1ar")
|
||||
status_stats = ExtResource("2_ccxwb")
|
||||
particlesystem = NodePath("Model/GPUParticles3D")
|
||||
stats = ExtResource("3_hmanw")
|
||||
model = NodePath("Model")
|
||||
range_sphere = NodePath("Model/CSGSphere3D")
|
||||
minimap_range_sphere = NodePath("Model/CSGSphere3D2")
|
||||
|
||||
[node name="Model" type="Node3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2, 0)
|
||||
|
||||
[node name="CSGBox3D" type="CSGBox3D" parent="Model"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.968366, 0)
|
||||
size = Vector3(1, 1.25244, 1)
|
||||
|
||||
[node name="CSGBox3D2" type="CSGBox3D" parent="Model"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.991506, 0)
|
||||
size = Vector3(1.25687, 0.204013, 1.29481)
|
||||
|
||||
[node name="CSGSphere3D" type="CSGSphere3D" parent="Model"]
|
||||
visible = false
|
||||
radius = 7.5
|
||||
material = SubResource("StandardMaterial3D_imgrm")
|
||||
|
||||
[node name="CSGSphere3D2" type="CSGSphere3D" parent="Model"]
|
||||
visible = false
|
||||
layers = 4
|
||||
radius = 7.5
|
||||
material = SubResource("StandardMaterial3D_imgrm")
|
||||
|
||||
[node name="GPUParticles3D" type="GPUParticles3D" parent="Model"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.984682, 0)
|
||||
amount = 48
|
||||
visibility_aabb = AABB(-7.20412, -4, -6.98341, 14.4082, 8, 13.9668)
|
||||
process_material = SubResource("ParticleProcessMaterial_2nhns")
|
||||
draw_pass_1 = SubResource("BoxMesh_q83y7")
|
@ -1,100 +0,0 @@
|
||||
[gd_scene load_steps=14 format=3 uid="uid://b1457hrmd4xm7"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://jmxhiwsiw1f5" path="res://Assets/TextureAtlases/g_glue_gun.tres" id="1_edx8q"]
|
||||
[ext_resource type="Script" path="res://PCs/Universal/ClassCards/Refridgerator/refridgeratorweapon.gd" id="2_uadfd"]
|
||||
[ext_resource type="Resource" uid="uid://fed6kimfbcwv" path="res://Resources/StatusEffects/cold.tres" id="3_saiop"]
|
||||
[ext_resource type="Resource" uid="uid://cpyrdja71sboe" path="res://Resources/WeaponStats/refridgerator.tres" id="4_f60ka"]
|
||||
|
||||
[sub_resource type="Animation" id="Animation_n8b32"]
|
||||
length = 0.001
|
||||
tracks/0/type = "value"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath(".:texture:region")
|
||||
tracks/0/interp = 1
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = {
|
||||
"times": PackedFloat32Array(0),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"update": 0,
|
||||
"values": [Rect2(0, 0, 64, 64)]
|
||||
}
|
||||
|
||||
[sub_resource type="Animation" id="Animation_g0h8q"]
|
||||
resource_name = "shoot"
|
||||
length = 0.15
|
||||
tracks/0/type = "value"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath(".:texture:region")
|
||||
tracks/0/interp = 1
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = {
|
||||
"times": PackedFloat32Array(0, 0.15),
|
||||
"transitions": PackedFloat32Array(0, 0),
|
||||
"update": 0,
|
||||
"values": [Rect2(64, 0, 64, 64), Rect2(0, 0, 64, 64)]
|
||||
}
|
||||
|
||||
[sub_resource type="AnimationLibrary" id="AnimationLibrary_ntl6p"]
|
||||
_data = {
|
||||
"RESET": SubResource("Animation_n8b32"),
|
||||
"shoot": SubResource("Animation_g0h8q")
|
||||
}
|
||||
|
||||
[sub_resource type="BoxShape3D" id="BoxShape3D_q7gll"]
|
||||
size = Vector3(3, 3, 4)
|
||||
|
||||
[sub_resource type="Gradient" id="Gradient_kkqms"]
|
||||
offsets = PackedFloat32Array(0, 0.512195, 1)
|
||||
colors = PackedColorArray(1, 1, 1, 1, 0.189479, 0.632903, 0.66198, 0.818269, 0.12549, 0.603922, 0.635294, 0.803922)
|
||||
|
||||
[sub_resource type="GradientTexture1D" id="GradientTexture1D_gpquw"]
|
||||
gradient = SubResource("Gradient_kkqms")
|
||||
|
||||
[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_cp5dw"]
|
||||
direction = Vector3(0, 1, 0)
|
||||
spread = 20.0
|
||||
gravity = Vector3(0, 0, 0)
|
||||
initial_velocity_min = 5.0
|
||||
initial_velocity_max = 5.0
|
||||
damping_min = 1.9
|
||||
damping_max = 1.9
|
||||
color_ramp = SubResource("GradientTexture1D_gpquw")
|
||||
|
||||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_2yd7w"]
|
||||
transparency = 1
|
||||
vertex_color_use_as_albedo = true
|
||||
|
||||
[sub_resource type="BoxMesh" id="BoxMesh_ggcx2"]
|
||||
material = SubResource("StandardMaterial3D_2yd7w")
|
||||
size = Vector3(0.3, 0.3, 0.3)
|
||||
|
||||
[node name="Weapon" type="Sprite3D" node_paths=PackedStringArray("shapecast", "particlesystem")]
|
||||
layers = 2
|
||||
billboard = 1
|
||||
texture_filter = 0
|
||||
texture = ExtResource("1_edx8q")
|
||||
script = ExtResource("2_uadfd")
|
||||
shapecast = NodePath("ShapeCast3D")
|
||||
particlesystem = NodePath("GPUParticles3D")
|
||||
status_stats = ExtResource("3_saiop")
|
||||
stats = ExtResource("4_f60ka")
|
||||
|
||||
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
|
||||
libraries = {
|
||||
"": SubResource("AnimationLibrary_ntl6p")
|
||||
}
|
||||
|
||||
[node name="ShapeCast3D" type="ShapeCast3D" parent="."]
|
||||
transform = Transform3D(0.975695, 0, 0.219131, 0, 1, 0, -0.219131, 0, 0.975695, 0, 0, 0)
|
||||
shape = SubResource("BoxShape3D_q7gll")
|
||||
target_position = Vector3(0, 0, -2)
|
||||
collision_mask = 4
|
||||
|
||||
[node name="GPUParticles3D" type="GPUParticles3D" parent="."]
|
||||
transform = Transform3D(0.975695, -0.219131, -9.57852e-09, 0, -4.37114e-08, 1, -0.219131, -0.975695, -4.2649e-08, 0, 0, 0)
|
||||
amount = 32
|
||||
visibility_aabb = AABB(-2.2922, -3.14731, -1.92995, 4.5844, 6.29461, 3.85991)
|
||||
process_material = SubResource("ParticleProcessMaterial_cp5dw")
|
||||
draw_pass_1 = SubResource("BoxMesh_ggcx2")
|
23
PCs/Universal/ClassCards/Refrigerator/card_refrigerator.tres
Normal file
23
PCs/Universal/ClassCards/Refrigerator/card_refrigerator.tres
Normal file
@ -0,0 +1,23 @@
|
||||
[gd_resource type="Resource" script_class="Card" load_steps=8 format=3 uid="uid://ds8qx4ggmqetk"]
|
||||
|
||||
[ext_resource type="Script" path="res://Scripts/Resources/card.gd" id="1_84afc"]
|
||||
[ext_resource type="Texture2D" uid="uid://oblavj8vj30n" path="res://PCs/Universal/ClassCards/GlueLauncher/glue_gun.png" id="2_kdslp"]
|
||||
[ext_resource type="Resource" uid="uid://st0qrut5nxrm" path="res://PCs/Universal/ClassCards/Refrigerator/tower_stats.tres" id="3_bihii"]
|
||||
[ext_resource type="PackedScene" uid="uid://b0vi11kj3lxng" path="res://PCs/Universal/ClassCards/Refrigerator/weapon_refrigerator.tscn" id="4_0oufq"]
|
||||
[ext_resource type="PackedScene" uid="uid://bqaynyhxdr4to" path="res://PCs/Universal/ClassCards/Refrigerator/tower_refrigerator.tscn" id="4_7x6qx"]
|
||||
[ext_resource type="Resource" uid="uid://5l758yxfpi1e" path="res://PCs/Universal/ClassCards/Refrigerator/weapon_stats.tres" id="5_dqmyh"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_fuxlt"]
|
||||
atlas = ExtResource("2_kdslp")
|
||||
region = Rect2(0, 0, 64, 64)
|
||||
|
||||
[resource]
|
||||
script = ExtResource("1_84afc")
|
||||
title = "Refrigerator"
|
||||
rarity = 1
|
||||
faction = 0
|
||||
sprite = SubResource("AtlasTexture_fuxlt")
|
||||
turret_scene = ExtResource("4_7x6qx")
|
||||
weapon_scene = ExtResource("4_0oufq")
|
||||
weapon_stats = ExtResource("5_dqmyh")
|
||||
tower_stats = ExtResource("3_bihii")
|
19
PCs/Universal/ClassCards/Refrigerator/cold_particles.tres
Normal file
19
PCs/Universal/ClassCards/Refrigerator/cold_particles.tres
Normal file
@ -0,0 +1,19 @@
|
||||
[gd_resource type="ParticleProcessMaterial" load_steps=3 format=3 uid="uid://ckung57mij7ue"]
|
||||
|
||||
[sub_resource type="Gradient" id="Gradient_eiw3y"]
|
||||
interpolation_color_space = 2
|
||||
offsets = PackedFloat32Array(0, 0.325203, 1)
|
||||
colors = PackedColorArray(0.827004, 0.826193, 0.823983, 1, 0.338333, 0.810555, 0.85349, 1, 0.0352941, 0.803922, 0.858824, 1)
|
||||
|
||||
[sub_resource type="GradientTexture1D" id="GradientTexture1D_arw7j"]
|
||||
gradient = SubResource("Gradient_eiw3y")
|
||||
|
||||
[resource]
|
||||
direction = Vector3(0, 0, -1)
|
||||
spread = 15.0
|
||||
gravity = Vector3(0, 0, 0)
|
||||
initial_velocity_min = 3.0
|
||||
initial_velocity_max = 3.0
|
||||
scale_min = 0.3
|
||||
scale_max = 0.3
|
||||
color_ramp = SubResource("GradientTexture1D_arw7j")
|
15
PCs/Universal/ClassCards/Refrigerator/tower_refrigerator.gd
Normal file
15
PCs/Universal/ClassCards/Refrigerator/tower_refrigerator.gd
Normal file
@ -0,0 +1,15 @@
|
||||
extends RangeAffectingTower
|
||||
class_name RefrigeratorTower
|
||||
|
||||
@export var particles : GPUParticles3D
|
||||
|
||||
|
||||
func _ready() -> void:
|
||||
super._ready()
|
||||
particles.process_material.emission_ring_radius = target_range
|
||||
|
||||
|
||||
func build_status_object() -> StatusEffect:
|
||||
var status = StatusSlow.new()
|
||||
status.stats = status_stats
|
||||
return status
|
@ -0,0 +1,43 @@
|
||||
[gd_scene load_steps=10 format=3 uid="uid://bqaynyhxdr4to"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://bi6b2r6wek7he" path="res://Scenes/Towers/range_affecting_tower.tscn" id="1_4hvoi"]
|
||||
[ext_resource type="Resource" uid="uid://fed6kimfbcwv" path="res://Resources/StatusEffects/cold.tres" id="2_u4dux"]
|
||||
[ext_resource type="Script" path="res://PCs/Universal/ClassCards/Refrigerator/tower_refrigerator.gd" id="2_yhcmv"]
|
||||
[ext_resource type="Resource" uid="uid://st0qrut5nxrm" path="res://PCs/Universal/ClassCards/Refrigerator/tower_stats.tres" id="3_jjh3a"]
|
||||
|
||||
[sub_resource type="Gradient" id="Gradient_lm6vx"]
|
||||
offsets = PackedFloat32Array(0, 0.682927, 1)
|
||||
colors = PackedColorArray(0, 1, 1, 1, 0.430894, 1, 1, 1, 1, 1, 1, 1)
|
||||
|
||||
[sub_resource type="GradientTexture1D" id="GradientTexture1D_wv576"]
|
||||
gradient = SubResource("Gradient_lm6vx")
|
||||
|
||||
[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_ijefe"]
|
||||
spread = 180.0
|
||||
flatness = 1.0
|
||||
gravity = Vector3(0, -8, 0)
|
||||
initial_velocity_min = 7.0
|
||||
initial_velocity_max = 7.0
|
||||
tangential_accel_min = 6.0
|
||||
tangential_accel_max = 6.0
|
||||
damping_min = 10.0
|
||||
damping_max = 10.0
|
||||
color_ramp = SubResource("GradientTexture1D_wv576")
|
||||
|
||||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_niq28"]
|
||||
vertex_color_use_as_albedo = true
|
||||
|
||||
[sub_resource type="BoxMesh" id="BoxMesh_btdsr"]
|
||||
material = SubResource("StandardMaterial3D_niq28")
|
||||
size = Vector3(0.3, 0.3, 0.3)
|
||||
|
||||
[node name="RefrigeratorTower" node_paths=PackedStringArray("particles") instance=ExtResource("1_4hvoi")]
|
||||
script = ExtResource("2_yhcmv")
|
||||
particles = NodePath("GPUParticles3D")
|
||||
status_stats = ExtResource("2_u4dux")
|
||||
stats = ExtResource("3_jjh3a")
|
||||
|
||||
[node name="GPUParticles3D" type="GPUParticles3D" parent="." index="5"]
|
||||
amount = 32
|
||||
process_material = SubResource("ParticleProcessMaterial_ijefe")
|
||||
draw_pass_1 = SubResource("BoxMesh_btdsr")
|
25
PCs/Universal/ClassCards/Refrigerator/tower_stats.tres
Normal file
25
PCs/Universal/ClassCards/Refrigerator/tower_stats.tres
Normal file
@ -0,0 +1,25 @@
|
||||
[gd_resource type="Resource" script_class="CardText" load_steps=6 format=3 uid="uid://st0qrut5nxrm"]
|
||||
|
||||
[ext_resource type="Script" path="res://Scripts/Resources/stat_attribute.gd" id="1_ti2i3"]
|
||||
[ext_resource type="Script" path="res://Scripts/Resources/card_text.gd" id="2_e8yt2"]
|
||||
|
||||
[sub_resource type="Resource" id="Resource_j28f4"]
|
||||
script = ExtResource("1_ti2i3")
|
||||
key = "Fire Delay"
|
||||
value = 1.0
|
||||
|
||||
[sub_resource type="Resource" id="Resource_likes"]
|
||||
script = ExtResource("1_ti2i3")
|
||||
key = "Damage"
|
||||
value = 0.0
|
||||
|
||||
[sub_resource type="Resource" id="Resource_b65mk"]
|
||||
script = ExtResource("1_ti2i3")
|
||||
key = "Range"
|
||||
value = 3.0
|
||||
|
||||
[resource]
|
||||
script = ExtResource("2_e8yt2")
|
||||
target_type = 1
|
||||
attributes = Array[ExtResource("1_ti2i3")]([SubResource("Resource_j28f4"), SubResource("Resource_likes"), SubResource("Resource_b65mk")])
|
||||
text = "Applies Cold to enemies around itself"
|
@ -0,0 +1,21 @@
|
||||
[gd_scene load_steps=7 format=3 uid="uid://b0vi11kj3lxng"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://dp4gfr5h0tbcd" path="res://Scenes/Weapons/shapecast_weapon.tscn" id="1_g3e4a"]
|
||||
[ext_resource type="Resource" uid="uid://fed6kimfbcwv" path="res://Resources/StatusEffects/cold.tres" id="2_pranv"]
|
||||
[ext_resource type="Resource" uid="uid://5l758yxfpi1e" path="res://PCs/Universal/ClassCards/Refrigerator/weapon_stats.tres" id="3_ihljm"]
|
||||
[ext_resource type="Texture2D" uid="uid://oblavj8vj30n" path="res://PCs/Universal/ClassCards/GlueLauncher/glue_gun.png" id="4_y5ps0"]
|
||||
[ext_resource type="Material" uid="uid://ckung57mij7ue" path="res://PCs/Universal/ClassCards/Refrigerator/cold_particles.tres" id="5_8q1lc"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_0yua2"]
|
||||
atlas = ExtResource("4_y5ps0")
|
||||
region = Rect2(0, 0, 64, 64)
|
||||
|
||||
[node name="RefrigeratorWeapon" instance=ExtResource("1_g3e4a")]
|
||||
status_stats = ExtResource("2_pranv")
|
||||
stats = ExtResource("3_ihljm")
|
||||
|
||||
[node name="Sprite3D" parent="." index="0"]
|
||||
texture = SubResource("AtlasTexture_0yua2")
|
||||
|
||||
[node name="GPUParticles3D" parent="ShapeCast3D" index="0"]
|
||||
process_material = ExtResource("5_8q1lc")
|
25
PCs/Universal/ClassCards/Refrigerator/weapon_stats.tres
Normal file
25
PCs/Universal/ClassCards/Refrigerator/weapon_stats.tres
Normal file
@ -0,0 +1,25 @@
|
||||
[gd_resource type="Resource" script_class="CardText" load_steps=6 format=3 uid="uid://5l758yxfpi1e"]
|
||||
|
||||
[ext_resource type="Script" path="res://Scripts/Resources/stat_attribute.gd" id="1_v7ces"]
|
||||
[ext_resource type="Script" path="res://Scripts/Resources/card_text.gd" id="2_1d5nm"]
|
||||
|
||||
[sub_resource type="Resource" id="Resource_j28f4"]
|
||||
script = ExtResource("1_v7ces")
|
||||
key = "Fire Delay"
|
||||
value = 0.5
|
||||
|
||||
[sub_resource type="Resource" id="Resource_likes"]
|
||||
script = ExtResource("1_v7ces")
|
||||
key = "Damage"
|
||||
value = 1.0
|
||||
|
||||
[sub_resource type="Resource" id="Resource_b65mk"]
|
||||
script = ExtResource("1_v7ces")
|
||||
key = "Range"
|
||||
value = 3.0
|
||||
|
||||
[resource]
|
||||
script = ExtResource("2_1d5nm")
|
||||
target_type = 0
|
||||
attributes = Array[ExtResource("1_v7ces")]([SubResource("Resource_j28f4"), SubResource("Resource_likes"), SubResource("Resource_b65mk")])
|
||||
text = "Hold to apply Cold to enemies in front of you"
|
@ -6,8 +6,6 @@
|
||||
|
||||
[node name="Rocket" instance=ExtResource("1_fnn4i")]
|
||||
script = ExtResource("2_86up0")
|
||||
acceleration = 40.0
|
||||
max_speed = 14.0
|
||||
|
||||
[node name="Sprite3D" parent="." index="1"]
|
||||
pixel_size = 0.013
|
||||
|
@ -66,6 +66,7 @@ func networked_spawn_rocket(target_node_path, peer_id):
|
||||
projectile.position = global_position
|
||||
projectile.damage = damage
|
||||
projectile.target = target
|
||||
projectile.owner_id = peer_id
|
||||
projectile.name = str(peer_id) + str(projectile_id)
|
||||
get_tree().root.add_child(projectile)
|
||||
projectile.apply_central_impulse(Vector3.UP * 3.0)
|
||||
|
@ -6,7 +6,7 @@
|
||||
[sub_resource type="Resource" id="Resource_58kde"]
|
||||
script = ExtResource("1_7xbx2")
|
||||
key = "Fire Delay"
|
||||
value = 1.2
|
||||
value = 0.9
|
||||
|
||||
[sub_resource type="Resource" id="Resource_jl4jv"]
|
||||
script = ExtResource("1_7xbx2")
|
||||
|
@ -133,7 +133,7 @@ func _process(delta: float) -> void:
|
||||
movement.zoom_factor -= sprint_zoom_speed * delta
|
||||
if movement.zoom_factor <= 1.0 - movement.sprint_zoom_factor:
|
||||
movement.zoom_factor = 1.0 - movement.sprint_zoom_factor
|
||||
camera.fov = Data.preferences.hfov * (1.0 / movement.zoom_factor)
|
||||
camera.fov = Data.graphics.hfov * (1.0 / movement.zoom_factor)
|
||||
|
||||
if Input.is_action_just_pressed("View Map"):
|
||||
hud.maximise_minimap(Game.level)
|
||||
|
@ -22,7 +22,7 @@
|
||||
|
||||
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_jbu13"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_oyv4e"]
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_kr8sn"]
|
||||
resource_local_to_scene = true
|
||||
atlas = ExtResource("6_yyp8i")
|
||||
region = Rect2(0, 0, 96, 96)
|
||||
@ -103,7 +103,7 @@ collision_mask = 24
|
||||
|
||||
[node name="EightDirectionSprite" parent="." instance=ExtResource("2_ib0t5")]
|
||||
transform = Transform3D(2, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0.915529, 0)
|
||||
texture = SubResource("AtlasTexture_oyv4e")
|
||||
texture = SubResource("AtlasTexture_kr8sn")
|
||||
|
||||
[node name="Inventory" type="Node" parent="."]
|
||||
script = ExtResource("6_cf5ap")
|
||||
|
Reference in New Issue
Block a user