way too many changes to list, oops. big rewrite.
This commit is contained in:
19
Weapons/Flamethrower/flame_particles.tres
Normal file
19
Weapons/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
|
||||
initial_velocity_min = 3.0
|
||||
initial_velocity_max = 3.0
|
||||
gravity = Vector3(0, 0, 0)
|
||||
scale_min = 0.3
|
||||
scale_max = 0.3
|
||||
color_ramp = SubResource("GradientTexture1D_arw7j")
|
7
Weapons/Flamethrower/weapon_flamethrower.gd
Normal file
7
Weapons/Flamethrower/weapon_flamethrower.gd
Normal file
@ -0,0 +1,7 @@
|
||||
class_name FlamethrowerWeapon extends ShapecastWeapon
|
||||
|
||||
|
||||
func build_status_object() -> StatusEffect:
|
||||
var status: StatusDoT = StatusDoT.new()
|
||||
status.stats = status_stats
|
||||
return status
|
1
Weapons/Flamethrower/weapon_flamethrower.gd.uid
Normal file
1
Weapons/Flamethrower/weapon_flamethrower.gd.uid
Normal file
@ -0,0 +1 @@
|
||||
uid://bf4aoeoumhnc6
|
24
Weapons/Flamethrower/weapon_flamethrower.tscn
Normal file
24
Weapons/Flamethrower/weapon_flamethrower.tscn
Normal file
@ -0,0 +1,24 @@
|
||||
[gd_scene load_steps=8 format=3 uid="uid://dhv7m4lky7bd8"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://dp4gfr5h0tbcd" path="res://Scenes/Weapons/shapecast_weapon.tscn" id="1_ovmdp"]
|
||||
[ext_resource type="Script" uid="uid://bf4aoeoumhnc6" path="res://Weapons/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://Weapons/Flamethrower/weapon_stats.tres" id="4_oafdt"]
|
||||
[ext_resource type="Texture2D" uid="uid://oblavj8vj30n" path="res://Weapons/GlueLauncher/glue_gun.png" id="5_wdw3e"]
|
||||
[ext_resource type="Material" uid="uid://gyeamtekshor" path="res://Weapons/Flamethrower/flame_particles.tres" id="6_idhp2"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_3hank"]
|
||||
resource_local_to_scene = true
|
||||
atlas = ExtResource("5_wdw3e")
|
||||
region = 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")
|
||||
|
||||
[node name="Sprite3D" parent="." index="0"]
|
||||
texture = SubResource("AtlasTexture_3hank")
|
||||
|
||||
[node name="GPUParticles3D" parent="ShapeCast3D" index="0"]
|
||||
process_material = ExtResource("6_idhp2")
|
31
Weapons/Flamethrower/weapon_stats.tres
Normal file
31
Weapons/Flamethrower/weapon_stats.tres
Normal file
@ -0,0 +1,31 @@
|
||||
[gd_resource type="Resource" script_class="CardText" load_steps=7 format=3 uid="uid://yjknwdimtm8g"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://yjb0uv6og430" path="res://Scripts/Resources/stat_attribute.gd" id="1_xqcf3"]
|
||||
[ext_resource type="Script" uid="uid://dg7gxxqfqxcmc" path="res://Scripts/Resources/card_text.gd" id="2_drgp3"]
|
||||
|
||||
[sub_resource type="Resource" id="Resource_j28f4"]
|
||||
script = ExtResource("1_xqcf3")
|
||||
key = "Fire Delay"
|
||||
value = 0.4
|
||||
|
||||
[sub_resource type="Resource" id="Resource_likes"]
|
||||
script = ExtResource("1_xqcf3")
|
||||
key = "Damage"
|
||||
value = 1.0
|
||||
|
||||
[sub_resource type="Resource" id="Resource_b65mk"]
|
||||
script = ExtResource("1_xqcf3")
|
||||
key = "Range"
|
||||
value = 3.0
|
||||
|
||||
[sub_resource type="Resource" id="Resource_rjpjf"]
|
||||
script = ExtResource("1_xqcf3")
|
||||
key = "Energy"
|
||||
value = 15.0
|
||||
|
||||
[resource]
|
||||
script = ExtResource("2_drgp3")
|
||||
target_type = 0
|
||||
energy_type = 2
|
||||
attributes = Array[ExtResource("1_xqcf3")]([SubResource("Resource_j28f4"), SubResource("Resource_likes"), SubResource("Resource_b65mk"), SubResource("Resource_rjpjf")])
|
||||
text = "Hold to apply Burning to enemies in front of you"
|
Reference in New Issue
Block a user