-
Notifications
You must be signed in to change notification settings - Fork 1
/
Grenade.tscn
39 lines (29 loc) · 1.33 KB
/
Grenade.tscn
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
[gd_scene load_steps=7 format=3 uid="uid://bq562nfq7puh"]
[ext_resource type="Script" path="res://Player/Grenade.gd" id="1_ak024"]
[ext_resource type="PackedScene" uid="uid://d5jny5gc8ntg" path="res://Player/GrenadeVisuals/grenade/grenade.tscn" id="2_6f7t1"]
[ext_resource type="AudioStream" uid="uid://csou1m38pk3m4" path="res://Player/Sounds/musket-explosion-6383.wav" id="3_7x8ud"]
[sub_resource type="PhysicsMaterial" id="PhysicsMaterial_1j8fw"]
friction = 0.0
bounce = 1.0
[sub_resource type="SphereShape3D" id="SphereShape3D_btrg5"]
radius = 3.0
[sub_resource type="SphereShape3D" id="SphereShape3D_tlpcg"]
radius = 0.1
[node name="Grenade" type="RigidBody3D"]
top_level = true
collision_layer = 0
collision_mask = 2
physics_material_override = SubResource("PhysicsMaterial_1j8fw")
continuous_cd = true
max_contacts_reported = 1
contact_monitor = true
script = ExtResource("1_ak024")
[node name="ExplosionArea" type="Area3D" parent="."]
[node name="CollisionShape3d" type="CollisionShape3D" parent="ExplosionArea"]
shape = SubResource("SphereShape3D_btrg5")
[node name="grenade" parent="." instance=ExtResource("2_6f7t1")]
[node name="CollisionShape3d" type="CollisionShape3D" parent="."]
shape = SubResource("SphereShape3D_tlpcg")
[node name="ExplosionSound" type="AudioStreamPlayer3D" parent="."]
stream = ExtResource("3_7x8ud")
pitch_scale = 2.0