Jump to content

setVehicleHandling -- Client side


LosFaul

Recommended Posts

Hello,

I would like to suggest to add setVehicleHandling for client side scripting. 

I would like to make a custom handlings that have changing values while driving on different speeds, but i don't want always trigger a server event. Triggering server event is also shity because of ping.

Edited by LosFaul
  • Like 1
Link to comment

How should this get abused? So please write examples here.

And maybe it can made so that this script function can only get enabled by meta or a server side script and it's also posssible to check if client scripts get manipulated. The client script can be also so added to meta that the script get everytime redownloaded when the player rejoins.

 

But for real adding it client side would give a lot new possibilities for custom handling. Example if u want "simulate" brake temprature u can easy chance the brake deceleration, but if some has a 200+ ping and the server answers so late it can be a bit shity for this player. 200ms can be a lot in the racing world bro. Maybe i don't make sense for you because you are not racing as much in video games.

Link to comment
  • 2 months later...

the dsyncs want be that big how you think the only dsyncs you will have are caused by ping...
i'm not 100% sure but I think the cars are synced by coordinates+rotation+velocity
for example: nobody will notice it as a dsync if the accel gets higher or lower from another player you can simply check that with other script that affects the velocity
I also think that i played much more Race in mta (about 1000+ hours) as you and i saw some maps with scripts that affected the velocity, so I talk with a some practical experience

changing the accel with client side setVehicleHandling would allow a lot more possibilities and you can build a SimRace Handling for poor people :P
you will be able to set things without ping(the real dsync)
--Dynamic accel change 
--Brake Temperature changing brake deceleration
--Tire Temperature changing grip
-- and a lot more
and changes on handling line would feel much times more natural

It can be realy interesting for the racing / freeroam communities

Edited by LosFaul
Link to comment
On 11/12/2016 at 10:29 AM, LosFaul said:

the dsyncs want be that big how you think the only dsyncs you will have are caused by ping...
i'm not 100% sure but I think the cars are synced by coordinates+rotation+velocity
for example: nobody will notice it as a dsync if the accel gets higher or lower from another player you can simply check that with other script that affects the velocity
I also think that i played much more Race in mta (about 1000+ hours) as you and i saw some maps with scripts that affected the velocity, so I talk with a some practical experience

changing the accel with client side setVehicleHandling would allow a lot more possibilities and you can build a SimRace Handling for poor people :P
you will be able to set things without ping(the real dsync)
--Dynamic accel change 
--Brake Temperature changing brake deceleration
--Tire Temperature changing grip
-- and a lot more
and changes on handling line would feel much times more natural

It can be realy interesting for the racing / freeroam communities

Why don't you make something like this:

  • How many times the brake was active
  •  weather is (rain or storm)
  • then decreases the brake counter
  • Decreases the acceleration made by the breaker or make the vehicle heavier.  
Edited by RughCuttle
Link to comment

I'm thinking about the future and things I would like to do in the future (and I'm not alone).

Handling line changes feel much more natural. Changes with setElementVelocity doesn't give much options and can let the handling feel unnatural (Except a good Downforce Simulation). And Handling line changes also bring a lot of options.
Also some calculations for Simulation need to applied fast. When a player from Brasil with ping 200+ joins he has a lot of delay when everything have to be setted up for him on server side and that wouldn't be a fair gameplay.

 

13 hours ago, RughCuttle said:

Why don't you make something like this:

  • How many times the brake was active
  •  weather is (rain or storm)
  • then decreases the brake counter
  • Decreases the acceleration made by the breaker or make the vehicle heavier.  

For Example Brakes:
While some is braking the brakes will gain temperature and when you are not braking the brakes will cool down.
So with a formula you can simulate on which temperature the brakes will work best...

Weather:
Yes you can simulate a air temperature which affect all simulated temperature formulas on the vehicle.
-Rain: 1. The rain does not affect the handling anyways.
           2. But you can simulate rain strengths with values between 0.000... and 1.5.... on setRainLevel() (Note higher values won't look nice on screen)
           → So you need getRainLevel() on client and put it in your formula for Tire Grip/Temperature, Brake Temperature,... etc.
You can also make the weather dynamic with air temperature and rainlevel changes.

Link to comment
  • 2 weeks later...
On 9.9.2016 at 8:30 PM, CodyL said:

It's possible for clients to mess with the client scripts and improve their handling or what not

Also another thing is that would cause terrible desyncs.

It is already possible for clients to make themselves unkillable, teleport, etc. Adding this won't be that bad. The desync part might be true, but the option to do something like this should still be there.

Link to comment
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...