CityRP Documentation Repository

core.plugins.mining.weapons.cityrp_hardwood_pickaxe.shared

Hardwood Pickaxe.

Functions

SharedSWEP:OnSwingHit(ply, trace)Source ☍

Give the hit its view punch, and on a deposit its hit effect and rock sounds.

Parameters

  • plyPlayerThe player swinging the pickaxe.
  • tracetableThe swing's trace result.
SharedSWEP:PlayHitSound()Source ☍

Play the pickaxe's own clink, quiet enough to sit under the rock impact layered over it, varying the sample and pitch per swing.

Fields

SharedSWEP.DamageTypeSource ☍
SharedSWEP.ImpactDecalSource ☍
SharedSWEP.StaminaCostSource ☍
SharedSWEP.StaminaRequiredSource ☍
SharedSWEP.SwingHoldTypeSource ☍
SharedSWEP.SwingImpactDelaySource ☍

The hit animation's blow lands on frame 16 of 28, at 30 frames per second.