So after a few questions (thanks all for your help), and a number of changes to things, I've finally finished my first race!
While a lot of the code is borrowed (no need to re-invent the wheel), I feel like I've combined it in a new/novel way...
I haven't actually had a chance to test this race thoroughly yet (I'm on hols atm, so not updating my server), however it compiles ok, so figured I'd share it now.
Requires snapshot 880+ to compile / run.
A brief overview:
"Gamble with your health", "You have a chance of getting (+/-) health, regen and vampire (ability)", false, 5
"Gamble with your speed", "You have a chance of getting (+/-) run and fire speed (ability1)", false, 5 );
"Gamble with your self", "You have a chance of getting (+/-) visibility, damage bonus, grav and evade (ability2)", false, 5 );
"Gamble at immunity", "If you're REALLY lucky, you'll be immune to bullets (or ultis or wards or skills)!\nUnlucky gamblers are set on fire and can't use shopmenu. (ability3)", false, 4 );
"Gamble for a weapon", "Anything from a knife to a machine gun (level up for more options) (passive)", false, 12 );
"Try the luckydraw", "You could get some GREAT +ultimates (fly, entangle, teleport)\nYou could get some BAD stuff (beacon, disarmed) (ulti)", false, 5 );
The idea is that EVERYTHING is a gamble... You might get the bonus FOR you, or you might get the bonus applied AGAINST you, it's all 50-50. There are two modes to run this races. The first is autogamble mode, where at the start of each round you automatically gamble on everything (it's 50-50 as to whether a particular ability will trigger, and then 50-50 within that as to whether it will be good or bad for you). The second mode is manual, where you can choose which abilities to gamble on.
As you level up, the stakes tend to get higher, either more or longer or stronger or more options. There are quite a lot of buffs / abilities built into this, so I can't really be bothered describing all the possible combinations here!
* CHANGELOG *
0.9.1
- Added a game check to the weapon randomiser ability. It will not load in TF2.
1.0.1
- Fixed a whole bunch of bugs.
- Tested all abilities.
- Implemented a client command that allows toggling between automated gambling of all skills on spawn, or manual gambling using +ability keys.
- Tidied up the client messaging.
While a lot of the code is borrowed (no need to re-invent the wheel), I feel like I've combined it in a new/novel way...
I haven't actually had a chance to test this race thoroughly yet (I'm on hols atm, so not updating my server), however it compiles ok, so figured I'd share it now.
Requires snapshot 880+ to compile / run.
A brief overview:
"Gamble with your health", "You have a chance of getting (+/-) health, regen and vampire (ability)", false, 5
"Gamble with your speed", "You have a chance of getting (+/-) run and fire speed (ability1)", false, 5 );
"Gamble with your self", "You have a chance of getting (+/-) visibility, damage bonus, grav and evade (ability2)", false, 5 );
"Gamble at immunity", "If you're REALLY lucky, you'll be immune to bullets (or ultis or wards or skills)!\nUnlucky gamblers are set on fire and can't use shopmenu. (ability3)", false, 4 );
"Gamble for a weapon", "Anything from a knife to a machine gun (level up for more options) (passive)", false, 12 );
"Try the luckydraw", "You could get some GREAT +ultimates (fly, entangle, teleport)\nYou could get some BAD stuff (beacon, disarmed) (ulti)", false, 5 );
The idea is that EVERYTHING is a gamble... You might get the bonus FOR you, or you might get the bonus applied AGAINST you, it's all 50-50. There are two modes to run this races. The first is autogamble mode, where at the start of each round you automatically gamble on everything (it's 50-50 as to whether a particular ability will trigger, and then 50-50 within that as to whether it will be good or bad for you). The second mode is manual, where you can choose which abilities to gamble on.
As you level up, the stakes tend to get higher, either more or longer or stronger or more options. There are quite a lot of buffs / abilities built into this, so I can't really be bothered describing all the possible combinations here!
* CHANGELOG *
0.9.1
- Added a game check to the weapon randomiser ability. It will not load in TF2.
1.0.1
- Fixed a whole bunch of bugs.
- Tested all abilities.
- Implemented a client command that allows toggling between automated gambling of all skills on spawn, or manual gambling using +ability keys.
- Tidied up the client messaging.


Logged
