ACharacter::ServerMoveDualHybridRootMotion_Validate
Deprecated: Use ServerMovePacked() validation instead.
#include "GameFramework/Character.h"
Access: public
Specifiers: deprecated
Description
Validation function for the deprecated ServerMoveDualHybridRootMotion RPC. Returns false to kick the client if the hybrid dual-move data is deemed invalid.
Caveats & Gotchas
- • Deprecated since 4.26. For the packed RPC path, validation is embedded in CharacterMovementComponent.
- • Returning false here kicks the client — ensure validation logic is conservative and only rejects genuinely malformed packets.
Signature
bool ServerMoveDualHybridRootMotion_Validate(float TimeStamp0, FVector_NetQuantize10 InAccel0, uint8 PendingFlags, uint32 View0, float TimeStamp, FVector_NetQuantize10 InAccel, FVector_NetQuantize100 ClientLoc, uint8 NewFlags, uint8 ClientRoll, uint32 View, UPrimitiveComponent* ClientMovementBase, FName ClientBaseBoneName, uint8 ClientMovementMode) Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| TimeStamp0 | float | Timestamp of first move. | — |
| InAccel0 | FVector_NetQuantize10 | Acceleration for first move. | — |
| PendingFlags | uint8 | Flags for first move. | — |
| View0 | uint32 | View for first move. | — |
| TimeStamp | float | Timestamp of second move. | — |
| InAccel | FVector_NetQuantize10 | Acceleration for second move. | — |
| ClientLoc | FVector_NetQuantize100 | Client location. | — |
| NewFlags | uint8 | Flags for second move. | — |
| ClientRoll | uint8 | Client roll. | — |
| View | uint32 | View for second move. | — |
| ClientMovementBase | UPrimitiveComponent* | Movement base. | — |
| ClientBaseBoneName | FName | Base bone. | — |
| ClientMovementMode | uint8 | Movement mode. | — |
Return Type
bool Example
Basic chronological order check C++
bool AMyCharacter::ServerMoveDualHybridRootMotion_Validate(
float TimeStamp0, FVector_NetQuantize10 InAccel0, uint8 PendingFlags, uint32 View0,
float TimeStamp, FVector_NetQuantize10 InAccel, FVector_NetQuantize100 ClientLoc,
uint8 NewFlags, uint8 ClientRoll, uint32 View,
UPrimitiveComponent* ClientMovementBase, FName ClientBaseBoneName, uint8 ClientMovementMode)
{
return TimeStamp0 < TimeStamp;
} See Also
Version History
Introduced in: 4.0
| Version | Status | Notes |
|---|---|---|
| 5.6 | deprecated | — |
Feedback
Was this helpful?