Las Venturas Playground
Minigames - Printable Version

+- Las Venturas Playground (https://forum.sa-mp.nl)
+-- Forum: Main Talk (https://forum.sa-mp.nl/forum-3.html)
+--- Forum: Development (https://forum.sa-mp.nl/forum-16.html)
+--- Thread: Minigames (/thread-23117.html)



Minigames - Jay - 04-18-2010

Most Mini Games on LVP have the same boundaries and rules. Yet, most of them use their own handler and have no communication between each one. We need to centralize Mini Games to one handler. This will improve the process, syntax, and organisation. We'll have to split it into parts:

Core

Handle signups, signouts, position saving / restore, join/leave commands and other flags to determine the player is in a minigame, and what minigame name and type it is (MINIGAME_TYPE_DM, MINIGAME_TYPE_RACE, MINIGAME_TYPE_DERBY, MINIGAME_TYPE_TEAM)

Deathmatch -> LVP Fight Games

Deathmatch is one word we can use to describe minigames like /rocket /sniper, and whatever else uses that shitty handler. But that may cause confusion when it comes to describing minigames like lyse and that walk weapon Matthias just wrote. We'll call these LVP Fight Games. This part of the handler should work just like the current one. Parent Player starts the minigame, signup process begins, it starts after 20 seconds. It should be nice and dynamic - You can add minigames with function calls like the current race and derby handlers. Below is a list of minigames which should use this part of the handler. Minigames marked with a star* are unpopular and will need some changes done to make them more interesting:

Batfight*
Chainsaw*
Dildo Spanking*
Knockout*
Grenade
Minigun
Random
Rocket
Sawnoff
ShipTDM
Sniper
WalkWeapon

Next to that, textdraws should be in place to show various statistics of the minigame (like race): The players position, how long is left (if applicable), and how many people have signed up.

Team -> LVP Games

There isn't a general name for the likes of Lyse, Rivershell, etc. I reckon we should call these LVP Games. Ths part of the handler is going to be tricky because each of these minigames have different indivdual elements boundaries and rules. For the sake of ease, there shouldn't be much to this part of what the core doesn't already offer.

Races & Derbies

Unlike LVP Fight Games, Derbies and Races have quite a lot going on and quite a few processes and calculations are constantly in place. Perhaps this part of the handler should just again just use the core.


Thoughts?


Re: Minigames - Jay - 04-21-2010

(04-18-2010, 07:14 PM)Jay link Wrote: Thoughts?



Re: Minigames - Jay - 04-24-2010

(04-21-2010, 01:25 PM)Jay link Wrote: Thoughts?



Re: Minigames - Matthias - 04-24-2010

Looks good to me, but that'll have to change a lot ;p.


Re: Minigames - Fireburn - 04-25-2010

I agree that we should change to a new system which takes care of all our minigames (states+team+saved positions and all) instead of doing it 5 times for 5 different minigames types.
It should be our target to make it as universal as possible, so adding minigames can be done in not a lot of time. A good example of this is our deathmatch handler which enables us to add minigames almost on the spot. We could even save to a database and enable admins to easily add stuff on the spot (cool!).
So indeed I agree we would need a handler that takes care of everything and all types of minigames. It will take some time but after that we can easily add more new minigames.