csharp
public sealed class WeaponTemplateA weapon with its names resolved.
Fields and properties (12)
public WeaponDefinition DefinitionWhat it was compiled from.
public DefId IdIts id.
public WeaponKind KindHow its shot reaches what it hits.
public GameplayTag SchoolWhat kind of damage it does.
public ReadOnlySpan<GameplayTag> TagsWhat this weapon is.
public ReadOnlySpan<ShotDirection> RecoilPatternIts recoil pattern, one step per shot. Empty is no recoil.
public int PelletsHow many pellets one shot fires, never below one.
public float FireIntervalHow long between shots, in seconds.
public int MagazineHow many rounds a magazine holds, never below one.
public float RangeHow far it reaches, in metres.
public float ReloadTimeHow long a reload takes, in seconds.
public int MaximumPenetrationsHow many things one shot may pass through.
Methods (3)
public float DamageAt(float distance)What one pellet is worth at a distance, before the damage pipeline.
public float DamageAfter(float distance, int penetrated)What a pellet is worth after passing through things.
public static ShotDirection Deviate(uint shot, int pellet, float spread)Where one pellet of one shot goes.
Used by (7)
- HitClaimValidatorVixen.Gameplay.Shooting
- HitClaimValidatorTestsVixen.Gameplay.Shooting.Tests
- RewindBudgetTestsVixen.Gameplay.Shooting.Tests
- SpreadTestsVixen.Gameplay.Shooting.Tests
- WeaponLibraryVixen.Gameplay.Shooting
- WeaponLibraryTestsVixen.Gameplay.Shooting.Tests
- WeaponStateVixen.Gameplay.Shooting