SA-MP Forums Archive
[FilterScript] [FS] Joos's Drift script - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [FilterScript] [FS] Joos's Drift script (/showthread.php?tid=146592)



[FS] Joos's Drift script - Joosephe - 08.05.2010

This is a neat filterscript of mine for rewarding drifts in accordance to their traveling speed and slip angle. It uses non-conventional(due to SAMP's defaults) trigonometric functions to calculate the slip angle through the player's velocity on OnPlayerUpdate, thus being more accurate than timer-based and GetPlayerPos-based alternatives. Also, your drifting is rewarded with car parts including full mod packages scripted for Elegys and Sultans. Your current drift score, last drift score and record score are also displayed in TextDraws on the right-hand side. I've also included bonuses for drifting at high speeds(Anything higher than 0.6 out of a possible 0.95 for Elegy) and sliding at an optimal angle of 35-45 degrees. Drifts are canceled when you go too slow or damage your car! Also, you can link drifts to increase your maximum score.
The recommended car to use is Elegy, but everything works... as long as you know how to make it go sideways. /drifthelp might also help you.

So - get in a car, enter /drift, and slide your way to victory!

Note: If you are planning to use this on a public server, please re-compile the script with the correct MaximumPlayers amount! Otherwise things probably won't work properly.
I've added comments to some lines that could be removed if you don't like some of the rewards(Score updating, tuning parts).
Feel free to use this FS on your servers, but I'd still like to receive credit.

Update and modification requests are welcome, as well as bug reports and optimization tips!

.pwn : http://pastebin.com/9PJ2M5BM
.amx : http://www.upload.ee/download/560172...EWDrift1.0.amx

Here's a sample picture of the drifting in action


Also, while this script is fully my creation, I'd like to thank Cyber_Punk for helping me with optimization and scripting-related questions! Thnx mayne :>



Re: [FS] Joos's Drift script - ViruZZzZ_ChiLLL - 08.05.2010

Uhmmm... Good job I guess

Quote:
Originally Posted by Joosephe
So - get in a car, enter /drift, and slide your way to victory!
Slide FTW!!


Re: [FS] Joos's Drift script - Lorenc_ - 08.05.2010

Interesting script nice


Re: [FS] Joos's Drift script - rbN. - 08.05.2010

Never seen something like this (I think).

Good idea, and especially the 'car tuning' part :P


Re: [FS] Joos's Drift script - XRVX - 08.05.2010

Nice work, I will try it sometime


Re: [FS] Joos's Drift script - cyber_punk - 09.05.2010

Nice job Joos!


Re: [FS] Joos's Drift script - rs2fun111 - 09.05.2010

ehh . Not Worked @ me . But Nice Script I Think


Re: [FS] Joos's Drift script - UnHead - 09.05.2010

Niiicceee Man!


Re: [FS] Joos's Drift script - luigifan9 - 09.05.2010

NIce idea


Re: [FS] Joos's Drift script - Joosephe - 10.05.2010

Quote:
Originally Posted by » Kalvi «
ehh . Not Worked @ me . But Nice Script I Think
Did you use R7 server files?
Are you sure you typed /drift to start drifting?
Are you sure you were in a car when you started drifting?
Did you add it to your server.cfg as a filterscript?
Also make sure you don't have a command with /drift in your gamemode!

Seriously, dewd, how can I help you if you give me no information?

Tхsiselt mees, kirjelda probleemi. Ma ei saa sind aidata, kui sa nii lakooniline oled.