[FilterScript] Server-Sided Stunt Bonus
#1

Server-Sided Stunt Bonus detection v0.1
Hey!

Today I want to present you a small Filterscript I've made a few days ago.

It's really simple and may not work perfectly always due to the time that passes between two Timer calls.
However, it enables you rewarding players for actual stunts, without abusing (SP Stunt Rewards can be abused with Server Objects).
Thanks to ColAndreas, this works on both, the original map and any mappings you added to your server.

Your objects have to be added to ColAndreas of course.

A Stunt Reward looks like this:



Notes:

- Teleports are catched, you'll get no reward if you teleport mid-air.
- Now your friends (aka passengers) can see the awesome stunts you do too!
- Speedhack is catched too, there is a maximum speed a player can go while stunting.
- All legit ground vehicles are possible to use for stunting.
- The Stunting Rewards are calculated from:
-> Time
-> Distance
-> Num. of Saltos
-> Num. of Barrel Rolls
-> Num. of 360-Turns
- You can do combos of Stunts which add to the reward too. This will be extended to some kind of Stunt Challenge.

Now if you don't want players to farm Money with Stunts, you can add a custom reward too.
For example Stunt Points or a Stunt High Score. Be creative!

In the next versions I'll add a callback for Stunts, so you can handle them in your GM for example. Also some Stunts for Planes (like flying a Loop, Barrel Rolling etc).

Also look at the defines, they let you config some stuff you might want to change (Rewards, Timer Interval, etc).

Collision detection is now using all rotation axes.

Issues:

- Not sure how laggy this can get. You may want to add fewer GroundContact checks or lower the Timer interval. I can give you more info on that if needed.
- The History length (used for efficient rotation processing) does NOT affect the performance - only the memory!

Download:

GitHub - (Click!)

What you also need

- ColAndreas
- Quaternion Stuff Plugin
- foreach

Credits

ProRakNet - Thanks for reminding me of this again :P
Gamer_Z - QuaternionStuff Plugin
Pottus, Slice, Chris42O, uint32 - ColAndreas
ZeeX, Slice, Kar (standalone-version) - foreach
SA-MP Team - SA-MP
Reply


Messages In This Thread
Server-Sided Stunt Bonus - by NaS - 20.04.2016, 16:27
Re: Server-Sided Stunt Bonus - by Kar - 20.04.2016, 19:59
Re: Server-Sided Stunt Bonus - by Crayder - 20.04.2016, 20:30
Re: Server-Sided Stunt Bonus - by NaS - 20.04.2016, 21:59
Re: Server-Sided Stunt Bonus - by Pottus - 21.04.2016, 21:29
Re: Server-Sided Stunt Bonus - by ProRakNet - 22.04.2016, 09:54
Re: Server-Sided Stunt Bonus - by Amunra - 25.04.2016, 12:31

Forum Jump:


Users browsing this thread: 1 Guest(s)