some slightly less shit defaults for the movement component

This commit is contained in:
Dexter Haslem 2017-03-28 22:02:08 -06:00
parent 504b0d97ce
commit cc2f669b3a
2 changed files with 23 additions and 6 deletions

View file

@ -4,5 +4,26 @@
#include "FFCharacterMovement.h"
UFFCharacterMovement::UFFCharacterMovement(const class FObjectInitializer& ObjectInitializer)
: Super(ObjectInitializer)
{
// the primary purpose of this right now is to just set nicer defaults on character movements
// have no intention to re-create all the source movements like:
// trimping, down trimps
// q2 style double jumps
// rampslides and sharks
// would rather simplify and just make the movement fast and crisp to start with,
// which surprisingly the default networked movement can do OK at
MaxWalkSpeed = 1105.0f;
AirControl = 0.65f;
GroundFriction = 11.0f;
BrakingFriction = 12.0f;
JumpZVelocity = 800.0f;
MaxAcceleration = 3500.0f;
// verdict is out on this one
NetworkSmoothingMode = ENetworkSmoothingMode::Exponential;
}

View file

@ -9,11 +9,7 @@
*
*/
UCLASS()
class UFFCharacterMovement : public UCharacterMovementComponent
class FF_API UFFCharacterMovement : public UCharacterMovementComponent
{
GENERATED_BODY()
GENERATED_UCLASS_BODY()
};