blergh
This commit is contained in:
16
player/weapons/minigun/minigun.tres
Normal file
16
player/weapons/minigun/minigun.tres
Normal file
@@ -0,0 +1,16 @@
|
||||
[gd_resource type="Resource" script_class="Weapon" load_steps=5 format=3 uid="uid://cju6axrqorits"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://serk58t3v1t3" path="res://player/weapons/minigun/minigun_projectile.tscn" id="1_bckir"]
|
||||
[ext_resource type="Script" path="res://player/weapons/weapon.gd" id="1_yyole"]
|
||||
[ext_resource type="AudioStream" uid="uid://dl17wjco1lk1w" path="res://player/weapons/minigun/pistol-shot.ogg" id="3_j6kkp"]
|
||||
|
||||
[sub_resource type="AudioStreamRandomizer" id="AudioStreamRandomizer_yqqtq"]
|
||||
random_pitch = 1.1
|
||||
streams_count = 1
|
||||
stream_0/stream = ExtResource("3_j6kkp")
|
||||
|
||||
[resource]
|
||||
script = ExtResource("1_yyole")
|
||||
cooldown = 0.11
|
||||
projectile_scene = ExtResource("1_bckir")
|
||||
shooting_sound = SubResource("AudioStreamRandomizer_yqqtq")
|
||||
43
player/weapons/minigun/minigun_projectile.tscn
Normal file
43
player/weapons/minigun/minigun_projectile.tscn
Normal file
@@ -0,0 +1,43 @@
|
||||
[gd_scene load_steps=6 format=3 uid="uid://serk58t3v1t3"]
|
||||
|
||||
[ext_resource type="Script" path="res://components/projectile.gd" id="1_a3wmo"]
|
||||
[ext_resource type="Script" path="res://components/projectile_mover_linear.gd" id="2_ruvri"]
|
||||
|
||||
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_ulfb8"]
|
||||
radius = 0.1
|
||||
height = 0.5
|
||||
|
||||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_ql67j"]
|
||||
albedo_color = Color(1, 1, 0.427451, 1)
|
||||
emission_enabled = true
|
||||
emission = Color(1, 1, 0, 1)
|
||||
emission_energy_multiplier = 29.45
|
||||
disable_receive_shadows = true
|
||||
|
||||
[sub_resource type="CapsuleMesh" id="CapsuleMesh_3h1yl"]
|
||||
material = SubResource("StandardMaterial3D_ql67j")
|
||||
radius = 0.02
|
||||
height = 0.9
|
||||
|
||||
[node name="MinigunProjectile" type="CharacterBody3D"]
|
||||
collision_layer = 16
|
||||
collision_mask = 33
|
||||
motion_mode = 1
|
||||
safe_margin = 0.01
|
||||
script = ExtResource("1_a3wmo")
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
|
||||
transform = Transform3D(1.91069e-15, -4.37114e-08, 1, -1, -4.37114e-08, 0, 4.37114e-08, -1, -4.37114e-08, 0, 0, 0)
|
||||
shape = SubResource("CapsuleShape3D_ulfb8")
|
||||
|
||||
[node name="MeshInstance3D" type="MeshInstance3D" parent="."]
|
||||
transform = Transform3D(1.91069e-15, -4.37114e-08, 1, -1, -4.37114e-08, 0, 4.37114e-08, -1, -4.37114e-08, 0, 0, -0.5)
|
||||
gi_mode = 0
|
||||
mesh = SubResource("CapsuleMesh_3h1yl")
|
||||
|
||||
[node name="ProjectileMoverLinear" type="Node3D" parent="."]
|
||||
script = ExtResource("2_ruvri")
|
||||
speed = 50.0
|
||||
|
||||
[connection signal="collided" from="." to="CollisionShape3D" method="free"]
|
||||
[connection signal="collided" from="." to="MeshInstance3D" method="free"]
|
||||
BIN
player/weapons/minigun/pistol-shot.ogg
Normal file
BIN
player/weapons/minigun/pistol-shot.ogg
Normal file
Binary file not shown.
19
player/weapons/minigun/pistol-shot.ogg.import
Normal file
19
player/weapons/minigun/pistol-shot.ogg.import
Normal file
@@ -0,0 +1,19 @@
|
||||
[remap]
|
||||
|
||||
importer="oggvorbisstr"
|
||||
type="AudioStreamOggVorbis"
|
||||
uid="uid://dl17wjco1lk1w"
|
||||
path="res://.godot/imported/pistol-shot.ogg-16d3d3f42751f44728a3f16f89fe2fda.oggvorbisstr"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://player/weapons/minigun/pistol-shot.ogg"
|
||||
dest_files=["res://.godot/imported/pistol-shot.ogg-16d3d3f42751f44728a3f16f89fe2fda.oggvorbisstr"]
|
||||
|
||||
[params]
|
||||
|
||||
loop=false
|
||||
loop_offset=0
|
||||
bpm=0
|
||||
beat_count=0
|
||||
bar_beats=4
|
||||
BIN
player/weapons/minigun/pistol-shot2.ogg
Normal file
BIN
player/weapons/minigun/pistol-shot2.ogg
Normal file
Binary file not shown.
19
player/weapons/minigun/pistol-shot2.ogg.import
Normal file
19
player/weapons/minigun/pistol-shot2.ogg.import
Normal file
@@ -0,0 +1,19 @@
|
||||
[remap]
|
||||
|
||||
importer="oggvorbisstr"
|
||||
type="AudioStreamOggVorbis"
|
||||
uid="uid://bvfof3p2pc6pi"
|
||||
path="res://.godot/imported/pistol-shot2.ogg-7aaa1cc2e0d5ccf082c461359363e4c2.oggvorbisstr"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://player/weapons/minigun/pistol-shot2.ogg"
|
||||
dest_files=["res://.godot/imported/pistol-shot2.ogg-7aaa1cc2e0d5ccf082c461359363e4c2.oggvorbisstr"]
|
||||
|
||||
[params]
|
||||
|
||||
loop=false
|
||||
loop_offset=0
|
||||
bpm=0
|
||||
beat_count=0
|
||||
bar_beats=4
|
||||
Reference in New Issue
Block a user