[Include] drift-detection.inc - drifting gamemodes or minigames with ease!
#13

Okay it does work, i got some things to report tho, first of all the detection is too sensitive if i make a simple turn without turning my nos on it's detecting me drifting i can go all over the map with this without calling the drift end function so i SUGGEST 3 things,
1- make min speed 50.0 by default
2- make the angle detection sharper (smaller angle the car must turn more but not too much)
3- decrease the time of detection between each drift end.
And the damage detection won't work for me, i used damagecheckenable globally and per-player and it still wont work it keeps saying drift end reason 0

I can give you tips on this, it was hard for me to detect when i first started working on my drift system so if you can't get it to work, you basically get the vehicle's health the moment a player starts drifting, then when he's in the update-drift stage you keep checking for the vehicle's health if < when he started = drift end reason damage AND update the original car's health variable to the current vehicle's health. Also don't forget to update it every time SetVehicleHealth is used so you'll need to make this work for both filterscripts and gamemodes using #if defined FILTERSCRIPT and #else at the beginning and end and tell the users to include it in filterscripts and gamemodes and only edit through the gamemode.
Reply


Messages In This Thread
drift-detection.inc - drifting gamemodes or minigames with ease! - by iKarim - 15.02.2018, 14:08
Re: drift-detection.inc - drifting gamemodes or minigames with ease! - by rfr - 15.02.2018, 14:13
Re: drift-detection.inc - drifting gamemodes or minigames with ease! - by RogueDrifter - 15.02.2018, 14:19
Re: drift-detection.inc - drifting gamemodes or minigames with ease! - by iKarim - 15.02.2018, 14:22
Re: drift-detection.inc - drifting gamemodes or minigames with ease! - by RogueDrifter - 15.02.2018, 14:23
Re: drift-detection.inc - drifting gamemodes or minigames with ease! - by iKarim - 15.02.2018, 14:30
Re: drift-detection.inc - drifting gamemodes or minigames with ease! - by RogueDrifter - 15.02.2018, 14:41
Re: drift-detection.inc - drifting gamemodes or minigames with ease! - by iKarim - 15.02.2018, 14:47
Re: drift-detection.inc - drifting gamemodes or minigames with ease! - by RogueDrifter - 15.02.2018, 14:48
Re: drift-detection.inc - drifting gamemodes or minigames with ease! - by iKarim - 15.02.2018, 14:52
Re: drift-detection.inc - drifting gamemodes or minigames with ease! - by RogueDrifter - 15.02.2018, 14:59
Re: drift-detection.inc - drifting gamemodes or minigames with ease! - by iKarim - 15.02.2018, 15:04
Re: drift-detection.inc - drifting gamemodes or minigames with ease! - by RogueDrifter - 15.02.2018, 15:22
Re: drift-detection.inc - drifting gamemodes or minigames with ease! - by iKarim - 15.02.2018, 15:38
Re: drift-detection.inc - drifting gamemodes or minigames with ease! - by RogueDrifter - 15.02.2018, 15:40
Re: drift-detection.inc - drifting gamemodes or minigames with ease! - by iKarim - 15.02.2018, 15:42
Re: drift-detection.inc - drifting gamemodes or minigames with ease! - by RogueDrifter - 15.02.2018, 15:45
Re: drift-detection.inc - drifting gamemodes or minigames with ease! - by iKarim - 16.02.2018, 08:55
Re: drift-detection.inc - drifting gamemodes or minigames with ease! - by RogueDrifter - 16.02.2018, 08:58
Re: drift-detection.inc - drifting gamemodes or minigames with ease! - by iKarim - 16.02.2018, 09:06

Forum Jump:


Users browsing this thread: 1 Guest(s)