Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local mse = {}
- for i,v in pairs(mods_ease) do
- if v and table.getn(v) > 6 and v[1] and v[2] and v[3] and v[4] and v[5] and v[6] and v[7] then
- if beat >=v[1] then
- if (v[6] == 'len' and beat <=v[1]+v[2]) or (v[6] == 'end' and beat <=v[2]) then
- local strength = v[7](beat - v[1], v[3], v[4] - v[3], v[6] == 'end' and v[2] - v[1] or v[2], v[10], v[11])
- if type(v[5]) == 'string' then
- local modstr = v[5] == 'xmod' and strength..'x' or (v[5] == 'cmod' and 'C'..strength or strength..' '..v[5])
- GAMESTATE:ApplyModifiers('*9999 '..modstr,v[8]);
- elseif type(v[5]) == 'function' then
- v[5](strength)
- end
- table.insert(mse,v)
- elseif (v[9] and ((v[6] == 'len' and beat <=v[1]+v[2]+v[9]) or (v[6] == 'end' and beat <=v[9]))) then
- if type(v[5]) == 'string' then
- local modstr = v[5] == 'xmod' and v[4]..'x' or (v[5] == 'cmod' and 'C'..v[4] or v[4]..' '..v[5])
- GAMESTATE:ApplyModifiers('*9999 '..modstr,v[8]);
- elseif type(v[5]) == 'function' then
- v[5](v[4])
- end
- table.insert(mse,v)
- else
- if type(v[5]) == 'function' then
- v[5](v[4]) -- never trust this mf actually sending v[4] at the end beat if you dont use persist
- end
- end
- else
- table.insert(mse,v)
- end
- else
- SCREENMAN:SystemMessage('Ease Error! (line '..i..' | beat: '.. v[1] .. ' | mod: '.. v[5] ..')');
- end
- end
- mods_ease = mse
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement