Field manualСправочник / MechanicsМеханика
WeaponSystem
src/DustConvoy.Sim/Systems/WeaponSystem.cs
ConstantsКонстанты
| NameИмя | ValueЗначение | NoteЗаметка |
|---|---|---|
HeldGunLength | 0.45f | Length used before a sprite has been measured. The muzzle is the middle of the forward edge. |
GunForward | 1.32f | Gun mount, ahead of the body, as a fraction of the pawn's radius. |
GunRight | 0.9f | Gun mount, to the pawn's right, as a fraction of the pawn's radius. |
MeleeKind | "melee" | |
SwingSeconds | 0.28f | How long a swing lasts. A weapon's WeaponDef.Lunge metres (0 = none) are covered in this time. |
SwingStrikeStart | 0.32f | The blade is cocked back until this share of the swing, and the blow lands until SwingStrikeEnd. |
SwingStrikeEnd | 0.72f | |
SwingHalfArc | 1.2f | Half-angle of the arc a swing covers in front of the wielder. |
SwingTracer | 4 | |
PunchTracer | 6 | An empty-handed punch. Same sweep as a weapon swing, on a shorter radius. |
PunchExtra | 0.65f | How far past the body a punch reaches, metres. A blade's range sits past this. |
BeamSoundInterval | 0.22f | |
ArcTracer | 7 | Blue lightning. A held arc and each jump to the next body use this. |
MaxPierceSegments | 4 | Most things one shot can go through before it is spent, whatever its pierce. |
PierceDamageShare | 0.5f | Damage left after punching through something. |
LocationWallCost | 2 | Pierce a building wall or shut door costs. |
LocationModuleRadius | 0.6f | Hit radius of a module installed in a location. |
BeamHoldSeconds | 0.12f | How long a beam stays drawn after the last damage tick. Longer than the fire interval, so a held attack never blinks off. |
DigPierce | 3 | Pierce at or above this leaves a hole in canyon rock and in a building wall. A body is 1, a location wall is 2. |
GunDigRadius | 0.8f | How wide a hole a single high-pierce hit opens, metres. |
OpenRange | 30f | Metres a shot travels when the weapon does not name its own range. Never a camera edge. |