| 115 | } |
| 116 | |
| 117 | void 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 | |
| 131 | void AWeapon::ClientUpdateAmmo_Implementation(int32 ServerAmmo) |
| 132 | { |
nothing calls this directly
no outgoing calls
no test coverage detected