-
Notifications
You must be signed in to change notification settings - Fork 2
weapon_custom_melee
Drake edited this page May 28, 2016
·
1 revision
Melee attacks are very similar to bullets. The difference is that collision detection is a little different (cube-shaped instead of a line) and the tracers and impact particles aren't created.
I was too lazy to create another entity, so this one also includes keyvalues for hooks (like the grapple gun uses). I separated those keys out into another table since they don't really belong in a melee weapon.
Keyvalue Value Type |
Description |
---|---|
________________________________ | |
Melee Strikes integer |
Number of strikes to make for a single shot. |
Melee Burst Fire Delay integer |
If Melee Strikes is greater than 1, this will be the delay between strikes when firing a single burst. |
Impact Decal integer |
Impact decal shown on solid surfaces. |
Melee Hit Sounds List of weapon_custom_sounds |
Sounds made when striking a solid surface or machine. Chosen randomly. |
Melee Hit Flesh Sounds List of weapon_custom_sounds |
Sounds made when striking a monster or player. Chosen randomly. |
Melee Hit Animations List of integers |
Animations played when the melee attack hits something (uses Shoot Animations otherwise). Chosen sequentially. |
Melee Miss Cooldown float |
Time to wait if the melee attack does not hit anything (uses Cooldown otherwise). |
Melee Impact World Effect weapon_custom_effect |
Effect spawned when hitting a solid surface. |
Melee Impact Monster Effect weapon_custom_effect |
Effect spawned when hitting a monster. |
Keyvalue Value Type |
Description |
---|---|
________________________________ | |
Hook Type integer |
Enable/Disable the hook functionality. |
Hook Targets integer |
Type of surface that can be hooked on to. |
Hook Pull Force float |
Pull force of the hook, applied every frame. |
Hook Max User Speed float |
Maximum speed of the player while hooked. |
Hook Projectile Speed float |
Initial speed of the hook when shot. |
Hook Extend Sound weapon_custom_user_sound |
Sound played while the hook is extending. |
Hook Extend Animation integer |
Animation played while the hook is extending. |
Hook Extend Anim/Sound Delay float |
Time after shooting to play the extend animation and sound. Usually you set this to the length of the shoot animation. |
Hook Retract Sound weapon_custom_sound |
Sound to play when the hook has been released. |
Hook Retract Animation integer |
Animation to play when the hook has been released. |
Hook Retract Idle Delay float |
Time after releasing the hook to play an idle animation. Usually you set this to the length of the retract animation. |
Hook End Model string |
Model to display at the tip of the hook. |
Hook End Sprite string |
Sprite to display at the tip of the hook. |
Hook Texture Filter string |
When hooking to a solid surface, the hook will not attach unless the texture name begins with this value (e.g. "xeno_grapple"). |
Hook Beam Style integer |
Style of the hook beam. |
Hook Beam Sprite string |
Sprite used as a texture for the hook beam. |
Hook Beam Color Color |
Color and opacity of the hook beam. |
Hook Beam Width integer |
Size of the hook beam. |
Hook Beam Noise integer |
Distortion of the hook beam. |
Hook Beam Scroll Rate integer |
Texture scroll speed of the hook beam. |
See the Shoot Entities page for the common keyvalues and flags that this entity uses.