Partycat
08-12-2004, 17:50
In response to the other thread I made a SHero slot machine.
Win XP. Oh boy.
I don't know how to do specific amounts of XP. I used server command sh_addxp for a hero, but it multiplies it for the level.
It's good, but people seem to be winning it too often heh, may have to 'rig' the dice.
Edit: Greatly lowered win values.
------------
Small updated to make it work again
Now Requires SH 1.20 or above...
Note: sl_slotcost cvar is not actually used even though it was in the code.
This is how it works:
Cost of 1 slot play = XPGIVEN/LTXPGIVEN of users level x 5
1X Win = XPGIVEN/LTXPGIVEN of users level x 5 (break even, what you spent is returned)
2X Win = XPGIVEN/LTXPGIVEN of users level x 10
3X Win = XPGIVEN/LTXPGIVEN of users level x 15
Jackpot Win = XPGIVEN/LTXPGIVEN of users level x 30
(XPGIVEN/LTXPGIVEN is the amount of XP given for fragging the User... so if you play the slots it is the amount of XP gained for fragging you that is factored)
Win XP. Oh boy.
I don't know how to do specific amounts of XP. I used server command sh_addxp for a hero, but it multiplies it for the level.
It's good, but people seem to be winning it too often heh, may have to 'rig' the dice.
Edit: Greatly lowered win values.
------------
Small updated to make it work again
Now Requires SH 1.20 or above...
Note: sl_slotcost cvar is not actually used even though it was in the code.
This is how it works:
Cost of 1 slot play = XPGIVEN/LTXPGIVEN of users level x 5
1X Win = XPGIVEN/LTXPGIVEN of users level x 5 (break even, what you spent is returned)
2X Win = XPGIVEN/LTXPGIVEN of users level x 10
3X Win = XPGIVEN/LTXPGIVEN of users level x 15
Jackpot Win = XPGIVEN/LTXPGIVEN of users level x 30
(XPGIVEN/LTXPGIVEN is the amount of XP given for fragging the User... so if you play the slots it is the amount of XP gained for fragging you that is factored)