Skip to content

Adjusts player movespeed based on how many weapons they have equipped

License

Notifications You must be signed in to change notification settings

StrawWagen/cfc_pvp_movespeed

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

63 Commits
 
 
 
 
 
 
 
 

Repository files navigation

CFC PvP Movespeed

Adjusts player movespeed based on how many SWEPs are equipped

Overview

A Garry's Mod addon that adjusts players movement speed based on the amount of weapons they have equiped. This was done to discourage carrying large amount of weapons at one time.
This addons also adds commands that allow players to remove and drop their weapons.

Changing weapon weights

All weapons have a weight of 1 by default, you can change this default weight by adding your weapon to the weaponWeights table in lua/autorun/server/sv_pvp_movespeed.lua

Weight calculations

A players weight is the weight of all their weapons added together. This number is passed to the function movementMultiplier in lua/autorun/server/sv_pvp_movespeed.lua to calculate a movement speed multiplier

Commands

  • /dropall deletes all weapons from the players inventory and resets their movespeed
  • /drop drop the held weapon on the ground where it can be picked up again or it will despawn after 10 seconds

Setup

Clone the addon into your gmod servers addon directory

About

Adjusts player movespeed based on how many weapons they have equipped

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Lua 100.0%