Advertisement
ticzz

DeadESP

Jul 25th, 2020 (edited)
433
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 5.53 KB | None | 0 0
  1. --Inspired by zack“s [https://aimware.net/forum/user-36169.html] 'always esp on dead.lua' [https://aimware.net/forum/thread/86414]
  2.  
  3. --Mainly usage is for Legit Gameplay
  4.  
  5. --Turns Visuals on when dead        (to get infos for teammates (but attention is recommended because as a legit player you shouldnt know toooo much ;P ))
  6. --Turns Visuals off when alive      (exept the Visuals for Chams of visible Enemys will stay on)
  7. --Turns Visuals on per OnHold       (when alive but you need/want some extra infos for easier clutches. Then just tap your wh_key from time to time :D )
  8.  
  9. -- DeadESP (This version only works with the default Chams provided by Aimware.net atm)
  10.  
  11. local x,y = draw.GetScreenSize()
  12. local visual_refs = gui.Reference("VISUALS");
  13. local deadesp_tab = gui.Tab(visual_refs, "deadesp.tab", "DeadESP")
  14. local deadesp_group = gui.Groupbox(deadesp_tab, "DeadESP")
  15. local deadesp_master = gui.Checkbox(deadesp_group, "deadesp_master", "DeadESP Master", 0)
  16. local deadesp_wallhack_key = gui.Keybox(deadesp_group, "wallhackkey", "DeadESP Holdkey", false); -- Box to set a hold-key to enable enemy.occluded chams aka Wallhack
  17. local deadesp_chams_on_tggl = gui.Combobox(deadesp_group, 'deadesp_chams_ontggl_combobox', 'DeadESP Chams on hold', 'Off', 'Flat', 'Color', 'Metallic', 'Glow' ) -- Change WallhackChams Mode onthefly
  18. local deadesp_chams_while_spec = gui.Combobox(deadesp_group, 'deadesp_chams_while_spec_combobox', 'DeadESP Chams while Spectating', 'Off', 'Flat', 'Color', 'Metallic', 'Glow' ) -- Change WallhackChams Mode onthefly
  19. local wh_chams_indicators_clr = gui.ColorPicker(deadesp_group, "wh.chams.ind.color", "WH ChamsActive Text Color", 0,0,0,255)
  20. local xposi = gui.Slider(deadesp_group, "xposi", "X Position", 15, 0, x)
  21. local yposi = gui.Slider(deadesp_group, "yposi", "Y Position", y/2, 0, y)
  22. deadesp_wallhack_key:SetDescription("Turn on Chams thru Wallz while alive");
  23. deadesp_chams_on_tggl:SetDescription("Chams used for ToggleOnHold Wallhack" );
  24. deadesp_chams_while_spec:SetDescription("Chams used for Wallhack when spectaiting");
  25. xposi:SetDescription("Sets X Screenposition for the Indicator")
  26. yposi:SetDescription("Sets Y Screenposition for the Indicator")
  27. gui.Text(deadesp_group, "Created by ticzz | aka KriZz87")
  28. gui.Text(deadesp_group, "https://github.com/ticzz/Aimware-v5-luas/blob/master/DeadESP.lua")
  29. --local setFont = draw.SetFont()
  30. local color = draw.Color
  31. local text = draw.TextShadow
  32. local font = draw.CreateFont("Tahoma", 14, 800)
  33.  
  34.  
  35. callbacks.Register( "Draw", "DeadESP", function()
  36.  
  37. draw.SetFont(font)
  38.  
  39. local player = entities.GetLocalPlayer()
  40.  
  41. if not player or not deadesp_master or not deadesp_wallhack_key:GetValue() then
  42. return
  43. end
  44.  
  45. local cache_default_type_of_vis_chams = gui.GetValue("esp.chams.enemy.visible")
  46.  
  47. if player:IsAlive() == true and (deadesp_wallhack_key:GetValue() ~= nil or false) and input.IsButtonDown(deadesp_wallhack_key:GetValue()) then --- Alive, holding down the wh-key
  48. gui.SetValue("esp.chams.enemy.occluded", deadesp_chams_on_tggl:GetValue())
  49. color(wh_chams_indicators_clr:GetValue())
  50. text(xposi:GetValue(),yposi:GetValue(), "OnHold Chams")
  51.  
  52. elseif player:IsAlive() == true and (deadesp_wallhack_key:GetValue() ~= nil or false) and not input.IsButtonDown(deadesp_wallhack_key:GetValue()) then --- Alive, onHoldkey unpressed
  53.            
  54. gui.SetValue("esp.overlay.enemy.name", false)
  55. gui.SetValue("esp.chams.enemy.occluded", false)
  56. gui.SetValue("esp.chams.enemy.visible", cache_default_type_of_vis_chams)
  57. gui.SetValue("esp.chams.enemy.overlay", false)
  58. gui.SetValue("esp.chams.enemyattachments.occluded", false)
  59. gui.SetValue("esp.chams.enemyattachments.visible", false)
  60. gui.SetValue("esp.chams.enemyattachments.overlay", false)
  61. gui.SetValue("esp.chams.friendlyattachments.occluded", false)
  62. gui.SetValue("esp.chams.friendlyattachments.visible", false)
  63. gui.SetValue("esp.chams.friendlyattachments.overlay", false)
  64. gui.SetValue("esp.overlay.enemy.scoped", false)
  65. gui.SetValue("esp.overlay.enemy.reloading", false)
  66. gui.SetValue("esp.overlay.enemy.health.healthnum", false)
  67. gui.SetValue("esp.overlay.enemy.health.healthbar", false)
  68. gui.SetValue("esp.overlay.enemy.weapon", false)
  69. gui.SetValue("esp.overlay.enemy.box", false)
  70. gui.SetValue("esp.overlay.enemy.hasdefuser", false)
  71. gui.SetValue("esp.overlay.enemy.hasc4", false)
  72. gui.SetValue("esp.overlay.weapon.ammo", false)
  73. gui.SetValue("esp.overlay.enemy.barrel", false)
  74. gui.SetValue("esp.overlay.enemy.armor", false)
  75.  
  76. elseif player:IsAlive() == false then -- dead and spectating someone
  77.  
  78. gui.SetValue("esp.overlay.enemy.name", true)
  79. gui.SetValue("esp.chams.enemy.occluded", deadesp_chams_while_spec:GetValue())
  80. gui.SetValue("esp.chams.enemy.visible", "2")
  81. gui.SetValue("esp.chams.enemy.overlay", "1")
  82. gui.SetValue("esp.chams.enemyattachments.occluded", false)
  83. gui.SetValue("esp.chams.enemyattachments.visible", false)
  84. gui.SetValue("esp.chams.enemyattachments.overlay", false)
  85. gui.SetValue("esp.chams.friendlyattachments.occluded", false)
  86. gui.SetValue("esp.chams.friendlyattachments.visible", false)
  87. gui.SetValue("esp.chams.friendlyattachments.overlay", false)
  88. gui.SetValue("esp.overlay.enemy.scoped", false)
  89. gui.SetValue("esp.overlay.enemy.reloading", false)
  90. gui.SetValue("esp.overlay.enemy.health.healthnum", "1")
  91. gui.SetValue("esp.overlay.enemy.health.healthbar", false)
  92. gui.SetValue("esp.overlay.enemy.weapon", "1")
  93. gui.SetValue("esp.overlay.enemy.box", false)
  94. gui.SetValue("esp.overlay.enemy.hasdefuser", true)
  95. gui.SetValue("esp.overlay.enemy.hasc4", true)
  96. gui.SetValue("esp.overlay.enemy.barrel", false)
  97. gui.SetValue("esp.overlay.enemy.armor", "1")
  98.  
  99. end
  100. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement