fixed the parity between air and land enemies. +added a lot of new cards
This commit is contained in:
19
PCs/Universal/ClassCards/Reactor/card_reactor.tres
Normal file
19
PCs/Universal/ClassCards/Reactor/card_reactor.tres
Normal file
@ -0,0 +1,19 @@
|
||||
[gd_resource type="Resource" script_class="Card" load_steps=7 format=3 uid="uid://dra640am6ykri"]
|
||||
|
||||
[ext_resource type="Script" path="res://Scripts/Resources/card.gd" id="1_7065k"]
|
||||
[ext_resource type="Texture2D" uid="uid://ca4lwwd3e0y73" path="res://Assets/TextureAtlases/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"]
|
||||
|
||||
[resource]
|
||||
script = ExtResource("1_7065k")
|
||||
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")
|
17
PCs/Universal/ClassCards/Reactor/reactortower.gd
Normal file
17
PCs/Universal/ClassCards/Reactor/reactortower.gd
Normal file
@ -0,0 +1,17 @@
|
||||
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)
|
30
PCs/Universal/ClassCards/Reactor/reactorweapon.gd
Normal file
30
PCs/Universal/ClassCards/Reactor/reactorweapon.gd
Normal file
@ -0,0 +1,30 @@
|
||||
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
|
72
PCs/Universal/ClassCards/Reactor/tower_reactor.tscn
Normal file
72
PCs/Universal/ClassCards/Reactor/tower_reactor.tscn
Normal file
@ -0,0 +1,72 @@
|
||||
[gd_scene load_steps=10 format=3 uid="uid://byglhh0etuy6"]
|
||||
|
||||
[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"]
|
||||
|
||||
[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"]
|
||||
colors = PackedColorArray(0.376471, 0.976471, 0, 0.435294, 0.127613, 0.391512, 0, 0.870588)
|
||||
|
||||
[sub_resource type="GradientTexture1D" id="GradientTexture1D_4cwgw"]
|
||||
gradient = SubResource("Gradient_kkqms")
|
||||
|
||||
[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_2nhns"]
|
||||
emission_shape = 6
|
||||
emission_ring_axis = Vector3(0, 1, 0)
|
||||
emission_ring_height = 0.5
|
||||
emission_ring_radius = 20.0
|
||||
emission_ring_inner_radius = 0.0
|
||||
gravity = Vector3(0, 1, 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_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="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)
|
||||
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")
|
99
PCs/Universal/ClassCards/Reactor/weapon_reactor.tscn
Normal file
99
PCs/Universal/ClassCards/Reactor/weapon_reactor.tscn
Normal file
@ -0,0 +1,99 @@
|
||||
[gd_scene load_steps=14 format=3 uid="uid://cpe3b700kwj48"]
|
||||
|
||||
[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"]
|
||||
|
||||
[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"]
|
||||
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"]
|
||||
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_lmai4")
|
||||
script = ExtResource("2_mpd2q")
|
||||
shapecast = NodePath("ShapeCast3D")
|
||||
particlesystem = NodePath("GPUParticles3D")
|
||||
status_stats = ExtResource("3_x464r")
|
||||
stats = ExtResource("4_lclha")
|
||||
|
||||
[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")
|
Reference in New Issue
Block a user