--------------------------------------------------------------------------------------------------------------------------
| 224 | |
| 225 | //-------------------------------------------------------------------------------------------------------------------------- |
| 226 | float ACogSamplePlayerController::GetClientLag() const |
| 227 | { |
| 228 | const float Ping = (PlayerState != nullptr && GetNetMode() != NM_Standalone) ? PlayerState->ExactPing : 0.0f; |
| 229 | const float HalfPingInSeconds = Ping * 0.0001f * 0.5f; |
| 230 | return HalfPingInSeconds; |
| 231 | } |
| 232 | |
| 233 | //-------------------------------------------------------------------------------------------------------------------------- |
| 234 | void ACogSamplePlayerController::Server_ProjectileHit_Implementation(UCogSampleProjectileComponent* Projectile, const FHitResult& HitResult) |