Guest User

exense

a guest
May 31st, 2021
1,231
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 46.57 KB | None | 0 0
  1. const menu = function() {
  2. const f = UI.GetValue('Script items', 'Select Tab');
  3. aa = f == 0,
  4. rage = f == 1,
  5. vis = f == 2,
  6. clr = f == 3;
  7.  
  8. UI.SetEnabled("Custom Anti-aimbot angles", true && aa);
  9. UI.SetEnabled("SCRIPT ITEMS", "Freestand Desync", aa)
  10. UI.SetEnabled("SCRIPT ITEMS", "Override minimum DMG key", rage);
  11. UI.SetEnabled("SCRIPT ITEMS", "Minimum damage", rage);
  12. UI.SetEnabled("SCRIPT ITEMS", "Jump scout/revolver hitchance", rage);
  13. UI.SetEnabled("SCRIPT ITEMS", "Hitchance", rage);
  14. UI.SetEnabled("SCRIPT ITEMS", "FPS Boost", rage);
  15. UI.SetEnabled("SCRIPT ITEMS", "DT Peek Helper [SSG08 & AWP]", rage);
  16. UI.SetEnabled("SCRIPT ITEMS", "Safe Points For AWP", rage);
  17. UI.SetEnabled("SCRIPT ITEMS", "Fix zoom sensitivity", rage);
  18. UI.SetEnabled("SCRIPT ITEMS", "Aspect Ratio", vis);
  19. UI.SetEnabled("SCRIPT ITEMS", "Style Indicators", vis);
  20. UI.SetEnabled("SCRIPT ITEMS", "Indicators", vis);
  21. UI.SetEnabled("SCRIPT ITEMS", "Watermark Icons", vis);
  22. UI.SetEnabled("SCRIPT ITEMS", "Show ping enemy", rage);
  23. UI.SetEnabled("Script items", "Watermark Color", clr)
  24. UI.SetEnabled("Script items", "Hotkeys color", clr)
  25. UI.SetEnabled("Script items", "FPS Color", clr)
  26. UI.SetEnabled("Script items", "MS & HZ Color", clr)
  27. UI.SetEnabled("Script items", "FL Color", clr)
  28. UI.SetEnabled("Script items", "Spectator color", clr);
  29. }
  30. UI.AddDropdown('Select Tab', ['Anti-Aim', 'Rage', 'Visuals', 'Colors'])
  31. UI.AddCheckbox("Custom Anti-aimbot angles");
  32. UI.AddDropdown("Pitch", ["Off", "Down", "Zero", "Up"]);
  33. UI.AddDropdown("Yaw base", ["Local view", "At targets"]);
  34. UI.AddCheckbox("At Targets on Air");
  35. UI.AddSliderInt("Yaw", -180, 180);
  36. UI.AddDropdown("Yaw jitter", ["Off", "Offset"]);
  37. UI.AddSliderInt("Jitter", -180, 180);
  38. UI.AddDropdown("Body yaw", ["Default", "Static", "Jitter"]);
  39. UI.AddMultiDropdown("Jitter only", ["Stand", "Walk", "Move", "Air", "Low delta"]);
  40. UI.AddSliderInt("Jitter offset", 0, 60);
  41. UI.AddCheckbox("Jitter LBY");
  42. UI.AddSliderInt("Jitter flip LBY", 0, 60);
  43. UI.AddSliderInt("Jitter speed", 0, 35);
  44. UI.AddSliderInt("LBY Value", 0, 60);
  45. UI.AddSliderInt("Fake Value", 0, 60);
  46. UI.AddSliderInt("Real Value", 0, 60);
  47. UI.AddCheckbox("Low delta on slow-mo");
  48. UI.AddDropdown("Freestand Desync", ["Off", "Peek Real", "Peek Fake"])
  49. UI.AddHotkey("Override minimum DMG key");
  50. UI.AddSliderInt("Minimum damage", 1, 130);
  51. UI.AddCheckbox('Jump scout/revolver hitchance');
  52. UI.AddSliderInt('Hitchance', 0, 100);
  53. UI.AddCheckbox("FPS Boost");
  54. UI.AddCheckbox("DT Peek Helper [SSG08 & AWP]");
  55. UI.AddCheckbox( "Safe Points For AWP" );
  56. UI.AddCheckbox("Fix zoom sensitivity");
  57. UI.AddDropdown("Style Indicators", ["GameSense", "Standart"]);
  58. UI.AddMultiDropdown("Indicators", ["Keybinds", "Spectators", "Watermark", "FL Indicator","FPS Indicator","MS Indicator", "Fake Indicator"]);
  59. UI.AddDropdown("Watermark Icons", ["Onetap","Cogwheel","JS Code", "Performance"])
  60. UI.AddSliderFloat("Aspect Ratio",1.0,2.0);
  61. UI.AddColorPicker("Watermark Color");
  62. UI.AddColorPicker("Hotkeys color");
  63. UI.AddColorPicker("Spectator color");
  64. UI.AddColorPicker("FPS Color");
  65. UI.AddColorPicker("MS & HZ Color");
  66. UI.AddColorPicker("FL Color");
  67. UI.AddCheckbox("Show ping enemy");
  68.  
  69. Cheat.RegisterCallback('Draw', 'menu')
  70.  
  71. function roundstart()
  72. {
  73. Cheat.PrintChat("CFG AND JS BY ENDLESS" + "\n");
  74. Cheat.PrintChat("https://vk.com/cfgshop_endless" + "\n");
  75. }
  76. Cheat.RegisterCallback("round_start", "roundstart")
  77.  
  78. var screen_size = Global.GetScreenSize();
  79.  
  80. var logs = [];
  81.  
  82. const log = function(text, time, alpha, color){
  83. this.text = text
  84. this.time = time
  85. this.alpha = alpha
  86. this.color = color
  87. }
  88.  
  89. const hitboxes = ["generic", "head", "chest", "stomach", "left arm", "right arm", "left leg", "right leg", "body"];
  90. const getHitbox = function(i){
  91. return hitboxes[i] || "Generic"
  92. },
  93. hit_logs1 = function(){
  94. var uid = Entity.GetEntityFromUserID(Event.GetInt("userid"));
  95. var attacker = Entity.GetEntityFromUserID(Event.GetInt("attacker"));
  96. var text = Entity.GetName(uid) + " for -" + Event.GetInt("dmg_health") + " in " + getHitbox(Event.GetInt("hitgroup")) + " (" + Event.GetInt("health") + ")";
  97. col = Event.GetInt("health") > 0 ? 1 : 0
  98.  
  99. if(Entity.IsLocalPlayer(attacker) && attacker != uid){
  100. logs.push(new log(text, Globals.Tickcount(), 255, col))
  101. }
  102. }
  103. logdraw1 = function(){
  104. var font = Render.AddFont("Calibri", 8, 100);
  105. for (var i in logs) {
  106. x = screen_size[0] / 2;
  107. y = screen_size[1] / 2 + 50;
  108. color = logs[i].color > 0 ? [255, 255, 255, logs[i].alpha] : [200, 0, 0, logs[i].alpha];
  109. Render.StringCustom(x + 1, y + 1 + (i * 11), 1, logs[i].text, [0, 0, 0, logs[i].alpha], font);
  110. Render.StringCustom(x, y + (i * 11), 1, logs[i].text, color, font);
  111. if (logs[i].time + 250 < Globals.Tickcount())
  112. logs[i].alpha -= Globals.Frametime() * 600;
  113. if (logs[i].alpha < 0)
  114. logs.shift();
  115. }
  116. };
  117.  
  118. var old = 0;
  119. const Inair = function () {
  120. if (Entity.GetProp(Entity.GetLocalPlayer(), 'CBasePlayer', 'm_hGroundEntity')) {
  121. return true
  122. } else {
  123. return false
  124. }
  125. },
  126. get_velocity = function(index) {
  127. const velocity = Entity.GetProp(index, "CBasePlayer", "m_vecVelocity[0]");
  128. return Math.sqrt(velocity[0] * velocity[0] + velocity[1] * velocity[1]);
  129. },
  130. jitte = function (f, s, fl) {
  131. if ((Globals.Tickcount() - old) > s) {
  132. if (UI.GetValue("Script items", f) !== 60)
  133. UI.SetValue("Script items", f, 60);
  134. else
  135. UI.SetValue("Script items", f, fl);
  136. old = Globals.Tickcount();
  137. }
  138. };
  139. const visible = function(){
  140. antiaim = UI.GetValue("Custom Anti-aimbot angles");
  141. yjit = UI.GetValue("Yaw jitter");
  142. byaw = UI.GetValue("Body yaw");
  143. bjit = UI.GetValue("Jitter only");
  144. sjit = UI.GetValue("Jitter LBY");
  145. UI.SetEnabled("Pitch", true && antiaim && aa);
  146. UI.SetEnabled("Yaw base", true && antiaim && aa);
  147. UI.SetEnabled("At Targets on Air", true && antiaim && aa);
  148. UI.SetEnabled("Yaw", true && antiaim && aa);
  149. UI.SetEnabled("Yaw jitter", true && antiaim && aa);
  150. UI.SetEnabled("Jitter", true && antiaim && yjit && aa);
  151. UI.SetEnabled("Body yaw", true && antiaim && aa);
  152. UI.SetEnabled("Jitter only", true && antiaim && byaw == 2 && aa);
  153. UI.SetEnabled("Jitter offset", true && antiaim && byaw == 2 && bjit && aa);
  154. UI.SetEnabled("Jitter LBY", true && antiaim && byaw == 1 && aa);
  155. UI.SetEnabled("Jitter flip LBY", true && antiaim && byaw == 1 && sjit && aa);
  156. UI.SetEnabled("Jitter speed", true && antiaim && byaw == 1 && sjit && aa);
  157. UI.SetEnabled("LBY Value", true && antiaim && byaw == 1 && aa);
  158. UI.SetEnabled("Fake Value", true && antiaim && byaw == 1 && aa);
  159. UI.SetEnabled("Real Value", true && antiaim && byaw == 1 && aa);
  160. UI.SetEnabled("Low delta on slow-mo", true && antiaim && aa);
  161. }
  162.  
  163. var orig_antiaim = true;
  164. var flip_aa = false;
  165. var last = 0;
  166. const antiaim = function(){
  167. var vel = get_velocity(Entity.GetLocalPlayer());
  168. var duck = (Entity.GetProp(Entity.GetLocalPlayer(), "CBasePlayer", "m_flDuckAmount") > 0.8);
  169. var inverter = UI.IsHotkeyActive("Anti-Aim", "Fake angles", "Inverter");
  170. var slowwalk = UI.IsHotkeyActive("Anti-Aim", "Extra", "Slow walk");
  171. var fd = UI.IsHotkeyActive("Anti-Aim", "Extra", "Fake duck");
  172. var dt = UI.IsHotkeyActive("Rage", "Exploits", "Doubletap");
  173. var hs = UI.IsHotkeyActive("Rage", "Exploits", "Hide shots");
  174. var air = Inair();
  175. //getactive
  176. var enableaa = UI.GetValue("Custom Anti-aimbot angles");
  177. var pitch = UI.GetValue("Pitch");
  178. var ybase = UI.GetValue("Yaw base");
  179. var targetair = UI.GetValue("At Targets on Air");
  180. var yaw = UI.GetValue("Yaw");
  181. var yjit = UI.GetValue("Yaw jitter");
  182. var jit = UI.GetValue("Jitter");
  183. var byaw = UI.GetValue("Body yaw");
  184. var bjit = UI.GetValue("Jitter only");
  185. var joffset = UI.GetValue("Jitter offset");
  186. var sjite = UI.GetValue("Jitter LBY");
  187. var spjit = UI.GetValue("Jitter speed");
  188. var fljit = UI.GetValue("Jitter flip LBY");
  189. var lowdelta = UI.GetValue("Low delta on slow-mo");
  190. //getvalue
  191. var st_bfake = UI.GetValue("Fake Value");
  192. var st_breal = UI.GetValue("Real Value");
  193. var st_blby = UI.GetValue("LBY Value");
  194. //flipper
  195. var sim = Globals.Curtime() - Entity.GetProp(Entity.GetLocalPlayer(), "CBaseEntity", "m_flSimulationTime")
  196. if (last > sim)
  197. {
  198. flip_aa = !flip_aa
  199. }
  200. last = sim
  201. //original antiaim
  202. if (orig_antiaim){
  203. var untrusted_cache = UI.GetValue("Misc", "PERFOMANCE & INFORMATION", "Information", "Restrictions");
  204. var pitch_cache = UI.GetValue("Anti-Aim", "Extra", "Pitch");
  205. var yaw_base_cache = UI.GetValue("Anti-Aim", "Rage Anti-Aim", "At targets");
  206. var yaw_cache = UI.GetValue("Anti-Aim", "Rage Anti-Aim", "Yaw offset");
  207. var jitter_cache = UI.GetValue("Anti-Aim", "Rage Anti-Aim", "Jitter offset");
  208. var body_yaw_cache = UI.GetValue("Anti-Aim", "Fake angles", "LBY mode");
  209. orig_antiaim = false;
  210. }
  211. var target_chache = UI.SetValue("Anti-Aim", "Rage Anti-Aim", "At targets");
  212. //Targets on Air
  213. if (targetair){
  214. UI.SetValue("Anti-Aim", "Rage Anti-Aim", "At targets", false);
  215. UI.SetValue("Anti-Aim", "Rage Anti-Aim", "At targets", air);
  216. } else {
  217. UI.SetValue("Anti-Aim", "Rage Anti-Aim", "At targets", target_chache);
  218. UI.SetValue("Anti-Aim", "Rage Anti-Aim", "At targets", ybase);
  219. }
  220. //custom antiaim
  221. if (enableaa){
  222. AntiAim.SetOverride(1);
  223. if (pitch !== 1){
  224. UI.SetValue("Misc", "PERFOMANCE & INFORMATION", "Information", "Restrictions", 0);
  225. }else{
  226. UI.SetValue("Misc", "PERFOMANCE & INFORMATION", "Information", "Restrictions", 1);
  227. }
  228. pit = pitch !== 0 ? pitch + 1 : 0;
  229. jitter = yjit ? jit : 0
  230. normal_lby = !(dt || hs) ? (inverter ? -60 : 60) : 0
  231. UI.SetValue("Anti-Aim", "Extra", "Pitch", pit);
  232. UI.SetValue("Anti-Aim", "Rage Anti-Aim", "Yaw offset", yaw);
  233. UI.SetValue("Anti-Aim", "Rage Anti-Aim", "Jitter offset", jitter);
  234. AntiAim.SetFakeOffset(0);
  235. AntiAim.SetRealOffset(inverter ? 60 : -60);
  236. AntiAim.SetLBYOffset(normal_lby);
  237.  
  238. if (byaw == 2){
  239. if(bjit){
  240. AntiAim.SetLBYOffset(0);
  241. AntiAim.SetFakeOffset(0);
  242. }
  243. if(bjit & (1 << 0) && vel <= 1){
  244. AntiAim.SetRealOffset(flip_aa ? joffset : -joffset);
  245. }
  246. if(bjit & (1 << 1) && vel <= 124 && !air){
  247. AntiAim.SetRealOffset(flip_aa ? joffset : -joffset);
  248. }
  249. if(bjit & (1 << 2) && vel >= 125 && !air){
  250. AntiAim.SetRealOffset(flip_aa ? joffset : -joffset);
  251. }
  252. if(bjit & (1 << 3) && air){
  253. AntiAim.SetRealOffset(flip_aa ? joffset : -joffset);
  254. }
  255. }
  256. if (byaw == 1){
  257. var p = sjit ? jitte("LBY Value", spjit, fljit) : "";
  258. AntiAim.SetFakeOffset(inverter ? st_bfake : -st_bfake);
  259. AntiAim.SetRealOffset(inverter ? st_breal : -st_breal);
  260. AntiAim.SetLBYOffset(inverter ? -st_blby : st_blby);
  261. }
  262. //lowdelta
  263. if (lowdelta && slowwalk){
  264. inv = bjit & (1 << 4) ? (flip_aa ? 21 : -25) : (inverter ? 21 : -25)
  265. AntiAim.SetFakeOffset(inv);
  266. AntiAim.SetRealOffset(0);
  267. AntiAim.SetLBYOffset(0);
  268. }
  269. //return original antiaim
  270. }else if (!orig_antiaim){
  271. UI.SetValue("Misc", "PERFOMANCE & INFORMATION", "Information", "Restrictions", untrusted_cache);
  272. UI.SetValue("Anti-Aim", "Extra", "Pitch", pitch_cache);
  273. UI.SetValue("Anti-Aim", "Rage Anti-Aim", "At targets", yaw_base_cache);
  274. UI.SetValue("Anti-Aim", "Rage Anti-Aim", "Yaw offset", yaw_cache);
  275. UI.SetValue("Anti-Aim", "Rage Anti-Aim", "Jitter offset", jitter_cache);
  276. UI.SetValue("Anti-Aim", "Fake angles", "LBY mode", body_yaw_cache);
  277. orig_antiaim = true;
  278. AntiAim.SetOverride(0);
  279. }
  280. }
  281.  
  282. const unload = function(){
  283. AntiAim.SetOverride(0);
  284. }
  285.  
  286. Cheat.RegisterCallback("CreateMove", "antiaim");
  287. Cheat.RegisterCallback("Unload", "unload");
  288. Cheat.RegisterCallback("Draw", "visible");
  289.  
  290. /// Freestand Desync
  291. const deg2rad = function(g) {
  292. return g * Math.PI / 180;
  293. },
  294. angle_to_vec = function (T, P) {
  295. var f = deg2rad(T);
  296. var O = deg2rad(P);
  297. var r = Math.sin(f);
  298. var Y = Math.cos(f);
  299. var K = Math.sin(O);
  300. var z = Math.cos(O);
  301. return [Y * z,Y * K, -r];
  302. },
  303. trace = function (T, P) {
  304. var f = angle_to_vec(P[0], P[1])
  305. var O = Entity.GetRenderOrigin(T);
  306. O[2] += 50;
  307. var r = [O[0] + f[0] * 0x2000, O[1] + f[1] * 0x2000, O[2] + f[2] * 0x2000]
  308. var Y = Trace.Line(T, O, r);
  309. if (Y[1] == 1) return;
  310. r = [O[0] + f[0] * Y[1] * 0x2000, O[1] + f[1] * Y[1] * 0x2000, O[2] + f[2] * Y[1] * 0x2000];
  311. var K = Math.sqrt((O[0] - r[0]) * (O[0] - r[0]) + (O[1] - r[1]) * (O[1] - r[1]) + (O[2] - r[2]) * (O[2] - r[2]));
  312. O = Render.WorldToScreen(O)
  313. r = Render.WorldToScreen(r);
  314. if (r[2] != 1 || O[2] != 1) return;
  315. return K;
  316. },
  317. freestand_desync = function(){
  318. var local = Entity.GetLocalPlayer();
  319. var peek = UI.GetValue("Freestand Desync");
  320. if (!Entity.IsAlive(local) && peek == 0) return;
  321. if (UI.GetValue("Freestand Desync") == 0) return;
  322. if (Entity.IsValid(local)) {
  323. var inverted = UI.IsHotkeyActive("Anti-Aim", "Fake angles", "Inverter");
  324. var angle = Local.GetViewAngles();
  325. left_distance = trace(local, [0, angle[1] - 22]);
  326. right_distance = trace(local, [0, angle[1] + 22]);
  327. if (left_distance > right_distance) {
  328. if (peek == 2 ? inverted : !inverted)
  329. UI.ToggleHotkey("Anti-Aim", "Fake angles", "Inverter");
  330. }
  331. if (right_distance > left_distance) {
  332. if (peek == 2 ? !inverted : inverted)
  333. UI.ToggleHotkey("Anti-Aim", "Fake angles", "Inverter");
  334. }
  335. }
  336. }
  337.  
  338. Cheat.RegisterCallback("CreateMove", "freestand_desync");
  339. /// MinDamage
  340.  
  341. var General = UI.GetValue( "Rage", "GENERAL", "Targeting", "Minimum damage" )
  342. var Pistol = UI.GetValue( "Rage", "PISTOL", "Targeting", "Minimum damage" )
  343. var HeavyPistol = UI.GetValue( "Rage", "HEAVY PISTOL", "Targeting", "Minimum damage" )
  344. var Scout = UI.GetValue( "Rage", "SCOUT", "Targeting", "Minimum damage" )
  345. var Awp = UI.GetValue( "Rage", "AWP", "Targeting", "Minimum damage" )
  346. var AutoSniper = UI.GetValue( "Rage", "AUTOSNIPER", "Targeting", "Minimum damage" )
  347.  
  348. function IshotkeyACTIVE() {
  349.  
  350. var IskeyActive = UI.IsHotkeyActive( "Script items", "Override minimum DMG key" )
  351. var SliderValue = UI.GetValue( "Script items", "Minimum damage" )
  352.  
  353.  
  354. if ( IskeyActive ) {
  355. UI.SetValue( "Rage", "GENERAL", "Targeting", "Minimum damage", SliderValue );
  356. UI.SetValue( "Rage", "PISTOL", "Targeting", "Minimum damage", SliderValue );
  357. UI.SetValue( "Rage", "HEAVY PISTOL", "Targeting", "Minimum damage", SliderValue );
  358. UI.SetValue( "Rage", "SCOUT", "Targeting", "Minimum damage", SliderValue );
  359. UI.SetValue( "Rage", "AWP", "Targeting", "Minimum damage", SliderValue );
  360. UI.SetValue( "Rage", "AUTOSNIPER", "Targeting", "Minimum damage", SliderValue );
  361. } else if ( !IskeyActive ) {
  362. UI.SetValue( "Rage", "GENERAL", "Targeting", "Minimum damage", General );
  363. UI.SetValue( "Rage", "PISTOL", "Targeting", "Minimum damage", Pistol );
  364. UI.SetValue( "Rage", "HEAVY PISTOL", "Targeting", "Minimum damage", HeavyPistol );
  365. UI.SetValue( "Rage", "SCOUT", "Targeting", "Minimum damage", Scout );
  366. UI.SetValue( "Rage", "AWP", "Targeting", "Minimum damage", Awp );
  367. UI.SetValue( "Rage", "AUTOSNIPER", "Targeting", "Minimum damage", AutoSniper );
  368. }
  369. }
  370. /// Hitchance in air
  371. var revolverhitchance = UI.GetValue( "Rage", "HEAVY PISTOL", "Accuracy", "Hitchance" );
  372. var scouthitchance = UI.GetValue( "Rage", "SCOUT", "Accuracy", "Hitchance" );
  373.  
  374. function HitchanceInAir() {
  375. if (!UI.GetValue("Script items", "Jump scout/revolver hitchance" && rage)) return;
  376. var getweapon = Entity.GetName(Entity.GetWeapon(Entity.GetLocalPlayer()));
  377. var jshitchance = UI.GetValue('Misc', 'JAVASCRIPT', 'Script items', 'Hitchance');
  378. var inAir = Entity.GetProp(Entity.GetLocalPlayer(), 'CBasePlayer', 'm_hGroundEntity');
  379. if (inAir =='m_hGroundEntity') {
  380. UI.SetValue('Rage', 'HEAVY PISTOL', 'Accuracy', 'Hitchance', jshitchance)
  381. UI.SetValue('Rage', 'SCOUT', 'Accuracy', 'Hitchance', jshitchance)
  382. } else {
  383. UI.SetValue('Rage', 'HEAVY PISTOL', 'Accuracy', 'Hitchance', revolverhitchance)
  384. UI.SetValue('Rage', 'SCOUT', 'Accuracy', 'Hitchance', scouthitchance)
  385. }
  386.  
  387. }
  388. /// FPS Boost
  389. function fps_boost() {
  390. if (UI.GetValue("Misc", "JAVASCRIPT", "Script Items", "FPS Boost")) {
  391. UI.SetValue("Misc", "GENERAL", "Misc", "Force sv_cheats", true);
  392. UI.SetValue("Misc", "GENERAL", "Misc", "Hidden cvars", true);
  393. Convar.SetString("r_shadows", "0");
  394. Convar.SetString("cl_csm_static_prop_shadows", "0");
  395. Convar.SetString("cl_csm_shadows", "0");
  396. Convar.SetString("cl_csm_world_shadows", "0");
  397. Convar.SetString("cl_foot_contact_shadows", "0");
  398. Convar.SetString("cl_csm_viewmodel_shadows", "0");
  399. Convar.SetString("cl_csm_rope_shadows", "0");
  400. Convar.SetString("cl_csm_sprite_shadows", "0");
  401. Convar.SetString("cl_csm_world_shadows_in_viewmodelcascade", "0");
  402. Convar.SetString("cl_csm_translucent_shadows", "0");
  403. Convar.SetString("cl_csm_entity_shadows", "0");
  404. Convar.SetString("violence_hblood", "0");
  405. Convar.SetString("r_3dsky", "0");
  406. Convar.SetString("r_drawdecals", "0");
  407. Convar.SetString("r_drawrain", "0");
  408. Convar.SetString("r_drawropes", "0");
  409. Convar.SetString("r_drawsprites", "0");
  410. Convar.SetString("fog_enable_water_fog", "0");
  411. Convar.SetString("@panorama_disable_blur", "1");
  412. Convar.SetString("dsp_slow_cpu", "1");
  413. Convar.SetString("cl_disable_ragdolls", "1");
  414. Convar.SetString("mat_disable_bloom", "1");
  415. } else {
  416. Convar.SetString("r_shadows", "1");
  417. Convar.SetString("cl_csm_static_prop_shadows", "1");
  418. Convar.SetString("cl_csm_shadows", "1");
  419. Convar.SetString("cl_csm_world_shadows", "1");
  420. Convar.SetString("cl_foot_contact_shadows", "1");
  421. Convar.SetString("cl_csm_viewmodel_shadows", "1");
  422. Convar.SetString("cl_csm_rope_shadows", "1");
  423. Convar.SetString("cl_csm_sprite_shadows", "1");
  424. Convar.SetString("cl_csm_world_shadows_in_viewmodelcascade", "1");
  425. Convar.SetString("cl_csm_translucent_shadows", "1");
  426. Convar.SetString("cl_csm_entity_shadows", "1");
  427. Convar.SetString("violence_hblood", "1");
  428. Convar.SetString("r_3dsky", "1");
  429. Convar.SetString("r_drawdecals", "1");
  430. Convar.SetString("r_drawrain", "1");
  431. Convar.SetString("r_drawropes", "1");
  432. Convar.SetString("r_drawsprites", "1");
  433. Convar.SetString("fog_enable_water_fog", "1");
  434. Convar.SetString("@panorama_disable_blur", "0");
  435. Convar.SetString("dsp_slow_cpu", "0");
  436. Convar.SetString("cl_disable_ragdolls", "0");
  437. Convar.SetString("mat_disable_bloom", "0");
  438. }
  439. }
  440. /// dtpeek
  441. var dtpeek_cache = true;
  442. DT_PeekHelper = function(){
  443. if (!UI.GetValue("Script items", "DT Peek Helper [SSG08 & AWP]")) return;
  444. weapon_name = Entity.GetName(Entity.GetWeapon(Entity.GetLocalPlayer()))
  445. doubletap = UI.IsHotkeyActive("Rage", "GENERAL", "Exploit", "Doubletap");
  446. autopeek = UI.IsHotkeyActive("Misc", "GENERAL", "Movement", "Auto peek");
  447. active = (doubletap && autopeek);
  448.  
  449. if (active && (weapon_name == "ssg 08" || weapon_name == "awp")){
  450. if (dtpeek_cache){
  451. scout_prefer = UI.GetValue("Rage", "SCOUT", "Accuracy", "Prefer safe point")
  452. scout_stop = UI.GetValue("Rage", "SCOUT", "Accuracy", "Auto stop mode")
  453. autodirection_cache = UI.GetValue("Anti-Aim", "Rage Anti-Aim", "Auto direction");
  454. dtpeek_cache = false;
  455. }
  456. UI.SetValue("Rage", "SCOUT", "Accuracy", "Prefer safe point", true)
  457. UI.SetValue("Rage", "SCOUT", "Accuracy", "Auto stop mode", 8)
  458. UI.SetValue("Anti-Aim", "Rage Anti-Aim", "Auto direction", active);
  459. }else if (!dtpeek_cache){
  460. UI.SetValue("Rage", "SCOUT", "Accuracy", "Prefer safe point", scout_prefer)
  461. UI.SetValue("Rage", "SCOUT", "Accuracy", "Auto stop mode", scout_stop)
  462. UI.SetValue("Anti-Aim", "Rage Anti-Aim", "Auto direction", autodirection_cache);
  463. dtpeek_cache = true;
  464. }
  465. }
  466.  
  467. Cheat.RegisterCallback("Draw", "DT_PeekHelper");
  468.  
  469. /// AWP
  470. var safePBackup = false
  471.  
  472. function safeAWP() {
  473. SlocalPlayer = Entity.GetLocalPlayer()
  474. SlocalPlayerWeapon = Entity.GetWeapon(SlocalPlayer)
  475. SlocalPlayerWeaponName = Entity.GetName(SlocalPlayerWeapon)
  476.  
  477. if ( UI.GetValue('Misc', 'JAVASCRIPT', 'Script items', 'Safe Points For AWP') && SlocalPlayerWeaponName == 'awp' ) {
  478. forceSafePoint = UI.IsHotkeyActive('Rage', 'GENERAL', 'General', 'Force safe point')
  479. if (!forceSafePoint) {
  480. UI.ToggleHotkey('Rage', 'GENERAL', 'General', 'Force safe point')
  481. safePBackup = true
  482. }
  483. } else if (safePBackup) {
  484. UI.ToggleHotkey('Rage', 'GENERAL', 'General', 'Force safe point')
  485. safePBackup = false
  486. }
  487. }
  488.  
  489. /// Fix zoom
  490. function zoomfix(){
  491. if (Cheat.FrameStage() == 5) {
  492. var zoom_sens = Convar.GetFloat("zoom_sensitivity_ratio_mouse");
  493. if (UI.GetValue("Misc", "JAVASCRIPT", "Scipt items", "Fix zoom sensitivity")) {
  494. var zoom_current_sens = Convar.GetFloat("sensitivity");
  495. var zoom_fov = UI.GetValue("Visual", "WORLD", "View", "Field of view");
  496. var fixed_zoom_sens = zoom_fov / 100 * zoom_current_sens;
  497. if (zoom_sens != fixed_zoom_sens) {
  498. Cheat.ExecuteCommand("zoom_sensitivity_ratio_mouse " + fixed_zoom_sens);
  499. Cheat.ExecuteCommand("zoom_sensitivity_ratio_joystick " + fixed_zoom_sens);
  500. }
  501. } else {
  502. if (zoom_sens != 1.0) {
  503. Cheat.ExecuteCommand("zoom_sensitivity_ratio_mouse " + 1.0);
  504. Cheat.ExecuteCommand("zoom_sensitivity_ratio_joystick " + 1.0);
  505. }
  506. }
  507. }
  508. }
  509. Cheat.RegisterCallback("FrameStageNotify", "zoomfix");
  510.  
  511. Cheat.RegisterCallback('CreateMove', 'HitchanceInAir');
  512. Cheat.RegisterCallback("Draw", "IshotkeyACTIVE");
  513. Cheat.RegisterCallback('Draw', 'safeAWP')
  514. Cheat.RegisterCallback("CreateMove", "antiaim");
  515. Cheat.RegisterCallback("Unload", "unload");
  516. Cheat.RegisterCallback("Draw", "visible");
  517.  
  518. var username = Cheat.GetUsername();
  519. Cheat.PrintColor( [ 102, 140, 255, 255 ], "███████╗██╗░░██╗░██████╗███████╗███╗░░██╗░██████╗███████╗\n" );
  520. Cheat.PrintColor( [ 102, 140, 255, 255 ], "██╔════╝╚██╗██╔╝██╔════╝██╔════╝████╗░██║██╔════╝██╔════╝\n" );
  521. Cheat.PrintColor( [ 102, 140, 255, 255 ], "█████╗░░░╚███╔╝░╚█████╗░█████╗░░██╔██╗██║╚█████╗░█████╗░░\n" );
  522. Cheat.PrintColor( [ 102, 140, 255, 255 ], "██╔══╝░░░██╔██╗░░╚═══██╗██╔══╝░░██║╚████║░╚═══██╗██╔══╝░░\n" );
  523. Cheat.PrintColor( [ 102, 140, 255, 255 ], "███████╗██╔╝╚██╗██████╔╝███████╗██║░╚███║██████╔╝███████╗\n" );
  524. Cheat.PrintColor( [ 102, 140, 255, 255 ], "╚══════╝╚═╝░░╚═╝╚═════╝░╚══════╝╚═╝░░╚══╝╚═════╝░╚══════╝ v5.0.0\n" );
  525. Cheat.Print("\n");
  526. Cheat.PrintColor( [ 0, 255, 0, 255 ], "Welcome, " +username+ "!\n" );
  527. Cheat.PrintColor( [ 255, 0, 0, 255 ], "Official Store: " );
  528. Cheat.PrintColor( [ 255, 255, 255, 255 ], "https://vk.com/cfgshop_endless\n" );
  529. Cheat.PrintColor( [ 255, 0, 0, 255 ], "Bugs Discord Channel: " );
  530. Cheat.PrintColor( [ 255, 255, 255, 255 ], "#bugs-report\n" );
  531. Cheat.Print("\n");
  532. Cheat.PrintColor( [ 0, 255, 0, 255 ], "[UPDATE LOG 5.0.0]\n" );
  533. Cheat.Print("\n");
  534. Cheat.PrintColor( [ 102, 140, 255, 255 ], " [ + ] Indicators are no longer movable, but they are not lost\n");
  535. Cheat.PrintColor( [ 102, 140, 255, 255 ], " [ + ] New menu\n" );
  536. Cheat.PrintColor( [ 102, 140, 255, 255 ], " [ + ] Add New Anti-Aim System and At Target on Air\n" );
  537. Cheat.PrintColor( [ 102, 140, 255, 255 ], " [ + ] Add Freestand Desync\n" );
  538. Cheat.PrintColor( [ 102, 140, 255, 255 ], " [ + ] Add Enemy Ping ESP\n" );
  539. Cheat.PrintColor( [ 102, 140, 255, 255 ], " [ + ] The Keybinds shows Base Yaw (Local View / At Targets)\n" );
  540. Cheat.PrintColor( [ 102, 140, 255, 255 ], " [ + ] Fix More Bugs\n" );
  541. Cheat.PrintColor( [ 102, 140, 255, 255 ], " [ + ] Remove Var indicator\n" );
  542. Cheat.PrintColor( [ 102, 140, 255, 255 ], " [ + ] New design Fake indicator\n" );
  543. Cheat.PrintColor( [ 102, 140, 255, 255 ], " [ + ] After enabling JS, you can go to the local game with VAC\n" );
  544. Cheat.PrintColor( [ 102, 140, 255, 255 ], " [ + ] Add Dormant Aimbot (Beta)\n" );
  545. Cheat.PrintColor( [ 102, 140, 255, 255 ], " [ + ] Improvement FPS\n" );
  546. Cheat.PrintColor( [ 102, 140, 255, 255 ], " [+] And ETC\n" );
  547. /// Visuals
  548. const get = function(elm)
  549. {
  550. return UI.GetValue("Misc", "JAVASCRIPT", "Script items", elm);
  551. }
  552. const set = function(elm1, v)
  553. {
  554. return UI.SetValue("Misc", "JAVASCRIPT", "Script items", elm1, v);
  555. }
  556.  
  557. const in_bounds = function(vec, x, y, x2, y2) {
  558. return (vec[0] > x) && (vec[1] > y) && (vec[0] < x2) && (vec[1] < y2)
  559. }
  560.  
  561. var stored = ![],
  562. x_offs = 0,
  563. y_offs = 0;
  564.  
  565. const move1 = function (x, y, width, height, name) {
  566. if (UI.IsMenuOpen() && Input.IsKeyPressed(0x1)) {
  567. const mouse_pos = Global.GetCursorPosition();
  568. if (in_bounds(mouse_pos, x, y, x + width, y + height)) {
  569. if(!stored){
  570. x_offs = mouse_pos[0] - x;
  571. y_offs = mouse_pos[1] - y;
  572. stored = true;
  573. }
  574. UI.SetValue("Script items", name + "_x", mouse_pos[0] - x_offs);
  575. UI.SetValue("Script items", name + "_y", mouse_pos[1] - y_offs);
  576. }
  577. } else if(stored) stored = false;
  578. }
  579.  
  580. function skeetobvodka(x, y, w, h, color){
  581. const style = UI.GetValue("Script items", "Style Indicators")
  582. if (style !== 0){
  583. Render.FilledRect(x, y + 2, w, h, [15, 15, 15, 150]);
  584. }else{
  585. Render.FilledRect(x, y - 1, w, h + 2, [15, 15, 15, color[3]]);
  586. Render.Rect(x, y - 1, w, h + 3, [15, 15, 15, 200]);}
  587.  
  588. if (style == 0) {
  589. Render.GradientRect(x + 1, y, w / 2 - 1, 1, 2, [55, 177, 218, 255], [203, 70, 205, 255]);
  590. Render.GradientRect(x + w / 2, y, w / 2 - 1 + 1, 1, 2, [203, 70, 205, 255], [204, 227, 53, 255]);
  591. }else if (style == 1){
  592. Render.FilledRect(x, y + 1, w, 1, [color[0], color[1], color[2], 255]);
  593. }
  594. }
  595.  
  596. function HSVtoRGB(h, s, v) {
  597. var r, g, b, i, f, p, q, t;
  598. if (arguments.length === 1) {
  599. s = h.s, v = h.v, h = h.h;
  600. }
  601. i = Math.floor(h * 6);
  602. f = h * 6 - i;
  603. p = v * (1 - s);
  604. q = v * (1 - f * s);
  605. t = v * (1 - (1 - f) * s);
  606. switch (i % 6) {
  607. case 0: r = v, g = t, b = p; break;
  608. case 1: r = q, g = v, b = p; break;
  609. case 2: r = p, g = v, b = t; break;
  610. case 3: r = p, g = q, b = v; break;
  611. case 4: r = t, g = p, b = v; break;
  612. case 5: r = v, g = p, b = q; break;
  613. }
  614. return {
  615. r: Math.round(r * 255),
  616. g: Math.round(g * 255),
  617. b: Math.round(b * 255)
  618. };
  619. }
  620. var aspect_cache = 0;
  621.  
  622. function aspect(){
  623. var aspect_slider = UI.GetValue("Aspect Ratio");
  624. if (aspect_cache != aspect_slider) {
  625. aspect_cache = aspect_slider;
  626. UI.SetValue("Misc", "GENERAL", "Miscellaneous", "Hidden cvars", 1);
  627. Global.ExecuteCommand("r_aspectratio " + aspect_slider);
  628. }
  629. }
  630.  
  631. Cheat.RegisterCallback("CreateMove","aspect");
  632. var fps_info = [];
  633. var last_timee = Global.Curtime();
  634.  
  635. function draw_containe()
  636. {
  637. if (!(UI.GetValue("Indicators") & (1<<4))) return;
  638.  
  639. var text = "IE | "
  640. var w = Render.TextSize(text, 8)[0] + 20;
  641. var x = Global.GetScreenSize()[0];
  642. var y = Entity.IsAlive(Entity.GetLocalPlayer()) ? 75 : 50;
  643. x = x - w - 99;
  644. var avg = {'fps': 0};
  645.  
  646.  
  647. Render.FilledRect(x - 20, y - 16, 55, 21, [15, 15, 15, fpsc[3]]);
  648. Render.String(x - 17, y - 11, 0, "IE | ", [ 255, 255, 255, 255 ], 8 );
  649.  
  650. if (Global.Curtime() - last_timee > 0.5) {
  651.  
  652. last_timee = Global.Curtime();
  653.  
  654.  
  655. fps_info.unshift(1 / Global.Frametime());
  656. }
  657. fpsc = UI.GetColor("Misc", "JAVASCRIPT", "Script items", "FPS Color");
  658. if (fps_info.length > 4)
  659. fps_info.pop();
  660.  
  661.  
  662. var fps_max = Convar.GetInt("fps_max") || 400;
  663. for (i = 0; i < fps_info.length; i++)
  664. {
  665. avg.fps += fps_info[i]
  666. Render.GradientRect( x - i * 5 + 25, y + 1 - fps_info[i] / fps_max * 35, 5, fps_info[i] / fps_max * 35, 0, [35, 35, 95, 0], [fpsc[0], fpsc[1], fpsc[2], 255]
  667. );
  668. }
  669. }
  670. function mainn()
  671. {
  672. draw_containe();
  673. }
  674.  
  675. function Areset()
  676. {
  677. llast_time = Global.Curtime();
  678. fps_info = [];
  679. }
  680.  
  681. function main_mshz() {
  682. if (!(UI.GetValue("Indicators") & (1<<5))) return;
  683. const ping = Math.abs(Local.Latency() * 1000 - 16).toFixed(2);
  684. var font = Render.AddFont("Verdana", 7, 100);
  685. var text = +ping+ "ms / 60hz";
  686. var w = Render.TextSizeCustom(text, font)[0] + 8;
  687. var x = Global.GetScreenSize()[0];
  688. var y = Entity.IsAlive(Entity.GetLocalPlayer()) ? 55 : 30;
  689. x = x - w - 10;
  690. msc = UI.GetColor("Misc", "JAVASCRIPT", "Script items", "MS & HZ Color");
  691. Render.FilledRect(x, y + 4, w, 20, [17, 17, 17, msc[3]]);
  692. Render.StringCustom(x + 4, y + 7, 0, text, [0, 0, 0, 180], font);
  693. Render.StringCustom(x + 4, y + 7, 0, text, [255, 255, 255, 255], font);
  694. var width = 75;
  695. var stylee = UI.GetValue("Script items", "Style Indicators")
  696. if (stylee == 0) {
  697. Render.GradientRect( x, y + 23, w / 2, 1, 2, [55, 177, 218/*55, 177, 218*/, 255], [203, 70, 205/*203, 70, 205*/, 255]);
  698. Render.GradientRect( x + w / 2, y + 23, w / 2, 1, 2, [203, 70, 205/*203, 70, 205*/, 255], [204, 227, 53/*204, 227, 53*/, 255]);
  699. } else if (stylee == 1) {
  700. Render.GradientRect( x, y + 23, w / 2, 1, 1, [ msc[0], msc[1], msc[2], 0 ], [ msc[0], msc[1], msc[2], 255 ]);
  701. Render.GradientRect( x + w / 2, y + 23, w / 2, 1, 1, [ msc[0], msc[1], msc[2], 255 ], [ msc[0], msc[1], msc[2], 0 ]);
  702. }
  703. if (ping > 64 && stylee == 1) {
  704. Render.GradientRect( x, y + 23, w / 2, 1, 1, [ 255, 0, 0, 0 ], [ 255, 0, 0, 255 ]);
  705. Render.GradientRect( x + w / 2, y + 23, w / 2, 1, 1, [ 255, 0, 0, 255 ], [ 255, 0, 0, 0 ]);
  706. } else if (ping < 64 && stylee == 1 ) {
  707. Render.GradientRect( x, y + 23, w / 2, 1, 1, [ 0, 255, 0, 0 ], [ 0, 255, 0, 255 ]);
  708. Render.GradientRect( x + w / 2, y + 23, w / 2, 1, 1, [ 0, 255, 0, 255 ], [ 0, 255, 0, 0 ]);
  709. }
  710. if (stylee == 0){
  711. Render.Rect(x, y + 4, w, 21, [17, 17, 17, 200]);
  712. }
  713. }
  714. /// Fake
  715.  
  716.  
  717. function main_fake() {
  718. if (!(UI.GetValue("Indicators") & (1<<6))) return;
  719. if (!World.GetServerString()) return;
  720. if (!Entity.IsAlive(Entity.GetLocalPlayer())) return;
  721. var font = Render.AddFont("Verdana", 7, 100);
  722. const dt = UI.IsHotkeyActive("Rage", "GENERAL", "Exploits", "Doubletap");
  723. var RealYaw = Local.GetRealYaw();
  724. var FakeYaw = Local.GetFakeYaw();
  725. var delta = Math.min(Math.abs(RealYaw - FakeYaw) / 2, 60).toFixed(1);
  726. var text = " FAKE (" + delta.toString() + " ) ";
  727. var w = Render.TextSizeCustom(text, font)[0] + 8;
  728. var h = 22;
  729. var x = Global.GetScreenSize()[0];
  730. var y = 30;
  731. x = x - w - 110;
  732. Render.GradientRect( x, y + 4, 45, 21, 1, [ 0, 0, 0, 0 ], [ 0, 0, 0, 100 ]);
  733. Render.GradientRect( x + 45, y + 4, 45, 21, 1, [ 0, 0, 0, 100 ], [ 0, 0, 0, 0 ]);
  734. Render.GradientRect(x + 5, y + 4, 2, h / 2, 0, [(255 - 255 * (delta / 100)), 255 * (delta / 100), 0, 100], [(255 - 255 * (delta / 100)), 255 * (delta / 100), 0, 255]);
  735. Render.GradientRect(x + 5, y + h / 2 + 4, 2, h / 2, 0, [(255 - 255 * (delta / 100)), 255 * (delta / 100), 0, 255], [(255 - 255 * (delta / 100)), 255 * (delta / 100), 0, 100]);
  736. Render.StringCustom(x, y + 9, 0, text, [0, 0, 0, 180], font);
  737. Render.StringCustom(x - 1, y + 8, 0, text, [255, 255, 255, 255], font);
  738. Render.Circle(x + 12 + Render.TextSizeCustom("FAKE (" + delta.toString(), font)[0], y + 9, 1, [255, 255, 255, 255]);
  739. }
  740.  
  741.  
  742.  
  743. /// Fakelag
  744. var charge_alpha = 0;
  745. function fl_indicator(){
  746. if (!Entity.IsAlive(Entity.GetLocalPlayer())) return;
  747. if (!(UI.GetValue("Indicators") & (1<<3))) return;
  748. const color = UI.GetColor("Misc", "JAVASCRIPT", "Script items", "FL Color");
  749. const dt = UI.IsHotkeyActive("Rage", "GENERAL", "Exploits", "Doubletap");
  750. const hs = UI.IsHotkeyActive("Rage", "GENERAL", "Exploits", "Hide shots");
  751. const flag = UI.GetValue( "Anti-Aim", "Fake-Lag", "Limit");
  752. const font = Render.AddFont("Verdana", 7, 100);
  753. const charge = Exploit.GetCharge();
  754. const fl = (dt || hs) ? 0 : flag
  755. var text = "FL: "+fl;
  756. if (dt) text += " | SHIFTING";
  757. var w = Render.TextSizeCustom(text, font)[0] + 8;
  758. var x = Global.GetScreenSize()[0];
  759. var y = 30;
  760. x = x - w - 10
  761. Render.FilledRect(x, y + 4, w, 20, [17, 17, 17, color[3]]);
  762. Render.StringCustom(x + 4, y + 7, 0, text, [0, 0, 0, 180], font);
  763. Render.StringCustom(x + 4, y + 7, 0, text, [255, 255, 255, 255], font);
  764.  
  765. if (charge >= 1) {
  766. charge_alpha = Math.min(charge_alpha + (8 * Globals.Frametime()), 1);
  767. } else {
  768. charge_alpha = charge_alpha - (8 * Globals.Frametime());
  769. if (charge_alpha < 0) charge_alpha = 0;
  770. }
  771.  
  772. var stylee = UI.GetValue("Script items", "Style Indicators")
  773.  
  774. if (stylee == 0) {
  775. Render.GradientRect(x, y + 23, w / 2, 1, 2, [55, 177, 218, 255], [203, 70, 205, 255]);
  776. Render.GradientRect(x + w / 2, y + 23, w / 2, 1, 2, [203, 70, 205, 255], [204, 227, 53, 255]);
  777. } else if (stylee == 1) {
  778. if (dt){
  779. Render.GradientRect( x, y + 23, w / 2, 1, 1, [255, 145, 0, 0], [ 255, 145, 0, 255]);
  780. Render.GradientRect( x + w / 2, y + 23, w / 2, 1, 1, [255, 145, 0, 255], [ 255, 145, 0, 0]);
  781.  
  782. Render.GradientRect( x, y + 23, w / 2, 1, 1, [0, 255, 0, 0], [0, 255, 0, charge_alpha * 255]);
  783. Render.GradientRect( x + w / 2, y + 23, w / 2, 1, 1, [0, 255, 0, charge_alpha * 255], [0, 255, 0, 0]);
  784. }else{
  785. Render.GradientRect( x, y + 23, w / 2, 1, 1, [color[0], color[1], color[2], 0], [color[0], color[1], color[2], 255]);
  786. Render.GradientRect( x + w / 2, y + 23, w / 2, 1, 1, [color[0], color[1], color[2], 255], [color[0], color[1], color[2], 0]);
  787. }
  788. }
  789. if (stylee == 0){
  790. Render.Rect(x, y + 4, w, 21, [17, 17, 17, 200]);
  791. }
  792. }
  793. function render(){
  794. if(!UI.GetValue("Script items", "Show ping enemy")) return;
  795. const enemy = Entity.GetEnemies();
  796. for (i = 0; i < enemy.length; i++){
  797. if (Entity.IsAlive(enemy[i])){
  798. const pingenemy = Math.round(Entity.GetProp(enemy[i], "CPlayerResource", "m_iPing")).toString();
  799. const font = Render.AddFont("MuseoSansCyrl-700", 8, 100);
  800. var pos = Entity.GetRenderBox(enemy[i]);
  801. var a = pos[3] - pos[1]
  802. a /= 2
  803. a += pos[1]
  804. const ping = (pingenemy <= 0 ? "BOT" : pingenemy)
  805. Render.StringCustom(a + 3, pos[2] - 23, 1, ping, [0, 0, 0, 150], font);
  806. Render.StringCustom(a + 2, pos[2] - 24, 1, ping, [255, 255, 255, 255], font);
  807. }
  808. }
  809. }
  810.  
  811. Cheat.RegisterCallback("Draw", "render");
  812.  
  813. var msc = UI.GetColor("Misc", "JAVASCRIPT", "Script items", "MS & HZ Color");
  814. var logc = UI.GetColor("Misc", "JAVASCRIPT", "Script items", "HitLogs Color");
  815. var flcol = UI.GetColor("Misc", "JAVASCRIPT", "Script items", "FL Color");
  816. var fpsc = UI.GetColor("Misc", "JAVASCRIPT", "Script items", "FPS Color");
  817. var standart = UI.GetColor("Misc", "JAVASCRIPT", "Script items", "Watermark Color");
  818. var colorhotkeys = UI.GetColor("Misc", "JAVASCRIPT", "Script items", "Hotkeys color");
  819. var cspec = UI.GetColor("Misc", "JAVASCRIPT", "Script items", "Spectator color");
  820. if (msc[3] == 0) {
  821. UI.SetColor("Misc", "JAVASCRIPT", "Script items", "MS & HZ Color", [255, 255, 255, 255]);
  822. }
  823.  
  824. if (cspec[3] == 0) {
  825. UI.SetColor("Misc", "JAVASCRIPT", "Script items", "Spectator color", [255, 255, 255, 255]);
  826. }
  827.  
  828. if (flcol[3] == 0) {
  829. UI.SetColor("Misc", "JAVASCRIPT", "Script items", "FL Color", [255, 255, 255, 255]);
  830. }
  831.  
  832. if (standart[3] == 0) {
  833. UI.SetColor("Misc", "JAVASCRIPT", "Script items", "Watermark Color", [255, 255, 255, 255]);
  834. }
  835. if (logc[3] == 0) {
  836. UI.SetColor("Misc", "JAVASCRIPT", "Script items", "HitLogs Color", [255, 255, 255, 255]);
  837. }
  838.  
  839. if (fpsc[3] == 0) {
  840. UI.SetColor("Misc", "JAVASCRIPT", "Script items", "FPS Color", [35, 35, 35, 255]);
  841. }
  842.  
  843. if (colorhotkeys[3] == 0) {
  844. UI.SetColor("Misc", "JAVASCRIPT", "Script items", "Hotkeys color", [89, 119, 239, 3]);
  845. }
  846.  
  847. UI.AddSliderInt("keybind_x", 0, Global.GetScreenSize()[0]);
  848. UI.AddSliderInt("keybind_y", 0, Global.GetScreenSize()[1]);
  849. UI.AddSliderInt("spectator_x", 0, Global.GetScreenSize()[0]);
  850. UI.AddSliderInt("spectator_y", 0, Global.GetScreenSize()[1]);
  851.  
  852. hide = function(){
  853. var ind = UI.GetValue("Indicators");
  854.  
  855. UI.SetEnabled("keybind_x", false);
  856. UI.SetEnabled("keybind_y", false);
  857. UI.SetEnabled("spectator_x", false);
  858. UI.SetEnabled("spectator_y", false);
  859. }
  860.  
  861. adap_render = function(x, y, width, height, alpha, color){
  862. const color1 = UI.GetColor("Misc", "JAVASCRIPT", "Script items", color);
  863. const rgb = HSVtoRGB(Global.Realtime() * 0.09, 1, 1);
  864. const style = UI.GetValue("Style Indicators");
  865. if (style !== 0){
  866. Render.FilledRect(x, y + 2, width, height, [15, 15, 15, alpha * color1[3]]);}
  867. if (style == 0){
  868. Render.FilledRect(x, y + 2, width, height, [15, 15, 15, alpha * color1[3]]);
  869. Render.GradientRect(x, y, width / 2, 2, 1, [89, 180, 255, alpha * 255], [204, 51, 255, alpha * 255]);
  870. Render.GradientRect(x + width / 2, y, width / 2, 2, 1, [204, 51, 255, alpha * 255], [255, 255, 102, alpha * 255]);
  871. Render.Rect(x, y - 1, width + 1, height + 4, [15, 15, 15, alpha * color1[3]])}
  872. if (style == 1){
  873. Render.GradientRect(x, y, width / 2, 2, 1, [0, 0, 0, alpha * 255], [color1[0], color1[1], color1[2], alpha * 255]);
  874. Render.GradientRect(x + width / 2, y, width / 2, 2, 1, [color1[0], color1[1], color1[2], alpha * 255], [0, 0, 0, alpha * 255]);}
  875.  
  876. },
  877. getObservators = function() {
  878. var ents = Entity.GetPlayers();
  879. var local = Entity.GetLocalPlayer();
  880. var localtarget = Entity.GetProp(local, "CBasePlayer", "m_hObserverTarget");
  881. if (!local) return;
  882. spec = [];
  883. for (i = 0; i < ents.length; i++) {
  884. if (Entity.IsAlive(local)) {
  885. if (!ents[i] || Entity.IsAlive(ents[i])) continue;
  886. var observer = Entity.GetProp(ents[i], "CBasePlayer", "m_hObserverTarget");
  887. if (!observer || observer == "m_hObserverTarget") continue;
  888. const names = Entity.GetName(ents[i])
  889. if (observer == local) spec.push(names.length >= 18 ? names.substr(0, 15) + "..." : names);
  890. } else {
  891. if (!ents[i] || Entity.IsAlive(ents[i])) continue;
  892. var observer = Entity.GetProp(ents[i], "CBasePlayer", "m_hObserverTarget");
  893. if (!observer || observer == "m_hObserverTarget") continue;
  894. const names = Entity.GetName(ents[i])
  895. if (observer == localtarget) spec.push(names.length >= 16 ? names.substr(0, 13) + "..." : names);
  896. }
  897. }
  898. };
  899.  
  900. var alpha = 0;
  901. var alphas = 0;
  902. var maxwidth = 0;
  903.  
  904. function keybind(){
  905. const color = UI.GetColor("Misc", "JAVASCRIPT", "Script items", "Hotkeys color");
  906. const font = Render.AddFont("Verdana", 7, 0);
  907. const x = UI.GetValue("keybind_x");
  908. const y = UI.GetValue("keybind_y");
  909. const style = UI.GetValue("[ALL] Style line")
  910. var width = 55;
  911. var maxwidth = 0;
  912. var keyactive = [];
  913. var mdmg = UI.GetValue("Script items", "Minimum damage");
  914. info_key = [
  915. ["Yaw Base", null, "[At Targets]"],
  916. ["Yaw Base", null, "[Local View]"],
  917. ["Trigger bot", ["Legit", "GENERAL", "Triggerbot", "Enabled"], "[holding]"],
  918. ["Double tap", ["Rage", "GENERAL", "Exploits", "Doubletap"], "[toggled]"],
  919. ["Hide shots", ["Rage", "GENERAL", "Exploits", "Hide shots"], "[toggled]"],
  920. ["Safe point", ["Rage", "GENERAL", "General", "Force safe point"], "[toggled]"],
  921. ["Body aim", ["Rage", "GENERAL", "General", "Force body aim"], "[toggled]"],
  922. ["Resolver override", ["Rage", "GENERAL", "General", "Resolver override"], "[holding]"],
  923. ["Min Damage Override", ["JAVASCRIPT", "Script items", "Override minimum DMG key"], "["+mdmg+"]"],
  924. ["Fake duck", ["Anti-Aim", "Extra", "Fake duck"], "[holding]"],
  925. ["Slow walk", ["Anti-Aim", "Extra", "Slow walk"], "[holding]"],
  926. ["Inverter", ["Anti-Aim", "Fake angles", "Inverter"], "[toggled]"],
  927. ["Edge jump", ["Misc", "GENERAL", "Movement", "Edge jump"], "[holding]"],
  928. ["Auto peek", ["Misc", "GENERAL", "Movement", "Auto peek"], "[holding]"],
  929. ];
  930. var target = UI.GetValue("Anti-Aim", "Rage Anti-Aim", "At targets");
  931. var freestand = UI.GetValue("SCRIPT ITEMS", "FreeStand Desync");
  932. for(var i in info_key){
  933. aa = info_key[i][2];
  934. bind = info_key[i][1];
  935. name = info_key[i][0];
  936. if(bind !== null && UI.IsHotkeyActive.apply(null, bind)){
  937. keyactive.push(i);
  938. }
  939. if(aa == "[At Targets]" && target){
  940. keyactive.push(i);
  941. }
  942. if(aa == "[Local View]" && !target){
  943. keyactive.push(i);
  944. }
  945. }
  946.  
  947. if (keyactive.length > 0 || UI.IsMenuOpen()) {
  948. alpha = Math.min(alpha + (8 * Globals.Frametime()), 1);
  949. } else {
  950. alpha = alpha - (8 * Globals.Frametime());
  951. if (alpha < 0) alpha = 0;
  952. }
  953.  
  954. for (var g in keyactive) {
  955. bind = keyactive[g];
  956. name = info_key[bind][0];
  957. if (Render.TextSizeCustom(name, font)[0] > maxwidth) {
  958. maxwidth = Render.TextSizeCustom(name, font)[0];
  959. }
  960. }
  961.  
  962. if (maxwidth == 0) maxwidth = 50;
  963. width = width + maxwidth;
  964. w = width > 145 ? width : 145;
  965.  
  966. if (!(UI.GetValue("Indicators") & (1<<0))) return;
  967. adap_render(x, y, w + 1, 17, alpha, "Hotkeys color");
  968.  
  969. Render.StringCustom(x + (w / 2) - (Render.TextSizeCustom("keybinds", font)[0] / 2 - 1), y + 5, 0, "keybinds", [0, 0, 0, alpha * 255], font);
  970. Render.StringCustom(x + (w / 2) - (Render.TextSizeCustom("keybinds", font)[0] / 2), y + 4, 0, "keybinds", [255, 255, 255, alpha * 255], font);
  971.  
  972. for(var j in keyactive){
  973. bind = keyactive[j];
  974. name = info_key[bind][0];
  975. state = info_key[bind][2];
  976. Render.StringCustom(x + 4, y + 24 + (j * 17), 0, name, [0, 0, 0, alpha * 255], font);
  977. Render.StringCustom(x + 3, y + 23 + (j * 17), 0, name, [255, 255, 255, alpha * 255], font);
  978.  
  979. Render.StringCustom(x + w - Render.TextSizeCustom(state, font)[0], y + 24 + (j * 17), 0, state, [0, 0, 0, alpha * 255], font);
  980. Render.StringCustom(x + w - Render.TextSizeCustom(state, font)[0] - 1, y + 23 + (j * 17), 0, state, [255, 255, 255, alpha * 255], font);
  981. }
  982. move1(x, y, w, 19, "keybind");
  983. }
  984.  
  985. function spectator(){
  986. const font = Render.AddFont("Verdana", 7, 0);
  987. const x = UI.GetValue("spectator_x");
  988. const y = UI.GetValue("spectator_y");
  989. getObservators();
  990.  
  991. if (spec.length > 0 || UI.IsMenuOpen()) {
  992. alphas = Math.min(alphas + (8 * Globals.Frametime()), 1);
  993. } else {
  994. alphas = alphas - (8 * Globals.Frametime());
  995. if (alphas < 0) alphas = 0;
  996. }
  997.  
  998. if (!(UI.GetValue("Indicators") & (1<<1))) return;
  999. adap_render(x, y, 140, 17, alphas, "Spectator color");
  1000. Render.StringCustom(x + (140 / 2) - (Render.TextSizeCustom("spectators ("+spec.length+")", font)[0] / 2 - 1), y + 5, 0, "spectators ("+spec.length+")", [0, 0, 0, alphas * 180], font);
  1001. Render.StringCustom(x + (140 / 2) - (Render.TextSizeCustom("spectators ("+spec.length+")", font)[0] / 2), y + 4, 0, "spectators ("+spec.length+")", [255, 255, 255, alphas * 255], font);
  1002.  
  1003. for(g = 0; g < spec.length; g++){
  1004. names = spec[g];
  1005. Render.StringCustom(x + 4, y + 24 + (g * 17) , 0, names, [0, 0, 0, alphas * 140], font);
  1006. Render.StringCustom(x + 3, y + 23 + (g * 17), 0, names, [255, 255, 255, alphas * 255], font);
  1007.  
  1008. Render.StringCustom(x + 140 - Render.TextSizeCustom("[watching]", font)[0] - 2, y + 24 + (g * 17) , 0, "[watching]", [0, 0, 0, alphas * 140], font);
  1009. Render.StringCustom(x + 140 - Render.TextSizeCustom("[watching]", font)[0] - 3, y + 23 + (g * 17), 0, "[watching]", [255, 255, 255, alphas * 255], font);
  1010. }
  1011. move1(x, y, 140, 20, "spectator");
  1012. }
  1013.  
  1014. Cheat.RegisterCallback("Draw", "keybind");
  1015. Cheat.RegisterCallback("Draw", "spectator");
  1016. Cheat.RegisterCallback("Draw", "hide");
  1017.  
  1018. var username = Cheat.GetUsername();
  1019. function draw() {
  1020. if (!(UI.GetValue("Indicators") & (1<<2))) return;
  1021. var rgb = HSVtoRGB(Global.Tickcount() % 350 / 350,1,1);
  1022. var ping = Math.round(Entity.GetProp(Entity.GetLocalPlayer(), "CPlayerResource", "m_iPing")).toString()
  1023. const now = new Date();
  1024. const hours = now.getHours(), mins = now.getMinutes(), secs = now.getSeconds();
  1025. const time = (hours < 10 ? "0" + hours : hours) + ":" + (mins < 10 ? "0" + mins : mins) + ":" + (secs < 10 ? "0" + secs : secs);
  1026. color = UI.GetColor("Misc", "Javascript", "Script items", "Watermark");
  1027. var font = Render.AddFont( "Verdana", 7, 400);
  1028. var text = "Exsense | " +username+ " | [Version ] | "+time+ " | "
  1029. var h = 18;
  1030. var w = Render.TextSizeCustom(text, font)[0] + 8;
  1031. var x = Global.GetScreenSize()[0];
  1032. var y = 10;
  1033. var standart = UI.GetColor("Misc", "JAVASCRIPT", "Script items", "Watermark Color");
  1034. x = x - w - 10;
  1035. skeetobvodka(x, y, w, h, standart);
  1036. var iconswater = UI.GetValue("Script items", "Watermark Icons")
  1037. if (iconswater == 0) {
  1038. Render.String(x + w - 18, y + 5, 0, "!", [rgb.r, rgb.g, rgb.b, 255], 6);
  1039. } else if (iconswater == 1 ) {
  1040. Render.String(x + w - 19, y + 5, 0, "@", [rgb.r, rgb.g, rgb.b, 255], 6);
  1041. } else if (iconswater == 2 ) {
  1042. Render.String(x + w - 20, y + 5, 0, "^", [rgb.r, rgb.g, rgb.b, 255], 6);
  1043. } else if (iconswater == 3 ) {
  1044. Render.String(x + w - 18, y + 5, 0, "#", [rgb.r, rgb.g, rgb.b, 255], 6);
  1045. }
  1046. Render.StringCustom(x + w - 112, y + 4, 0, "5.0", [rgb.r, rgb.g, rgb.b, 255], font);
  1047. Render.StringCustom(x+4, y + 4, 0, text, [255,255,255,255], font);
  1048. UI.SetValue('Misc', 'PERFORMANCE & INFORMATION', 'Watermark', false);
  1049. }
  1050. Cheat.RegisterCallback("Draw", "draw");
  1051.  
  1052. function drawner(){
  1053. if (!World.GetServerString()) return;
  1054. var screen = Global.GetScreenSize();
  1055. var font = Render.AddFont("Calibri", 8, 400);
  1056. var color = UI.GetColor("Misc", "JAVASCRIPT", "Yaw color");
  1057. var dt = UI.IsHotkeyActive("Rage", "GENERAL", "Exploits", "Double tap");
  1058. var charge = Exploit.GetCharge();
  1059. const pulse = Math.sin(Math.abs(-Math.PI + (Globals.Curtime() * (1 / .75)) % (Math.PI * 2))) * 255;
  1060. const rgb = HSVtoRGB(Global.Realtime() * 0.09, 1, 1);
  1061.  
  1062. Render.StringCustom(screen[0] / 2, screen[1] / 2 + 18, 1, "Exsense", [255, 255, 255, pulse], font);
  1063. }
  1064.  
  1065. Cheat.RegisterCallback("player_hurt", "hit_logs1");
  1066. Cheat.RegisterCallback("Draw", "logdraw1");
  1067. Cheat.RegisterCallback("player_connect_full", "Areset");
  1068. Cheat.RegisterCallback("Draw", "fl_indicator")
  1069. Cheat.RegisterCallback("Draw", "main_fake");
  1070. Cheat.RegisterCallback("Draw", "main_mshz");
  1071. Cheat.RegisterCallback("Draw", "mainn");
  1072. Cheat.RegisterCallback("Draw", "keybind");
  1073. Cheat.RegisterCallback("Draw", "spectator");
  1074. Cheat.RegisterCallback("Draw", "drawner");
  1075. Cheat.ExecuteCommand( "sv_lan 1" );
Advertisement
Add Comment
Please, Sign In to add comment