mirror of
https://github.com/fortressforever/enthusiastic-hat-club.git
synced 2024-11-25 13:40:59 +00:00
some slightly less shit defaults for the movement component
This commit is contained in:
parent
504b0d97ce
commit
cc2f669b3a
2 changed files with 23 additions and 6 deletions
|
@ -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;
|
||||
}
|
|
@ -9,11 +9,7 @@
|
|||
*
|
||||
*/
|
||||
UCLASS()
|
||||
class UFFCharacterMovement : public UCharacterMovementComponent
|
||||
class FF_API UFFCharacterMovement : public UCharacterMovementComponent
|
||||
{
|
||||
GENERATED_BODY()
|
||||
|
||||
|
||||
|
||||
|
||||
GENERATED_UCLASS_BODY()
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue