Vixen
c7401864
csharp
public sealed class RecoilDefinition

How a weapon climbs, and how it comes back down.

Read the guide page for this →

Remarks

A pattern rather than a random kick, because a pattern is learnable. The thing that makes a shooter's recoil feel fair is that the tenth bullet goes where the tenth bullet always goes; randomness on top of it is SpreadDefinition's job, and keeping the two apart is what lets a designer tune "hard to control" separately from "unpredictable".

Fields and properties (3)

  • public List<RecoilStepDefinition> Pattern

    The pattern, one step per shot. The last step repeats once it runs out.

  • public float Recovery

    How fast the accumulated kick returns, in degrees per second.

  • public float RecoveryDelay

    How long after the last shot before recovery starts, in seconds.

Used by (7)

  • ContentVixen.Gameplay.Shooting.Tests
  • TypeRegistrationVixen.Gameplay.Shooting
  • Vixen_Gameplay_Shooting_RecoilDefinitionSerializerVixen.Gameplay.Shooting
  • Vixen_Gameplay_Shooting_WeaponDefinitionSerializerVixen.Gameplay.Shooting
  • WeaponDefinitionVixen.Gameplay.Shooting
  • WeaponLibraryVixen.Gameplay.Shooting
  • WeaponStateVixen.Gameplay.Shooting