• Weapon Giving Player Extra Speed and Higher Jump
    3 replies, posted
Hey guys, So this is what I'd like: I want to have it so that when a weapon is equipped then the players speed increases, as well as the height of their jump. Anyone got any codes for that? Thanks!
[url=http://wiki.garrysmod.com/page/WEAPON/Deploy]WEAPON:Deploy[/url] [url=http://wiki.garrysmod.com/page/WEAPON/Holster]WEAPON:Holster[/url] [url=http://wiki.garrysmod.com/page/Player/SetWalkSpeed]Player:SetWalkSpeed and/or Player:SetRunSpeed[/url]
If you want additional functionality ( Hook to determine if player is allowed to drop weapon, and hook called when player drops weapon ): [url]https://dl.dropboxusercontent.com/u/26074909/tutoring/_hooks/playerdroppedweapon.rar[/url] -- Just extract to addons. Dropping is another form of removal; Holster function only determines whether or not player can put the weapon away. Deploy should work fine for equipping / switching to.
[QUOTE=mcd1992;46262678][url=http://wiki.garrysmod.com/page/WEAPON/Deploy]WEAPON:Deploy[/url] [url=http://wiki.garrysmod.com/page/WEAPON/Holster]WEAPON:Holster[/url] [url=http://wiki.garrysmod.com/page/Player/SetWalkSpeed]Player:SetWalkSpeed and/or Player:SetRunSpeed[/url][/QUOTE] Don't forget [url=http://wiki.garrysmod.com/page/Player/GetJumpPower]Player:GetJumpPower[/url] and [url=http://wiki.garrysmod.com/page/Player/SetJumpPower]Player:SetJumpPower[/url] for setting the height of the jump
Sorry, you need to Log In to post a reply to this thread.