Garry's Mod

Garry's Mod

710 ratings
[wOS] Roll Mod
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Model
Addon Tags: Roleplay, Realism
File Size
Posted
Updated
0.015 MB
Feb 24, 2017 @ 12:55am
Mar 19, 2017 @ 1:47pm
8 Change Notes ( view )

Subscribe to download
[wOS] Roll Mod

Description
Dodge, duck, flip, dive and.. ROLL!

REQUIRES THE WILTOS ANIMATION BASE AND BLADE SYMPHONY EXTENSION!
REQUIRES THE WILTOS ANIMATION BASE AND BLADE SYMPHONY EXTENSION!
REQUIRES THE WILTOS ANIMATION BASE AND BLADE SYMPHONY EXTENSION!
REQUIRES THE WILTOS ANIMATION BASE AND BLADE SYMPHONY EXTENSION!

Description
Roll into cover and dodge enemy fire, Roll mod lets your player roll with authentic first person view as well as custom third person animation. Thanks to the animation base, all player models are supported.

Client Information
To roll, just double tap the direction you want to roll in or use the "wos_roll_use" console command.

There are some console commands to set everything optimally for your server:
wos_roll_doubletap -- Enables or disables double tapping of the movement key to roll wos_roll_cameramode -- Changes the first person camera type. -- 0 = No dynamic camera -- 1 = Positional Camera only ( starwars battlefront esque ) -- 2 = Position and Angles ( Realistic camera ) -- 3 = Third person camera wos_roll_dodgedamage -- Enables or disables damage while dodging wos_roll_use -- ROLL!

You also have config options in the "wos/rollmod/config.lua" file;

-- How many seconds does the player have to put that second tap in for double-tap rolling wOS.RollMod.Sensitivity = 0.3 --Speed you go when you are rolling wOS.RollMod.RollSpeed = 200 --These are the damage types you can dodge while rolling. --Set them to true so they are dodgeable, false for the opposite wOS.RollMod.Dodgeables = {} wOS.RollMod.Dodgeables[] = false wOS.RollMod.Dodgeables[] = false wOS.RollMod.Dodgeables[] = true wOS.RollMod.Dodgeables[] = true wOS.RollMod.Dodgeables[] = false wOS.RollMod.Dodgeables[] = false wOS.RollMod.Dodgeables[] = true wOS.RollMod.Dodgeables[] = false wOS.RollMod.Dodgeables[] = false wOS.RollMod.Dodgeables[] = true wOS.RollMod.Animations = {} wOS.RollMod.Animations[2] = "roll_forward" --Forward animation wOS.RollMod.Animations[3] = "roll_backward" --Backward animation wOS.RollMod.Animations[4] = "roll_left" --Left animation wOS.RollMod.Animations[5] = "roll_right" --Right animation

Developer information
There are a couple of hooks you can use to override the default behavior. They are listed below:

wOS.RollMod.DodgedDamage -- Parameters( victim, hitgroup, dmginfo ) -- Returns nothing -- Called when player just dodged damage while rolling wOS.RollMod.OnRoll -- Parameters( self ) -- Returns nothing -- Called when player just entered rolling state wOS.RollMod.ShouldRoll -- Parameters( ply ) -- Return true/false to allow/prevent rolling -- Called when asking if a player should be able to roll

You can also check if the addon is active by checking for these two tables;
wOS -- Type( TABLE ) -- The main wiltOS Table wOS.RollMod -- Type( TABLE ) -- The RollMod sub-entry

Bug Reporting / Questions / Suggestions
Go ahead and make a discussion if you can't already see it. I would be happy to help you get everything working. if you need edits to the addon please let me know and I'll point you in the right direction

Credits
Sounds from The Specialists (HL1 Mod)
Animations from Blade Symphony
Code by King David

Keep up to date with wiltOS Technologies by joining our Community Steam group!
Popular Discussions View All (21)
38
Jan 20 @ 5:19am
When starting the game, the camera is leaning to the right
Injitin
12
Aug 25 @ 3:42am
No rolling animation
I'm a Hero.
12
Dec 23, 2017 @ 12:35am
Rolling backwards/Backflip
Crow
< >
383 Comments
King David™  [author] Sep 29 @ 10:20pm 
If you want single tap you can just bind a key to it, single tap doesn't make much sense to have globally
Loki Sep 29 @ 9:29pm 
is there is single tap?
wheatly gaming Sep 25 @ 1:18pm 
the camera dosent turn when i roll
guspoop11 Aug 24 @ 3:53pm 
I NEED IT
Dr. Giovanni Aug 24 @ 11:02am 
I've downloaded all your animation extentions, but animation of rolling don't works. What should I do?
Fusiox Jul 2 @ 6:03am 
What is the bind to roll ?
Shooter Jun 11 @ 6:14pm 
this is great
King David™  [author] Jun 3 @ 12:22pm 
harmless messages
Khronos Jun 2 @ 10:01pm 
When are you going to fix
Failed to find attachment point specified for particle effect anim event. Trying to spawn effect 'player_dash_dust' on attachment named 'lfoot'
Failed to find attachment point specified for particle effect anim event. Trying to spawn effect 'player_dash_dust' on attachment named 'rfoot'
Chipdragonborn Mar 31 @ 2:54pm 
alright i will try to extract the addon