[FilterScript] [FS] Joos's Drift script
#1

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 :>
Reply
#2

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!!
Reply
#3

Interesting script nice
Reply
#4

Never seen something like this (I think).

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

Nice work, I will try it sometime
Reply
#6

Nice job Joos!
Reply
#7

ehh . Not Worked @ me . But Nice Script I Think
Reply
#8

Niiicceee Man!
Reply
#9

NIce idea
Reply
#10

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)