MCPcopy Create free account
hub / github.com/DruidMech/MultiplayerCourseBlasterGame / AddAmmo

Method AddAmmo

Source/Blaster/Weapon/Weapon.cpp:140–145  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

138}
139
140void AWeapon::AddAmmo(int32 AmmoToAdd)
141{
142 Ammo = FMath::Clamp(Ammo + AmmoToAdd, 0, MagCapacity);
143 SetHUDAmmo();
144 ClientAddAmmo(AmmoToAdd);
145}
146
147void AWeapon::ClientAddAmmo_Implementation(int32 AmmoToAdd)
148{

Callers 2

UpdateAmmoValuesMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected