Ads keep us online. Without them, we wouldn't exist. We don't have paywalls or sell mods - we never will. But every month we have large bills and running ads is our only way to cover them. Please consider unblocking us. Thank you from GameBanana <3

Drop Weapon Script w/ Animations

A Config Script for Garry's Mod

No ads for members. Membership is 100% free. Sign up!
19 415 bytes Raw Code
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
local dropDelay = true

local function VNTDropWeapon( ply )

    if IsValid( ply ) and ply:Alive( ) and IsValid( ply:GetActiveWeapon( ) ) and dropDelay == true then

        dropDelay = false
        ply:DoAnimationEvent( ACT_GMOD_GESTURE_ITEM_DROP )
        timer.Simple( 0.9 , function( ) 

            ply:DropWeapon( ply:GetActiveWeapon( ) ) 
            dropDelay = true

        end )

    end

end
concommand.Add( "drop" , VNTDropWeapon )

Updates

Update 1 15d
  • Addition Added delay between dropping
  • Improvement Added validity checks

A script to drop your weapon while playing an animation

This script will drop your currently held weapon while playing an animation.

Please note there is a slight delay between the key press and the actual drop to compensate for the animations.

It also uses the wrong hand in the animation because a right-handed drop animation does not exist in GMod's animation library.

To use, bind a key to 'drop' such as the forward slash key.

Video

Also Available on Steam Workshop
Sign up to access this!

No comments yet

Embed

Share banner
Image URL
HTML embed code
BB embed code
Markdown embed code

Credits

Key Authors
Reverend V92 avatar
Reverend V92 username pic Joined 10y ago
HL2 Manager
Offline
16,937 points Ranked 327th
33 medals 1 legendary 6 rare
  • 2019 Top Contributor Medal icon
  • 2nd Place - A Bananite's Guide to... Contest Medal icon
  • 6 years a member Medal icon
  • Returned 1000 times Medal icon
  • Received thanks 50 times Medal icon
  • 10 submissions featured Medal icon
Wrote the Script

Submitter

Reverend V92 avatar
Reverend V92 username pic Joined 10y ago
HL2 Manager
Away
16,937 points Ranked 327th
33 medals 1 legendary 6 rare
  • 2019 Top Contributor Medal icon
  • 2nd Place - A Bananite's Guide to... Contest Medal icon
  • 6 years a member Medal icon
  • Returned 1000 times Medal icon
  • Received thanks 50 times Medal icon
  • 10 submissions featured Medal icon
Reverend V92 avatar
Reverend V92

Creator
Sign up to access this!
Sign up to access this!
Sign up to access this!

Game

Sign up to access this!

Category

License

Attributes

Language
Lua

Share

  • Share on Reddit
  • Share on Twitter
  • Share on Facebook
  • 0
  • 7.3k
  • 5y
  • 15d
  • 15d

More from Submitter

WiPs by Submitter

More Other/Misc Scripts