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

Method SpendRound

Source/Blaster/Weapon/Weapon.cpp:117–129  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

115}
116
117void AWeapon::SpendRound()
118{
119 Ammo = FMath::Clamp(Ammo - 1, 0, MagCapacity);
120 SetHUDAmmo();
121 if (HasAuthority())
122 {
123 ClientUpdateAmmo(Ammo);
124 }
125 else
126 {
127 ++Sequence;
128 }
129}
130
131void AWeapon::ClientUpdateAmmo_Implementation(int32 ServerAmmo)
132{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected