added punch animation and can now melee enemies

This commit is contained in:
Derek
2025-01-19 18:20:31 -06:00
parent 5978a90017
commit 4638c97b84
6 changed files with 91 additions and 45 deletions

View File

@@ -81,24 +81,24 @@ func save():
return save_dict
func activate_mesh():
match pickup_type:
0:
match ammo_type:
0:
match str(pickup_type):
"0":
match str(ammo_type):
"0":
light_ammo.visible = true
1:
"1":
medium_ammo.visible = true #medium
2:
"2":
heavy_ammo.visible = true #heavy
3:
"3":
shotgun_ammo.visible = true #shotgun
4:
"4":
rocket.visible = true #rocket
1:
"1":
stamina.visible = true
2:
"2":
health.visible = true
3:
"3":
money.visible = true
mesh_activated = true