Le retour du ptit clap

This commit is contained in:
MarcEricMartel 2022-10-11 19:57:16 -04:00
parent 2069833fe7
commit 2c6cb4b23d
3 changed files with 4 additions and 22 deletions

View File

@ -118,15 +118,10 @@ func _physics_process(delta):
AudioMegaSlap.play() AudioMegaSlap.play()
else: else:
isSlap = false; isSlap = false;
AudioSlap.play()
if isSlap: hitbox.monitorable = true
if slap >= slapkill: hitbox.slap_level = slap
AudioMegaSlap.play() hitbox.slap_vector = point_to.get_global_transform().origin - camera.get_global_transform().origin
else:
AudioSlap.play()
hitbox.monitorable = true
hitbox.slap_level = slap
hitbox.slap_vector = point_to.get_global_transform().origin - camera.get_global_transform().origin
if (chargeSlap): if (chargeSlap):
slap += delta * 1.5; slap += delta * 1.5;

View File

@ -22,7 +22,6 @@ height = 3.0
extents = Vector3( 0.797679, 1, 1 ) extents = Vector3( 0.797679, 1, 1 )
[sub_resource type="SpatialMaterial" id=4] [sub_resource type="SpatialMaterial" id=4]
flags_no_depth_test = true
albedo_texture = ExtResource( 3 ) albedo_texture = ExtResource( 3 )
uv1_triplanar = true uv1_triplanar = true

View File

@ -91,18 +91,6 @@ escape={
"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":16777217,"physical_scancode":0,"unicode":0,"echo":false,"script":null) "events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":16777217,"physical_scancode":0,"unicode":0,"echo":false,"script":null)
] ]
} }
crouch={
"deadzone": 0.5,
"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":16777238,"physical_scancode":0,"unicode":0,"echo":false,"script":null)
]
}
[layer_names]
3d_render/layer_1="world"
3d_render/layer_2="hitboxes"
3d_physics/layer_1="world"
3d_physics/layer_2="hitboxes"
[physics] [physics]