Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- beatlenght, (240/bpm/4)
- local bl = (240/140/4)
- --shortplayernumber making commands shorter since 2016! - jousway
- local function spn(com,b1,b2,b3,b4)
- for pn=1,2 do
- local a = _G['P'..pn]
- if a then
- if b4 then
- a[com](a,b1,b2,b3,b4)
- elseif b3 then
- a[com](a,b1,b2,b3)
- elseif b2 then
- a[com](a,b1,b2)
- elseif b1 then
- a[com](a,b1)
- else
- a[com](a)
- end
- end
- end
- end
- --spinning the playerfield
- local function spin(direction,speed)
- if direction == 'Left' then
- spn('linear',(bl*4)/speed)
- spn('rotationy',360)
- spn('linear',0.00001)
- spn('rotationy',0)
- elseif direction == 'Right' then
- spn('linear',(bl*4)/speed)
- spn('rotationy',-360)
- spn('linear',0.00001)
- spn('rotationy',0)
- elseif direction == 'Up' then
- spn('linear',(bl*4)/speed)
- spn('rotationx',-360)
- spn('linear',0.00001)
- spn('rotationx',0)
- elseif direction == 'Down' then
- spn('linear',(bl*4)/speed)
- spn('rotationx',360)
- spn('linear',0.00001)
- spn('rotationx',0)
- elseif direction == 'Clock' then
- spn('linear',(bl*4)/speed)
- spn('rotationz',360)
- spn('linear',0.00001)
- spn('rotationz',0)
- elseif direction == 'CounterClock' then
- spn('linear',(bl*4)/speed)
- spn('rotationz',-360)
- spn('linear',0.00001)
- spn('rotationz',0)
- end
- end
- local function zoom(direction,speed)
- if direction == 'Left' or direction == 'Right' then
- spn('linear',((bl/2)*4)/speed)
- spn('zoomx',0.5)
- spn('linear',((bl/2)*4)/speed)
- spn('zoomx',1)
- elseif direction == 'Up' or direction == 'Down' then
- spn('linear',((bl/2)*4)/speed)
- spn('zoomy',0.5)
- spn('linear',((bl/2)*4)/speed)
- spn('zoomy',1)
- elseif direction == 'Clock' or direction == 'CounterClock' then
- spn('linear',((bl/2)*4)/speed)
- spn('zoom',0.5)
- spn('linear',((bl/2)*4)/speed)
- spn('zoom',1)
- end
- end
- --twitching attack (I dont know a better name)
- local function ImExposed(ry)
- spn('stoptweening')
- spn('rotationy',0)
- spn('linear',bl/5)
- spn('rotationy',ry)
- spn('linear',0.00001)
- spn('rotationy',0)
- end
- --move field
- local function fuckexeisntpublic(rz,ry)
- spn('linear',bl*4)
- spn('rotationz',rz)
- spn('rotationy',ry)
- end
- --vibrate field
- local function SHAKEDAWORLD(ef)
- spn('vibrate')
- spn('effectmagnitude',bl*ef,0,0)
- end
- --borrowing this from ya taro
- local diffs = {0,0}
- local twitch,move,shakeef,spinorzoom
- for pn=1,2 do
- if GAMESTATE:GetCurrentSteps(pn-1) then
- diffs[pn] = GAMESTATE:GetCurrentSteps(pn-1):GetDifficulty()
- end
- if diffs[pn] == 3 then
- twitch = 22.5
- move = 22.5
- shakeef = 16
- spinorzoom = function(direction,speed) zoom(direction,speed) end
- else
- twitch = 67.5
- move = 45
- shakeef = 32
- spinorzoom = function(direction,speed) spin(direction,speed) end
- end
- end
- --this is both a message broadcaster and a function runner
- --if you put {beat,'String'}, then 'String' is broadcast as a message on that beat
- --if you put {beat,function() somecode end}, then function() is run at that beat
- curaction = 1;
- --{beat,thing,persists}
- mod_actions = {
- {0,function()
- spn('zoom',0.1)
- spn('accelerate',bl*28)
- spn('zoom',1)
- end},
- {28,function() SHAKEDAWORLD(shakeef) end},
- {32,function()
- spn('stopeffect')
- fuckexeisntpublic(-16,-move)
- fuckexeisntpublic(16,move)
- fuckexeisntpublic(-move,-move)
- fuckexeisntpublic(move,move)
- fuckexeisntpublic(-16,-move)
- fuckexeisntpublic(16,move)
- fuckexeisntpublic(-move,-move)
- fuckexeisntpublic(move,move)
- fuckexeisntpublic(-16,-move)
- fuckexeisntpublic(16,move)
- fuckexeisntpublic(-move,-move)
- fuckexeisntpublic(move,move)
- fuckexeisntpublic(-16,-move)
- fuckexeisntpublic(16,move)
- spn('decelerate',bl*3)
- spn('rotationy',0)
- spn('zoom',0.2)
- spn('rotationz',45);
- spn('accelerate',bl*3)
- spn('zoom',1)
- spn('rotationz',0);
- end},
- {94,function() SHAKEDAWORLD(shakeef) end},
- {96,function() spn('stopeffect') end},
- {98,function() spinorzoom('Down',6) end},
- {99,function() ImExposed(twitch) end},
- {99.25,function() ImExposed(twitch) end},
- {99.44,function() ImExposed(twitch) end},
- {99.56,function() ImExposed(twitch) end},
- {99.44,function() ImExposed(twitch) end},
- {99.75,function() ImExposed(twitch) end},
- {100.17,function() ImExposed(twitch) end},
- {100.50,function() ImExposed(twitch) end},
- {100.81,function() ImExposed(twitch) end},
- {101.17,function() ImExposed(twitch) end},
- {101.50,function() ImExposed(twitch) end},
- {102,function() ImExposed(-twitch) end},
- {102.50,function() ImExposed(-twitch) end},
- {103,function() ImExposed(-twitch) end},
- {103.50,function() ImExposed(-twitch) end},
- {104,function() ImExposed(-twitch) end},
- {104.25,function() ImExposed(-twitch) end},
- {104.50,function() ImExposed(-twitch) end},
- {105,function() ImExposed(-twitch) end},
- {105.50,function() ImExposed(-twitch) end},
- {106.17,function() ImExposed(twitch) end},
- {106.50,function() ImExposed(twitch) end},
- {106.83,function() ImExposed(twitch) end},
- {107.17,function() ImExposed(twitch) end},
- {107.50,function() ImExposed(twitch) end},
- {107.83,function() ImExposed(twitch) end},
- {108,function() spinorzoom('Left',6) end},
- {109,function() spinorzoom('Down',6) end},
- {110,function() spinorzoom('Up',6) end},
- {111,function() spinorzoom('Right',6) end},
- {112,function() spinorzoom('Left',6) end},
- {113,function() spinorzoom('Up',6) end},
- {114,function() SHAKEDAWORLD(shakeef) end},
- {115,function() spn('stopeffect') ImExposed(twitch) end},
- {115.25,function() ImExposed(twitch) end},
- {115.44,function() ImExposed(twitch) end},
- {115.56,function() ImExposed(twitch) end},
- {115.44,function() ImExposed(twitch) end},
- {115.75,function() ImExposed(twitch) end},
- {116.17,function() ImExposed(twitch) end},
- {116.50,function() ImExposed(twitch) end},
- {116.81,function() ImExposed(twitch) end},
- {117.17,function() ImExposed(twitch) end},
- {117.50,function() ImExposed(twitch) end},
- {118,function() ImExposed(-twitch) end},
- {118.50,function() ImExposed(-twitch) end},
- {119,function() ImExposed(-twitch) end},
- {119.50,function() ImExposed(-twitch) end},
- {120,function() ImExposed(-twitch) end},
- {120.25,function() ImExposed(-twitch) end},
- {120.50,function() ImExposed(-twitch) end},
- {121,function() ImExposed(-twitch) end},
- {121.50,function() ImExposed(-twitch) end},
- {122.17,function() ImExposed(twitch) end},
- {122.50,function() ImExposed(twitch) end},
- {122.83,function() ImExposed(twitch) end},
- {123.17,function() ImExposed(twitch) end},
- {123.50,function() ImExposed(twitch) end},
- {123.83,function() ImExposed(twitch) end},
- {124.50,function() spinorzoom('Right',2) end},
- {128,function() spinorzoom('Down',6) end},
- {129,function() spinorzoom('Up',6) end},
- {131,function() ImExposed(twitch) end},
- {131.25,function() ImExposed(twitch) end},
- {131.44,function() ImExposed(twitch) end},
- {131.56,function() ImExposed(twitch) end},
- {132.13,function() ImExposed(twitch) end},
- {132.44,function() ImExposed(twitch) end},
- {132.75,function() ImExposed(twitch) end},
- {133.17,function() ImExposed(twitch) end},
- {133.50,function() ImExposed(twitch) end},
- {134,function() ImExposed(-twitch) end},
- {134.50,function() ImExposed(-twitch) end},
- {135,function() ImExposed(-twitch) end},
- {135.50,function() ImExposed(-twitch) end},
- {136,function() ImExposed(-twitch) end},
- {136.31,function() ImExposed(-twitch) end},
- {136.50,function() ImExposed(-twitch) end},
- {137.33,function() spinorzoom('Left',8) end},
- {138.13,function() ImExposed(twitch) end},
- {138.38,function() ImExposed(twitch) end},
- {138.58,function() ImExposed(twitch) end},
- {138.88,function() ImExposed(twitch) end},
- {139.13,function() ImExposed(twitch) end},
- {139.38,function() ImExposed(twitch) end},
- {139.58,function() ImExposed(twitch) end},
- {140.50,function()
- spn('decelerate',bl/1.5)
- spn('rotationy',0)
- spn('zoom',0.2)
- spn('rotationz',-45);
- spn('accelerate',bl/1.5)
- spn('zoom',1)
- spn('rotationz',0);
- end},
- {142.25,function() ImExposed(-twitch) end},
- {142.72,function() ImExposed(-twitch) end},
- {143.56,function() ImExposed(-twitch) end},
- {144.25,function() ImExposed(-twitch) end},
- {144.75,function() ImExposed(-twitch) end},
- {145.50,function() ImExposed(-twitch) end},
- {146,function() spinorzoom('Right',8) end},
- {147,function() ImExposed(twitch) end},
- {147.25,function() ImExposed(twitch) end},
- {147.44,function() ImExposed(twitch) end},
- {147.58,function() ImExposed(twitch) end},
- {147.83,function() ImExposed(twitch) end},
- {148.17,function() ImExposed(twitch) end},
- {148.50,function() ImExposed(twitch) end},
- {148.83,function() ImExposed(twitch) end},
- {149.25,function() ImExposed(twitch) end},
- {149.50,function() ImExposed(twitch) end},
- {150,function() ImExposed(-twitch) end},
- {150.50,function() ImExposed(-twitch) end},
- {151,function() ImExposed(-twitch) end},
- {151.50,function() ImExposed(-twitch) end},
- {152,function() ImExposed(twitch) end},
- {152.25,function() ImExposed(twitch) end},
- {152.50,function() ImExposed(twitch) end},
- {153,function() ImExposed(twitch) end},
- {153.50,function() ImExposed(twitch) end},
- {154,function() spinorzoom('Right',4) end},
- {156,function() spinorzoom('Down',4) end},
- {158,function() spinorzoom('CounterClock',1) end},
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement