Advertisement
BredIsDead

aaaaaaa

Feb 14th, 2016
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 42.28 KB | None | 0 0
  1. -- Made by Dark, Many thanks to Gravko for the help!
  2. -- Deligit hooking system and optimiziation of esp and xray a great help-
  3. print [[______ _ _____ _ _ _ _ __
  4. | _ \ | | / __ (_) | | (_) | | \ \
  5. | | | |__ _ _ __| | _| / \/_ __| | ___ ___ ___ ___ _ __ _ _ __ | |_ ___ (_) |
  6. | | | / _` | '__| |/ / | | |/ _` |/ _ \/ __| / __|/ __| '__| | '_ \| __/ __| | |
  7. | |/ / (_| | | | <| \__/\ | (_| | __/\__ \ \__ \ (__| | | | |_) | |_\__ \ _| |
  8. |___/ \__,_|_| |_|\_\\____/_|\__,_|\___||___/ |___/\___|_| |_| .__/ \__|___/ (_) |
  9. | | /_/
  10. |_|
  11.  
  12. ---------------------------------
  13. -----LIST OF CONSOLE COMMANDS----
  14. ---------------------------------
  15. dark_menu -- Opens the menu
  16. dark_xray -- toggles the general xray
  17. dark_entity -- toggles the Entity finder/esp (printers,money,weapons)
  18. dark_180 -- Do a 180 flip
  19. darkbhop -- Toggles bunny hop
  20. dark_chat-- Toggles the autospam default message is (ooc) Dark is cool!
  21. dark_music -- Toggles a hl2 song
  22. dark_adminalert -- Toggles the admin alert
  23. darkide_adminalert_distance -- Admin alert distance
  24. dark_chatspam - Toggle the chatspam on and off default message is "default message"
  25. dark_chatspam_msg -- You can change the chatspam message via the menu press enter on the chatspam input or do dark_chatspam yourmessagehere
  26. dark_flashspam -- Toggles the Flashlight spammer!
  27. dark_rainbow - Toggles the rainbow physgun, It is clientside only so YOU only see this!
  28. dark_unload -- Unloads the script! (Exits the script May be buggy)
  29. ]]
  30.  
  31. if dark then
  32. rawset(_G, "dark", nil)
  33. end
  34.  
  35. local dark = {} // make local table
  36.  
  37. dark.g = table.Copy(_G); // copy _G
  38.  
  39. function dark.Copy(t, lookup_table)
  40. if (t == nil) then return nil end
  41. local copy = {}
  42. setmetatable(copy, getmetatable(t))
  43. for i,v in pairs(t) do
  44. if ( !istable(v) ) then
  45. copy[i] = v
  46. else
  47. lookup_table = lookup_table or {}
  48. lookup_table[t] = copy
  49. if lookup_table[v] then
  50. copy[i] = lookup_table[v]
  51. else
  52. copy[i] = dark.Copy(v,lookup_table) --
  53. end
  54. end
  55. end
  56. return copy
  57. end
  58.  
  59. dark.new_gm_hooks = {};
  60. dark.gm_hooks = {};
  61. dark.old_gm_hooks = {};
  62. dark.OrigFuncs = {};
  63. dark.FakeFuncs = {};
  64. dark.CmdHooks = {};
  65. dark.Plys = {} // table for valid players
  66. dark.me = dark.g.LocalPlayer()
  67. dark.gm = table.Copy(GAMEMODE)
  68. dark.cm = dark.Copy(dark.g.FindMetaTable("CUserCmd")) // we need these
  69. dark.am = dark.Copy(dark.g.FindMetaTable("Angle")) // we need these
  70. dark.vm = dark.Copy(dark.g.FindMetaTable("Vector")) // we need these
  71. dark.wm = dark.Copy(dark.g.FindMetaTable("Weapon")) // we need these
  72. dark.em = dark.Copy(dark.g.FindMetaTable("Entity")) // we need these
  73. dark.pm = dark.Copy(dark.g.FindMetaTable("Player")) // we need these
  74. dark.r = dark.Copy(dark.g.debug.getregistry()) // we need these
  75. dark.ConCMD = dark.Copy(concommand)
  76. dark.odbginf = debug.getinfo;
  77. dark.ogmt = getmetatable;
  78. dark.shouldbhop = CreateClientConVar("darkbhop", "0", true, true)
  79. dark.xrei = CreateClientConVar("dark_xray", 0, false, false)
  80. dark.adminwarning = CreateClientConVar("dark_adminalert", "1", true, false)
  81. dark.espon = CreateClientConVar("dark_esp", "1", false, false)
  82.  
  83.  
  84.  
  85. dark.g.surface.CreateFont(
  86. "darkhud", {
  87. font = "Trebuchet24",
  88. size = 14,
  89. weight = 50,
  90. }
  91. )
  92.  
  93. function dark.DetourFunc(func, newfunc) // luv from deligit to my nigga Function <3
  94. dark.g.table.insert(dark.OrigFuncs, func);
  95. dark.g.table.insert(dark.FakeFuncs, newfunc);
  96. end
  97.  
  98. function dark.CopyTable(t, lookup_table)
  99. if (t == nil) then return nil end
  100. local copy = {}
  101. setmetatable(copy, getmetatable(t))
  102. for i,v in dark.g.pairs(t) do
  103. if ( !istable(v) ) then
  104. copy[i] = v
  105. else
  106. lookup_table = lookup_table or {}
  107. lookup_table[t] = copy
  108. if lookup_table[v] then
  109. copy[i] = lookup_table[v]
  110. else
  111. copy[i] = dark.CopyTable(v,lookup_table) --
  112. end
  113. end
  114. end
  115. return copy
  116. end
  117.  
  118. setmetatable(_G, {
  119. ['__index'] = function(self, k)
  120. if k == "dark" then
  121. return dark;
  122. end
  123. end,
  124. ['__newindex'] = function(self, k, v)
  125. dark.g.rawset(self, k, v);
  126. if k == "GAMEMODE" then
  127. for k,v in dark.g.pairs(GAMEMODE) do
  128. dark.old_gm_hooks[k] = v;
  129. end
  130. local GMTbl = GAMEMODE;
  131. if !(getmetatable(GMTbl)) then
  132. setmetatable(GMTbl, {
  133. ['__newindex'] = function(self, k, v)
  134. dark.old_gm_hooks[k] = v;
  135. end,
  136. ['__call'] = function(self, k, id, v)
  137. if (not dark.gm_hooks[k]) then dark.gm_hooks[k] = {}; end
  138. dark.gm_hooks[k][id] = v
  139. if (not dark.new_gm_hooks[k]) then
  140. dark.new_gm_hooks[k] = function(GM, ...)
  141. if (dark.old_gm_hooks[k]) then
  142. dark.old_gm_hooks[k](GM, ...);
  143. end
  144. for k,v in dark.g.pairs(dark.gm_hooks[k]) do
  145. v(...);
  146. end
  147. end
  148. dark.DetourFunc(dark.old_gm_hooks[k], dark.new_gm_hooks[k]);
  149. end
  150. dark.g.rawset(self, k, dark.new_gm_hooks[k]);
  151. end,
  152. ['__index'] = function(self, k)
  153. local returnval = dark.old_gm_hooks[k] or rawget(self, k);
  154. return returnval
  155. end,
  156. });
  157. end
  158. end
  159. end,
  160. });
  161.  
  162. function dark.Hook(typ, func)
  163. if dark.gm[typ] and GAMEMODE[typ] then
  164. GAMEMODE[typ] = function(...)
  165. dark.gm[typ](...)
  166. func(...)
  167. end
  168. end
  169. end
  170.  
  171. local ndbginf = function(func, ...)
  172. local args = {...};
  173. local targ = func;
  174. local arg = args[1] or false;
  175. for i, fakefunc in dark.g.pairs(dark.FakeFuncs) do
  176. if (func == fakefunc) then
  177. targ = dark.OrigFuncs[i];
  178. break;
  179. end
  180. end
  181. local tbl = arg and dark.odbginf(targ, arg) or dark.odbginf(targ);
  182. if (tbl.func) then tbl.func = func; end
  183. return(tbl)
  184. end
  185.  
  186. local ngmt = function(tbl, ...)
  187. if (dark.gdebug.traceback() and (tbl == _G or tbl == GAMEMODE)) then return nil; end
  188. return dark.ogmt(tbl, ...);
  189. end
  190.  
  191. dark.DetourFunc(debug.getinfo, ndbginf);
  192. debug.getinfo = ndbginf;
  193.  
  194. function dark.GetPlys() // faster than calling player.GetAll all the time
  195. dark.Plys = {}
  196. local humans = dark.g.player.GetAll()
  197. for i = 1, #humans do
  198. local v = humans[i]
  199. if (!IsValid(v) || v == dark.me || !v:Alive() || v:Health() < 1) then continue end
  200. dark.Plys[i] = v
  201. end
  202. dark.g.timer.Simple(2, dark.GetPlys) // better than using hooks
  203. end
  204.  
  205. dark.GetPlys()
  206.  
  207.  
  208.  
  209.  
  210. dark.Hook("DrawOverlay", function(ucmd)
  211. local humans = dark.g.player.GetAll()
  212. if dark.espon:GetBool() then
  213. for k,v in next, humans do
  214. if (!IsValid(v) || v == dark.me || !v:Alive() || v:Health() < 1 || v:Name() == nil) then continue end
  215. local c = v:LocalToWorld( v:OBBCenter() ):ToScreen()
  216. -- dark.g.draw.SimpleTextOutlined( v:Name(), "darkhud", c.x, c.y + 20, team.GetColor( v:Team() ), TEXT_ALIGN_LEFT, TEXT_ALIGN_LEFT, 1, Color( 9, 94 , 0 ))
  217. -- dark.g.draw.SimpleTextOutlined( v:Health(), "darkhud", c.x, c.y - 10, team.GetColor( v:Team() ), TEXT_ALIGN_LEFT, TEXT_ALIGN_LEFT, 1, Color( 9, 94 , 0 ))
  218. -- dark.g.draw.SimpleTextOutlined( team.GetName( v:Team()), "darkhud", c.x, c.y, team.GetColor( v:Team() ), TEXT_ALIGN_LEFT, TEXT_ALIGN_LEFT, 1, Color( 9, 94 , 0 ))
  219. -- dark.g.draw.SimpleTextOutlined( v:GetUserGroup(), "darkhud", c.x, c.y + 10, team.GetColor( v:Team() ), TEXT_ALIGN_LEFT, TEXT_ALIGN_LEFT, 1, Color( 9, 94 , 0 ))
  220. -- dark.g.draw.SimpleTextOutlined( dark.g.math.Round( v:GetPos():Distance(LocalPlayer():GetPos())), "darkhud", c.x, c.y - 20, team.GetColor( v:Team() ), TEXT_ALIGN_LEFT, TEXT_ALIGN_LEFT, 1, Color( 9, 94 , 0))
  221.  
  222. dark.g.draw.RoundedBox( 4, c.x - 10 , c.y - 65, 20, 5, (team.GetColor( v:Team() )))
  223. dark.g.draw.SimpleTextOutlined( dark.g.math.Round( v:GetPos():Distance(LocalPlayer():GetPos())), "darkhud", c.x , c.y - 55, Color( 255, 255, 255, 255 ), TEXT_ALIGN_CENTER, TEXT_ALIGN_CENTER, 1, Color( 9, 94 , 0))
  224. dark.g.draw.SimpleTextOutlined( v:Health(), "darkhud", c.x , c.y - 45, Color( 255, 255, 255, 255 ), TEXT_ALIGN_CENTER, TEXT_ALIGN_CENTER, 1, Color( 9, 94 , 0 ))
  225. dark.g.draw.SimpleTextOutlined( v:GetUserGroup(), "darkhud", c.x , c.y - 35, Color( 255, 255, 255, 255 ), TEXT_ALIGN_CENTER, TEXT_ALIGN_CENTER, 1, Color( 9, 94 , 0 ))
  226. dark.g.draw.SimpleTextOutlined( v:Name(), "darkhud", c.x , c.y - 25, Color( 255, 255, 255, 255 ), TEXT_ALIGN_CENTER, TEXT_ALIGN_CENTER, 1, Color( 9, 94 , 0 ))
  227.  
  228.  
  229.  
  230. end
  231. end
  232. end)
  233.  
  234.  
  235.  
  236.  
  237.  
  238. -------------- ESP POSISTIONING ON THIS VERSION IS SCREWED UP DONT UPLOAD WITH THIS ACTIVE UNTIL THE ESP IS FULLY FIXED ALSO EXPERIMENTAL METHODS OF DOING THINGS ARE HERE MUST DO SURVEYS/OPINIONS BEFORE USING THIS VERSION!
  239. ---dark.Hook("DrawOverlay", function(ucmd)
  240. --- local humans = dark.g.player.GetAll()
  241. ---- for k,v in next, humans do
  242. ---- if (!IsValid(v) || v == dark.me || !v:Alive() || v:Health() < 1 || v:Name() == nil) then continue end
  243. ----- local c = v:LocalToWorld( v:OBBCenter() ):ToScreen()
  244.  
  245. -------------- ESP POSISTIONING ON THIS VERSION IS SCREWED UP DONT UPLOAD UNTIL THE ESP IS FULLY FIXED ALSO EXPERIMENTAL METHODS OF DOING THINGS ARE HERE MUST DO SURVEYS/OPINIONS BEFORE USING THIS VERSION!
  246.  
  247. --- dark.g.draw.RoundedBox( 6, c.x - 26, c.y - 100, 50, 70, Color( 255, 255, 255, 100 ) ) --- need to get peoples opinions before i can use this
  248.  
  249. ----dark.g.draw.SimpleTextOutlined( dark.g.math.Round( v:GetPos():Distance(LocalPlayer():GetPos())), "darkhud", c.x - 20, c.y - 90, team.GetColor( v:Team() ), TEXT_ALIGN_LEFT, TEXT_ALIGN_LEFT, 1, Color( 9, 94 , 0))
  250.  
  251. ---dark.g.draw.WordBox( 8, c.x - 26, c.y - 100, v:Health(), "darkhud", team.GetColor( v:Team() ), Color(255,255,255,255) ) -- maybe good idea??????????????????? wordboxes look good but are big and cant make any smaller,.,
  252.  
  253. ----dark.g.draw.WordBox( 8, c.x - 26, c.y - 100, ( team.GetName( v:Team())), "darkhud", team.GetColor( v:Team() ), Color(255,255,255,255) )
  254.  
  255.  
  256. ---- dark.g.draw.SimpleTextOutlined( team.GetName( v:Team()), "darkhud", c.x - 20 , c.y - 80 , team.GetColor( v:Team() ), TEXT_ALIGN_LEFT, TEXT_ALIGN_LEFT, 1, Color( 9, 94 , 0 ))
  257.  
  258. ----- dark.g.draw.SimpleTextOutlined( v:Health(), "darkhud", c.x - 20, c.y - 70, team.GetColor( v:Team() ), TEXT_ALIGN_LEFT, TEXT_ALIGN_LEFT, 1, Color( 9, 94 , 0 ))
  259.  
  260. ---- dark.g.draw.SimpleTextOutlined( v:GetUserGroup(), "darkhud", c.x - 20, c.y - 60, team.GetColor( v:Team() ), TEXT_ALIGN_LEFT, TEXT_ALIGN_LEFT, 1, Color( 9, 94 , 0 ))
  261.  
  262. ---- dark.g.draw.SimpleTextOutlined( v:Name(), "darkhud", c.x - 20, c.y - 50, team.GetColor( v:Team() ), TEXT_ALIGN_LEFT, TEXT_ALIGN_LEFT, 1, Color( 9, 94 , 0 ))
  263.  
  264.  
  265.  
  266. ---- end
  267. ---- end)
  268.  
  269. dark.Hook("CreateMove", function(data, ucmd)
  270. if (ucmd:KeyDown(2) && !dark.me:IsOnGround() && dark.shouldbhop:GetBool()) then
  271. ucmd:SetButtons( bit.band( ucmd:GetButtons(), bit.bnot(2) ) );
  272. end
  273. end)
  274.  
  275. local pm = FindMetaTable("Player");
  276.  
  277. local ogethands = dark.pm.GetHands; -- Note: Only for c_ viewmodels
  278.  
  279. function pm.GetHands(...)
  280. return false && ogethands(...);
  281. end
  282.  
  283. function dark.AdminAlert()
  284. if dark.adminwarning:GetBool() then
  285. for k,v in next, dark.Plys do
  286. local amdminipos = v:LocalToWorld(v:OBBCenter()):ToScreen()
  287. local admindist = dark.g.math.floor((LocalPlayer():GetPos():Distance( v:GetPos()))/40)
  288. if v:GetUserGroup() != "user" and v != LocalPlayer() then
  289. dark.g.draw.DrawText( "An admin is nearby!", "DermaLarge", ScrW() * 0.5, ScrH() * 0.7, Color( 255, 0, 0, 255 ), TEXT_ALIGN_CENTER )
  290. dark.g.surface.PlaySound ("vo/trainyard/female01/cit_bench01.wav")
  291. dark.g.surface.SetDrawColor(255,0,0)
  292. dark.g.surface.DrawLine(ScrW() * .5, ScrH() * .5, amdminipos.x, amdminipos.y)
  293. end
  294. end
  295. end
  296. end
  297.  
  298. local chamsmat = dark.g.CreateMaterial("z", "VertexLitGeneric", {
  299. ["$ignorez"] = 1,
  300. ["$model"] = 1,
  301. ["$basetexture"] = "models/debug/debugwhite",
  302. });
  303.  
  304. local chamsmat2 = dark.g.CreateMaterial("y", "vertexlitgeneric", {
  305. ["$ignorez"] = 0,
  306. ["$model"] = 1,
  307. ["$basetexture"] = "models/debug/debugwhite",
  308. });
  309.  
  310. dark.xraymat = dark.g.CreateMaterial(dark.g.util.CRC("dark_xraymat"), "VertexLitGeneric", {
  311. ["$basetexture"] = "models/debug/debugwhite"
  312. })
  313.  
  314. dark.Hook("HUDPaint", function()
  315. local allprops = dark.g.ents.FindByClass("prop_physics")
  316. for i = 1, #allprops do
  317. local v = allprops[i]
  318. if !dark.em.IsValid(v) then continue end
  319. if !dark.xrei:GetBool() then
  320. dark.em.SetNoDraw(v, false)
  321. continue
  322. end
  323. dark.g.cam.Start3D()
  324. dark.g.render['SuppressEngineLighting'](true)
  325. dark.g.render['MaterialOverride'](dark.xraymat)
  326. dark.g.render.SetColorModulation(0,191,255)
  327. v:SetColor(Color(255,255,255))
  328. dark.g.render.SetBlend(0.10)
  329. dark.em.DrawModel(v)
  330. dark.em.SetNoDraw(v, true)
  331. dark.g.render['SuppressEngineLighting'](false)
  332.  
  333. dark.em.DrawModel(v)
  334. dark.g.cam.End3D()
  335. end
  336. if !ShowSpec then return end
  337. local spectatePlayers = {}
  338. local x = 0
  339. for k,v in dark.g.next, dark.Plys do
  340. if v:GetObserverTarget() == LocalPlayer() then
  341. dark.g.table.insert(spectatePlayers, v:Name())
  342. end
  343. end
  344. if #spectatePlayers == 0 then return end
  345. local textLength = surface.GetTextSize(dark.g.table.concat(spectatePlayers) ) / 3
  346. dark.g.draw.RoundedBox(1, ScrW() - 180, ScrH() - ScrH() + 15, 150, 30 + textLength, Color(0,0,0,150))
  347. dark.g.draw.SimpleText("Spectators", "TabLarge", ScrW() - 140, ScrH() - ScrH() + 18, Color(130, 0, 255, 255))
  348. dark.g.draw.SimpleText("Spectators", "TabLarge", ScrW() - 140, ScrH() - ScrH() + 16, Color(0, 255, 25, 255))
  349. for k,v in dark.g.next, spectatePlayers do
  350. dark.g.draw.SimpleText(v, "TabLarge", ScrW() - 140, ScrH() - ScrH() + 37 + x, Color(130, 0, 255, 255))
  351. dark.g.draw.SimpleText(v, "TabLarge", ScrW() - 140, ScrH() - ScrH() + 35 + x, Color(75, 255, 25, 255))
  352. x = x + 15
  353. end
  354. end)
  355.  
  356. chat.AddText( Color( 100, 255, 100 ) ,"DARK NOTICE:" , Color( 0, 157, 209 ), "Welcome to Dark's scripts!")
  357. chat.AddText( Color( 100, 255, 100 ) ,"DARK NOTICE:" , Color( 0, 157, 209 ),"Type dark_menu in console to open the menu!")
  358.  
  359.  
  360.  
  361. cvars.AddChangeCallback("dark_xray", function(convar_name, value_old, value_new)
  362. if GetConVarNumber("dark_xray") == 1 then
  363. surface.PlaySound ("npc/sniper/reload1.wav")
  364. chat.AddText( Color( 100, 255, 100 ) ,"DARK NOTICE:" , Color( 0, 157, 209 ), "Xray is turned on!")
  365. elseif GetConVarNumber("dark_xray") == 0 then
  366. chat.AddText( Color( 100, 255, 100 ) ,"DARK NOTICE:" , Color( 0, 157, 209 ),"Xray is deactivated!")
  367. surface.PlaySound ("vehicles/APC/apc_shutdown.wav")
  368. end
  369. end)
  370.  
  371. cvars.AddChangeCallback("darkbhop", function(convar_name, value_old, value_new)
  372. if GetConVarNumber("darkbhop") == 1 then
  373. surface.PlaySound ("ambient/machines/thumper_startup1.wav")
  374. chat.AddText( Color( 100, 255, 100 ) ,"DARK NOTICE:" , Color( 0, 157, 209 ), "Bunnyhop is turned", Color( 13, 255, 134 ), " on!")
  375. elseif GetConVarNumber("darkbhop") == 0 then
  376. chat.AddText( Color( 100, 255, 100 ) ,"DARK NOTICE:" , Color( 0, 157, 209 ),"Bunnyhop is turned", Color( 255,110,0 ), " off!" )
  377. surface.PlaySound ("buttons/combine_button5.wav")
  378. end
  379. end)
  380.  
  381. cvars.AddChangeCallback("dark_entity", function(convar_name, value_old, value_new)
  382. if GetConVarNumber("dark_entity") == 1 then
  383. surface.PlaySound ("buttons/combine_button1.wav")
  384. chat.AddText( Color( 100, 255, 100 ) ,"DARK NOTICE:" , Color( 0, 157, 209 ), "Entity finder is turned", Color( 13, 255, 134 ), " on!")
  385. elseif GetConVarNumber("dark_entity") == 0 then
  386. chat.AddText( Color( 100, 255, 100 ) ,"DARK NOTICE:" , Color( 0, 157, 209 ),"Entity finder is turned", Color( 255,110,0 ), " off!")
  387. surface.PlaySound ("buttons/combine_button2.wav")
  388. end
  389. end)
  390.  
  391.  
  392. cvars.AddChangeCallback("dark_adminalert", function(convar_name, value_old, value_new)
  393. if GetConVarNumber("dark_adminalert") == 1 then
  394. surface.PlaySound ("buttons/combine_button1.wav")
  395. chat.AddText( Color( 100, 255, 100 ) ,"DARK NOTICE:" , Color( 0, 157, 209 ), "Admin alert is turned", Color( 13, 255, 134 ), " on!")
  396. elseif GetConVarNumber("dark_adminalert") == 0 then
  397. chat.AddText( Color( 100, 255, 100 ) ,"DARK NOTICE:" , Color( 0, 157, 209 ),"Admin alert is turned", Color( 255,110,0 ), " off!")
  398. surface.PlaySound ("buttons/combine_button2.wav")
  399. end
  400. end)
  401.  
  402.  
  403.  
  404. cvars.AddChangeCallback("dark_chatspam", function(convar_name, value_old, value_new)
  405. if GetConVarNumber("dark_chatspam") == 1 then
  406. surface.PlaySound ("buttons/combine_button1.wav")
  407. chat.AddText( Color( 100, 255, 100 ) ,"DARK NOTICE:" , Color( 0, 157, 209 ), "Chat spammer is turned", Color( 13, 255, 134 ), " on!")
  408. elseif GetConVarNumber("dark_chatspam") == 0 then
  409. chat.AddText( Color( 100, 255, 100 ) ,"DARK NOTICE:" , Color( 0, 157, 209 ),"Chat spammer is turned", Color( 255,110,0 ), " off!")
  410. surface.PlaySound ("buttons/combine_button2.wav")
  411. end
  412. end)
  413.  
  414.  
  415.  
  416.  
  417. cvars.AddChangeCallback("dark_flashspam", function(convar_name, value_old, value_new)
  418. if GetConVarNumber("dark_flashspam") == 1 then
  419. surface.PlaySound ("buttons/combine_button1.wav")
  420. chat.AddText( Color( 100, 255, 100 ) ,"DARK NOTICE:" , Color( 0, 157, 209 ), "Flaslight spammer is turned", Color( 13, 255, 134 ), " on!")
  421. elseif GetConVarNumber("dark_flashspam") == 0 then
  422. chat.AddText( Color( 100, 255, 100 ) ,"DARK NOTICE:" , Color( 0, 157, 209 ),"Flashlight spammer is turned", Color( 255,110,0 ), " off!")
  423. surface.PlaySound ("buttons/combine_button2.wav")
  424. end
  425. end)
  426.  
  427.  
  428. cvars.AddChangeCallback("dark_rainbow", function(convar_name, value_old, value_new)
  429. if GetConVarNumber("dark_rainbow") == 1 then
  430. surface.PlaySound ("ambient/energy/whiteflash.wav")
  431. chat.AddText( Color( 100, 255, 100 ) ,"DARK NOTICE:" , Color( 0, 157, 209 ), "Rainbow physgun is turned", Color( 13, 255, 134 ), " on!")
  432. elseif GetConVarNumber("dark_rainbow") == 0 then
  433. chat.AddText( Color( 100, 255, 100 ) ,"DARK NOTICE:" , Color( 0, 157, 209 ),"Rainbow physgun is turned", Color( 255,110,0 ), " off!")
  434. surface.PlaySound ("npc/roller/code2.wav")
  435. end
  436. end)
  437.  
  438.  
  439.  
  440. cvars.AddChangeCallback("dark_hud", function(convar_name, value_old, value_new)
  441. if GetConVarNumber("dark_hud") == 1 then
  442. surface.PlaySound ("npc/scanner/combat_scan2.wav")
  443. chat.AddText( Color( 100, 255, 100 ) ,"DARK NOTICE:" , Color( 0, 157, 209 ), "HUD is turned", Color( 13, 255, 134 ), " on!")
  444. elseif GetConVarNumber("dark_hud") == 0 then
  445. chat.AddText( Color( 100, 255, 100 ) ,"DARK NOTICE:" , Color( 0, 157, 209 ),"HUD is turned", Color( 255,110,0 ), " off!")
  446. surface.PlaySound ("npc/scanner/combat_scan5.wav")
  447. end
  448. end)
  449.  
  450.  
  451.  
  452. cvars.AddChangeCallback("dark_watermark", function(convar_name, value_old, value_new)
  453. if GetConVarNumber("dark_watermark") == 1 then
  454. surface.PlaySound ("npc/scanner/combat_scan2.wav")
  455. chat.AddText( Color( 100, 255, 100 ) ,"DARK NOTICE:" , Color( 0, 157, 209 ), "Watermark is turned", Color( 13, 255, 134 ), " on!")
  456. elseif GetConVarNumber("dark_watermark") == 0 then
  457. chat.AddText( Color( 100, 255, 100 ) ,"DARK NOTICE:" , Color( 0, 157, 209 ),"Watermark is turned", Color( 255,110,0 ), " off!")
  458. surface.PlaySound ("npc/scanner/combat_scan5.wav")
  459. end
  460. end)
  461.  
  462.  
  463. cvars.AddChangeCallback("dark_crosshair", function(convar_name, value_old, value_new)
  464. if GetConVarNumber("dark_crosshair") == 1 then
  465. surface.PlaySound ("npc/roller/mine/rmine_blip3.wav")
  466. chat.AddText( Color( 100, 255, 100 ) ,"DARK NOTICE:" , Color( 0, 157, 209 ), "Crosshair is turned", Color( 13, 255, 134 ), " on!")
  467. elseif GetConVarNumber("dark_crosshair") == 0 then
  468. chat.AddText( Color( 100, 255, 100 ) ,"DARK NOTICE:" , Color( 0, 157, 209 ),"Crosshair is turned", Color( 255,110,0 ), " off!")
  469. surface.PlaySound ("npc/roller/mine/combine_mine_deactivate1.wav")
  470. end
  471. end)
  472.  
  473.  
  474.  
  475.  
  476. cvars.AddChangeCallback("dark_crosshair2", function(convar_name, value_old, value_new)
  477. if GetConVarNumber("dark_crosshair2") == 1 then
  478. surface.PlaySound ("npc/roller/mine/rmine_blip3.wav")
  479. chat.AddText( Color( 100, 255, 100 ) ,"DARK NOTICE:" , Color( 0, 157, 209 ), "2nd Crosshair is turned", Color( 13, 255, 134 ), " on!")
  480. elseif GetConVarNumber("dark_crosshair2") == 0 then
  481. chat.AddText( Color( 100, 255, 100 ) ,"DARK NOTICE:" , Color( 0, 157, 209 ),"2nd Crosshair is turned", Color( 255,110,0 ), " off!")
  482. surface.PlaySound ("npc/roller/mine/combine_mine_deactivate1.wav")
  483. end
  484. end)
  485.  
  486.  
  487.  
  488.  
  489. cvars.AddChangeCallback("dark_esp", function(convar_name, value_old, value_new)
  490. if GetConVarNumber("dark_esp") == 1 then
  491. surface.PlaySound ("npc/roller/mine/rmine_blip3.wav")
  492. chat.AddText( Color( 100, 255, 100 ) ,"DARK NOTICE:" , Color( 0, 157, 209 ), "ESP is turned", Color( 13, 255, 134 ), " on!")
  493. elseif GetConVarNumber("dark_esp") == 0 then
  494. chat.AddText( Color( 100, 255, 100 ) ,"DARK NOTICE:" , Color( 0, 157, 209 ),"ESP is turned", Color( 255,110,0 ), " off!")
  495. surface.PlaySound ("npc/roller/mine/combine_mine_deactivate1.wav")
  496. end
  497. end)
  498.  
  499. dark.Hook("RenderScreenspaceEffects", function()
  500. if dark.xrei:GetBool() then
  501.  
  502. for k,v in dark.g.next, dark.Plys do
  503. if(!dark.em.IsValid(v) || dark.em.Health(v) < 1 || v == dark.me || dark.em.IsDormant(v)) then continue; end
  504. dark.g.cam.Start3D();
  505. dark.g.render.MaterialOverride(chamsmat);
  506. dark.g.render.SetColorModulation(1,1,1);
  507. dark.em.DrawModel(v);
  508. dark.g.render.SetColorModulation(1,1,1);
  509. dark.g.render.MaterialOverride(chamsmat2);
  510. dark.em.DrawModel(v);
  511. dark.g.cam.End3D();
  512. end
  513. end
  514. end)
  515.  
  516. dark.ConCMD['Add']("dark_openscript", function( ply, cmd, args )
  517. local lua = dark.g.file.Read( args[1] )
  518. dark.g.RunString( lua )
  519. end )
  520.  
  521. dark.ConCMD['Add']("showspecs", function(ply, command, args)
  522. ShowSpec = !ShowSpec
  523. end)
  524.  
  525. dark.ConCMD['Add']("dark_180", function()
  526. LocalPlayer():SetEyeAngles( LocalPlayer():EyeAngles() + Angle( -2 * LocalPlayer():EyeAngles().p,180, 0) )
  527. end)
  528.  
  529. dark.ConCMD['Add']("dark_music", function()
  530. dark.g.surface.PlaySound("music/HL2_song23_SuitSong3.mp3")
  531. end)
  532.  
  533. local espCvar = CreateClientConVar("dark_entity", 1, false, false)
  534.  
  535. cvars.AddChangeCallback( "dark_entity", function( cvar, old, new )
  536. enableESP = tobool( new )
  537. end, "updatevalue" )
  538.  
  539. local enableESP = espCvar:GetBool()
  540.  
  541. local lookup = {
  542. money_printer = true,
  543. spawned_weapon = true,
  544. spawned_money = true,
  545.  
  546. }
  547.  
  548. local itemOffset = Vector( 8, -10, 30 )
  549. local swepOffset = Vector( 3, 0, 20 )
  550. local moneyOffset = Vector( 3, 0, 10 )
  551.  
  552.  
  553. local itemColor = Color( 255, 255, 0 )
  554. local swepColor = Color( 255, 0, 0 )
  555. local moneyColor = Color( 0, 255, 0 )
  556.  
  557.  
  558. hook.Add( "HUDPaint", "ESP", function()
  559. if ( not enableESP ) then return end
  560.  
  561. local pos, ent
  562. local entTable = ents.GetAll()
  563.  
  564. for i = 1, #entTable do
  565. ent = entTable[ i ]
  566. if ( not IsValid( ent ) ) then continue end
  567. if ( not lookup[ ent:GetClass() ] ) then continue end
  568.  
  569. if ( ent:GetClass() == "money_printer" ) then
  570. ------ new wordboxes!----
  571.  
  572. pos = ( ent:GetPos() + itemOffset ):ToScreen()
  573. -- draw.SimpleTextOutlined( "Money Printer", "Trebuchet18", pos.x, pos.y, itemColor, 0,0,1, color_black )
  574. draw.WordBox (2, pos.x,pos.y, "Money Printer", "Trebuchet18", Color(128,128,128,100), Color(255,0,0,255))
  575.  
  576.  
  577. elseif ( ent:GetClass() == "spawned_weapon" ) then
  578.  
  579. pos = ( ent:GetPos() + swepOffset ):ToScreen()
  580. ---draw.SimpleTextOutlined( "Weapon", "Trebuchet18", pos.x, pos.y, swepColor, 0,0,1, color_black )
  581. draw.WordBox (2, pos.x,pos.y, "Weapon", "Trebuchet18", Color(128,128,128,100), Color(255,230,0,255))
  582.  
  583. elseif ( ent:GetClass() == "spawned_money" ) then
  584.  
  585. pos = ( ent:GetPos() + moneyOffset ):ToScreen()
  586. ---draw.SimpleTextOutlined( "Money", "Trebuchet18", pos.x, pos.y, moneyColor, 0,0,1, color_black )
  587. draw.WordBox (2, pos.x,pos.y, "Money", "Trebuchet18", Color(128,128,128,100), Color(0,255,40,255))
  588.  
  589.  
  590. end
  591. end
  592.  
  593. end )
  594.  
  595. concommand.Add( "dark_about", function()
  596. Derma_Message( "This addon was made by Dark.", "About", "OK" )
  597. surface.PlaySound ("notify.wav")
  598. end)
  599.  
  600.  
  601.  
  602.  
  603.  
  604.  
  605. concommand.Add( "dark_menu", function()
  606. surface.PlaySound ("ambient/machines/combine_terminal_idle4.wav")
  607. local DermaPanel = vgui.Create( "DFrame" )
  608. DermaPanel:SetPos( 200, 300)
  609. DermaPanel:SetSize( 350, 280 )
  610. DermaPanel:Center()
  611. DermaPanel:SetTitle( "Dark's scripts" )
  612. DermaPanel:SetVisible( true )
  613. DermaPanel:SetDraggable( true )
  614. DermaPanel:ShowCloseButton( true )
  615. DermaPanel:MakePopup()
  616. DermaPanel.Paint = function()
  617. surface.SetDrawColor( 34, 123, 149, 255 )
  618. surface.DrawRect( 0, 0, DermaPanel:GetWide(), DermaPanel:GetTall() )
  619. surface.SetDrawColor( 255, 255, 255, 255 )
  620. surface.DrawOutlinedRect( 0, 0, DermaPanel:GetWide(), DermaPanel:GetTall() )
  621. end
  622.  
  623. local CheckBoxThing = vgui.Create( "DCheckBoxLabel", DermaPanel )
  624. CheckBoxThing:SetPos( 30,30 )
  625. CheckBoxThing:SetText( "X-ray" )
  626. CheckBoxThing:SetConVar( "dark_xray" )
  627. CheckBoxThing:SizeToContents()
  628.  
  629. DermaImage = vgui.Create( "DImageButton", DermaPanel )
  630. DermaImage:SetPos( 10, 29 )
  631. DermaImage:SetImage( "icon16/shape_ungroup.png" )
  632. DermaImage:SizeToContents()
  633.  
  634.  
  635.  
  636.  
  637. local CheckBoxThing = vgui.Create( "DCheckBoxLabel", DermaPanel )
  638. CheckBoxThing:SetPos( 30,50 )
  639. CheckBoxThing:SetText( "Auto-jump (Bhop)" )
  640. CheckBoxThing:SetConVar( "darkbhop" )
  641. CheckBoxThing:SizeToContents()
  642.  
  643.  
  644.  
  645. DermaImage = vgui.Create( "DImageButton", DermaPanel )
  646. DermaImage:SetPos( 10, 49 )
  647. DermaImage:SetImage( "icon16/arrow_up.png" )
  648. DermaImage:SizeToContents()
  649.  
  650.  
  651.  
  652.  
  653.  
  654.  
  655. local CheckBoxThing = vgui.Create( "DCheckBoxLabel", DermaPanel )
  656. CheckBoxThing:SetPos( 30,70 )
  657. CheckBoxThing:SetText( "Admin alert feature" )
  658. CheckBoxThing:SetConVar( "dark_adminalert" )
  659. CheckBoxThing:SizeToContents()
  660.  
  661.  
  662. DermaImage = vgui.Create( "DImageButton", DermaPanel )
  663. DermaImage:SetPos( 10, 69 )
  664. DermaImage:SetImage( "icon16/exclamation.png" )
  665. DermaImage:SizeToContents()
  666.  
  667.  
  668.  
  669.  
  670.  
  671.  
  672. local CheckBoxThing = vgui.Create( "DCheckBoxLabel", DermaPanel )
  673. CheckBoxThing:SetPos( 30,90 )
  674. CheckBoxThing:SetText( "Chat Spammer" )
  675. CheckBoxThing:SetConVar( "dark_chatspam" )
  676. CheckBoxThing:SizeToContents()
  677.  
  678. DermaImage = vgui.Create( "DImageButton", DermaPanel )
  679. DermaImage:SetPos( 10, 89 )
  680. DermaImage:SetImage( "icon16/comments.png" )
  681. DermaImage:SizeToContents()
  682.  
  683.  
  684.  
  685. local CheckBoxThing = vgui.Create( "DCheckBoxLabel", DermaPanel )
  686. CheckBoxThing:SetPos( 30,110 )
  687. CheckBoxThing:SetText( "Flashlight Spammer" )
  688. CheckBoxThing:SetConVar( "dark_flashspam" )
  689. CheckBoxThing:SizeToContents()
  690.  
  691. DermaImage = vgui.Create( "DImageButton", DermaPanel )
  692. DermaImage:SetPos( 10, 109 )
  693. DermaImage:SetImage( "icon16/asterisk_orange.png" )
  694. DermaImage:SizeToContents()
  695.  
  696.  
  697.  
  698.  
  699.  
  700.  
  701.  
  702. local CheckBoxThing = vgui.Create( "DCheckBoxLabel", DermaPanel )
  703. CheckBoxThing:SetPos( 30,130 )
  704. CheckBoxThing:SetText( "Entity finder" )
  705. CheckBoxThing:SetConVar( "dark_entity" )
  706. CheckBoxThing:SizeToContents()
  707.  
  708.  
  709. DermaImage = vgui.Create( "DImageButton", DermaPanel )
  710. DermaImage:SetPos( 10, 129 )
  711. DermaImage:SetImage( "icon16/magnifier.png" )
  712. DermaImage:SizeToContents()
  713.  
  714.  
  715.  
  716.  
  717. local CheckBoxThing = vgui.Create( "DCheckBoxLabel", DermaPanel )
  718. CheckBoxThing:SetPos( 30,150 )
  719. CheckBoxThing:SetText( "Rainbow Physgun" )
  720. CheckBoxThing:SetConVar( "dark_rainbow" )
  721. CheckBoxThing:SizeToContents()
  722.  
  723. DermaImage = vgui.Create( "DImageButton", DermaPanel )
  724. DermaImage:SetPos( 10, 149 )
  725. DermaImage:SetImage( "icon16/color_wheel.png" )
  726. DermaImage:SizeToContents()
  727.  
  728.  
  729.  
  730.  
  731.  
  732. local CheckBoxThing = vgui.Create( "DCheckBoxLabel", DermaPanel )
  733. CheckBoxThing:SetPos( 30,170 )
  734. CheckBoxThing:SetText( "HUD" )
  735. CheckBoxThing:SetConVar( "dark_hud" )
  736. CheckBoxThing:SizeToContents()
  737.  
  738.  
  739. DermaImage = vgui.Create( "DImageButton", DermaPanel )
  740. DermaImage:SetPos( 10, 169 )
  741. DermaImage:SetImage( "icon16/layout.png" )
  742. DermaImage:SizeToContents()
  743.  
  744.  
  745.  
  746.  
  747. local CheckBoxThing = vgui.Create( "DCheckBoxLabel", DermaPanel )
  748. CheckBoxThing:SetPos( 30,190 )
  749. CheckBoxThing:SetText( "Crosshair 1" )
  750. CheckBoxThing:SetConVar( "dark_crosshair" )
  751. CheckBoxThing:SizeToContents()
  752.  
  753. DermaImage = vgui.Create( "DImageButton", DermaPanel )
  754. DermaImage:SetPos( 10, 189 )
  755. DermaImage:SetImage( "icon16/bullet_green.png" )
  756. DermaImage:SizeToContents()
  757.  
  758.  
  759.  
  760.  
  761.  
  762. local CheckBoxThing = vgui.Create( "DCheckBoxLabel", DermaPanel )
  763. CheckBoxThing:SetPos( 30,210 )
  764. CheckBoxThing:SetText( "Crosshair 2" )
  765. CheckBoxThing:SetConVar( "dark_crosshair2" )
  766. CheckBoxThing:SizeToContents()
  767.  
  768.  
  769.  
  770. DermaImage = vgui.Create( "DImageButton", DermaPanel )
  771. DermaImage:SetPos( 10, 209 )
  772. DermaImage:SetImage( "icon16/bullet_red.png" )
  773. DermaImage:SizeToContents()
  774.  
  775. local CheckBoxThing = vgui.Create( "DCheckBoxLabel", DermaPanel )
  776. CheckBoxThing:SetPos( 30,230 )
  777. CheckBoxThing:SetText( "Watermark" )
  778. CheckBoxThing:SetConVar( "dark_watermark" )
  779. CheckBoxThing:SizeToContents()
  780.  
  781. DermaImage = vgui.Create( "DImageButton", DermaPanel )
  782. DermaImage:SetPos( 10, 229 )
  783. DermaImage:SetImage( "icon16/text_smallcaps.png" )
  784. DermaImage:SizeToContents()
  785.  
  786.  
  787.  
  788.  
  789. local CheckBoxThing = vgui.Create( "DCheckBoxLabel", DermaPanel )
  790. CheckBoxThing:SetPos( 30,250 )
  791. CheckBoxThing:SetText( "ESP" )
  792. CheckBoxThing:SetConVar( "dark_esp" )
  793. CheckBoxThing:SizeToContents()
  794. DermaImage = vgui.Create( "DImageButton", DermaPanel )
  795. DermaImage:SetPos( 10, 249 )
  796. DermaImage:SetImage( "icon16/eye.png" )
  797. DermaImage:SizeToContents()
  798.  
  799.  
  800.  
  801.  
  802. local DermaButton = vgui.Create( "DButton" )
  803. DermaButton:SetParent( DermaPanel )
  804. DermaButton:SetText( "Music" )
  805. DermaButton:SetPos( 240, 84 )
  806. DermaButton:SetSize( 90, 30 )
  807. DermaButton.DoClick = function ()
  808. RunConsoleCommand( "dark_music" )
  809. end
  810.  
  811.  
  812.  
  813. local DermaButton = vgui.Create( "DButton" )
  814. DermaButton:SetParent( DermaPanel )
  815. DermaButton:SetText( "180" )
  816. DermaButton:SetPos( 240, 124 )
  817. DermaButton:SetSize( 90, 30 )
  818. DermaButton.DoClick = function ()
  819. RunConsoleCommand( "dark_180" )
  820. end
  821.  
  822.  
  823. local DermaButton = vgui.Create( "DButton" )
  824. DermaButton:SetParent( DermaPanel )
  825. DermaButton:SetText( "About" )
  826. DermaButton:SetPos( 240,164 )
  827. DermaButton:SetSize( 90, 30 )
  828. DermaButton.DoClick = function ()
  829. RunConsoleCommand( "dark_about" )
  830. end
  831.  
  832.  
  833. local DermaButton = vgui.Create( "DButton" )
  834. DermaButton:SetParent( DermaPanel )
  835. DermaButton:SetText( "Unload" )
  836. DermaButton:SetPos( 240, 204 )
  837. DermaButton:SetSize( 90, 30 )
  838. DermaButton.DoClick = function ()
  839. surface.PlaySound ("unload.mp3")
  840. chat.AddText( Color( 0, 88, 117 ), "Dark's scripts unloaded!")
  841. chat.AddText( Color( 0, 88, 117 ), "ESP MAY remain until you rejoin the server!")
  842. RunConsoleCommand( "dark_unload" )
  843.  
  844. end
  845.  
  846. DermaImage = vgui.Create( "DImageButton", DermaPanel )
  847. DermaImage:SetPos( 240, 30 )
  848. DermaImage:SetImage( "icon16/application_osx_terminal.png" )
  849. DermaImage:SizeToContents()
  850.  
  851. local DLabel = vgui.Create( "DLabel", Panel )
  852. DLabel:SetParent (DermaPanel)
  853. DLabel:SetPos( 192, 30)
  854. DLabel:SetText( "Run Lua" )
  855.  
  856. local DLabel = vgui.Create( "DLabel", Panel )
  857. DLabel:SetParent (DermaPanel)
  858. DLabel:SetPos( 191.5, 58)
  859. DLabel:SetText( "Chatspam" )
  860.  
  861.  
  862.  
  863. DermaImage = vgui.Create( "DImageButton", DermaPanel )
  864. DermaImage:SetPos( 240, 60 )
  865. DermaImage:SetImage( "icon16/comments_add.png" )
  866. DermaImage:SizeToContents()
  867.  
  868.  
  869. local DermaText = vgui.Create( "DTextEntry", DermaPanel )
  870. DermaText:SetPos( 260,28 )
  871. DermaText:SetTall( 20 )
  872. DermaText:SetWide( 60 )
  873. DermaText:SetEnterAllowed( true )
  874. DermaText.OnEnter = function ()
  875. RunConsoleCommand ("dark_openscript", DermaText:GetValue())
  876. surface.PlaySound ("npc/scanner/scanner_scan2.wav")
  877. chat.AddText( Color( 100, 255, 100 ) ,"DARK NOTICE:" , Color( 0, 157, 209 ), "Lua entered!" )
  878. end
  879.  
  880. local DermaText = vgui.Create( "DTextEntry", DermaPanel )
  881. DermaText:SetPos( 260,58 )
  882. DermaText:SetTall( 20 )
  883. DermaText:SetWide( 60 )
  884. DermaText:SetEnterAllowed( true )
  885. DermaText.OnEnter = function ()
  886. RunConsoleCommand ("dark_chatspam_msg", DermaText:GetValue())
  887. chat.AddText( Color( 100, 255, 100 ) ,"DARK NOTICE:" , Color( 0, 157, 209 ), "Chat message confirmed!" )
  888. surface.PlaySound ("npc/scanner/scanner_scan1.wav")
  889. end
  890.  
  891.  
  892.  
  893.  
  894. end)
  895.  
  896.  
  897.  
  898. dark.g.surface.PlaySound("startup.mp3")
  899. dark.g.notification.AddProgress("DeLiGiTwashere", "DarkCides scripts loaded")
  900. dark.g.timer.Simple(5, function() dark.g.notification.Kill("DeLiGiTwashere") end)
  901.  
  902. ----- Chat spammer -----
  903.  
  904. CreateClientConVar("dark_chatspam_msg", "Default message", false, false)
  905. CreateClientConVar("dark_chatspam", "0", false, false)
  906. hook.Add("Think", "dark_chatspam_hook", function()
  907. if GetConVarNumber("dark_chatspam") != 1 then return end
  908. RunConsoleCommand("say", tostring(GetConVarString("dark_chatspam_msg")))
  909.  
  910. end)
  911.  
  912. ---- flashlight spammer----
  913. CreateClientConVar("dark_flashspam", "0", true, false)
  914. hook.Add("Think", "darkflash", function()
  915. if GetConVarNumber("dark_flashspam") != 1 then return end
  916. RunConsoleCommand("impulse", "100")
  917. end)
  918.  
  919. --- rainbow phsygun (clientside only)
  920. CreateClientConVar ("dark_rainbow", "0", true, false )
  921. hook.Add("Think","darkrainbow",function()
  922. if GetConVarNumber ("dark_rainbow") != 1 then return end
  923. LocalPlayer():SetWeaponColor(VectorRand())
  924. end)
  925.  
  926.  
  927.  
  928.  
  929.  
  930.  
  931. ---------watermark---------------
  932. CreateClientConVar ("dark_watermark","1", true ,false )
  933. hook.Add("HUDPaint", "watermark",function()
  934. if GetConVarNumber("dark_watermark") != 1 then return end
  935. surface.DrawRect( 0, 0, 100, 25 )
  936. draw.SimpleTextOutlined( "Darks scripts V1", "trebuchet18", 5, 5, Color( 255, 255, 255, 255 ), TEXT_ALIGN_LEFT, TEXT_ALIGN_LEFT, 1, Color( 9, 94 , 0 ))
  937. end)
  938.  
  939.  
  940.  
  941.  
  942. surface.CreateFont( "darkhud2", {
  943. font = "trebuchet18",
  944. size = 30,
  945. weight = 500,
  946. } )
  947.  
  948. -------- HUD must be updated to show more info, possibly admin stuff too.------------------
  949. RunConsoleCommand ("dark_hud","1")
  950. RunConsoleCommand ("dark_watermark","1")
  951. CreateClientConVar ("dark_hud","1", true ,false )
  952. hook.Add("HUDPaint", "huddesign",function()
  953. if GetConVarNumber("dark_hud") != 1 then return end
  954. local showvel = math.floor(LocalPlayer():GetVelocity():Length())
  955.  
  956. draw.RoundedBox(34, ScrW()/2.5, ScrH()/1.1, ScrW()/4.57, ScrH()/10.8, Color(0, 0, 0, 255))
  957. draw.RoundedBox(32, ScrW()/2.42, ScrH()/1.08, ScrW()/5.08, ScrH()/15.43, Color(0, 242, 255, 255))
  958. draw.RoundedBox(16, ScrW()/2.35, ScrH()/1.13, ScrW()/6, ScrH()/33.75, Color(0, 0, 0, 255))
  959.  
  960. draw.DrawText("Dark HUD", "darkhud2", ScrW()/2.09, ScrH()/1.13, Color(0, 255, 0, 255))
  961. draw.DrawText("Speed:"..showvel, "darkhud2", ScrW()/2.34, ScrH()/1.06, Color(0, 0, 0, 255))
  962.  
  963.  
  964. ---local coolglow = Material("models/props_combine/combine_fenceglow")
  965. ---- surface.SetMaterial(coolglow)
  966. --- surface.SetDrawColor(Color(41, 128, 185, 255))
  967. --- surface.DrawTexturedRect(300, ScrH()-105, 340, 100, Color(41, 128, 185, 255))
  968.  
  969. end)
  970.  
  971.  
  972. ---- workshop crosshairs modified until I figure out a more efficent method----
  973. CreateClientConVar ("dark_crosshair","1", true ,false )
  974. hook.Add("HUDPaint", "crosshair",function()
  975. if GetConVarNumber("dark_crosshair") != 1 then return end
  976. local x = ScrW() / 2
  977. local y = ScrH() / 2
  978. surface.SetDrawColor( 0, 255, 0, 255 )
  979. local gap = 5
  980. local length = gap + 15
  981.  
  982.  
  983. surface.DrawLine( x - length, y, x - gap, y )
  984. surface.DrawLine( x + length, y, x + gap, y )
  985. surface.DrawLine( x, y - length, x, y - gap )
  986. surface.DrawLine( x, y + length, x, y + gap )
  987.  
  988.  
  989. end)
  990. CreateClientConVar ("dark_crosshair2","0", true ,false )
  991. hook.Add("HUDPaint", "crosshair2",function()
  992. if GetConVarNumber("dark_crosshair2") != 1 then return end
  993. local x = ScrW() / 2
  994. local y = ScrH() / 2
  995. surface.SetDrawColor( 255, 0, 0, 255 )
  996. local gap = 2
  997. local length = gap + 15
  998.  
  999.  
  1000. surface.DrawLine( x - length, y, x - gap, y )
  1001. surface.DrawLine( x + length, y, x + gap, y )
  1002. surface.DrawLine( x, y - length, x, y - gap )
  1003. surface.DrawLine( x, y + length, x, y + gap )
  1004.  
  1005. end)
  1006.  
  1007. ---surface.DrawLine good method i hope
  1008.  
  1009.  
  1010. -- NOT DONE YET--- DO NOT TOUCH --- REMEMBER TO ADD ADDITONAL HOOKS/concommands here, hmm can't add any function that uses deligits detouring thing NEED FIX ASAP.
  1011. concommand.Add( "dark_unload", function()
  1012. ---- surface.PlaySound("ambient/levels/labs/teleport_winddown1.wav") -- should i use this or custom sound? hmmm....,
  1013.  
  1014. RunConsoleCommand ("dark_esp","0")
  1015. RunConsoleCommand ("dark_hud","0")
  1016. RunConsoleCommand ("dark_xray","0")
  1017. RunConsoleCommand ("dark_entity","0")
  1018. RunConsoleCommand ("dark_watermark","0")
  1019. RunConsoleCommand ("dark_crosshair","0")
  1020. RunConsoleCommand ("dark_crosshair2","0")
  1021. RunConsoleCommand ("dark_flashspam","0")
  1022. concommand.Remove( "dark_entity" )
  1023. concommand.Remove( "dark_xray" )
  1024. concommand.Remove( "dark_about" )
  1025. concommand.Remove( "dark_menu" )
  1026. concommand.Remove ("dark_esp")
  1027. concommand.Remove ("dark_openscript")
  1028. concommand.Remove ("dark_180")
  1029. concommand.Remove ("dark_help")
  1030. concommand.Remove ("darkbhop")
  1031. concommand.Remove ("dark_adminalert")
  1032. concommand.Remove ("darkide_adminalert_distance")
  1033. concommand.Remove ("dark_chatspam")
  1034. concommand.Remove ("dark_chatspam_msg")
  1035. concommand.Remove ("dark_crosshair")
  1036. concommand.Remove ("dark_crosshair2")
  1037. hook.Remove ( "Think", "dark_chatspam_hook")
  1038. hook.Remove ( "HUDPaint", "ESP")
  1039. hook.Remove ("RenderScreenspaceEffects","dark.GetPlys")
  1040. timer.Remove("dark.GetPlys")
  1041. timer.Destroy("dark.GetPlys")
  1042. hook.Remove ("Think","darkflash")
  1043. concommand.Remove ("dark_flashspam")
  1044. concommand.Remove ("dark_rainbow")
  1045. hook.Remove ("Think","darkrainbow")
  1046. hook.Remove ("HUDPaint", "crosshair2")
  1047. hook.Remove ("HUDPaint", "crosshair")
  1048. hook.Remove ("HUDPaint", "huddesign")
  1049. hook.Remove ("HUDPaint", "watermark")
  1050. concommand.Remove ("dark_hud")
  1051. concommand.Remove ("dark_watermark")
  1052. concommand.Remove ("dark_crosshair")
  1053. concommand.Remove ("dark_crosshai2")
  1054. chat.AddText( Color( 100, 255, 100 ) ,"DARK NOTICE:" , Color( 0, 157, 209 ), "Dark's scripts unloaded! Type lua_openscript_cl darkv1.lua to open it again!" )
  1055. chat.AddText ( Color( 0, 157, 209 ), "The ESP will remain until you rejoin the server.")
  1056. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement