Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Copyright 2015 Dirt Productions. All rights reserved.
- #pragma once
- #include "GameFramework/PawnMovementComponent.h"
- #include "DHPawnMovementComponent.generated.h"
- /**
- *
- */
- UCLASS()
- class DISTANTHOME_API UDHPawnMovementComponent : public UPawnMovementComponent
- {
- GENERATED_BODY()
- public:
- /** Default constructor */
- UDHPawnMovementComponent(const FObjectInitializer& ObjectInitializer);
- /* ///////////////////////// FUNCTIONS ///////////////////////// */
- public:
- /* ////////// GAMEPLAY FUNCTIONS ////////// */
- /** Called every frame */
- virtual void TickComponent(float DeltaTime, ELevelTick TickType, FActorComponentTickFunction* ThisFunction) override;
- /** Returns max speed */
- virtual float GetMaxSpeed() const override;
- protected:
- /* ////////// MOVEMENT FUNCTIONS ////////// */
- UFUNCTION()
- /** Returns global base speed of pawn owner */
- float GetGlobalBaseSpeed() const;
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement