Class WeaponDef

Namespace
SurvivorsMaker.Simulation
Assembly
SurvivorsMaker.Simulation.dll
public sealed class WeaponDef
Inheritance
WeaponDef
Inherited Members

Constructors

WeaponDef()

public WeaponDef()

Fields

AlternateStyles

public bool AlternateStyles

Field Value

bool

AuraRadius

public float AuraRadius

Field Value

float

BaseDamage

public int BaseDamage

Field Value

int

Behaviour

Registered weapon behaviour id (Weapons). Empty = the built-in behaviour of Kind.

public string Behaviour

Field Value

string

CooldownTicks

public int CooldownTicks

Field Value

int

CritChance

Base crit chance 0–1, added to the player's crit stat.

public float CritChance

Field Value

float

CritMultiplier

public float CritMultiplier

Field Value

float

HitboxHalfExtents

Hit box half extents (forward, side). ≤ 0 → settings default.

public Vec2 HitboxHalfExtents

Field Value

Vec2

HitboxOffset

Forward offset of the hit box center from the anchor.

public float HitboxOffset

Field Value

float

HitsOnReturn

public bool HitsOnReturn

Field Value

bool

Homing

Projectiles turn toward the nearest enemy.

public bool Homing

Field Value

bool

HomingTurnDegreesPerSecond

public float HomingTurnDegreesPerSecond

Field Value

float

Id

public string Id

Field Value

string

Kind

public WeaponKind Kind

Field Value

WeaponKind

Knockback

public float Knockback

Field Value

float

LongCooldownEvery

Every N completed attacks the cooldown is multiplied by LongCooldownMultiplier. 0 = off.

public int LongCooldownEvery

Field Value

int

LongCooldownMultiplier

public float LongCooldownMultiplier

Field Value

float

MuzzleOffset

Forward offset of the muzzle beyond the visual offset.

public float MuzzleOffset

Field Value

float

OnHit

Extra effects on every hit of this weapon (explode, chain, statuses).

public List<HitEffectDef> OnHit

Field Value

List<HitEffectDef>

OrbitBladeRadius

Radius of each blade for hits.

public float OrbitBladeRadius

Field Value

float

OrbitBlades

public int OrbitBlades

Field Value

int

OrbitDegreesPerSecond

public float OrbitDegreesPerSecond

Field Value

float

OrbitRadius

public float OrbitRadius

Field Value

float

OrbitRehitTicks

Ticks before the same blade can hit the same enemy again.

public int OrbitRehitTicks

Field Value

int

Parameters

Values a custom weapon behaviour reads.

public List<BehaviourParameter> Parameters

Field Value

List<BehaviourParameter>

Pierce

Extra enemies a projectile hits after the first.

public int Pierce

Field Value

int

PierceDamageLoss

Damage lost per pierce, 0–1.

public float PierceDamageLoss

Field Value

float

ProjectileCount

public int ProjectileCount

Field Value

int

ProjectileSpeed

public float ProjectileSpeed

Field Value

float

Range

Base reach / projectile travel distance, before the player's range stat.

public float Range

Field Value

float

Scaling

public List<StatScaling> Scaling

Field Value

List<StatScaling>

SpreadHalfDegrees

Half spread in degrees on each side of the aim.

public float SpreadHalfDegrees

Field Value

float

Style

public MeleeStyle Style

Field Value

MeleeStyle

VisualOffset

Forward offset of the weapon's visual from the anchor.

public float VisualOffset

Field Value

float

WindupRetreat

public float WindupRetreat

Field Value

float

WindupSeconds

public float WindupSeconds

Field Value

float