Takes player input (usually from ThirdPersonInput) and translates that to commands to CharacterMotor.
More...
Takes player input (usually from ThirdPersonInput) and translates that to commands to CharacterMotor.
◆ Mode
Enumerator |
---|
Default | |
Cover | |
Sprint | |
Aim | |
Grenade | |
Melee | |
◆ InputAim()
void CoverShooter.ThirdPersonController.InputAim |
( |
| ) |
|
Make the character aim in the following frame.
◆ InputCancelGrenade()
void CoverShooter.ThirdPersonController.InputCancelGrenade |
( |
| ) |
|
◆ InputClimbOrVault()
void CoverShooter.ThirdPersonController.InputClimbOrVault |
( |
Cover |
cover | ) |
|
◆ InputCrouch()
void CoverShooter.ThirdPersonController.InputCrouch |
( |
| ) |
|
◆ InputEquip()
◆ InputJump() [1/2]
void CoverShooter.ThirdPersonController.InputJump |
( |
| ) |
|
◆ InputJump() [2/2]
void CoverShooter.ThirdPersonController.InputJump |
( |
float |
angle | ) |
|
◆ InputMelee()
void CoverShooter.ThirdPersonController.InputMelee |
( |
| ) |
|
Tell the controller to manipulate the motor and do a hit.
◆ InputReload()
void CoverShooter.ThirdPersonController.InputReload |
( |
| ) |
|
◆ InputRoll()
void CoverShooter.ThirdPersonController.InputRoll |
( |
float |
angle | ) |
|
Tell the controller to roll
◆ InputTakeCover()
void CoverShooter.ThirdPersonController.InputTakeCover |
( |
| ) |
|
◆ InputTakeGrenade()
void CoverShooter.ThirdPersonController.InputTakeGrenade |
( |
| ) |
|
◆ InputThrowGrenade()
void CoverShooter.ThirdPersonController.InputThrowGrenade |
( |
| ) |
|
Set the grenade throw mode.
◆ InputUnequip()
void CoverShooter.ThirdPersonController.InputUnequip |
( |
| ) |
|
◆ ManualUpdate()
bool CoverShooter.ThirdPersonController.ManualUpdate |
( |
| ) |
|
◆ AimSustain
float CoverShooter.ThirdPersonController.AimSustain = 0.4f |
How long to continue aiming after no longer needed.
◆ AimTargetInput
Vector3 CoverShooter.ThirdPersonController.AimTargetInput |
Sets the position the controller is aiming at.
◆ AimWhenWalking
bool CoverShooter.ThirdPersonController.AimWhenWalking = false |
Should the character aim when walking, if turned off it will only aim when zooming in.
◆ AlwaysAim
bool CoverShooter.ThirdPersonController.AlwaysAim = false |
Is the character always aiming in camera direction when not in cover.
◆ ArmLiftDelay
float CoverShooter.ThirdPersonController.ArmLiftDelay = 1.5f |
Time in seconds to wait before lifting an arm when running with a pistol.
◆ AutoTakeCover
bool CoverShooter.ThirdPersonController.AutoTakeCover = true |
Determines if the character takes cover automatically instead of waiting for player input.
◆ BlockInput
bool CoverShooter.ThirdPersonController.BlockInput |
Sets the controller to block melee attacks.
◆ BodyTargetInput
Vector3 CoverShooter.ThirdPersonController.BodyTargetInput |
Sets the position the controller is rotated at.
◆ CancelHurt
bool CoverShooter.ThirdPersonController.CancelHurt = true |
Cancel get hit animations upon player input.
◆ CoverEnterDelay
float CoverShooter.ThirdPersonController.CoverEnterDelay = 0.1f |
Time in seconds after a potential cover has been detected when the character automatically enters it.
◆ CrouchNearCovers
bool CoverShooter.ThirdPersonController.CrouchNearCovers = true |
Should the character start crouching near closing in to a low cover.
◆ ExplosionPreview
GameObject CoverShooter.ThirdPersonController.ExplosionPreview |
Prefab to instantiate to display grenade explosion preview.
◆ FireInput
bool CoverShooter.ThirdPersonController.FireInput |
Sets the controller to start or stop firing.
◆ GrenadeHorizontalAngleInput
float CoverShooter.ThirdPersonController.GrenadeHorizontalAngleInput |
Sets the horizontal angle for aiming a grenade.
◆ GrenadeVerticalAngleInput
float CoverShooter.ThirdPersonController.GrenadeVerticalAngleInput |
Sets the vertical angle for aiming a grenade.
◆ ImmediateTurns
bool CoverShooter.ThirdPersonController.ImmediateTurns = true |
Will the character turn immediatelly when aiming.
◆ MaxThrowAngle
float CoverShooter.ThirdPersonController.MaxThrowAngle = 45 |
How high can the player throw the grenade.
◆ MeleeRadius
float CoverShooter.ThirdPersonController.MeleeRadius = 4 |
Radius at which enemy actors are detected in melee mode.
◆ MinMeleeDistance
float CoverShooter.ThirdPersonController.MinMeleeDistance = 1.5f |
Distance to maintain against melee targets.
◆ MovementInput
Sets the movement for the controller.
◆ NoAimSustain
float CoverShooter.ThirdPersonController.NoAimSustain = 0.14f |
Time in seconds to keep the gun down when starting to move.
◆ PathPreview
GameObject CoverShooter.ThirdPersonController.PathPreview |
Prefab to instantiate to display grenade path preview.
◆ PostLandAimDelay
float CoverShooter.ThirdPersonController.PostLandAimDelay = 0.4f |
Time in seconds to wait after landing before AlwaysAim activates again.
◆ Scope
Image CoverShooter.ThirdPersonController.Scope |
Scope object and component that's enabled and maintained when using scope.
◆ ScopeInput
bool CoverShooter.ThirdPersonController.ScopeInput |
Sets the controller to start and stop using scope.
◆ ThrowAngleOffset
float CoverShooter.ThirdPersonController.ThrowAngleOffset = 30 |
Degrees to add when aiming a grenade vertically.
◆ WaitForUpdateCall
bool CoverShooter.ThirdPersonController.WaitForUpdateCall |
Will the Update function be called manually by some other component (most likely ThirdPersonInput).
◆ ZoomInput
bool CoverShooter.ThirdPersonController.ZoomInput |
Sets the controller to start and stop zooming.
◆ CouldScope
bool CoverShooter.ThirdPersonController.CouldScope |
|
get |
Can a scope be displayed right now.
◆ IsMelee
bool CoverShooter.ThirdPersonController.IsMelee |
|
get |
Is the controller in melee mode right now.
◆ IsScoping
bool CoverShooter.ThirdPersonController.IsScoping |
|
get |
Is the character using zoom.
◆ IsZooming
bool CoverShooter.ThirdPersonController.IsZooming |
|
get |
Is the character using zoom.
The documentation for this class was generated from the following file: