This commit is contained in:
zombie maniac 2023-10-01 23:40:46 -04:00
parent d5ee1fe306
commit d5c2829a36
Signed by untrusted user: nbrooks211
GPG key ID: F43C85C0DF0C334E
5 changed files with 13 additions and 11 deletions

View file

@ -66,6 +66,7 @@ func _on_anim_finished(name):
_triggered = false
if momentary and _triggered:
_sound.play()
_anim.play_backwards('trigger')
_resetting = true

View file

@ -3,11 +3,11 @@ extends CharacterBody3D
# Member variables
const QUAKE = 0.0625
const g = -800 * QUAKE
const MAX_SPEED = 2000 * QUAKE
const MAX_SPEED = 320 * QUAKE
const FRICTION = 4# * QUAKE
const STOP_SPEED = 100 * QUAKE
const ACCEL= 10# * QUAKE
const FORWARD_SPEED = 200 * QUAKE
const FORWARD_SPEED = 400 * QUAKE
const SIDE_SPEED = 350 * QUAKE
const UP_SPEED = 270 * QUAKE

View file

@ -1,11 +1,12 @@
[gd_scene load_steps=11 format=3 uid="uid://bp1fooevcl4lk"]
[gd_scene load_steps=12 format=3 uid="uid://bp1fooevcl4lk"]
[ext_resource type="ArrayMesh" uid="uid://cfm21e1rmsbvt" path="res://assets/maps/devworld.obj" id="1_67d5q"]
[ext_resource type="PackedScene" uid="uid://wl1n3y8mcq0x" path="res://Commentary.tscn" id="2_3gk04"]
[ext_resource type="AudioStream" uid="uid://d100ilqihkimr" path="res://whatareyouwatchingbro.mp3" id="3_qy4vp"]
[ext_resource type="AudioStream" uid="uid://7s6wb487kv2d" path="res://bomb-has-been-defused-csgo-sound-effect.mp3" id="3_sy6mw"]
[ext_resource type="AudioStream" uid="uid://blhm5fmqxxyjb" path="res://assets/sounds/commentarynodes/this_is_an_other_commentary_node.ogg" id="3_57rk3"]
[ext_resource type="AudioStream" uid="uid://eycsn6ww81e3" path="res://assets/sounds/commentarynodes/thisisacommentarynode.ogg" id="4_qboc2"]
[ext_resource type="PackedScene" uid="uid://ce7nfed54mwps" path="res://Button.tscn" id="5_57sxr"]
[ext_resource type="PackedScene" uid="uid://cp4rwojl3c3y3" path="res://test.tscn" id="6_8wwor"]
[ext_resource type="AudioStream" uid="uid://kbklqaa8yx0s" path="res://assets/sounds/button/buttonin01.ogg" id="6_dw4i0"]
[ext_resource type="PackedScene" uid="uid://cjn7bvtws2uip" path="res://Door.tscn" id="7_0wker"]
[sub_resource type="ConcavePolygonShape3D" id="ConcavePolygonShape3D_fwixm"]
@ -29,14 +30,14 @@ shape = SubResource("ConcavePolygonShape3D_fwixm")
[node name="Commentary" parent="." instance=ExtResource("2_3gk04")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -3.125, -0.25, 0.496153)
sound = ExtResource("3_sy6mw")
sound = ExtResource("3_57rk3")
volume = -20.0
capture_radius = 5.0
low_speed = 2.0
[node name="Commentary2" parent="." instance=ExtResource("2_3gk04")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -3.06073, -0.25, 3.2)
sound = ExtResource("3_qy4vp")
sound = ExtResource("4_qboc2")
volume = -30.0
[node name="Button" parent="." instance=ExtResource("5_57sxr")]
@ -44,7 +45,7 @@ transform = Transform3D(-4.37114e-08, 0, 1, 0, 1, 0, -1, 0, -4.37114e-08, -20.48
momentary = true
released_material = SubResource("StandardMaterial3D_pr3ys")
pressed_material = SubResource("StandardMaterial3D_tselo")
sound = ExtResource("3_sy6mw")
sound = ExtResource("6_dw4i0")
volume = -10.0
[node name="CardboardKreb" parent="." instance=ExtResource("6_8wwor")]

File diff suppressed because one or more lines are too long

View file

@ -1,4 +1,4 @@
[gd_scene load_steps=12 format=3 uid="uid://cv8621s5oukrb"]
[gd_scene load_steps=11 format=3 uid="uid://cv8621s5oukrb"]
[ext_resource type="PackedScene" uid="uid://dyyf1q12dchhq" path="res://Player.tscn" id="2_jba6q"]
[ext_resource type="ArrayMesh" uid="uid://bqnoaomgwec3w" path="res://assets/maps/mapentities.obj" id="5_wn745"]