[Plugin] CHandling - Server control of handlings & per-vehicle handlings
#5

It's possible, I see that MTA did it but as far as I can see it's global, which makes sense. So one modification of weapon property is applied for every player.
I'm not sure about syncing the shoots then, don't know how samp does it under the hood but it probably wouldn't require any changing.

This plugin could evolve into some kind of all-in-one SAMP extension, but for that someone else would need to take it over. I don't have that much time, and I'm not the best at writing clean code when most of the things are experimental memory hacks.
IIRC wheel scaling could be easily added to this plugin as an additional handling option, it could make for some nice rim size modifications etc.
My main idea when creating this plugin was to create some sort of NFS-like upgrade packs for vehicles. You don't neccessarily need to set raw values. You can modify the existing ones, altering the handling.
In example, you can lower the mass by a percentage value and lower the drag multiplier, making the car go faster:
Code:
new Float:val;
GetVehicleHandling(vehicleid, HANDL_FMASS, val);
SetVehicleHandling(vehicleid, HANDL_FMASS, val*0.9); // 90% of previous mass
GetVehicleHandling(vehicleid, HANDL_FTURNMASS, val);
SetVehicleHandling(vehicleid, HANDL_FTURNMASS, val*0.9);
GetVehicleHandling(vehicleid, HANDL_FDRAGMULTIPLIER, val);
SetVehicleHandling(vehicleid, HANDL_FDRAGMULTIPLIER, val*0.9);
It's worth noting that subsequent calls to SetVehicleHandling wont create additional packets, since the modifications are all sent in a single packet at the next ProcessTick.
Reply


Messages In This Thread
CHandling - Server control of handling.cfg & per-vehicle handlings - by dotSILENT - 20.01.2019, 21:01
Re: CHandling - Server control of handlings & per-vehicle handlings - by dotSILENT - 20.01.2019, 21:25
Re: CHandling - Server control of handlings & per-vehicle handlings - by HNIC - 20.01.2019, 22:15
Re: CHandling - Server control of handlings & per-vehicle handlings - by Whitetiger - 21.01.2019, 00:41
Re: CHandling - Server control of handlings & per-vehicle handlings - by dotSILENT - 21.01.2019, 01:30
Re: CHandling - Server control of handlings & per-vehicle handlings - by SyS - 21.01.2019, 01:36
Re: CHandling - Server control of handlings & per-vehicle handlings - by RogueDrifter - 21.01.2019, 03:57
Re: CHandling - Server control of handlings & per-vehicle handlings - by Nathan94 - 21.01.2019, 14:00
Re: CHandling - Server control of handlings & per-vehicle handlings - by dotSILENT - 21.01.2019, 14:28
Re: CHandling - Server control of handlings & per-vehicle handlings - by Nathan94 - 21.01.2019, 14:44
Re: CHandling - Server control of handlings & per-vehicle handlings - by dotSILENT - 21.01.2019, 15:40
Re: CHandling - Server control of handlings & per-vehicle handlings - by Nathan94 - 21.01.2019, 17:32
Re: CHandling - Server control of handlings & per-vehicle handlings - by dotSILENT - 21.01.2019, 18:55
Re: CHandling - Server control of handlings & per-vehicle handlings - by Nathan94 - 21.01.2019, 20:36
Re: CHandling - Server control of handlings & per-vehicle handlings - by nickdodd25 - 21.01.2019, 21:05
Re: CHandling - Server control of handlings & per-vehicle handlings - by dotSILENT - 21.01.2019, 21:30
Re: CHandling - Server control of handlings & per-vehicle handlings - by nickdodd25 - 22.01.2019, 01:54
Re: CHandling - Server control of handlings & per-vehicle handlings - by dotSILENT - 22.01.2019, 07:56
Re: CHandling - Server control of handlings & per-vehicle handlings - by Chaprnks - 25.01.2019, 20:26
Re: CHandling - Server control of handlings & per-vehicle handlings - by dotSILENT - 25.01.2019, 20:42
Re: CHandling - Server control of handlings & per-vehicle handlings - by Pottus - 26.01.2019, 17:23
Re: CHandling - Server control of handlings & per-vehicle handlings - by Igorek - 25.02.2019, 13:25
Re: CHandling - Server control of handlings & per-vehicle handlings - by EgorAks - 30.11.2019, 16:31
Re: CHandling - Server control of handlings & per-vehicle handlings - by AlieN_ - 10.12.2019, 00:16
Re: CHandling - Server control of handlings & per-vehicle handlings - by dotSILENT - 18.12.2019, 20:05
Re: CHandling - Server control of handlings & per-vehicle handlings - by sana98 - 21.01.2020, 06:35
Re: CHandling - Server control of handlings & per-vehicle handlings - by Stalo - 23.03.2020, 04:20
Re: CHandling - Server control of handlings & per-vehicle handlings - by workwood98 - 05.04.2020, 11:13
Re: CHandling - Server control of handlings & per-vehicle handlings - by dotSILENT - 06.04.2020, 17:44
Re: CHandling - Server control of handlings & per-vehicle handlings - by Fairuz - 08.04.2020, 15:10
Re: CHandling - Server control of handlings & per-vehicle handlings - by Fairuz - 09.04.2020, 08:20
Re: CHandling - Server control of handlings & per-vehicle handlings - by dotSILENT - 12.04.2020, 22:22
[No subject] - by Fairuz - 14.04.2020, 07:16
Re: CHandling - Server control of handlings & per-vehicle handlings - by dotSILENT - 17.04.2020, 19:02
Re: CHandling - Server control of handlings & per-vehicle handlings - by Yukie - 02.05.2020, 07:09
Re: CHandling - Server control of handlings & per-vehicle handlings - by ZachKnoxx - 03.05.2020, 00:48
Re: CHandling - Server control of handlings & per-vehicle handlings - by nieXpro - 12.05.2020, 11:53
Re: CHandling - Server control of handlings & per-vehicle handlings - by dotSILENT - 12.05.2020, 15:47
Re: CHandling - Server control of handlings & per-vehicle handlings - by nieXpro - 12.05.2020, 20:02
Re: CHandling - Server control of handlings & per-vehicle handlings - by Refik - 12.05.2020, 22:55
Re: CHandling - Server control of handlings & per-vehicle handlings - by Refik - 13.05.2020, 20:33

Forum Jump:


Users browsing this thread: 1 Guest(s)