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
AuraRadius
public float AuraRadius
Field Value
BaseDamage
public int BaseDamage
Field Value
Behaviour
public string Behaviour
Field Value
CooldownTicks
public int CooldownTicks
Field Value
CritChance
Base crit chance 0–1, added to the player's crit stat.
public float CritChance
Field Value
CritMultiplier
public float CritMultiplier
Field Value
HitboxHalfExtents
Hit box half extents (forward, side). ≤ 0 → settings default.
public Vec2 HitboxHalfExtents
Field Value
HitboxOffset
Forward offset of the hit box center from the anchor.
public float HitboxOffset
Field Value
HitsOnReturn
public bool HitsOnReturn
Field Value
Homing
Projectiles turn toward the nearest enemy.
public bool Homing
Field Value
HomingTurnDegreesPerSecond
public float HomingTurnDegreesPerSecond
Field Value
Id
public string Id
Field Value
Kind
public WeaponKind Kind
Field Value
Knockback
public float Knockback
Field Value
LongCooldownEvery
Every N completed attacks the cooldown is multiplied by LongCooldownMultiplier. 0 = off.
public int LongCooldownEvery
Field Value
LongCooldownMultiplier
public float LongCooldownMultiplier
Field Value
MuzzleOffset
Forward offset of the muzzle beyond the visual offset.
public float MuzzleOffset
Field Value
OnHit
Extra effects on every hit of this weapon (explode, chain, statuses).
public List<HitEffectDef> OnHit
Field Value
OrbitBladeRadius
Radius of each blade for hits.
public float OrbitBladeRadius
Field Value
OrbitBlades
public int OrbitBlades
Field Value
OrbitDegreesPerSecond
public float OrbitDegreesPerSecond
Field Value
OrbitRadius
public float OrbitRadius
Field Value
OrbitRehitTicks
Ticks before the same blade can hit the same enemy again.
public int OrbitRehitTicks
Field Value
Parameters
Values a custom weapon behaviour reads.
public List<BehaviourParameter> Parameters
Field Value
Pierce
Extra enemies a projectile hits after the first.
public int Pierce
Field Value
PierceDamageLoss
Damage lost per pierce, 0–1.
public float PierceDamageLoss
Field Value
ProjectileCount
public int ProjectileCount
Field Value
ProjectileSpeed
public float ProjectileSpeed
Field Value
Range
Base reach / projectile travel distance, before the player's range stat.
public float Range
Field Value
Scaling
public List<StatScaling> Scaling
Field Value
SpreadHalfDegrees
Half spread in degrees on each side of the aim.
public float SpreadHalfDegrees
Field Value
Style
public MeleeStyle Style
Field Value
VisualOffset
Forward offset of the weapon's visual from the anchor.
public float VisualOffset
Field Value
WindupRetreat
public float WindupRetreat
Field Value
WindupSeconds
public float WindupSeconds