Gmod Tower Download
- ENT.Type = 'anim'
- ENT.Model = Model( 'models/gmod_tower/casino/spinner_base.mdl' )
- ENT.ModelSpinner = Model( 'models/gmod_tower/casino/spinner_wheel.mdl' )
- ENT.ModelPaddle = Model( 'models/gmod_tower/casino/spinner_paddle.mdl' )
- ENT.SoundClicker = Sound( 'GModTower/casino/spinner_click.wav' )
- ENT.Cost = 100
- ENT.NumNotches = 16
- ENT.PaddleLength = 6.5
- ENT.NotchSize = math.deg( (2*math.pi) ) / ENT.NumNotches
- ENT.SpinDuration = 10
- ENT.ExtraSettleTime = 20
- ENT.SPIN = {
- IDLE = 0,
- STARTING = 1,
- SLOWING = 2,
- }
- ENT.OddsEqualize = 10 --Increase uniformity in odds calculations
- ENT.SLOTS = {
- --{<name>, <odds>}
- --odds: how many re-rolls it takes to land on this item
- {'Absolutely Nothing', 4},
- {'StarFox Trophy', 21, 'trophy_starfox'},
- {'Slappers', 16, 'slappers'},
- {'iMac', 15, 'imac'},
- {'1 GMC', 3},
- {'Playable Piano', 18, 'instrument_piano'},
- {'500 GMC', 8},
- {'Sunabouzu Shrine', 20, 'sunshrine'},
- {'Hula Doll', 4, 'huladoll'},
- {'Rave Ball', 19, 'rave_ball'},
- {'1500 GMC', 15},
- {'Five Catsacks', 10, 'mysterycatsack', 5},
- {'100 GMC', 6},
- {'Random Holiday Item', 20, {
- 'sack_plushie',
- 'snowman',
- 'candycane',
- 'stocking',
- 'christmastree',
- 'christmastreesimple',
- 'turkeydinnerthanks',
- 'scarytoyhouse',
- 'gravestone',
- 'candybucket',
- 'cauldron',
- 'toyspider',
- 'toytraincart'
- } },
- {'Fireworks', 6, {
- 'fwork_blossom',
- 'fwork_fountain',
- 'fwork_multi',
- 'fwork_palm',
- 'fwork_ring',
- 'fwork_rocket',
- 'fwork_spinner',
- 'fwork_spinrocket',
- 'fwork_wine',
- 'fwork_screamer',
- 'fwork_ufo',
- 'fwork_firefly'
- } },
- {'Backpack', 7, 'backpack'},
- }
- ENT.GMCPayouts = {
- [5] = 1,
- [7] = 500,
- [11] = 1500,
- [13] = 100,
- }
- function ENT:SetupDataTables()
- self:NetworkVar( 'Float', 0, 'SpinTime' )
- self:NetworkVar( 'Int', 0, 'State' )
- self:NetworkVar( 'Int', 1, 'Target' )
- self:NetworkVar( 'Entity', 1, 'User' )
- end
- function ENT:CanUse( ply )
- if IsValid( ply._Spinning ) then return false end
- if self:GetState() self.SPIN.IDLE then
- return true, 'SPIN'
- end
- end
- ImplementNW() -- Implement transmit tools instead of DTVars
- -Doctor Slippy-
How To Win On Slot Machines
Spencer on Casino Games. It would be cool if there was tournament tables that required you to stay on the table to lose all your chips, or to win a large pot. It should warn the player that if they are disconnected there chips will be lost, that way people don't disconnect when there losing.