added punch animation and can now melee enemies
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user