Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2019
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.74 KB | None | 0 0
  1. --inputs
  2. local render = fatality.render
  3. local config = fatality.config
  4. local menu = fatality.menu
  5. local cvar = csgo.interface_handler:get_cvar( )
  6. local engine_client = csgo.interface_handler:get_engine_client( )
  7. local entity_list = csgo.interface_handler:get_entity_list( )
  8. local global_vars = csgo.interface_handler:get_global_vars( )
  9. local input = fatality.input
  10.  
  11. --screensize
  12. local get_screensize = render:screen_size( )
  13.  
  14. --menu checkbox
  15. local choke_item = config:add_item( "fakelag_choke_indicator", 0.0 )
  16. local choke_pos_x_item = config:add_item( "fakelag_choke_indicator_x", 0.0 )
  17. local choke_pos_y_item = config:add_item( "fakelag_choke_indicator_y", 0.0 )
  18. local choke_checkbox = menu:add_checkbox( "Fakelag choke indicator", "VISUALS", "MISC", "Various", choke_item )
  19.  
  20. local customviewmodel_slider_y = menu:add_slider( "FL Indicator Position", "VISUALS", "MISC", "Various", choke_pos_y_item, 1.0, 1080, 1080.0 )
  21.  
  22. --menu reference
  23. local fakelag_stand = menu:get_reference( "RAGE", "ANTI-AIM", "Standing", "Limit" )
  24. local fakelag_move = menu:get_reference( "RAGE", "ANTI-AIM", "Moving", "Limit" )
  25. local fakelag_jump = menu:get_reference( "RAGE", "ANTI-AIM", "Air", "Limit" )
  26. local silent_aim = menu:get_reference( "RAGE", "AIMBOT", "Aimbot", "Double tap" )
  27.  
  28. --fonts - i was testing some
  29. local fonts = render:create_font( "Smallest Pixel-7", 11, 100, false )
  30.  
  31. --value def
  32. local value1 = 0
  33. local value2 = 0
  34. local value3 = 0
  35.  
  36. local static_value1 = 0
  37. local static_value2 = 0
  38. local static_value3 = 0
  39.  
  40. local bar_value1 = 0
  41. local bar_value2 = 0
  42. local bar_value3 = 0
  43.  
  44.  
  45. --colorpicker code (public)
  46. local colorpicker_item = config:add_item( "fakelag_choke_color", 0.0 )
  47. local colorpicker_combo = menu:add_combo( "Colours", "VISUALS", "MISC", "Various", colorpicker_item )
  48. colorpicker_combo:add_item( "White", colorpicker_item )
  49. colorpicker_combo:add_item( "Dark Red", colorpicker_item )
  50. colorpicker_combo:add_item( "Red", colorpicker_item )
  51. colorpicker_combo:add_item( "Orange", colorpicker_item )
  52. colorpicker_combo:add_item( "Yellow", colorpicker_item )
  53. colorpicker_combo:add_item( "Yellow-Green", colorpicker_item )
  54. colorpicker_combo:add_item( "Green", colorpicker_item )
  55. colorpicker_combo:add_item( "Cyan", colorpicker_item )
  56. colorpicker_combo:add_item( "Light Blue", colorpicker_item )
  57. colorpicker_combo:add_item( "Blue", colorpicker_item )
  58. colorpicker_combo:add_item( "Purple", colorpicker_item )
  59. colorpicker_combo:add_item( "Pink", colorpicker_item )
  60. colorpicker_combo:add_item( "Bright Pink", colorpicker_item )
  61. colorpicker_combo:add_item( "Grey", colorpicker_item )
  62. colorpicker_combo:add_item( "Black", colorpicker_item )
  63. local colorpicker_slider_item = config:add_item( "fakelag_choke_color_opacity", 0.0 )
  64. local colorpicker_slider = menu:add_slider( "Opacity", "VISUALS", "MISC", "Various", colorpicker_slider_item, 1.0, 100.0, 100.0 )
  65.  
  66. --on paint
  67. function on_paint()
  68. --if you arent in game, return
  69. if not engine_client:is_in_game( ) then
  70. return end
  71.  
  72. local local_player = entity_list:get_localplayer( )
  73.  
  74. --if you arent alive, return
  75. if not local_player:is_alive( ) then
  76. return end
  77.  
  78. local get_is_space = 0x20
  79. velocity = local_player:get_var_vector( "CBasePlayer->m_vecVelocity[0]" )
  80. velocity2d = math.ceil( math.sqrt( math.abs( velocity.x ) * math.abs( velocity.x ) + math.abs( velocity.y ) * math.abs( velocity.y ) ) )
  81.  
  82. local slider_float = (colorpicker_slider_item:get_float( ) * 2.55)
  83. local opacity = math.floor(slider_float)
  84. local default_color = csgo.color(255, 255, 255, 255)
  85.  
  86. if colorpicker_item:get_float( ) == 0 then --white
  87. default_color = csgo.color(255, 255, 255, opacity)
  88. elseif colorpicker_item:get_float( ) == 1 then --dark red (maroon)
  89. default_color = csgo.color(128, 0, 0, opacity)
  90. elseif colorpicker_item:get_float( ) == 2 then --red
  91. default_color = csgo.color(255, 0, 0, opacity)
  92. elseif colorpicker_item:get_float( ) == 3 then --orange
  93. default_color = csgo.color(255, 128, 0, opacity)
  94. elseif colorpicker_item:get_float( ) == 4 then --yellow
  95. default_color = csgo.color(255, 255, 0, opacity)
  96. elseif colorpicker_item:get_float( ) == 5 then --yellow-green
  97. default_color = csgo.color(191, 255, 0, opacity)
  98. elseif colorpicker_item:get_float( ) == 6 then --green
  99. default_color = csgo.color(0, 255, 0, opacity)
  100. elseif colorpicker_item:get_float( ) == 7 then --cyan
  101. default_color = csgo.color(0, 255, 255, opacity)
  102. elseif colorpicker_item:get_float( ) == 8 then --light blue
  103. default_color = csgo.color(0, 191, 255, opacity)
  104. elseif colorpicker_item:get_float( ) == 9 then --blue
  105. default_color = csgo.color(0, 0, 255, opacity)
  106. elseif colorpicker_item:get_float( ) == 10 then --purple
  107. default_color = csgo.color(128, 0, 255, opacity)
  108. elseif colorpicker_item:get_float( ) == 11 then --pink
  109. default_color = csgo.color(255, 0, 255, opacity)
  110. elseif colorpicker_item:get_float( ) == 12 then --bright pink
  111. default_color = csgo.color(255, 204, 255, opacity)
  112. elseif colorpicker_item:get_float( ) == 13 then --grey
  113. default_color = csgo.color(128, 128, 128, opacity)
  114. elseif colorpicker_item:get_float( ) == 14 then --black
  115. default_color = csgo.color(0, 0, 0, opacity)
  116. end
  117.  
  118. --sorry for dirty coding right here :P
  119. if silent_aim:get_bool( ) then
  120. value1 = value1 + 0.13
  121. if value1 > static_value1+1 then
  122. value1 = 1
  123. end
  124. value2 = value2 + 0.13
  125. if value2 > static_value2+1 then
  126. value2 = 1
  127. end
  128. value3 = value3 + 0.13
  129. if value3 > static_value3+1 then
  130. value3 = 1
  131. end
  132.  
  133. if fakelag_stand:get_int( )*1 > 5 then
  134. static_value1 = 5
  135. elseif fakelag_stand:get_int( )*1 < 5 then
  136. static_value1 = fakelag_stand:get_int( )*1
  137. end
  138.  
  139. if fakelag_move:get_int( )*1 > 5 then
  140. static_value2 = 5
  141. elseif fakelag_move:get_int( )*1 < 5 then
  142. static_value2 = fakelag_move:get_int( )*1
  143. end
  144.  
  145. if fakelag_jump:get_int( )*1 > 5 then
  146. static_value3 = 5
  147. elseif fakelag_jump:get_int( )*1 < 5 then
  148. static_value3 = fakelag_jump:get_int( )*1
  149. end
  150. else
  151. value1 = value1 + 0.13
  152. if value1 > fakelag_stand:get_int( )*1+1then
  153. value1 = 1
  154. end
  155. value2 = value2 + 0.13
  156. if value2 > fakelag_move:get_int( )*1+1 then
  157. value2 = 1
  158. end
  159. value3 = value3 + 0.13
  160. if value3 > fakelag_jump:get_int( )*1+1 then
  161. value3 = 1
  162. end
  163. static_value1 = fakelag_stand:get_int( )*1
  164. static_value2 = fakelag_move:get_int( )*1
  165. static_value3 = fakelag_jump:get_int( )*1
  166. end
  167.  
  168. bar_value1 = value1*9
  169. bar_value2 = value2*9
  170. bar_value3 = value3*9
  171. local get_screen_size = render:screen_size( )
  172. if choke_item:get_bool( ) then
  173. local indg = bar_value2 / 100
  174.  
  175.  
  176.  
  177. render:indicator( 10, choke_pos_y_item:get_float( ) - 28 ,"FL", true, indg)
  178. --render:rect_fade( 6* 1 + 4.5, choke_pos_y_item:get_float( ) * 1 + 3, 130, 4, csgo.color( 0, 0, 0, 180 ), csgo.color( 0, 0, 0, 180 ), true )
  179.  
  180.  
  181. if velocity2d <= 0 then
  182.  
  183.  
  184. elseif velocity2d > 1 and not input:is_key_down( get_is_space ) then
  185. elseif input:is_key_down( get_is_space ) then
  186. end
  187. end
  188.  
  189. end --end
  190.  
  191. --callbacks
  192. local callbacks = fatality.callbacks
  193. callbacks:add( "paint", on_paint )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement