Vice City: Multiplayer

Server Development => Custom Content Releases => Vehicle Showroom => Topic started by: Sebastian on October 3rd, 2019, 11:02 AM

Title: [universal] Drifting Handling
Post by: Sebastian on October 3rd, 2019, 11:02 AM
(https://i.imgur.com/Non7HnQ.png)
>video demonstration<(https://forum.vc-mp.org/?topic=7111.0)

While I was working on the Hydraulics' Alternative(https://forum.vc-mp.org/?topic=7075.0), I've found some handling settings that improve Cuban's Drifting ability.
In the past, I've used only downloaded handling - but now, I got my own.

Why is mine better than others' ? Because mine can be used in any type of server. (even RPG)
It's not based on increasing speed to the vehicle, so it will not look out of space.
It fits any background!

(click to show/hide)
Code: [Select]
<?xml version="1.0" encoding="ASCII"?>
<vehicle>
<basic>
<type>car</type>
<name>Cuban Hermes</name>
<anims>null</anims>
<comprules>0</comprules>
<extraflags>0010</extraflags>
<wheelmodel>253</wheelmodel>
<wheelscale>0.700000</wheelscale>
<immunity>0</immunity>
</basic>

<aidata>
<class>ignore</class>
<freq>10</freq>
<level>7</level>
</aidata>

<colors>
<carcol>1,1</carcol>
</colors>

<audio>
<enginefarsample>273</enginefarsample>
<enginenearsample>9</enginenearsample>
<hornsample>0</hornsample>
<hornfreq>25400</hornfreq>
<sirensample>0</sirensample>
<sirenfreq>9800</sirenfreq>
<doorsounds>0</doorsounds>
</audio>

<handling>
<mass>2150.000000</mass>
<percentsubmerged>75</percentsubmerged>
<steeringlock>40.000000</steeringlock>
<seatoffset>0.260000</seatoffset>
<damagemultiplier>0.550000</damagemultiplier>
<value>10000</value>
<flags>00000102</flags>

<dimensions>
<x>2.100000</x>
<y>5.000000</y>
<z>2.200000</z>
</dimensions>

<centreofmass>
<x>0.000000</x>
<y>0.000000</y>
<z>0.200000</z>
</centreofmass>

<traction>
<multiplier>0.750000</multiplier>
<loss>0.750000</loss>
<bias>0.530000</bias>
</traction>

<transmission>
<numofgears>5</numofgears>
<maxspeed>160.000000</maxspeed>
<acceleration>25.000000</acceleration>
<drivetype>4</drivetype>
<enginetype>P</enginetype>
</transmission>

<brakes>
<deceleration>6.000000</deceleration>
<bias>0.540000</bias>
<abs>0</abs>
</brakes>

<suspension>
<forcelevel>0.800000</forcelevel>
<dampening>0.080000</dampening>
<upperlimit>0.250000</upperlimit>
<lowerlimit>-0.260000</lowerlimit>
<bias>0.500000</bias>
<antidive>0.450000</antidive>
</suspension>

<lights>
<front>1</front>
<rear>1</rear>
</lights>
</handling>

</vehicle>

+

Code: [Select]
vehicle.SetHandlingData( 9, 0.5 ); // Traction Multiplier
vehicle.SetHandlingData( 11, 0.6 ); // Traction Bias
vehicle.SetHandlingData( 14, 30 ); // Acceleration
vehicle.SetHandlingData( 17, 40 ); // Brake Deceleration

PS: For the bridge neons, credits go to @PerikiyoXD !
Title: Re: [cuban] Drifting Handling
Post by: Sebastian on March 15th, 2021, 09:01 AM
UPDATE

The following settings will turn every car into a drifting car:
Code: [Select]
vehicle.SetHandlingData( 6, 0 ); // centre of mass Y
vehicle.SetHandlingData( 7, -0.2 ); // centre of mass Z
vehicle.SetHandlingData( 9, 0.5 ); // Traction Multiplier
vehicle.SetHandlingData( 11, 0.6 ); // Traction Bias
vehicle.SetHandlingData( 15, 52 ); // Drive Type = 4 wheels driving
vehicle.SetHandlingData( 14, 30 ); // Acceleration
vehicle.SetHandlingData( 17, 40 ); // Brake Deceleration
vehicle.SetHandlingData( 19, 40 ); // Steering Lock

Please, keep in mind that every car will mostly have it's own unique behaviour.
If you want it to behave exactly like the Cuban, then just import Cuban's handling and that's it.
(but not all cars look good with that handling, so that's why I shared the above settings)


Happy Drifting!