cf一键宏设置大全
cf一键宏是类似于外观一样的东西,可让玩家更加轻松的游玩游戏,许多的小伙伴是不是还不清楚一键宏设置有哪些呢?下面小编就给大家带来了一键宏设置大全,感兴趣的小伙伴快来一起看看吧。
1、一键鬼跳
-- 鬼跳按住ctrl+方向键+侧键
if event == "MOUSE_BUTTON_PRESSED" and arg == ghost_jump then
whileIsMouseButtonPressedghost_jump
PressKey"spacebar"
ReleaseKey"spacebar"
-- 鬼跳1.2只需要按住方向键+侧键个人觉得没有自己按ctrl手感好
if event == "MOUSE_BUTTON_PRESSED" and arg == ghost_jump and is_open_up then
whileIsMouseButtonPressedghost_jump
PressKey"spacebar"
PressKey"lctrl"
ReleaseKey"spacebar"
ReleaseKey"lctrl"
2、一键上箱
-- 一键上箱1.0
if event == "MOUSE_BUTTON_PRESSED" and arg == jump_box then
PressKey"spacebar"
ReleaseKey"spacebar"
PressKey"spacebar"
ReleaseKey"spacebar"
PressKey"lctrl"
ReleaseKey"lctrl"
3、一键顺JU
-- 右键瞬狙
if event == "MOUSE_BUTTON_RELEASED" and arg == right_fire_Ju then
--OutputLogMessage"Hello World %fn",
-- 瞬发
PressMouseButton1
ReleaseMouseButton1
-- 切枪
ifchange_gun == 1 then
PressKey"q"
ReleaseKey"q"
PressKey"q"
ReleaseKey"q"
4、usp速点
-- usp连发
if event == "MOUSE_BUTTON_PRESSED" and arg == usp_fire then
-- usp连发压枪
time_sum = 0
move_y = 0
ifusp_push_gunthen
move_y = 3
whileIsMouseButtonPressedusp_fire
MoveMouseRelative0,move_y
PressMouseButton1
usp_speed_end = usp_speed + 10
time_one = ,usp_speed_end
Sleeptime_one
ReleaseMouseButton1
time_two = ,usp_speed_end
Sleeptime_two
time_sum = time_sum + time_one + time_two
iftime_sum 300
move_y = 0
5、雷神三连发
-- 雷神三连发
if event == "MOUSE_BUTTON_PRESSED" and arg == tree_constant then
-- 下面注意,判断是否按压的值和正在按压的值不同,分别是132和123value
--OutputLogMessage"Hello World %dn",2007
PressMouseButton1
ReleaseMouseButton1
6、雷神压枪
-- 雷神压枪2.0
if event == "MOUSE_BUTTON_PRESSED" and arg == force_gun_m4 and is_open_up then
move_y = 3 --纵向移动坐标
move_x = 0 --横向移动坐标
time_all = 0 --枪口停止压枪阀
--last_x_pos = 0 --上次的x坐标
--last_y_pos = 0 --上次的y坐标
--last_x_pos ,last_y_pos = GetMousePosition
--循环压枪
whileIsMouseButtonPressedforce_gun_m4
if time_all 60
--前2发不压
move_y = 0
time_one = ,10
Sleeptime_one
MoveMouseRelativemove_x,move_y
time_two = ,10
Sleeptime_two
time_all = time_all + time_one + time_two
if time_all 360
--达到压枪阈值纵坐标停止运动
move_y = 0
-- 横坐标开始运动
--current_x_pos,current_y_pos = GetMousePosition --获取当前鼠标坐标
--如果当前鼠标移动,自动像反方向压枪
move_y = 3
7、ak火麒麟压枪-- AK压枪
if event == "MOUSE_BUTTON_PRESSED" and arg == force_gun_ak and is_open_up then
move_y = 4 --纵向移动坐标
move_x = 0 --横向移动坐标
time_all = 0 --枪口停止压枪阀
--last_x_pos = 0 --上次的x坐标
--last_y_pos = 0 --上次的y坐标
--last_x_pos ,last_y_pos = GetMousePosition --获取初始位置
--OutputLogMessage"%d,%dn",last_x_pos,last_y_pos
--sum_move_y = 0 --y轴移动全部距离
--循环压枪
whileIsMouseButtonPressedforce_gun_ak
if time_all 40
--单点不压
move_y = 0
--time_one = ,11
--Sleeptime_one
MoveMouseRelativemove_x,move_y
--sum_move_y = sum_move_y + move_y --计算移动后的距离
time_two = ,22
Sleeptime_two
time_all = time_all + time_two
if time_all 430
--达到压枪阈值纵坐标停止运动
move_y = 0
-- 横坐标开始运动
--current_x_pos,current_y_pos = GetMousePosition --获取当前鼠标坐标
--如果当前鼠标移动,自动像反方向压枪
move_y = 4
--sum_move_y = 0 - sum_move_y
--OutputLogMessage"%dn",sum_move_y
--MoveMouseRelative0,sum_move_y --位置回执
--last_x_pos ,last_y_pos = GetMousePosition --获取初始位置
--OutputLogMessage"%d,%dn",last_x_pos,last_y_pos