Skip to content

tool.Weapon

tool.Weapon

Fields

NameType
owneren.Hero
itemtool.InventItem
itemInfVirtual[ambiantDesc, castCD, cellCost, commonProps, dlc, droppable, gameplayDesc, group, icon, id, legendAffixes, moneyCost, name, props, synergy, tags, tier1, tier2]
wInfosVirtual[airControlAlways, allowCrouch, cannotBeCanceledByWeapon, isACancel, item, strikeChain]
lastFxlibs.heaps.slib.HSprite
cdtool.Cooldown
skillshl.types.ArrayObj
affixesDoneBool
_cycleI32
anticipateNextBool
areashl.types.ArrayObj
_attackSpeedF64
destroyedBool
disableSoundsBool
customSoundManagementBool
needButtonReleaseBool
requireReleaseBool
critFeedbackBool
staticWEAPON_GLOW_KEYI32
staticcreateFun

Protos

  • f@1825 get_curSkill(tool.Weapon) → tool.WeaponSkill
  • f@1826 get_curSkillInf(tool.Weapon) → Virtual[animId, animSpd, area, breachBonus, canCrit, charge, coolDown, critMul, dynamicCharge, earlyCombo, fxId, fxProps, glowColor, hitFrame, lockCtrlAfter, onionSkinFrame, onionSkinOffX, power, props, sfxCharge, sfxHit, sfxProps, sfxRelease]
  • f@1827 get_cycle(tool.Weapon) → I32
  • f@1828 set_cycle(tool.Weapon, I32) → I32
  • f@1829 get_attackSpeed(tool.Weapon) → F64
  • f@1830 set_attackSpeed(tool.Weapon, F64) → F64
  • f@1831 get_hudSkill(tool.Weapon) → ui.hud.Skill
  • f@1832 killEntities(tool.Weapon) → Void
  • f@1833 onLevelChanged(tool.Weapon, pr.Level) → Void
  • f@1834 isBow(tool.Weapon) → Bool
  • f@1835 asBow(tool.Weapon) → tool.weap.BaseBow
  • f@1836 isShield(tool.Weapon) → Bool
  • f@1837 asShield(tool.Weapon) → tool.weap.BaseShield
  • f@1838 initSkill(tool.Weapon, I32, Virtual[animId, animSpd, area, breachBonus, canCrit, charge, coolDown, critMul, dynamicCharge, earlyCombo, fxId, fxProps, glowColor, hitFrame, lockCtrlAfter, onionSkinFrame, onionSkinOffX, power, props, sfxCharge, sfxHit, sfxProps, sfxRelease], tool.WeaponSkill) → Void
  • f@1839 get_shootX(tool.Weapon) → F64
  • f@1840 get_shootY(tool.Weapon) → F64
  • f@1841 onOwnerTurned(tool.Weapon) → Void
  • f@1842 getBowTargetAng(tool.Weapon, F64, Null, Null) → F64
  • f@1843 consumeAmmo(tool.Weapon) → Bool
  • f@1844 updateAmmoHud(tool.Weapon) → Void
  • f@1845 setCritFeedback(tool.Weapon, Null) → Void
  • f@1846 stopCritFeedback(tool.Weapon) → Void
  • f@1847 checkGroundHit(tool.Weapon, I32) → Bool
  • f@1848 _executeImpl(tool.Weapon, F64) → Void
  • f@1849 incrementCycle(tool.Weapon) → Void
  • f@1850 isLastCycle(tool.Weapon) → Bool
  • f@1851 isCharging(tool.Weapon) → Bool
  • f@1852 isReady(tool.Weapon) → Bool
  • f@1853 allowTurnDuringCharge(tool.Weapon) → Bool
  • f@1854 canComboNextSkillEarly(tool.Weapon) → Bool
  • f@1855 canStartChargeEarly(tool.Weapon) → Bool
  • f@1856 interrupt(tool.Weapon) → Void
  • f@1857 dynOnInterrupt(tool.Weapon, tool.WeaponSkill, F64) → Void
  • f@1858 autoAim(tool.Weapon) → Bool
  • f@1859 autoAimSpecialModeAuto(tool.Weapon, Null) → I32
  • f@1860 canHit(tool.Weapon, Entity, tool.Area) → Bool
  • f@1861 onOutOfAmmoTry(tool.Weapon) → Void
  • f@1862 airControlOwner(tool.Weapon) → Void
  • f@1863 onAnticipate(tool.Weapon) → Void
  • f@1864 onBeforeCurSkillPrepare(tool.Weapon) → Void
  • f@1865 prepare(tool.Weapon, F64) → Void
  • f@1866 setWeaponGlow(tool.Weapon) → Void
  • f@1867 isPlayingAttackAnim(tool.Weapon) → Bool
  • f@1868 tryToUse(tool.Weapon) → Bool
  • f@1869 tryToCancel(tool.Weapon, Bool) → Bool
  • f@1870 dynOnAttackAnim(tool.Weapon, tool.WeaponSkill, Virtual[animId, animSpd, area, breachBonus, canCrit, charge, coolDown, critMul, dynamicCharge, earlyCombo, fxId, fxProps, glowColor, hitFrame, lockCtrlAfter, onionSkinFrame, onionSkinOffX, power, props, sfxCharge, sfxHit, sfxProps, sfxRelease]) → Void
  • f@1871 customPlaySfx(tool.Weapon, String, hxd.res.Sound, Null, Fun, Ref, Null, Null) → Void
  • f@1872 playHitSfx(tool.Weapon, Null, Fun, Ref, Null, Null) → Void
  • f@1873 playChargeSfx(tool.Weapon, Null, Fun, Ref, Null, Null) → Void
  • f@1874 playReleaseSfx(tool.Weapon, Null, Fun, Ref, Null, Null) → Void
  • f@1875 dynOnFxFrame(tool.Weapon, tool.WeaponSkill, Virtual[animId, animSpd, area, breachBonus, canCrit, charge, coolDown, critMul, dynamicCharge, earlyCombo, fxId, fxProps, glowColor, hitFrame, lockCtrlAfter, onionSkinFrame, onionSkinOffX, power, props, sfxCharge, sfxHit, sfxProps, sfxRelease]) → Void
  • f@1876 areaCounterBullet(tool.Weapon, en.Bullet, Ref) → Void
  • f@1877 executeAffixes(tool.Weapon) → Void
  • f@1878 onExecute(tool.Weapon) → Bool
  • f@1879 executeFromBackpack(tool.Weapon) → Bool
  • f@1880 doAreaEffect(tool.Weapon, tool.Area) → Void
  • f@1881 hitFromWeapon(tool.Weapon, Entity, Ref) → Void
  • f@1882 dispose(tool.Weapon) → Void
  • f@1883 canCancel(tool.Weapon) → Bool
  • f@1884 cancelChain(tool.Weapon) → Void
  • f@1885 postUpdate(tool.Weapon) → Void
  • f@1886 fixedUpdate(tool.Weapon) → Void
  • f@1887 setCycleLossCD(tool.Weapon) → Void
  • f@1888 hasCycleLossCD(tool.Weapon) → Bool
  • f@1889 onCooldownEnd(tool.Weapon, String, I32) → Void
  • f@1890 onOwnerCooldownEnd(tool.Weapon, String, I32) → Void

Bindings

  • static f@4904 __constructor__(tool.Weapon, en.Hero, tool.InventItem) → Void
  • static f@4903 create(en.Hero, tool.InventItem) → tool.Weapon