Scrap Tossers
Holds up to 3 ammo.
Stuns enemies on hit.
Restores 1 ammo whenever an enemy is killed.
Implementation
Scrap Tossers is a one-state Skill. While it is cast it locks onto the closest enemy in sight and throws at it; with nobody in sight it throws where you aim. Clicks still move the character during the cast.
ScrapTossers — Skill Model Normal
ScrapTossersSkill_ScrapTossers_CastingSkill_ScrapTossers_TargetingScrapTossers_UseBlockersOnUseWhileCastingOnCastEndThe targeter is a skill shot that spawns the throw from the body, facing the way the body faces, so the throw goes wherever the cast turned the character.
ScrapTossers_Targeting — Skill Targeting Skill Shot
ScrapTossers_TargetingScrapTossers_ForwardtrueOffsetToSourceBodyOffsetToSourceBodyForwardWhile casting, the Skill picks its target and turns toward it. SetLockOnTarget writes the closest living enemy in sight into LockOnTarget (nobody: empty). A Conditional Effect then locks on when there is a target, and otherwise aims at the pointer. RotationInputBlock keeps the facing from changing while you walk. All three are Temporary, so they stop with the cast.
WhileCasting — Effect Pack
WhileCastingSetLockOnTargetMovement / Actor / LockOnTargetSet_ActorIfLockOnTarget_LockOnElseAimToPointerTemporaryRotationInputBlockMovement / IntClamped / RotationInputBlocker1Add_IntTemporaryIfLockOnTarget_LockOnElseAimToPointer — Conditional Effect
IfLockOnTarget_LockOnElseAimToPointerLockOnTarget is not nullLockOnAimToPointerTemporaryAmmo
Ammo is the ScrapTossers_AmmoCount Stat, clamped to 0–3 and defaulting to 3. On each use, SpendAmmo applies -1.
ScrapTossers_AmmoCount — Stat (Clamped Int)
ScrapTossers_AmmoCountScrapTossers / IntClamped / AmmoCount33To block the Skill while empty, Add1_AmmoEq0 injects +1 into the Skill's UseBlockers Stat whenever AmmoCount equals 0 — the same pattern the cooldown uses. The Skill cannot be used again until ammo is available.
ScrapTossers_UBs — Stat (Clamped Int)
ScrapTossers_UBsScrapTossers / IntClamped / SkillUseBlockersScrapTossers_CdAdd1IfCdGT0Add1_AmmoEq0true1Attack
ThorwableObjects_Attack applies two Effects on hit: Damage (a flat -50 to Health) and Stun, which adds 1 to the target's Stun Stat for 2 seconds.
ThorwableObjects_Attack — Effect Pack
ThorwableObjects_AttackStunDefault / IntClamped / Stunned1TemporaryDamageDefault / FloatClamped / Health-50Standard_FloatRestoring ammo on kill
KillToAmmoCounterInjector injects a CounterEffect into the enemy's CounterKillEffects Stat through KillToAmmoCounter, tracking the lethal Effects dealt by this weapon. When an enemy dies, IncreaseAmmoCount adds 1 back to AmmoCount.
KillToAmmoCounter — Stat (CounterEffect Signed)
KillToAmmoCounterScrapTossers / CounterEffect_Signed / KillToAmmoCounterDefaultAppliedKillToAmmoCounterIncreaseAmmoCountScrapTossers / IntClamped / AmmoCount1Add_IntWhen the cast ends, Cooldown adds 0.5 seconds to the Skill's cooldown.