точно есть дэшм

This commit is contained in:
2026-07-21 00:27:17 +07:00
parent 1df926f1d8
commit d74fa3bd80
601 changed files with 2375919 additions and 0 deletions
@@ -0,0 +1,15 @@
extends StaticBody3D
@export var ammoToRefill : Dictionary = {}
func _on_detect_area_area_entered(area: Area3D):
if area.get_parent() is PlayerCharacter:
var playChar = area.get_parent()
var linkToAmmoRefill : Node3D = playChar.get_node("LinkComponent")
if linkToAmmoRefill != null:
linkToAmmoRefill.ammoRefillLink(ammoToRefill)
else:
print("Player character can't refill ammunition")
queue_free()
@@ -0,0 +1 @@
uid://bp4miwy6defwl
@@ -0,0 +1,20 @@
extends Node3D
var ammoDict : Dictionary = { #key = ammo type, value = ammo start number
"LightAmmo" : 90,
"MediumAmmo" : 60,
"HeavyAmmo" : 9,
"ShellAmmo" : 128,
"RocketAmmo" : 3,
"GrenadeAmmo" : 12
}
var maxNbPerAmmoDict : Dictionary = { #key = ammo type, value = ammo max number
"LightAmmo" : 360,
"MediumAmmo" : 360,
"HeavyAmmo" : 50,
"ShellAmmo" : 640,
"RocketAmmo" : 15,
"GrenadeAmmo" : 60
}
@@ -0,0 +1 @@
uid://b45mr122adhlv