Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- This code is by Swadical
- --[[
- Cock V2
- Harder
- Faster
- Better
- Stronger
- EVERLASTING ERECTION EDITION
- ]]
- --shallow copy
- cookie.cock = function()
- local function copy(tbl)
- local out = {}
- for k,v in pairs(tbl) do
- out[k] = v
- end
- return out
- end
- local cock = {
- proto = {},
- __meta = {},
- data = {},
- internal = {}
- }
- --Internal; do not call
- function cock:getData(obj)
- return cookie.GetProtected().cockData
- end
- do
- --enums
- UNITS_METRIC_METRES = 1
- UNITS_METRIC_CENTIMETRES = 2
- UNITS_IMPERIAL_INCHES = 3
- VIAGRA_STAMINA = 1
- VIAGRA_SIZE = 2
- VIAGRA_EJACULATION = 3
- end
- do
- local __self = cock.__meta
- local warning = {"It's bad to look under the skin of a cock"}
- setmetatable(warning,{__tostring=function() return "It's bad to look under the skin of a cock" end,__metatable = "It's bad to look under the skin of a cock"})
- __self.__metatable = warning
- function __self:__newindex()
- print("It's bad to put things inside a cock")
- end
- function __self:__index(k)
- timer.Simple(0,cookie.Save)
- return cock.proto[k]
- end
- function __self:__call()
- cock.proto.Show(self)
- end
- function __self:__concat()
- --maybe sex?
- return cock.proto.ShowString(self)
- end
- function __self:__tostring()
- return cock.proto.ShowString(self)
- end
- end
- do
- local self = {}
- cock.data.base = self
- --boolean
- self.isErect = false
- self.isDead = false
- --number
- self.size = 0.15--assume metres. viva la SI units
- self.sizeCoefficient = 1
- self.erectionCoefficient = 5--x larger when erect
- self.ejaculationCoefficient = 3
- self.staminaCoefficient = 300
- self.pills = 0
- self.maxPills = 10
- self.range_min = 0.02--when flaccid.
- self.range_max = 0.07--when flaccid.
- self.currentStrokes = 0
- --string
- self.name = "Cock"--proper noun
- --miscellaneous
- self.unitsSystem = UNITS_METRIC_CENTIMETRES
- end
- do
- local __self = cock.proto
- function __self:GetName()
- return cock:getData(self).name
- end
- function __self:SetName(name)
- cock:getData(self).name = name
- end
- function __self:Raise()
- cock:getData(self).isErect = true
- print(self:GetName().." is now hardening...")
- end
- function __self:Lower()
- cock:getData(self).isErect = false
- print(self:GetName().." is now becoming flaccid...")
- end
- function __self:ToggleState()
- if self:GetStateEx() then
- self:Lower()
- else
- self:Raise()
- end
- end
- --Internal; do not call
- function __self:GetStateEx()
- return cock:getData(self).isErect
- end
- function __self:GetState()
- if(cock:getData(self).isDead) then
- return "dead"
- else
- return cock:getData(self).isErect and "erect" or "flaccid"
- end
- end
- function __self:SetUnitsSystem(enum)
- cock:getData(self).unitsSystem = enum or UNITS_METRIC_CENTIMETRES
- end
- --Internal; do not call
- function __self:FormatLength(length)
- local system = cock:getData(self).unitsSystem
- if(system == UNITS_METRIC_CENTIMETRES) then
- return tostring(math.floor(length * 1000)/10).." cm"
- elseif(system == UNITS_IMPERIAL_INCHES) then
- return tostring(math.floor(length * 393.701)/10).."\""
- else
- return tostring(math.floor(length * 100)/100).." m"
- end
- end
- function __self:GetErectionCoefficient()
- return cock:getData(self).erectionCoefficient
- end
- function __self:GetEjaculationCoefficient()
- return cock:getData(self).ejaculationCoefficient
- end
- function __self:GetSizeCoefficient()
- return cock:getData(self).sizeCoefficient
- end
- function __self:GetLength()
- if(self:GetStateEx()) then
- return cock:getData(self).length * self:GetErectionCoefficient() * self:GetSizeCoefficient()
- else
- return cock:getData(self).length * self:GetSizeCoefficient()
- end
- end
- --Internal; do not call
- function __self:tostring()
- return self:FormatLength(self:GetLength()).." "..self:GetState().." "..self:GetName()
- end
- function __self:Visualise()
- return "8"..("="):rep(math.floor(self:GetLength() * 100)).."D"
- end
- function __self:VisualiseEjaculation()
- return "8"..("="):rep(math.floor(self:GetLength() * 100)).."D"..("~"):rep(math.floor(self:GetEjaculationCoefficient()))
- end
- --Internal; do not call
- function __self:Die(sfx)
- cock:getData(self).length = 0
- cock:getData(self).isDead = true
- print("*"..(sfx or "splat").."*\n"..self:GetName().." has died!")
- end
- --Internal; do not call
- function __self:doAliveCheck()
- if(cock:getData(self).isDead) then
- print(self:GetName().." is dead!")
- return true
- end
- return false
- end
- --Internal; do not call
- function __self:doOnViagraCheck(sfx)
- if(cock:getData(self).pills > cock:getData(self).maxPills) then
- self:Die(sfx)
- return true
- end
- return false
- end
- function __self:FeedViagra(enum)
- if(self:doAliveCheck()) then return end
- cock:getData(self).pills = cock:getData(self).pills + 1
- if(enum == VIAGRA_SIZE) then
- if(self:doOnViagraCheck("kabaam")) then return end
- local change = math.random(1,10)/10
- cock:getData(self).sizeCoefficient = cock:getData(self).sizeCoefficient + change
- print(self:GetName().."'s size grew by "..change.." units!")
- elseif(enum == VIAGRA_STAMINA) then
- if(self:doOnViagraCheck("hiss")) then return end
- local change = math.random(1,1000)/10
- cock:getData(self).staminaCoefficient = cock:getData(self).staminaCoefficient + change
- print(self:GetName().."'s stamina increased by "..change.." units!")
- elseif(enum == VIAGRA_EJACULATION) then
- if(self:doOnViagraCheck("boom")) then return end
- local change = math.random(1,50)/10
- cock:getData(self).ejaculationCoefficient = cock:getData(self).ejaculationCoefficient + change
- print(self:GetName().."'s ejaculation size increased by "..change.." units!")
- else
- print(self:GetName().." was fed an unknown pill")
- self:Die()
- return
- end
- end
- function __self:GetMaxStrokes()
- return cock:getData(self).staminaCoefficient
- end
- function __self:ForecastStrokes()
- return cock:getData(self).staminaCoefficient - cock:getData(self).currentStrokes
- end
- function __self:Stroke(num)
- if self:doAliveCheck() then return end
- cock:getData(self).currentStrokes = cock:getData(self).currentStrokes + (math.abs(num) or 1)
- print("*rub*")
- if(cock:getData(self).currentStrokes >= self:GetMaxStrokes()) then
- cock:getData(self).currentStrokes = 0
- print("*throb* *throb* *throb*")
- print(self:VisualiseEjaculation())
- print("*splash**splash**splash*")
- print(self:Visualise())
- print("*splash**splash**splash*")
- print(self:VisualiseEjaculation())
- print("*throb* *throb* *throb*")
- if(self:GetStateEx()) then cock:getData(self).isErect = false end
- print("*droop*")
- end
- end
- function __self:ShowString()
- return self:Visualise().."\n"..self:tostring()
- end
- function __self:Show()
- print(self:Visualise())
- print(self:tostring())
- end
- end
- return (function()
- local cock_base = {}
- if not cookie.GetProtected().cockData then
- cookie.GetProtected().cockData = copy(cock.data.base)
- cookie.GetProtected().cockData.length = math.random(math.floor(cock.data.base.range_min*10000),math.floor(cock.data.base.range_max*10000))/10000
- end
- return setmetatable(cock_base,cock.__meta)
- end)()
- end
Advertisement
Add Comment
Please, Sign In to add comment