Miracle Meow macro code
Miracle Meow macro code
---- can use "lalt", "ralt", "alt" "lshift", "rshift", "shift" "lctrl", "rctrl",
"ctrl"
-- if auto_mode = true ,the guns need to switch automatic shooting mode,except m16
single.
local recoil_table = {}
recoil_table["akm"] = {
basic={60.5,40.5,47.5,51.0,55.5, 64.0,67.5,69.5,70.5,71.0,
72.5,75.6,76.3,77.0,78.9,
80.6,70.5,},
basictimes = 1.01,
full={60.5,40.5,47.5,51.0,54.5, 64.0,67.5,69.0,70.5,71.0, 71.5,75.6,76.3,77.0,78.9,
80.6,70.5,},
fulltimes = 1.01*0.75,
quadruple={60.5,40.5,47.5,51.0,54.5, 64.0,67.5,69.0,70.5,71.0,
71.5,75.6,76.3,77.0,78.9,
80.6,70.5,},
quadrupletimes = 4*1.01,
fullof4x={60.5,40.5,47.5,51.0,54.5, 64.0,67.5,69.0,70.5,71.0,
71.5,75.6,76.3,77.0,78.9,
80.6,70.5,},
fullof4xtimes = 4*1*0.75,
speed = 100,
maxbullets = 40,
holdbreathtimes = 1.25,
fullholdbreathtimes = 1.25,
}
recoil_table["m416"] = {
basic={49.5,36.0,41.9,44.3,49.4, 51.1,53.4,53.9,54.1,55.6,
56.5,58.5,62.3,60.4,60.8,
60.3,},
basictimes = 1.08,
full={50.2,39.0,41.3,43.4,48.0, 50.0,52.2,52.5,53.5,50.5, 51.5,53.8,59.6,59.8,60.8,
60.3,},
fulltimes = 1.08*0.75,
quadruple={50.2,39.0,41.3,43.4,48.0, 50.0,52.2,52.5,53.5,50.5,
51.5,53.8,59.6,59.8,60.8,
60.3,},
quadrupletimes = 4*1*0.8,
fullof4x={50.2,39.0,41.3,43.4,48.0, 50.0,52.2,52.5,53.5,50.5,
51.5,53.8,59.6,59.8,60.8,
60.3,},
fullof4xtimes = 4*1.08*0.75,
speed = 90,
maxbullets = 40,
holdbreathtimes = 1.25,
fullholdbreathtimes = 1.25,
}
recoil_table["scarl"] = {
basic={59.0,28.5,33.5,42.0,45.9, 47.9,50.0,54.2,56.8,57.4,
57.9,57.5,57.7,58.8,59.4},
basictimes = 1,
full={59.0,28.5,33.5,42.0,45.9, 47.9,50.0,54.2,56.8,57.4,
57.9,57.5,57.7,58.8,59.4},
fulltimes = 1*0.75,
quadruple={59.0,28.5,33.5,42.0,45.9, 47.9,50.0,54.2,56.8,57.4,
57.9,57.5,57.7,58.8,59.4},
quadrupletimes = 4*1,
fullof4x={59.0,28.5,33.5,42.0,45.9, 47.9,50.0,54.2,56.8,57.4,
57.9,57.5,57.7,58.8,59.4},
fullof4xtimes = 4*1*0.75,
speed = 100,
maxbullets = 40,
holdbreathtimes = 1.25,
fullholdbreathtimes = 1.25,
}
recoil_table["qbz"] = {
basic={52.0,25.0,28.7,38.2,42.4, 44.0,46.0,46.0,45.6,45.1,
48.0,51.3,52.0,54.0,56.0, 59},
basictimes = 1.06,
full={51.2,24.5,28.7,38.2,42.4, 43.3,45.2,45.2,45.6,45.1,
48.0,50.3,51.0,53.0,55.0},
fulltimes = 1.06*0.75,
quadruple={51.2,24.5,28.7,38.2,42.4, 43.3,45.2,45.2,45.6,45.1,
48.0,50.3,51.0,53.0,55.0},
quadrupletimes = 4*1.06,
fullof4x={51.2,24.5,28.7,38.2,42.4, 43.3,45.2,45.2,45.6,45.1,
48.0,50.3,51.0,53.0,55.0},
fullof4xtimes = 4*1.06*0.75,
speed = 90,
maxbullets = 40,
holdbreathtimes = 1.25,
fullholdbreathtimes = 1.25,
}
recoil_table["ump9"] = {
basic={33.5,19.2,30.5,35.7,39.3, 39.0,38.7,40.2,41.8,44.0,
43.8,43.8,46.5,44.5,47.5},
basictimes = 1.05,
full={33.5,19.2,30.5,35.7,39.3, 39.0,38.7,40.2,41.8,44.0,
43.8,43.8,46.5,44.5,47.5},
fulltimes = 0.75*0.9,
quadruple={33.5,19.2,30.5,35.7,39.3, 39.0,38.7,40.2,41.8,44.0,
43.8,43.8,46.5,44.5,47.5},
quadrupletimes = 4*1*0.97,
fullof4x={33.5,19.2,30.5,35.7,39.3, 39.0,38.7,40.2,41.8,44.0,
43.8,43.8,46.5,44.5,47.5},
fullof4xtimes = 4*0.75,
speed = 90,
maxbullets = 40,
holdbreathtimes = 1.25,
fullholdbreathtimes = 1.25,
}
recoil_table["uzi"] = {
basic={16.0,16.0,16.0,17.6,18.6, 20.4,22.4,22.9,25.8,27.6,
32.6,36.9,38.0,38.8,39.8,40.5},
basictimes = 1.15,
full={16.0,16.0,16.0,17.6,18.6, 20.4,22.4,22.9,25.8,27.6,
32.6,36.9,38.0,38.8,39.8,40.5},
fulltimes = 1.15*0.75*0.75,
quadruple={16.0,16.0,16.0,17.6,18.6, 20.4,22.4,22.9,25.8,27.6,
32.6,36.9,38.0,38.8,39.8,40.5},
quadrupletimes = 1.15,
fullof4x={16.0,16.0,16.0,17.6,18.6, 20.4,22.4,22.9,25.8,27.6,
32.6,36.9,38.0,38.8,39.8,40.5},
fullof4xtimes = 1.15*0.75*0.75,
speed = 48,
maxbullets = 35,
holdbreathtimes = 1.25,
fullholdbreathtimes = 1.25,
}
recoil_table["m16a4"] = {
basic={41.9,36.5,37.1,50.5,55.9, 62.9,66.9,69.5,69.5,70.0, 71.2,},
basictimes = 1.05,
full={41.9,36.5,37.1,50.5,55.9, 62.9,66.9,69.5,69.5,70.0, 71.2,},
fulltimes = 1*0.77,
quadruple={41.9,36.5,37.1,50.5,55.9, 62.9,66.9,69.5,69.5,70.0, 71.2,},
quadrupletimes = 1*4,
fullof4x={41.9,36.5,37.1,50.5,55.9, 62.9,66.9,69.5,69.5,70.0, 71.2,},
fullof4xtimes = 4*1*0.75,
speed = 75,
maxbullets = 40,
clickspeed = 40,
holdbreathtimes = 1.25,
fullholdbreathtimes = 1.25,
}
recoil_table["none"] = {
basic={0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0},
basictimes = 1,
full={0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
,0},
fulltimes = 1,
quadruple={0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0},
quadrupletimes = 1,
fullof4x={0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
,0,0,0},
fullof4xtimes = 1,
speed = 30,
maxbullets = 40,
clickspeed = 40,
holdbreathtimes = 1.25,
fullholdbreathtimes = 1.25,
}
--------------------------------------------------------------------------
---------------- Function ------------------------------
--------------------------------------------------------------------------
function convert_sens(unconvertedSens)
return 0.002 * math.pow(10, unconvertedSens / 50)
end
function calc_sens_scale(sensitivity)
return convert_sens(sensitivity)/convert_sens(50)
end
function recoil_mode()
if not IsKeyLockOn(mode_switch_key) then
if IsKeyLockOn(full_mode_key) and full_mode then
return "full";
else
return "basic";
end
end
if IsKeyLockOn(mode_switch_key) then
if IsKeyLockOn(full_mode_key) and full_mode then
return "fullof4x"
else
return "quadruple"
end
end
end
function single_value(value)
return 10 * math.floor(( value / 10 ) + 0.9)
end
function recoil_value(_weapon,_duration)
local _mode = recoil_mode()
local step = (math.floor(_duration/recoil_table[_weapon]["speed"])) + 1
if step > #recoil_table[_weapon][_mode] then
step = #recoil_table[_weapon][_mode]
end
if obfs_mode then
local coefficient = interval_ratio * ( 1 + random_seed * math.random())
weapon_intervals = math.floor(coefficient * weapon_speed)
end
-- OutputLogMessage("weapon_intervals = %s\n", weapon_intervals)
recoil_recovery = weapon_recoil
recoil_times = all_recoil_times * 0.7 / vertical_sensitivity
-- issues/3
if IsMouseButtonPressed(2) then
recoil_recovery = recoil_recovery / target_scale
elseif recoil_mode() == "basic" then
recoil_recovery = recoil_recovery / scope_scale
elseif recoil_mode() == "full" then
recoil_recovery = recoil_recovery / scope_scale
elseif recoil_mode() == "quadruple" then
recoil_recovery = recoil_recovery / scope4x_scale
elseif recoil_mode() == "fullof4x" then
recoil_recovery = recoil_recovery / scope4x_scale
end
return weapon_intervals,recoil_recovery,weapon_clicktime,weapon_bullets
end
--------------------------------------------------------------------------
---------------- OnEvent ------------------------------
--------------------------------------------------------------------------