way too many changes to list, oops. big rewrite.
This commit is contained in:
BIN
Weapons/BombLauncher/grenade_launcher.png
Normal file
BIN
Weapons/BombLauncher/grenade_launcher.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.3 KiB |
34
Weapons/BombLauncher/grenade_launcher.png.import
Normal file
34
Weapons/BombLauncher/grenade_launcher.png.import
Normal file
@@ -0,0 +1,34 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://3qcdx7n440sc"
|
||||
path="res://.godot/imported/grenade_launcher.png-8845c18be7f0ebba3854285b6d021f1f.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://Weapons/BombLauncher/grenade_launcher.png"
|
||||
dest_files=["res://.godot/imported/grenade_launcher.png-8845c18be7f0ebba3854285b6d021f1f.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=true
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/normal_map_invert_y=false
|
||||
process/hdr_as_srgb=false
|
||||
process/hdr_clamp_exposure=false
|
||||
process/size_limit=0
|
||||
detect_3d/compress_to=0
|
7
Weapons/BombLauncher/weapon_bomb_launcher.gd
Normal file
7
Weapons/BombLauncher/weapon_bomb_launcher.gd
Normal file
@@ -0,0 +1,7 @@
|
||||
class_name BombLauncherWeapon extends ProjectileWeapon
|
||||
|
||||
|
||||
func _ready() -> void:
|
||||
super._ready()
|
||||
var launch_range: float = stats.get_attribute("Range")
|
||||
force = sqrt((launch_range * ProjectSettings.get_setting("physics/3d/default_gravity")) / sin(2.0 * 45.0))
|
1
Weapons/BombLauncher/weapon_bomb_launcher.gd.uid
Normal file
1
Weapons/BombLauncher/weapon_bomb_launcher.gd.uid
Normal file
@@ -0,0 +1 @@
|
||||
uid://d2uo2cp7cdhdu
|
29
Weapons/BombLauncher/weapon_bomb_launcher.tscn
Normal file
29
Weapons/BombLauncher/weapon_bomb_launcher.tscn
Normal file
@@ -0,0 +1,29 @@
|
||||
[gd_scene load_steps=9 format=3 uid="uid://c3fqlkytyc62u"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://bqdllitxbbpyp" path="res://Scenes/Weapons/projectile_weapon.tscn" id="1_gbycb"]
|
||||
[ext_resource type="Script" uid="uid://d2uo2cp7cdhdu" path="res://Weapons/BombLauncher/weapon_bomb_launcher.gd" id="2_g5ihb"]
|
||||
[ext_resource type="Resource" uid="uid://co6eorobj1xuu" path="res://Weapons/BombLauncher/weapon_stats.tres" id="3_73ol1"]
|
||||
[ext_resource type="PackedScene" uid="uid://c8oq5unisjqne" path="res://Projectiles/Bomb/bomb_projectile.tscn" id="3_jxt6m"]
|
||||
[ext_resource type="Texture2D" uid="uid://3qcdx7n440sc" path="res://Weapons/BombLauncher/grenade_launcher.png" id="5_iyrt8"]
|
||||
[ext_resource type="AudioStream" uid="uid://dknygn5eyuhxt" path="res://Audio/shot1.wav" id="6_rg62n"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_4fobv"]
|
||||
resource_local_to_scene = true
|
||||
atlas = ExtResource("5_iyrt8")
|
||||
region = Rect2(0, 0, 64, 64)
|
||||
|
||||
[sub_resource type="AudioStreamRandomizer" id="AudioStreamRandomizer_l37cm"]
|
||||
random_pitch = 1.1
|
||||
streams_count = 1
|
||||
stream_0/stream = ExtResource("6_rg62n")
|
||||
|
||||
[node name="BombLauncherWeapon" instance=ExtResource("1_gbycb")]
|
||||
script = ExtResource("2_g5ihb")
|
||||
projectile_scene = ExtResource("3_jxt6m")
|
||||
stats = ExtResource("3_73ol1")
|
||||
|
||||
[node name="Sprite3D" parent="." index="0"]
|
||||
texture = SubResource("AtlasTexture_4fobv")
|
||||
|
||||
[node name="AudioStreamPlayer3D" parent="." index="3"]
|
||||
stream = SubResource("AudioStreamRandomizer_l37cm")
|
31
Weapons/BombLauncher/weapon_stats.tres
Normal file
31
Weapons/BombLauncher/weapon_stats.tres
Normal file
@@ -0,0 +1,31 @@
|
||||
[gd_resource type="Resource" script_class="CardText" load_steps=7 format=3 uid="uid://co6eorobj1xuu"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://yjb0uv6og430" path="res://Scripts/Resources/stat_attribute.gd" id="1_vg7y2"]
|
||||
[ext_resource type="Script" uid="uid://dg7gxxqfqxcmc" path="res://Scripts/Resources/card_text.gd" id="2_fe8lx"]
|
||||
|
||||
[sub_resource type="Resource" id="Resource_yb48y"]
|
||||
script = ExtResource("1_vg7y2")
|
||||
key = "Fire Delay"
|
||||
value = 2.0
|
||||
|
||||
[sub_resource type="Resource" id="Resource_ewwvw"]
|
||||
script = ExtResource("1_vg7y2")
|
||||
key = "Damage"
|
||||
value = 10.0
|
||||
|
||||
[sub_resource type="Resource" id="Resource_qu5dv"]
|
||||
script = ExtResource("1_vg7y2")
|
||||
key = "Range"
|
||||
value = 10.0
|
||||
|
||||
[sub_resource type="Resource" id="Resource_67t30"]
|
||||
script = ExtResource("1_vg7y2")
|
||||
key = "Energy"
|
||||
value = 10.0
|
||||
|
||||
[resource]
|
||||
script = ExtResource("2_fe8lx")
|
||||
target_type = 0
|
||||
energy_type = 1
|
||||
attributes = Array[ExtResource("1_vg7y2")]([SubResource("Resource_yb48y"), SubResource("Resource_ewwvw"), SubResource("Resource_qu5dv"), SubResource("Resource_67t30")])
|
||||
text = "Launch a bomb that deals /Damage\\ damage every /Fire Delay\\ seconds"
|
Reference in New Issue
Block a user