tool.Weapon
tool.Weapon
Fields
| Name | Type | |
|---|---|---|
owner | en.Hero | |
item | tool.InventItem | |
itemInf | Virtual[ambiantDesc, castCD, cellCost, commonProps, dlc, droppable, gameplayDesc, group, icon, id, legendAffixes, moneyCost, name, props, synergy, tags, tier1, tier2] | |
wInfos | Virtual[airControlAlways, allowCrouch, cannotBeCanceledByWeapon, isACancel, item, strikeChain] | |
lastFx | libs.heaps.slib.HSprite | |
cd | tool.Cooldown | |
skills | hl.types.ArrayObj | |
affixesDone | Bool | |
_cycle | I32 | |
anticipateNext | Bool | |
areas | hl.types.ArrayObj | |
_attackSpeed | F64 | |
destroyed | Bool | |
disableSounds | Bool | |
customSoundManagement | Bool | |
needButtonRelease | Bool | |
requireRelease | Bool | |
critFeedback | Bool | |
| static | WEAPON_GLOW_KEY | I32 |
| static | create | Fun |
Protos
f@1825get_curSkill(tool.Weapon) → tool.WeaponSkillf@1826get_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@1827get_cycle(tool.Weapon) → I32f@1828set_cycle(tool.Weapon, I32) → I32f@1829get_attackSpeed(tool.Weapon) → F64f@1830set_attackSpeed(tool.Weapon, F64) → F64f@1831get_hudSkill(tool.Weapon) → ui.hud.Skillf@1832killEntities(tool.Weapon) → Voidf@1833onLevelChanged(tool.Weapon, pr.Level) → Voidf@1834isBow(tool.Weapon) → Boolf@1835asBow(tool.Weapon) → tool.weap.BaseBowf@1836isShield(tool.Weapon) → Boolf@1837asShield(tool.Weapon) → tool.weap.BaseShieldf@1838initSkill(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) → Voidf@1839get_shootX(tool.Weapon) → F64f@1840get_shootY(tool.Weapon) → F64f@1841onOwnerTurned(tool.Weapon) → Voidf@1842getBowTargetAng(tool.Weapon, F64, Null, Null) → F64f@1843consumeAmmo(tool.Weapon) → Boolf@1844updateAmmoHud(tool.Weapon) → Voidf@1845setCritFeedback(tool.Weapon, Null) → Voidf@1846stopCritFeedback(tool.Weapon) → Voidf@1847checkGroundHit(tool.Weapon, I32) → Boolf@1848_executeImpl(tool.Weapon, F64) → Voidf@1849incrementCycle(tool.Weapon) → Voidf@1850isLastCycle(tool.Weapon) → Boolf@1851isCharging(tool.Weapon) → Boolf@1852isReady(tool.Weapon) → Boolf@1853allowTurnDuringCharge(tool.Weapon) → Boolf@1854canComboNextSkillEarly(tool.Weapon) → Boolf@1855canStartChargeEarly(tool.Weapon) → Boolf@1856interrupt(tool.Weapon) → Voidf@1857dynOnInterrupt(tool.Weapon, tool.WeaponSkill, F64) → Voidf@1858autoAim(tool.Weapon) → Boolf@1859autoAimSpecialModeAuto(tool.Weapon, Null) → I32f@1860canHit(tool.Weapon, Entity, tool.Area) → Boolf@1861onOutOfAmmoTry(tool.Weapon) → Voidf@1862airControlOwner(tool.Weapon) → Voidf@1863onAnticipate(tool.Weapon) → Voidf@1864onBeforeCurSkillPrepare(tool.Weapon) → Voidf@1865prepare(tool.Weapon, F64) → Voidf@1866setWeaponGlow(tool.Weapon) → Voidf@1867isPlayingAttackAnim(tool.Weapon) → Boolf@1868tryToUse(tool.Weapon) → Boolf@1869tryToCancel(tool.Weapon, Bool) → Boolf@1870dynOnAttackAnim(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]) → Voidf@1871customPlaySfx(tool.Weapon, String, hxd.res.Sound, Null, Fun, Ref, Null, Null) → Voidf@1872playHitSfx(tool.Weapon, Null, Fun, Ref, Null, Null) → Voidf@1873playChargeSfx(tool.Weapon, Null, Fun, Ref, Null, Null) → Voidf@1874playReleaseSfx(tool.Weapon, Null, Fun, Ref, Null, Null) → Voidf@1875dynOnFxFrame(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]) → Voidf@1876areaCounterBullet(tool.Weapon, en.Bullet, Ref) → Voidf@1877executeAffixes(tool.Weapon) → Voidf@1878onExecute(tool.Weapon) → Boolf@1879executeFromBackpack(tool.Weapon) → Boolf@1880doAreaEffect(tool.Weapon, tool.Area) → Voidf@1881hitFromWeapon(tool.Weapon, Entity, Ref) → Voidf@1882dispose(tool.Weapon) → Voidf@1883canCancel(tool.Weapon) → Boolf@1884cancelChain(tool.Weapon) → Voidf@1885postUpdate(tool.Weapon) → Voidf@1886fixedUpdate(tool.Weapon) → Voidf@1887setCycleLossCD(tool.Weapon) → Voidf@1888hasCycleLossCD(tool.Weapon) → Boolf@1889onCooldownEnd(tool.Weapon, String, I32) → Voidf@1890onOwnerCooldownEnd(tool.Weapon, String, I32) → Void
Bindings
- static
f@4904__constructor__(tool.Weapon, en.Hero, tool.InventItem) → Void - static
f@4903create(en.Hero, tool.InventItem) → tool.Weapon