Loading...

Drift on Demand 1.1

Download
Eddlm

5,738

Enter a "drift mode" on demand, for any car.

New in this version:
Use Shift and Control to make the car slide more or less.

Description
While you're in Drift Mode, your vehicle's grip will be greatly reduced to help you slide. As my method of doing it also affects the vehicle's abilty to accelerate, brake and turn, so I've coded some functions to help players be in full control of the car, even with reduced grip.

Acceleration and brakes work the same way, but the Handbrake now reduces the vehicle's lateral velocity way more than the forward velocity. This means that, while holding the handbrake, you'll slide less but not lose speed at all.

The handbrake helper doesn't work while you're accelerating, so you can still help the car start sliding with the common Accelerate + Handbrake trick.


How to toggle it While you're in a car, press both A and D.

Use Shift and Control to make the car slide more or less.

REQUIREMENTS
.NET Framework 4.5.2
Visual C++ 2015
ScriptHookV
ScriptHookVDotNet


Devs: how does it work?
This script abuses SET_VEHICLE_REDUCE_GRIP by turning it on and off every 10 ticks, reducing the vehicle's grip for 10 ticks, then letting it have its normal grip for another 10 ticks, and repeat.

Can I has sourcecode?
No.


Changelog
v1.1
  • Fixed a crash when the player stepped out of the vehicle.
  • Added key changes on the .ini file so players can change what key toggles this script functionality.
  • Added control over the grip. Use Shift and Control to make the car slide more or less.



inb4 already been done

You can even play Drift Hud with my drift handling if you like that mod's score system but don't like its way of drifting, by setting its DriftPhysics setting to false.
So shut up and enjoy variety.
Show Full Description

First Uploaded: December 29, 2015
Last Updated: January 01, 2016
Last Downloaded: 1 minute ago

All Versions

 1.1 (current)

5,738 downloads , 4 KB

43 Comments

  • Gtao62
    stillhere

    @Eddlm No problem! I like how much cleaner the code is. I've added controller support, you can take a look here: http://pastebin.com/G9h8eq05

    January 03, 2016
  • 99ee9e a1

    Could you make drifting like Need for Speed where you only press spacebar/handbrake to drift?

    January 03, 2016
  • D21c6a growing stronger
    Eddlm

    @lspdhotstuff Open the DriftOnDemand.ini file and change both Key1=A and Key2=D by Key1=Space and Key2=Space.

    January 03, 2016
  • F30eee untitled 1

    pleeease integrate controller support?

    January 04, 2016
  • 3c647f photo

    Awesome mod, having the ability to tune the traction is great

    January 04, 2016
  • Tubeguy

    @Eddlm would love if you could make it controller supported :)

    January 14, 2016
  • Lester

    @EddIm This is freakin great!! Could you make a simple gravity On/Off, or low gravity switch with something like W+S?

    January 17, 2016
  • 57041f 2016 01 30 00089

    Everyone needs to try this mod.

    February 20, 2016
  • Lester

    very underrated, better than any drift line/mod i've ever tried .. ty very much ..:)

    April 24, 2016
  • Lester

    can you please add the options in the ini file to change the shift and ctrl keys :)

    April 28, 2016
  • Lester

    added video :)

    May 05, 2016
  • Default

    It's great, BUT there is one thing... Why is it on A and D? When I drive without drifting i accidentaly press A and D together and I start drifting... When I drift I accidentaly press A and D and I stop drifting... It would be great if you could change to like P or something like that

    May 14, 2016
  • Default

    Shit mod, just makes you slide, not drift.

    September 23, 2016
  • Lamar

    can you use the controller?

    October 08, 2016
  • Gtao47

    Why is it on A and D? When I drive without drifting i accidentaly press A and D together and I start drifting... When I drift I accidentaly press A and D and I stop drifting... It would be great if you could change to like P or something like that!!!! plz how

    February 28, 2017
  • Gtao47

    I FUCKING LOVE THIS MOD!! I FUCKING LOVE U TO EDD!!! THANKS!

    February 28, 2017
  • Gtao47

    Do you mind making the shift and control keys can be remapped in the ini? i wanna use this with your Realistic Nitro mod but the shift key is essential :/ or maybe instead of these buttons, make the grip value can be set in the ini too?

    March 04, 2017
  • Gtao47

    can u update this mod to newest patch?

    March 16, 2017
  • Gtao47

    does this mod have to get updated to work on the newest patch? cuz i cant get any of my script mods to work..

    April 10, 2017
  • Default

    @Function-X- -- You can remap the Realistic Nitro key away from Shift. I use Left Alt for Realistic Nitro, for example, and remapped character switch to Right Alt. That said, I use Shift for EddIm's UpGear Turbo mod :v

    April 16, 2017
Join the conversation! Log In or register for an account to be able to comment.