I just don't want the script to run every frame. I want it only to load once at beginning. Anyone?
levmans
View profile on GTA5-Mods.com »
Posts made by levmans
-
RE: [SCRIPT] [RELEASED] [WIP] DVS by levmans (Disable Vehicle Shake)
-
[SCRIPT] [RELEASED] [WIP] DVS by levmans (Disable Vehicle Shake)
Hello guys. I want your help with my simplest ever script. I just need it to be loaded once at the beginning of the game(to turn off vehicle shaking native function). Now it runs on key press "J"
Thank you in advance.here's script:
using GTA;
using GTA.Native;
using GTA.Math;
using System;
using System.Windows.Forms;
using System.Collections.Generic;
using System.IO;
using System.Drawing;
using System.Media;public class ModName : Script
{
// Where you initialize all your variables for use.
private string modName = "Car shake disabler";
private string modCreatorName = "levmans";private Ped playerPed = Game.Player.Character; private Player player = Game.Player; // Where you initialize the events or do anything when the mod starts. public ModName() { UI.Notify(modName + " made by: " + modCreatorName); Tick += OnTick; KeyDown += OnKeyDown; KeyUp += OnKeyUp; } // This is where loops/things are run every frame. private void OnTick(object sender, EventArgs e) { } // When you press a key down or hold it. private void OnKeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.J) { Function.Call((Hash)0x84FD40F56075E816, 0); UI.Notify(modName + " made by: " + modCreatorName); } } // When you press a key up or release it. private void OnKeyUp(object sender, KeyEventArgs e) { }
}
-
RE: GTA5 Levmans's Simulation Handling For Addon Cars(Beta)
Dude you are a life saver! Thank you for this video! so this is our enemy: SET_VEHICLE_SPEED_JITTER.
Using Custom gear ratios mod for long ago. Taking real gear ratios from automobile-catalog.com. That's one hell of a site, about cars. Actually I take almost everything from there.
About suspension setup-here's my "readme": http://www.rapid-racer.com/suspension-tuning.php#Centre of Gravity and Roll Centre.Drag coefficient given in GTA is regularly 3.2-4.5 for realistic drag coefficient. Top speed: solved(real value in handling divided to 1.32., Engine power is in kilowatts f.e. 442 kw for bmw M5 F90 is 0.442 in handling.
Look at this and let me know what do you think. This is M5 F90 hanling lines.
have so much to discuss, but too sleepy. it's quite late here)
just look at handling file:<?xml version="1.0" encoding="UTF-8"?>
<CHandlingDataMgr>
<HandlingData>
<Item type="CHandlingData">
<handlingName>BMCI</handlingName>
<fMass value="1982.000000" />
<fDownforceModifier value="0.18" />
<fInitialDragCoeff value="3.323" />
<fPercentSubmerged value="85.000000" />
<vecCentreOfMassOffset x="0.000000" y="0.0790000" z="-0.098" />
<vecInertiaMultiplier x="2.801" y="2.801" z="2.801" />
<fDriveBiasFront value="0.50000" />
<nInitialDriveGears value="8" />
<fInitialDriveForce value="0.459500" />
<fDriveInertia value="1.75200000" />
<fClutchChangeRateScaleUpShift value="1.90000" />
<fClutchChangeRateScaleDownShift value="1.900000" />
<fInitialDriveMaxFlatVel value="270.000000" />
<fBrakeForce value="0.80000" />
<fBrakeBiasFront value="0.650000" />
<fHandBrakeForce value="0.850000" />
<fSteeringLock value="27.850000" />
<fTractionCurveMax value="1.720000" />
<fTractionCurveMin value="1.420000" />
<fTractionCurveLateral value="5.90000" />
<fTractionSpringDeltaMax value="0.0287" />
<fLowSpeedTractionLossMult value="1.15000" />
<fCamberStiffnesss value="0.000" />
<fTractionBiasFront value="0.49500000" />
<fTractionLossMult value="1.900000" />
<fSuspensionForce value="6.300000" />
<fSuspensionCompDamp value="1.50000" />
<fSuspensionReboundDamp value="1.40000" />
<fSuspensionUpperLimit value="0.0800" />
<fSuspensionLowerLimit value="-0.0800" />
<fSuspensionRaise value="0.000000" />
<fSuspensionBiasFront value="0.500000" />
<fAntiRollBarForce value="1.40000" />
<fAntiRollBarBiasFront value="0.530000" />
<fRollCentreHeightFront value="0.21" />
<fRollCentreHeightRear value="0.24" />
<fCollisionDamageMult value="1.600000" />
<fWeaponDamageMult value="4.000000" />
<fDeformationDamageMult value="1.00000" />
<fEngineDamageMult value="1.500000" />
<fPetrolTankVolume value="80.000000" />
<fOilVolume value="10.500000" />
<fSeatOffsetDistX value="0.000000" />
<fSeatOffsetDistY value="0.000000" />
<fSeatOffsetDistZ value="0.000000" />
<nMonetaryValue value="35000" />
<strModelFlags>440020</strModelFlags>
<strHandlingFlags>000101</strHandlingFlags>
<strDamageFlags>0</strDamageFlags>
<AIHandling>AVERAGE</AIHandling>
<SubHandlingData>
<Item type="CCarHandlingData">
<fBackEndPopUpCarImpulseMult value="1.000000" />
<fBackEndPopUpBuildingImpulseMult value="1.000000" />
<fBackEndPopUpMaxDeltaSpeed value="1.000000" />
</Item>
<Item type="NULL" />
<Item type="NULL" />
</SubHandlingData>
</Item>
</HandlingData>
</CHandlingDataMgr>p.s. Traction curve adopted to materials.dat, i've edited.
-
GTA5 Levmans's Simulation Handling For Addon Cars(Beta)
Hi This is my first post so apologize, if postin in wrong place.
I'm making as real as possible handling in RAGE for add on vehicles in GTA5. Every single line in handling, changed to realistic values. Such as Mass inertia(calculated with formula for 3D object MI, considering dimensions and mass of the object), Tire slip angle, Friction, Tire pressure(similar setting), Gravity and Roll center, Gearbox rations and count, Suspension, Camber, Antiroll bar and much, much more. Because engine curve is not editable in RAGE i'm adjusting 0-100kmh real values, but from 100-200kmh it seems every car goes a little bit faster/or slower. Engine power adjusted by it's KW(Not Torque, or Hp), So far It is in BETA. Each car is driven hours on different conditions and surfaces after adjustments. Lots of video of real life driving is watched to make driving of exact car, as close to real one as possible.The only thing is bothers me is vehicle body shaking at speeds, which looks weird. I'm trying to disable it but have not found any adjustable value, or animation. Please note this is NOT a bug of my handling. It's implemented feature of GTAV. Any help with this is highly appreciated.
p.s. WIP also on BMW M5 F90, BMW M3 F80, Ford fairlane 1966, Manhart BMW M8, Pontiac GTX 1970, Porsche 991 Turbo, Ruf RGT8, Mazda RX7.