Skip to content

Movement Modifiers, How to

Vuthakral edited this page Sep 6, 2020 · 4 revisions

How To Utilize Movement Modifiers on the Draconic SWEP Base

By default, all of the movement modifiers for DSB are defaulted to not modify anything.
There will be a full code block below you can paste into your SWEP to customize the movement speeds, jump heights, and etc of different movements on your SWEP. However keep in mind you only need to define the ones you need. If there's ones you want to leave alone, you can just exclude them from your SWEP.


Clean paste:

SWEP.SprintSoundStand		= Sound( "" )
SWEP.DoSSStandFwd			= false
SWEP.DoSSStandBack			= false
SWEP.DoSSStandLeft			= false
SWEP.DoSSStandRight			= false

SWEP.SprintSoundCrouch		= Sound( "" )
SWEP.DoSSCrouchFwd			= false
SWEP.DoSSCrouchBack			= false
SWEP.DoSSCrouchLeft			= false
SWEP.DoSSCrouchRight		= false

SWEP.SJumpCrouchSound		= Sound( "" )
SWEP.DoSJCrouchSFwd			= false
SWEP.DoSJCrouchSBack		= false
SWEP.DoSJCrouchLeft			= false
SWEP.DoSJCrouchhRight		= false

SWEP.SpeedStandForward		= 0
SWEP.SpeedStandBack			= 0
SWEP.SpeedStandLeft			= 0
SWEP.SpeedStandRight		= 0

SWEP.SpeedCrouchForward		= 0
SWEP.SpeedCrouchBack		= 0
SWEP.SpeedCrouchLeft		= 0
SWEP.SpeedCrouchRight		= 0

SWEP.SpeedSprintStandForward	= 0
SWEP.SpeedSprintStandBack		= 0
SWEP.SpeedSprintStandLeft		= 0
SWEP.SpeedSprintStandRight		= 0

SWEP.SpeedSprintCrouchForward	= 0
SWEP.SpeedSprintCrouchBack		= 0
SWEP.SpeedSprintCrouchLeft		= 0
SWEP.SpeedSprintCrouchRight		= 0

SWEP.StandingJumpHeightFront			= 0
SWEP.StandingJumpHeightBack				= 0
SWEP.StandingJumpHeightLeft				= 0
SWEP.StandingJumpHeightRight			= 0

SWEP.CrouchingJumpHeightFront			= 0
SWEP.CrouchingJumpHeightBack			= 0
SWEP.CrouchingJumpHeightLeft			= 0
SWEP.CrouchingJumpHeightRight			= 0

SWEP.StandingSprintJumpHeightFront		= 0
SWEP.StandingSprintJumpHeightBack		= 0
SWEP.StandingSprintJumpHeightLeft		= 0
SWEP.StandingSprintJumpHeightRight		= 0

SWEP.CrouchingSprintJumpHeightFront		= 0
SWEP.CrouchingSprintJumpHeightBack		= 0
SWEP.CrouchingSprintJumpHeightLeft		= 0
SWEP.CrouchingSprintJumpHeightRight		= 0

Settings

The setting names are rather self explanatory, so this section will be short.

  • "DoSS" = "Do Sprint Sound"

  • "DoSJCrouchS" = "Do Sprint Jump Crouch Sound"

  • These four numbers in each section are the different movement speeds tied to each direction/modifier. E.g. SpeedStandForward will only trigger when standing, not sprinting, and moving forwards; however SpeedCrouchForward will only trigger when crouching, not sprinting, and moving forwards.

  • Note: The default sandbox running (standing and not sprinting) speed is 250, the sandbox sprinting speed is 500.

Clone this wiki locally