Advertisement
Guest User

frmOverlay

a guest
Jul 23rd, 2015
1,185
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ' //// Written by FattyXP of UnknownCheats.me
  2. ' //// Also my handle on pretty much everything.
  3. ' //// Credits go out to Teddi for his C# External Base which I learned heavily from
  4. ' //// and also Google, for being the fucking shit!
  5.  
  6. Imports System
  7. Imports System.Collections.Generic
  8. Imports System.Runtime.InteropServices
  9. Imports System.Threading
  10. Imports System.Security.Cryptography
  11. Imports System.Windows.Forms
  12. Imports System.String
  13. Imports System.Text
  14. 'Imports Microsoft.DirectX
  15. 'Imports Microsoft.DirectX.Direct3D
  16. Imports System.Timers
  17. Imports System.IO
  18. Imports System.Xml.Serialization
  19. Imports System.Collections.Concurrent
  20. Imports System.Windows
  21. Imports System.Management
  22. Imports System.Net.NetworkInformation
  23. Imports System.Net
  24. Imports System.Drawing.Text
  25.  
  26. Imports SlimDX
  27. Imports SlimDX.Direct3D9
  28.  
  29. Public Class frmDebugged
  30.  
  31.  
  32.  
  33.  
  34.     'If you are advanced beyond COPY and PASTA then go past here. Otherwise I'd leave it alone.
  35.    'If you are prepared to learn, I've commented what most of the code is doing throughout the
  36.    'process, if you understand the language you should be able to understand the code.
  37.  
  38. #Region "Declares"
  39.     ' Here we declare the function calls we make to Windows API's using System.Runtime.InteropServices
  40.  
  41.     <System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1060:MovePInvokesToNativeMethodsClass")> <DllImport("dwmapi.dll")> _
  42.     Private Shared Function DwmExtendFrameIntoClientArea(ByVal hwnd As IntPtr, ByRef margins As Margins) As Integer
  43.     End Function
  44.     <System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1060:MovePInvokesToNativeMethodsClass")> <System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Interoperability", "CA1401:PInvokesShouldNotBeVisible")> <DllImport("user32", EntryPoint:="GetWindowLong")> _
  45.     Public Shared Function GetWindowLong( _
  46.             ByVal hWnd As IntPtr, _
  47.             ByVal nIndex As GWL _
  48.                 ) As Integer
  49.     End Function
  50.  
  51.     <System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1060:MovePInvokesToNativeMethodsClass")> <System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Interoperability", "CA1401:PInvokesShouldNotBeVisible")> <DllImport("user32", EntryPoint:="SetWindowLong")> _
  52.     Public Shared Function SetWindowLong( _
  53.             ByVal hWnd As IntPtr, _
  54.             ByVal nIndex As GWL, _
  55.             ByVal dsNewLong As WS_EX _
  56.                 ) As Integer
  57.     End Function
  58.  
  59.     <System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1060:MovePInvokesToNativeMethodsClass")> <System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Interoperability", "CA1401:PInvokesShouldNotBeVisible")> <System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Portability", "CA1901:PInvokeDeclarationsShouldBePortable", MessageId:="2")> <DllImport("user32.dll", EntryPoint:="SetLayeredWindowAttributes")> _
  60.     Public Shared Function SetLayeredWindowAttributes( _
  61.             ByVal hWnd As IntPtr, _
  62.             ByVal crKey As Integer, _
  63.             ByVal alpha As Byte, _
  64.             ByVal dwFlags As LWA _
  65.                 ) As Boolean
  66.     End Function
  67. #End Region
  68.  
  69. #Region "ANTI"
  70.  
  71.     Public Shared Function GetUniqueKey(maxSize As Integer) As String
  72.         Dim chars As Char() = New Char(61) {}
  73.         chars = "a^ùbcd以是可推得凡一九八四加減六十倍數之zijkl石室诗士施氏,嗜狮,誓食十狮mnopqrstuvw8€xyzåäöABCDEFGHIJKLMNOPQRSTUVWXYZÅÄÖ1234567890АаБбВвГгДдЕеӘәЖжЗзИиЙйКкЛлМмНнОоÖöПпПпрСсТтуФфХхҺһҺһЧч'ШшьЭэԚԜԝ".ToCharArray()
  74.         Dim data As Byte() = New Byte(0) {}
  75.         Dim crypto As New RNGCryptoServiceProvider()
  76.         crypto.GetNonZeroBytes(data)
  77.         data = New Byte(maxSize - 1) {}
  78.         crypto.GetNonZeroBytes(data)
  79.         Dim result As New StringBuilder(maxSize)
  80.         For Each b As Byte In data
  81.             result.Append(chars(b Mod (chars.Length)))
  82.         Next
  83.         Return result.ToString()
  84.     End Function
  85.  
  86.     Public Function GetRandom(ByVal Min As Integer, ByVal Max As Integer) As Integer
  87.         Dim Generator As System.Random = New System.Random()
  88.         Return Generator.Next(Min, Max)
  89.     End Function
  90.  
  91. #End Region
  92.  
  93. #Region " Ik neuk je de moeder"
  94.  
  95.  
  96.  
  97.  
  98.  
  99.     Dim Llegbones() As Integer = {28, 27, 26, 0}
  100.     Dim Rlegbones() As Integer = {25, 24, 23, 0}
  101.     Dim Spinebones() As Integer = {0, 1, 2, 3, 4, 5, 10}
  102.     Dim Larmbones() As Integer = {9, 8, 7, 6}
  103.     Dim Rarmbones() As Integer = {15, 14, 13, 12}
  104.     Dim colorDialiski As New ColorDialog
  105.  
  106.  
  107.     Private entNumber As Integer = 3
  108.     Private entNumber2 As Integer
  109.     ' Private menuPos As Point = New Point(Me.Width + Me.Width / 2, Me.Height - Me.Height / 8)
  110.    Private menuPos As Point
  111.     Private textheight As Integer = 20
  112.     Private y1 As Integer = 20
  113.     Const menuWidth As Integer = 350
  114.  
  115.  
  116.     Private engine As Integer
  117.     Const textwidth As Integer = menuWidth - 10
  118.     Private menuHeight As Integer
  119.     Dim transparancylev As Integer = 255
  120.     Private coolfade As Boolean = False
  121.     Private interval As Integer = 15
  122.     Shared poslist(4) As Point
  123.     Private intDelayCompensation As Integer = 7
  124.  
  125.     Private crosshairsize As Integer
  126.     Private crosshaircolor As Color = Color.Red
  127.  
  128.     ' Direct3D Variables
  129.    Dim device As Device
  130.  
  131.     Dim device2 As SlimDX.Direct3D11.Device
  132.  
  133.     Dim buffer As VertexBuffer
  134.     Dim dxLine, dxline2 As Line
  135.  
  136.     Dim dxFont, dxFont2, dxfont3, dxfont4, dxfont5, dxfont6 As Font
  137.     Dim dxtexture As Texture
  138.     Dim dxbox As Box
  139.     Dim dx3D As BoundingBox
  140.  
  141.  
  142.  
  143.     Private errormessages As String
  144.  
  145.     Dim marg As Margins
  146.     Public v_Matrix As Matrix
  147.  
  148.  
  149.     Private Shared globwidth As Integer
  150.     ' Our Data Collection Variables
  151.    Public Shared RussianCommandoUnit As List(Of dildo.VectorMeData)
  152.  
  153.     Public Shared Player As dildo.VectorMeData
  154.  
  155.  
  156.     Dim _memr As New dildo.ProcM(PROCESS_NAME)
  157.  
  158.     ' Program Variables
  159.    Dim dx, dx2, dx3, dx4, dx5 As System.Threading.Thread
  160.     Public boolESP As Boolean = False, drawtime As Boolean = True, boolRainbow As Boolean = False, bool3D As Boolean, tap As Boolean, boolAttackTeam As Boolean, trigger As Boolean = False, triggerbool As Boolean, boolname As Boolean = True, boolhealthbar As Boolean = True, boolBoneESP As Boolean = True, boolToggle As Boolean = False, boolBox As Boolean = False, boolDistance As Boolean = True, boolWeapon As Boolean = True, warningSyst As Boolean = True, isRunning As Boolean = True, DrawMenu As Boolean = False, esp As Boolean = False, Misc As Boolean = False, Settings As Boolean = False, up As Boolean = False, down As Boolean = False, right1 As Boolean = False, left1 As Boolean = False, snaplines As Boolean = False, crosshair As Boolean = False
  161.  
  162.     Dim boolAim As Boolean = False, aimbotmenu As Boolean, boolAimStyle As Boolean, boolHold As Boolean, boolRage As Boolean, boolInCrossCheck As Boolean
  163.  
  164.     Dim AimSpeed As Integer
  165.  
  166.     Dim Mode, menuPOSopt As Integer
  167.  
  168.  
  169.     Public Const MOUSEEVENTF_LEFTDOWN = &H2 ' left button down
  170.    Public Const MOUSEEVENTF_LEFTUP = &H4 ' left button up
  171.  
  172.     Dim _initalStyle As Integer
  173.     Private declient As Integer
  174.  
  175.  
  176.     ' Constants
  177.    Const GWL_EXSTYLE As Integer = -20
  178.     Const WS_EX_LAYERED As Integer = &H80000
  179.     Const WS_EX_TRANSPARENT As Integer = &H20F
  180.     Const LWA_ALPHA As Integer = &H2
  181.     Const LWA_COLORKEY As Integer = &H1
  182.     Const _InvView_right As Integer = &H4, _InvView_up As Integer = &H10, _InvView_forward As Integer = &H1C, _InvView_Translation As Integer = &H28, _ViewPortMatrix3 As Integer = &H54, _ProjD1 As Integer = &HCC, _ProjD2 As Integer = &HD8
  183.  
  184.     Const MAXPEOPLEEE As Integer = 64
  185.     Const PROCESS_NAME As String = "csgo"
  186.     Dim skeletkleurke As Color
  187.     Dim kleurkevanhealthboxbg As Color
  188.     Dim kleurkevandenforegrond As Color
  189.     Shared Size2 As New Size(6, 6)
  190.  
  191.     Public radarRadius As Integer = globwidth / 2
  192.     Shared Punt, punt2, puntcurve1, puntcurve2, midradar As New Point(0, 0)
  193.     Shared Screen_Size_X As Integer = Screen.PrimaryScreen.Bounds.Width
  194.     Shared Screen_Size_Y As Integer = Screen.PrimaryScreen.Bounds.Height
  195.     Private xleft As Integer = Me.Width - globwidth
  196.  
  197.     Private triggerdelay As Integer
  198.  
  199.  
  200.  
  201.     Shared dikte As Integer = 1
  202.     ' These offsets likely don't need updating as Valve doesn't change its Structures usually.
  203.  
  204.     Const bspotted As Integer = &H935
  205.     Const DefuserOff As Integer = &H23B0
  206.     Const teamoff As Integer = &HF0
  207.     Const posOff As Integer = &H134
  208.     Const hOff As Integer = &HFC
  209.     Const skeletMatrix As Integer = &HA78
  210.     Const loopamt As Integer = &H10
  211.     Const pAngs As Integer = &H13E8
  212.     Const weaponidoff As Integer = &H1690 '&H1684
  213.    Const hactiveWeaponOff As Integer = &H12C0
  214.     Private crosshairOff As Integer = &H2410
  215.     Const viewOffset = &H104
  216.     Const offsetSetViewAngles As Integer = &H4CE0
  217.     Const shotsFired As Integer = &H1D6C
  218.     Const lifeState As Integer = &H25B
  219.     Const vecVelocity As Integer = &H110
  220.     Const bspottedmask As Integer = &H978
  221.     Private jump As Integer = &H0
  222.     Private flashmaxduration As Integer
  223.     Private flashmaxalpha As Integer
  224.     Const armoroff As Integer = &H23B0
  225.     'Const CL_SCRBRD_KILLS As Integer = &HBDC
  226.    'Const CL_SCRBRD_ASSISTS As Integer = &HCE0
  227.    'Const CL_SCRBRD_DEATHS As Integer = &HDE4
  228.    'Const CL_SCRBRD_HEALTH As Integer = &H1178
  229.    'Const CL_SCRBRD_ARMOR As Integer = &H182C
  230.    'Const CL_SCRBRD_SCORE As Integer = &H1930
  231.    'Const CL_SCRBRD_CLANTAGS As Integer = &H411C
  232.    'Const iclip1 As Integer = &H15C0
  233.    'Const iclip2 As Integer = &H15C4
  234. #End Region
  235.  
  236. #Region "Types, Structs, Defines, Enums"
  237.     ' Random shit we need to define to use
  238.    Public Structure Margins
  239.         Dim Left As Integer
  240.         Dim Right As Integer
  241.         Dim Top As Integer
  242.         Dim Bottom As Integer
  243.     End Structure
  244.  
  245.     Public Enum GWL As Integer
  246.         ExStyle = -20
  247.     End Enum
  248.  
  249.     Public Enum WS_EX As Integer
  250.         Transparent = &H20
  251.         Layered = &H80000
  252.     End Enum
  253.  
  254.     Public Enum LWA As Integer
  255.         ColorKey = &H1
  256.         Alpha = &H2
  257.     End Enum
  258.  
  259. #End Region
  260.  
  261. #Region "Custom Functions"
  262.     ' Custom functions to easily call within other calls
  263.    ' Makes looking at algorithms easier to understand.
  264.    'Private Function getdataplayer(
  265.    'Public Function readScoreboard(clientid As Integer)
  266.    '    Try
  267.    'Dim ScoreBoardAddy As Integer = _memr.rdInt(client + scoreboardbase)
  268.  
  269.     '        Player.kills = _memr.rdInt(ScoreBoardAddy + CL_SCRBRD_KILLS + 4 * clientid)
  270.    '        Player.deaths = _memr.rdInt(ScoreBoardAddy + CL_SCRBRD_DEATHS + 4 * clientid)
  271.    '        Player.assists = _memr.rdInt(ScoreBoardAddy + CL_SCRBRD_ASSISTS + 4 * clientid)
  272.  
  273.     '        Player.score = _memr.rdInt(ScoreBoardAddy + CL_SCRBRD_SCORE + 4 * clientid)
  274.    ''MessageBox.Show("lol")
  275.  
  276.     '    Catch ex As Exception
  277.    'Dim stuff As String = ex.ToString
  278.    '    End Try
  279.  
  280.     '    Return 0
  281.  
  282.     'End Function
  283.  
  284.     Public Function getWeaponName(weaponid As Integer) As String
  285.  
  286.         Dim getRussianMother() As String = _
  287.     {" none", _
  288.   "deagle", _
  289.   "Dual Berettas", _
  290.   "fiveseven", _
  291.   "glock", _
  292.   "p228", _
  293.   "", _
  294.  "ak47", _
  295.   "aug", _
  296.   "awp", _
  297.   "famas", _
  298.   "g3sg1", _
  299.      "", _
  300.   "galil", _
  301.   "m249", _
  302.   "m3", _
  303.   "m4a1", _
  304.  "mac10", _
  305.   "mp5navy", _
  306.   "p90", _
  307.   "scout", _
  308.   "sg550", _
  309.   "sg552", _
  310.   "tmp", _
  311.   "ump45", _
  312.   "xm1014", _
  313.   "bizon", _
  314.   "mag7", _
  315.   "negev", _
  316.   "sawedoff", _
  317.   "tec9", _
  318.   "taser", _
  319.   "p2000", _
  320.   "mp7", _
  321.  " mp9", _
  322.   "nova", _
  323.   "p250", _
  324.   "scar17", _
  325.   "scar20", _
  326.   "sg556", _
  327.   "ssg08", _
  328.   "knifegg", _
  329.   "knife", _
  330.   "flashbang", _
  331.  " hegrenade", _
  332.  " smokegrenade", _
  333.   "molotov", _
  334.   "decoy", _
  335.   "incgrenade", _
  336.   "c4"}
  337.  
  338.         Return getRussianMother(weaponid)
  339.  
  340.  
  341.     End Function
  342.  
  343.  
  344.     Private Function GetEntPosition(entptr As Integer) As dildo.Vect3d
  345.         'Returns a Vector3D of the Entity in Entity slot entptr, use index of for loop
  346.        Dim ent As Integer = _memr.rdInt(declient + entlist + (entptr * &H10))
  347.         Return _memr.rdVector(ent + posOff)
  348.     End Function
  349.  
  350.     Private Function GetBonePos(target As Integer, bone As Integer) As dildo.Vect3d
  351.         'Returns the Vector3D of <bone> in the <target> Entity.Pointer.
  352.        Dim bMatrix As Integer = _memr.rdInt(target + skeletMatrix)
  353.         Dim vec As New dildo.Vect3d()
  354.         vec.x = _memr.rdFloat(bMatrix + (&H30 * bone) + &HC)
  355.         vec.y = _memr.rdFloat(bMatrix + (&H30 * bone) + &H1C)
  356.         vec.z = _memr.rdFloat(bMatrix + (&H30 * bone) + &H2C)
  357.         Return vec
  358.     End Function
  359.  
  360.     Private Function GetPlayerPosition() As dildo.Vect3d
  361.         'Returns the players Vector3D
  362.        Dim ent As Integer = _memr.rdInt(declient + baseoff)
  363.         Return _memr.rdVector(ent + posOff)
  364.     End Function
  365.  
  366.     Private Function GetEyeAngles() As dildo.Vect3d
  367.         'Returns EyeAngles Vector3D
  368.        Dim LocalPlayer As Integer = _memr.rdInt(declient + baseoff)
  369.  
  370.         Return _memr.rdVector(LocalPlayer + &H23B4)
  371.  
  372.     End Function
  373.  
  374.     Private Function RussiaToScreen(from As dildo.Vect3d, viewMatrix As Matrix, width As Integer, height As Integer) As Vector2
  375.         ' Returns a Vector3D containing the 2D Coordinates of <from>.
  376.        Dim [to] As New Vector2
  377.  
  378.         ' From what I've seen, pretty standard WorldToScreen function. The math is the same across them all.
  379.        [to].X = viewMatrix.M11 * from.x + viewMatrix.M12 * from.y + viewMatrix.M13 * from.z + viewMatrix.M14
  380.         [to].Y = viewMatrix.M21 * from.x + viewMatrix.M22 * from.y + viewMatrix.M23 * from.z + viewMatrix.M24
  381.         Dim w As Single = viewMatrix.M41 * from.x + viewMatrix.M42 * from.y + viewMatrix.M43 * from.z + viewMatrix.M44
  382.  
  383.         If w < 0.01F Then
  384.             ' REMEMBER TO CHECK FOR 0,0,0 RESULTS AND IGNORE THEM! If you make new calls to this function.
  385.            Return New Vector2(0, 0)
  386.         End If
  387.  
  388.         Dim invw As Single = 1.0F / w
  389.         [to].X *= invw
  390.         [to].Y *= invw
  391.  
  392.         Dim x As Single = width / 2
  393.         Dim y As Single = height / 2
  394.  
  395.         x += 0.5F * [to].X * width + 0.5F
  396.         y -= 0.5F * [to].Y * height + 0.5F
  397.  
  398.         [to].X = x
  399.         [to].Y = y
  400.  
  401.         Return [to]
  402.     End Function
  403.  
  404.     Shared Function radtodeg(ByVal radian As Double) As Double
  405.         Return (radian / 180) * Math.PI
  406.     End Function
  407.  
  408.  
  409.  
  410. #End Region
  411.  
  412. #Region "Drawing Shits"
  413.  
  414.     Sub drawPlayerBox(item As dildo.VectorMeData, ColorMid As Color, colorOut As Color, hoogte As Single, dikteuitlijning As Integer)
  415.  
  416.  
  417.         Dim BoxHeightoff As Single = 8500.0F / item.Distance
  418.         Dim intFillCorner = 1
  419.         If dikteuitlijning = 1 Or dikteuitlijning = 0 Then
  420.             intFillCorner = 0
  421.  
  422.         Else
  423.             intFillCorner = CInt(dikteuitlijning / 2)
  424.         End If
  425.  
  426.         DrawLine(item.W2SPos.X - (hoogte / 4), item.Head.Y - BoxHeightoff, item.W2SPos.X - (hoogte / 4), item.W2SPos.Y, dikte, ColorMid)
  427.         DrawLine(item.W2SPos.X + (hoogte / 4), item.Head.Y - BoxHeightoff, item.W2SPos.X + (hoogte / 4), item.W2SPos.Y, dikte, ColorMid) 'hoogtelijnen
  428.  
  429.         DrawLine(item.W2SPos.X - (hoogte / 4) - intFillCorner, item.Head.Y - BoxHeightoff, item.W2SPos.X + (hoogte / 4) + intFillCorner, item.Head.Y - BoxHeightoff, dikte, ColorMid)
  430.         DrawLine(item.W2SPos.X - (hoogte / 4) - intFillCorner, item.W2SPos.Y, item.W2SPos.X + (hoogte / 4) + intFillCorner, item.W2SPos.Y, dikte, ColorMid)
  431.         '3D
  432.        DrawLine(item.W2SPos.X - (hoogte / 4), item.Head.Y - BoxHeightoff, item.W2SPos.X - (hoogte / 4), item.W2SPos.Y, dikte, ColorMid)
  433.         DrawLine(item.W2SPos.X + (hoogte / 4), item.Head.Y - BoxHeightoff, item.W2SPos.X + (hoogte / 4), item.W2SPos.Y, dikte, ColorMid) 'hoogtelijnen
  434.  
  435.         DrawLine(item.W2SPos.X - (hoogte / 4) - intFillCorner, item.Head.Y - BoxHeightoff, item.W2SPos.X + (hoogte / 4) + intFillCorner, item.Head.Y - BoxHeightoff, dikte, ColorMid)
  436.         DrawLine(item.W2SPos.X - (hoogte / 4) - intFillCorner, item.W2SPos.Y, item.W2SPos.X + (hoogte / 4) + intFillCorner, item.W2SPos.Y, dikte, ColorMid)
  437.         'lijnen boven
  438.        If esp = True Then
  439.  
  440.         Else
  441.  
  442.  
  443.             'DrawLine(item.W2SPos.X - (hoogte / 4) - dikteuitlijning, item.Head.Y - dikteuitlijning, item.W2SPos.X - (hoogte / 4) - dikteuitlijning, item.W2SPos.Y + dikteuitlijning, dikteuitlijning, colorOut)
  444.            'DrawLine(item.W2SPos.X + (hoogte / 4) + dikteuitlijning, item.Head.Y - dikteuitlijning, item.W2SPos.X + (hoogte / 4) + dikteuitlijning, item.W2SPos.Y + dikteuitlijning, dikteuitlijning, colorOut) 'hoogtelijnen
  445.  
  446.             'DrawLine(item.W2SPos.X - (hoogte / 4) - dikteuitlijning, item.Head.Y - dikteuitlijning, item.W2SPos.X + (hoogte / 4) + dikteuitlijning, item.Head.Y - dikteuitlijning, dikteuitlijning, colorOut)
  447.  
  448.             'DrawLine(item.W2SPos.X - (hoogte / 4) - dikteuitlijning, item.W2SPos.Y + dikteuitlijning, item.W2SPos.X + (hoogte / 4) + dikteuitlijning, item.W2SPos.Y + dikteuitlijning, dikteuitlijning, colorOut)
  449.  
  450.             ''lijnen onder
  451.  
  452.             'DrawLine(item.W2SPos.X - (hoogte / 4) + dikteuitlijning, item.Head.Y + dikteuitlijning, item.W2SPos.X - (hoogte / 4) + dikteuitlijning, item.W2SPos.Y - dikteuitlijning, dikteuitlijning, colorOut)
  453.            'DrawLine(item.W2SPos.X + (hoogte / 4) - dikteuitlijning, item.Head.Y + dikteuitlijning, item.W2SPos.X + (hoogte / 4) - dikteuitlijning, item.W2SPos.Y - dikteuitlijning, dikteuitlijning, colorOut) 'hoogtelijnen
  454.  
  455.             'DrawLine(item.W2SPos.X - (hoogte / 4) + dikteuitlijning - intFillCorner, item.Head.Y + dikteuitlijning, item.W2SPos.X + (hoogte / 4) - dikteuitlijning + intFillCorner, item.Head.Y + dikteuitlijning, dikteuitlijning, colorOut)
  456.  
  457.             'DrawLine(item.W2SPos.X - (hoogte / 4) + dikteuitlijning - intFillCorner, item.W2SPos.Y - dikteuitlijning, item.W2SPos.X + (hoogte / 4) - dikteuitlijning + intFillCorner, item.W2SPos.Y - dikteuitlijning, dikteuitlijning, colorOut)
  458.        End If
  459.     End Sub
  460.  
  461.     Sub drawPlayerBox2(coordinates() As Vector2, color As Color, w As Integer)
  462.  
  463.  
  464.  
  465.         For i = 0 To 2
  466.             Trace.WriteLine(coordinates)
  467.             '  DrawLine(coordinates(i).X, coordinates(i).Y, coordinates(i + 1).Y, coordinates(i + 1).Y, w, color)
  468.  
  469.         Next
  470.  
  471.         'lijnen boven
  472.        If esp = True Then
  473.  
  474.         Else
  475.  
  476.  
  477.             'DrawLine(item.W2SPos.X - (hoogte / 4) - dikteuitlijning, item.Head.Y - dikteuitlijning, item.W2SPos.X - (hoogte / 4) - dikteuitlijning, item.W2SPos.Y + dikteuitlijning, dikteuitlijning, colorOut)
  478.            'DrawLine(item.W2SPos.X + (hoogte / 4) + dikteuitlijning, item.Head.Y - dikteuitlijning, item.W2SPos.X + (hoogte / 4) + dikteuitlijning, item.W2SPos.Y + dikteuitlijning, dikteuitlijning, colorOut) 'hoogtelijnen
  479.  
  480.             'DrawLine(item.W2SPos.X - (hoogte / 4) - dikteuitlijning, item.Head.Y - dikteuitlijning, item.W2SPos.X + (hoogte / 4) + dikteuitlijning, item.Head.Y - dikteuitlijning, dikteuitlijning, colorOut)
  481.  
  482.             'DrawLine(item.W2SPos.X - (hoogte / 4) - dikteuitlijning, item.W2SPos.Y + dikteuitlijning, item.W2SPos.X + (hoogte / 4) + dikteuitlijning, item.W2SPos.Y + dikteuitlijning, dikteuitlijning, colorOut)
  483.  
  484.             ''lijnen onder
  485.  
  486.             'DrawLine(item.W2SPos.X - (hoogte / 4) + dikteuitlijning, item.Head.Y + dikteuitlijning, item.W2SPos.X - (hoogte / 4) + dikteuitlijning, item.W2SPos.Y - dikteuitlijning, dikteuitlijning, colorOut)
  487.            'DrawLine(item.W2SPos.X + (hoogte / 4) - dikteuitlijning, item.Head.Y + dikteuitlijning, item.W2SPos.X + (hoogte / 4) - dikteuitlijning, item.W2SPos.Y - dikteuitlijning, dikteuitlijning, colorOut) 'hoogtelijnen
  488.  
  489.             'DrawLine(item.W2SPos.X - (hoogte / 4) + dikteuitlijning - intFillCorner, item.Head.Y + dikteuitlijning, item.W2SPos.X + (hoogte / 4) - dikteuitlijning + intFillCorner, item.Head.Y + dikteuitlijning, dikteuitlijning, colorOut)
  490.  
  491.             'DrawLine(item.W2SPos.X - (hoogte / 4) + dikteuitlijning - intFillCorner, item.W2SPos.Y - dikteuitlijning, item.W2SPos.X + (hoogte / 4) - dikteuitlijning + intFillCorner, item.W2SPos.Y - dikteuitlijning, dikteuitlijning, colorOut)
  492.        End If
  493.     End Sub
  494.     Private Function rainbow() As Color
  495.  
  496.         Static x As Single = 0
  497.         Static y As Single = 0
  498.         Static r As Single = 0
  499.         Static g As Single = 0
  500.         Static b As Single = 0
  501.  
  502.         If y >= 0.0F AndAlso y < 255.0F Then
  503.             r = 255.0F
  504.             g = 0.0F
  505.             b = x
  506.         ElseIf y >= 255.0F AndAlso y < 510.0F Then
  507.             r = 255.0F - x
  508.             g = 0.0F
  509.             b = 255.0F
  510.         ElseIf y >= 510.0F AndAlso y < 765.0F Then
  511.             r = 0.0F
  512.             g = x
  513.             b = 255.0F
  514.         ElseIf y >= 765.0F AndAlso y < 1020.0F Then
  515.             r = 0.0F
  516.             g = 255.0F
  517.             b = 255.0F - x
  518.         ElseIf y >= 1020.0F AndAlso y < 1275.0F Then
  519.             r = x
  520.             g = 255.0F
  521.             b = 0.0F
  522.         ElseIf y >= 1275.0F AndAlso y < 1530.0F Then
  523.             r = 255.0F
  524.             g = 255.0F - x
  525.             b = 0.0F
  526.         End If
  527.  
  528.         x += 0.01F 'increase this value to switch colors faster
  529.        If x >= 255.0F Then
  530.             x = 0.0F
  531.         End If
  532.  
  533.         y += 0.01F 'increase this value to switch colors faster
  534.        If y > 1530.0F Then
  535.             y = 0.0F
  536.         End If
  537.  
  538.  
  539.         Return Color.FromArgb(250, CInt(Fix(r)), CInt(Fix(g)), CInt(Fix(b)))
  540.     End Function
  541.     Public Sub DrawWorldLine(ByVal Point1 As dildo.Vect3d, ByVal Point2 As dildo.Vect3d, ByVal DrawColor As Color)
  542.         Dim RefVec As New Vector2
  543.         Dim Point1S As New Vector2
  544.         Dim Point2S As New Vector2
  545.  
  546.         Point1S = RussiaToScreen(Point1, Player.zichtmatrix, Me.Width, Me.Height)
  547.  
  548.         Point2S = RussiaToScreen(Point2, Player.zichtmatrix, Me.Width, Me.Height)
  549.  
  550.         DrawLine(Point1S.X, Point1S.Y, Point2S.X, Point2S.Y, 1, DrawColor)
  551.  
  552.  
  553.     End Sub
  554.     Public Function convertto2D(src() As Vector3) As Vector2()
  555.         Static jemoeder() As Vector2
  556.         For i = 0 To src.Count - 1
  557.             jemoeder(i).X = src(i).X / src(i).Z
  558.             jemoeder(i).Y = src(i).Y / src(i).Z
  559.  
  560.         Next
  561.         Return jemoeder
  562.  
  563.     End Function
  564.  
  565.     Sub drawPlayer3DBox(item As dildo.VectorMeData, height As Integer, color As Color, width As Integer)
  566.  
  567.  
  568.         Dim BoxHeightoff As Single = 8500.0F / item.Distance
  569.         Dim middle As Vector2 = RussiaToScreen(GetBonePos(item.toewijzingsadres, 10), Player.zichtmatrix, Me.Width, Me.Height)
  570.  
  571.  
  572.         'DrawLine(item.W2SPos.X - (hoogte / 4), item.Head.Y - BoxHeightoff, item.W2SPos.X - (hoogte / 4), item.W2SPos.Y, dikte, ColorMid)
  573.        'DrawLine(item.W2SPos.X + (hoogte / 4), item.Head.Y - BoxHeightoff, item.W2SPos.X + (hoogte / 4), item.W2SPos.Y, dikte, ColorMid) 'hoogtelijnen
  574.  
  575.         'DrawLine(item.W2SPos.X - (hoogte / 4) - intFillCorner, item.Head.Y - BoxHeightoff, item.W2SPos.y + (hoogte / 4) + intFillCorner, item.Head.Y - BoxHeightoff, dikte, ColorMid)
  576.        'DrawLine(item.W2SPos.X - (hoogte / 4) - intFillCorner, item.W2SPos.Y, item.W2SPos.X + (hoogte / 4) + intFillCorner, item.W2SPos.Y, dikte, ColorMid)
  577.        Dim x, y, z As Single
  578.         x = item.W2SPos.X
  579.         y = item.W2SPos.Y
  580.         z = 1
  581.  
  582.         ' Dim BoxA As New dildo.Vect3d(item.W2SPos.X - (height / 4), item.W2SPos.Y, item.zPos + width)
  583.        '  Dim BoxB As New dildo.Vect3d(item.W2SPos.X - (height / 4), item.W2SPos.Y, item.zPos + width)
  584.        Dim virtualBox() = New Vector3() {New Vector3}
  585.         ReDim virtualBox(7)
  586.  
  587.         virtualBox(0) = New Vector3(x, y - height, z + width)
  588.         virtualBox(1) = New Vector3(x + width, y - height, z + width)
  589.         virtualBox(2) = New Vector3(x + width, y, z + width)
  590.         virtualBox(3) = New Vector3(x, y, z + width)
  591.         virtualBox(4) = New Vector3(x, y - height, z)
  592.         virtualBox(5) = New Vector3(x + width, y - height, z)
  593.  
  594.         virtualBox(6) = New Vector3(x + width, y, z)
  595.         virtualBox(7) = New Vector3(x, y, z)
  596.         Try
  597.             Trace.WriteLine(virtualBox(0))
  598.  
  599.             DrawLine(virtualBox(0).X / virtualBox(0).Z, virtualBox(0).Y / virtualBox(0).Z, virtualBox(1).X / virtualBox(1).Z, virtualBox(1).Y / virtualBox(1).Z, 1, color)
  600.      
  601.  
  602.  
  603.             '   DrawWorldLine(BoxA, BoxB, color)
  604.            '    DrawWorldLine(BoxA, BoxD, color)
  605.            '   DrawWorldLine(BoxB, BoxC, color)
  606.  
  607.         Catch ex As Exception
  608.             Trace.WriteLine(ex)
  609.         End Try
  610.  
  611.         'lijnen boven
  612.        If esp = True Then
  613.  
  614.         Else
  615.  
  616.  
  617.             'DrawLine(item.W2SPos.X - (hoogte / 4) - dikteuitlijning, item.Head.Y - dikteuitlijning, item.W2SPos.X - (hoogte / 4) - dikteuitlijning, item.W2SPos.Y + dikteuitlijning, dikteuitlijning, colorOut)
  618.            'DrawLine(item.W2SPos.X + (hoogte / 4) + dikteuitlijning, item.Head.Y - dikteuitlijning, item.W2SPos.X + (hoogte / 4) + dikteuitlijning, item.W2SPos.Y + dikteuitlijning, dikteuitlijning, colorOut) 'hoogtelijnen
  619.  
  620.             'DrawLine(item.W2SPos.X - (hoogte / 4) - dikteuitlijning, item.Head.Y - dikteuitlijning, item.W2SPos.X + (hoogte / 4) + dikteuitlijning, item.Head.Y - dikteuitlijning, dikteuitlijning, colorOut)
  621.  
  622.             'DrawLine(item.W2SPos.X - (hoogte / 4) - dikteuitlijning, item.W2SPos.Y + dikteuitlijning, item.W2SPos.X + (hoogte / 4) + dikteuitlijning, item.W2SPos.Y + dikteuitlijning, dikteuitlijning, colorOut)
  623.  
  624.             ''lijnen onder
  625.  
  626.             'DrawLine(item.W2SPos.X - (hoogte / 4) + dikteuitlijning, item.Head.Y + dikteuitlijning, item.W2SPos.X - (hoogte / 4) + dikteuitlijning, item.W2SPos.Y - dikteuitlijning, dikteuitlijning, colorOut)
  627.            'DrawLine(item.W2SPos.X + (hoogte / 4) - dikteuitlijning, item.Head.Y + dikteuitlijning, item.W2SPos.X + (hoogte / 4) - dikteuitlijning, item.W2SPos.Y - dikteuitlijning, dikteuitlijning, colorOut) 'hoogtelijnen
  628.  
  629.             'DrawLine(item.W2SPos.X - (hoogte / 4) + dikteuitlijning - intFillCorner, item.Head.Y + dikteuitlijning, item.W2SPos.X + (hoogte / 4) - dikteuitlijning + intFillCorner, item.Head.Y + dikteuitlijning, dikteuitlijning, colorOut)
  630.  
  631.             'DrawLine(item.W2SPos.X - (hoogte / 4) + dikteuitlijning - intFillCorner, item.W2SPos.Y - dikteuitlijning, item.W2SPos.X + (hoogte / 4) - dikteuitlijning + intFillCorner, item.W2SPos.Y - dikteuitlijning, dikteuitlijning, colorOut)
  632.        End If
  633.     End Sub
  634.     Private skeletonsize As Integer = 1
  635.  
  636.     Function getSkeleton(pointer As Integer, veccoords2 As Vector3) As dildo.VectorMeData.SkeletonVectorData
  637.  
  638.  
  639.     End Function
  640.     Sub drawBone(point1 As Vector2, point2 As Vector2, color As Color)
  641.  
  642.         'Dim skeletoncolor As Color = skeletkleurke
  643.        'Dim height As Single
  644.        'height = target.W2SPos.Y - target.Head.Y
  645.  
  646.         'Dim startBonePos, endBonePos As dildo.Vect3d
  647.        'Dim StartDrawPos, EndDrawPos As Vector2
  648.        '' If target.Levenz > 0 Then
  649.  
  650.  
  651.  
  652.  
  653.         'Dim rrlegpos As dildo.Vect3d = GetBonePos(target.toewijzingsadres, Rlegbones(0))
  654.  
  655.  
  656.         'If Get3dDistance(rrlegpos.x, rrlegpos.z, rrlegpos.y, target.VecCoords.x, target.VecCoords.z, target.VecCoords.y) > 45.0F Then
  657.  
  658.  
  659.  
  660.         '    '  MessageBox.Show("Not updated")
  661.  
  662.         '    ' System.Diagnostics.Trace.WriteLine("Not Updated Skipping Draw function")
  663.  
  664.         '    Exit Sub
  665.        'Else
  666.        '    If StartDrawPos.X = 0 And StartDrawPos.Y = 0 Or EndDrawPos.X = 0 And EndDrawPos.Y = 0 Then
  667.        '        Exit Sub
  668.        '    End If
  669.        'End If
  670.  
  671.  
  672.         ''    If Not StartDrawPos = New Vector2(0, 0) Then
  673.  
  674.  
  675.  
  676.         ''    Else
  677.        ''        Exit Sub
  678.  
  679.         ''    End If
  680.  
  681.         ''    If Not EndDrawPos = New Vector2(0, 0) Then
  682.  
  683.  
  684.  
  685.  
  686.         ''    Else
  687.        ''        Exit Sub
  688.  
  689.         ''    End If
  690.  
  691.         ''Else
  692.        ''    Exit Sub
  693.  
  694.         ''End If'
  695.        ''MessageBox.Show("x Start: " & StartDrawPos.X & " y Start: " & StartDrawPos.Y & " x End: " & EndDrawPos.X & " y End: " & EndDrawPos.Y)
  696.        If boolRainbow Then
  697.             DrawLine(point1.X, point1.Y, point2.X, point2.Y, skeletonsize, rainbow())
  698.         Else
  699.             DrawLine(point1.X, point1.Y, point2.X, point2.Y, skeletonsize, color)
  700.  
  701.         End If
  702.  
  703.         '' MessageBox.Show("x Start: " & StartDrawPos.X & " y Start: " & StartDrawPos.Y & " x End: " & EndDrawPos.X & " y End: " & EndDrawPos.Y)
  704.        '' _ShadowText("Z", New Point(StartDrawPos.X, StartDrawPos.Y), Color.Aquamarine)
  705.        ''  _ShadowText("----", New Point(EndDrawPos.X, EndDrawPos.Y), Color.Aquamarine)
  706.        '' DrawLine(Me.Width / 2, Me.Height / 2, 0, 0, 4, Color.White)
  707.  
  708.  
  709.  
  710.  
  711.         '    If boolRainbow = True Then
  712.        '  Trace.WriteLine("try draw lines")
  713.        '    Dim intDistance As Integer = 1
  714.        '    Dim dikkie As Integer = 1
  715.        'DrawLine(StartDrawPos.X - intDistance, StartDrawPos.Y - intDistance, EndDrawPos.X - intDistance, EndDrawPos.Y - intDistance, dikkie, rainbow())
  716.        'DrawLine(StartDrawPos.X + intDistance, StartDrawPos.Y + intDistance, EndDrawPos.X + intDistance, EndDrawPos.Y + intDistance, dikkie, rainbow())
  717.        '     DrawCircle(StartDrawPos.X, StartDrawPos.Y, 10, 4, dikkie, rainbow())
  718.        '   DrawCircle(EndDrawPos.X, EndDrawPos.Y, 10, 4, dikkie, rainbow())
  719.        '    End If
  720.  
  721.  
  722.  
  723.     End Sub
  724.  
  725.     Sub drawSkeleton(skelData As dildo.VectorMeData.SkeletonVectorData, itemcolor As Color)
  726.  
  727.  
  728.         'Dim skeletoncolor As Color = skeletkleurke
  729.        For i = 0 To 5
  730.             drawBone(skelData.Spine.bonepos2(i), skelData.Spine.bonepos2(i + 1), itemcolor)
  731.         Next
  732.         For i = 0 To 2
  733.  
  734.             drawBone(skelData.Lleg.bonepos2(i), skelData.Lleg.bonepos2(i + 1), itemcolor)
  735.             drawBone(skelData.Rleg.bonepos2(i), skelData.Rleg.bonepos2(i + 1), itemcolor)
  736.             drawBone(skelData.Larm.bonepos2(i), skelData.Larm.bonepos2(i + 1), itemcolor)
  737.             drawBone(skelData.Rarm.bonepos2(i), skelData.Rarm.bonepos2(i + 1), itemcolor)
  738.         Next
  739.  
  740.  
  741.         ' DrawBox(item.Head.X, item.Head.Y, height / 10, height / 10, 2, skeletoncolor)
  742.        ' DrawCircle(item.Head.X, item.Head.Y, height / 10, 20, 1, skeletoncolor)
  743.        'Dim skeletoncolor As Color = skeletkleurke
  744.        'Dim skeletonsize As Integer = 1
  745.        'Dim height As Single
  746.        'height = item.W2SPos.Y - item.Head.Y
  747.  
  748.  
  749.         'For i = 0 To 1 'Left leg
  750.        '    Dim TPool As System.Threading.ThreadPool
  751.        '    ' Queue a task
  752.  
  753.         '    w2sobject1 = RussiaToScreen(GetBonePos(item.toewijzingsadres, Llegbones(i)), Ik.zichtmatrix, Me.Width, Me.Height)
  754.        '    'TPool.QueueUserWorkItem(New System.Threading.WaitCallback _
  755.         '    '               (AddressOf looper))
  756.        '    w2sobject2 = RussiaToScreen(GetBonePos(item.toewijzingsadres, Llegbones(i + 1)), Ik.zichtmatrix, Me.Width, Me.Height)
  757.        '    '' Queue another task
  758.  
  759.  
  760.  
  761.  
  762.         '    If w2sobject1.X <> 0 And w2sobject1.Y <> 0 And w2sobject2.X <> 0 And w2sobject2.Y <> 0 Then
  763.  
  764.         '        DrawLine(w2sobject1.X, w2sobject1.Y, w2sobject2.X, w2sobject2.Y, skeletonsize, skeletoncolor)
  765.  
  766.         '    End If
  767.  
  768.  
  769.  
  770.         'Next
  771.        'w2sprev1 = w2sobject2
  772.        'For i = 0 To 1 'Right leg
  773.        '    w2sobject1 = RussiaToScreen(GetBonePos(item.toewijzingsadres, Rlegbones(i)), Ik.zichtmatrix, Me.Width, Me.Height)
  774.        '    w2sobject2 = RussiaToScreen(GetBonePos(item.toewijzingsadres, Rlegbones(i + 1)), Ik.zichtmatrix, Me.Width, Me.Height)
  775.        '    If w2sobject1.X <> 0 And w2sobject1.Y <> 0 And w2sobject2.X <> 0 And w2sobject2.Y <> 0 Then
  776.        '        DrawLine(w2sobject1.X, w2sobject1.Y, w2sobject2.X, w2sobject2.Y, skeletonsize, skeletoncolor)
  777.        '    End If
  778.        'Next
  779.        'w2sprev2 = w2sobject2
  780.  
  781.         'For i = 0 To 4 'spine
  782.  
  783.         '    w2sobject1 = RussiaToScreen(GetBonePos(item.toewijzingsadres, Spinebones(i)), Ik.zichtmatrix, Me.Width, Me.Height)
  784.        '    w2sobject2 = RussiaToScreen(GetBonePos(item.toewijzingsadres, Spinebones(i + 1)), Ik.zichtmatrix, Me.Width, Me.Height)
  785.        '    If w2sobject1.X <> 0 And w2sobject1.Y <> 0 And w2sobject2.X <> 0 And w2sobject2.Y <> 0 Then
  786.        '        DrawLine(w2sobject1.X, w2sobject1.Y, w2sobject2.X, w2sobject2.Y, skeletonsize, skeletoncolor)
  787.        '    End If
  788.  
  789.         '    If i = 0 Then
  790.        '        If w2sobject1.X <> 0 And w2sobject1.Y <> 0 And w2sobject2.X <> 0 And w2sobject2.Y <> 0 Then
  791.        '            DrawLine(w2sobject1.X, w2sobject1.Y, w2sprev1.X, w2sprev1.Y, skeletonsize, skeletoncolor)
  792.        '            DrawLine(w2sobject1.X, w2sobject1.Y, w2sprev2.X, w2sprev2.Y, skeletonsize, skeletoncolor)
  793.        '        End If
  794.        '    End If
  795.        'Next
  796.        'spineend = w2sobject2
  797.        '' DrawLine(w2sobject2.X, w2sobject2.Y, item.Head.X, item.Head.Y, skeletonsize, skeletoncolor)
  798.        'For i = 0 To 1 'Right arm
  799.        '    w2sobject1 = RussiaToScreen(GetBonePos(item.toewijzingsadres, Rarmbones(i)), Ik.zichtmatrix, Me.Width, Me.Height)
  800.        '    w2sobject2 = RussiaToScreen(GetBonePos(item.toewijzingsadres, Rarmbones(i + 1)), Ik.zichtmatrix, Me.Width, Me.Height)
  801.  
  802.         '    If w2sobject1.X <> 0 And w2sobject1.Y <> 0 And w2sobject2.X <> 0 And w2sobject2.Y <> 0 Then
  803.        '        DrawLine(w2sobject1.X, w2sobject1.Y, w2sobject2.X, w2sobject2.Y, skeletonsize, skeletoncolor)
  804.        '    End If
  805.  
  806.         'Next
  807.        'w2sprev1 = w2sobject2
  808.  
  809.         'For i = 0 To 1 'Right arm
  810.        '    w2sobject1 = RussiaToScreen(GetBonePos(item.toewijzingsadres, Larmbones(i)), Ik.zichtmatrix, Me.Width, Me.Height)
  811.        '    w2sobject2 = RussiaToScreen(GetBonePos(item.toewijzingsadres, Larmbones(i + 1)), Ik.zichtmatrix, Me.Width, Me.Height)
  812.        '    If w2sobject1.X <> 0 And w2sobject1.Y <> 0 And w2sobject2.X <> 0 And w2sobject2.Y <> 0 Then
  813.        '        DrawLine(w2sobject1.X, w2sobject1.Y, w2sobject2.X, w2sobject2.Y, skeletonsize, skeletoncolor)
  814.        '    End If
  815.  
  816.         'Next
  817.        'w2sprev2 = w2sobject2
  818.        'If w2sprev1.X <> 0 And w2sprev1.Y <> 0 And w2sprev1.Y <> 0 And w2sprev2.Y <> 0 Then
  819.        '    DrawLine(w2sprev2.X, w2sprev2.Y, spineend.X, spineend.Y, skeletonsize, skeletoncolor)
  820.  
  821.         '    DrawLine(w2sprev1.X, w2sprev1.Y, spineend.X, spineend.Y, skeletonsize, skeletoncolor)
  822.        '    'DrawCircle(item.Head.X, item.Head.Y, height / 10, 4, skeletonsize, skeletoncolor)
  823.        '    DrawBox(item.Head.X, item.Head.Y, height / 10, height / 10, 2, skeletoncolor)
  824.        'End If
  825.  
  826.     End Sub
  827.  
  828.     Private Sub DrawCircle(ByVal X As Integer, ByVal Y As Integer, ByVal radius As Integer, ByVal numSides As Integer, ByVal Thickness As Integer, ByVal Color As Color)
  829.         Dim Line(128) As Vector2
  830.         Dim [Step] As Single = CSng(Math.PI) * 2.0F / numSides
  831.         Dim Count As Integer = 0
  832.         For a As Single = 0 To (CSng(Math.PI) * 2.0) - 1 Step [Step]
  833.             Dim X1 As Single = radius * CSng(Math.Cos(a)) + X
  834.             Dim Y1 As Single = radius * CSng(Math.Sin(a)) + Y
  835.             Dim X2 As Single = radius * CSng(Math.Cos(a + [Step])) + X
  836.             Dim Y2 As Single = radius * CSng(Math.Sin(a + [Step])) + Y
  837.             Line(Count).X = X1
  838.             Line(Count).Y = Y1
  839.             Line(Count + 1).X = X2
  840.             Line(Count + 1).Y = Y2
  841.             DrawLine(X1, Y1, X2, Y2, Thickness, Color)
  842.             Count += 2
  843.         Next a
  844.     End Sub
  845.  
  846.     Public Sub shadoxtextboxed(text As String, Position As Point, color__1 As Color, colorbox As Color, thickness As Integer, outline As Integer, boxwidth As Integer, afstandzijkant As Integer)
  847.  
  848.  
  849.  
  850.         'Draws text with that cool shadow effect.
  851.        Try
  852.  
  853.  
  854.  
  855.             DrawLine(Position.X - afstandzijkant, Position.Y, Position.X + outline, Position.Y, thickness, colorbox)
  856.             DrawLine(Position.X - afstandzijkant, Position.Y + boxwidth, Position.X + outline, Position.Y + boxwidth, thickness, colorbox)
  857.  
  858.             DrawLine(Position.X - afstandzijkant, Position.Y, Position.X - afstandzijkant, Position.Y + boxwidth, thickness, colorbox)
  859.  
  860.             DrawLine(Position.X + outline, Position.Y, Position.X + outline, Position.Y + boxwidth, thickness, colorbox)
  861.             Position.X += 5
  862.             Position.Y += 2.5
  863.             dxFont.DrawString(Nothing, text, Position.X, Position.Y, color__1)
  864.             dxFont.DrawString(Nothing, text, Position.X, Position.Y, color__1)
  865.         Catch ex As Exception
  866.             Dim stuff As String = ex.ToString()
  867.         End Try
  868.  
  869.     End Sub
  870.     Public Sub _ShadowText(text As String, Position As Point, color__1 As Color)
  871.         'Draws text with that cool shadow effect.
  872.        Try
  873.             'dxFont.DrawText(Nothing, text, New Point(Position.X + 1, Position.Y + 1), Color.Black)
  874.  
  875.             dxFont2.DrawString(Nothing, text, Position.X - 1, Position.Y, Color.Black)
  876.             dxFont2.DrawString(Nothing, text, Position.X + 1, Position.Y, Color.Black)
  877.             dxFont2.DrawString(Nothing, text, Position.X, Position.Y + 1, Color.Black)
  878.             dxFont2.DrawString(Nothing, text, Position.X, Position.Y - 1, Color.Black)
  879.             dxFont2.DrawString(Nothing, text, Position.X, Position.Y, color__1)
  880.             'dxFont2.DrawText(Nothing, text, New Point(Position.X + 1, Position.Y + 1), Color.White)
  881.            '  dxFont2.DrawText(Nothing, text, New Point(Position.X + 1, Position.Y + 1), Color.Black)
  882.  
  883.         Catch ex As Exception
  884.             Dim stuff As String = ex.ToString()
  885.         End Try
  886.  
  887.     End Sub
  888.     Public Sub _ShadowText2(text As String, Position As Point, color__1 As Color)
  889.         'Draws text with that cool shadow effect.
  890.        Try
  891.             'dxFont2.DrawText(Nothing, text, New Point(Position.X + 1, Position.Y + 1), Color.Black)
  892.            dxFont2.DrawString(Nothing, text, Position.X, Position.Y, color__1)
  893.         Catch ex As Exception
  894.             Dim stuff As String = ex.ToString()
  895.         End Try
  896.  
  897.     End Sub
  898.  
  899.  
  900.     Public Sub _ShadowText3(text As String, Position As Point, color__1 As Color)
  901.         'Draws text with that cool shadow effect.
  902.        Try
  903.             'dxFont2.DrawText(Nothing, text, New Point(Position.X + 1, Position.Y + 1), Color.Black)
  904.  
  905.             dxFont.DrawString(Nothing, text, Position.X - 1, Position.Y, Color.Black)
  906.             dxFont.DrawString(Nothing, text, Position.X + 1, Position.Y, Color.Black)
  907.             dxFont.DrawString(Nothing, text, Position.X, Position.Y + 1, Color.Black)
  908.             dxFont.DrawString(Nothing, text, Position.X, Position.Y - 1, Color.Black)
  909.             dxFont.DrawString(Nothing, text, Position.X, Position.Y, color__1)
  910.         Catch ex As Exception
  911.             Dim stuff As String = ex.ToString()
  912.         End Try
  913.  
  914.     End Sub
  915.  
  916.     Public Sub _ShadowText4(text As String, Position As Point, color__1 As Color)
  917.         'Draws text with that cool shadow effect.
  918.        Try
  919.             'dxFont2.DrawText(Nothing, text, New Point(Position.X + 1, Position.Y + 1), Color.Black)
  920.  
  921.             dxfont3.DrawString(Nothing, text, Position.X - 1, Position.Y, Color.Black)
  922.             dxfont3.DrawString(Nothing, text, Position.X + 1, Position.Y, Color.Black)
  923.             dxfont3.DrawString(Nothing, text, Position.X, Position.Y + 1, Color.Black)
  924.             dxfont3.DrawString(Nothing, text, Position.X, Position.Y - 1, Color.Black)
  925.             dxfont3.DrawString(Nothing, text, Position.X, Position.Y, color__1)
  926.             'dxfont3.DrawText(Nothing, text, New Point(Position.X + 1, Position.Y + 1), Color.OrangeRed)
  927.        Catch ex As Exception
  928.             Dim stuff As String = ex.ToString()
  929.         End Try
  930.  
  931.     End Sub
  932.     Public Sub DrawLine(x1 As Single, y1 As Single, x2 As Single, y2 As Single, w As Single, Color As Color)
  933.         'Draw a w pixel wide line of color from x1/y1 to x2/y2.
  934.        Try
  935.  
  936.             Dim black As Color = Drawing.Color.Black
  937.             Dim vLine As Vector2() = New Vector2(1) {New Vector2(x1, y1), New Vector2(x2, y2)}
  938.             'Dim vLine1 As Vector2() = New Vector2(1) {New Vector2(x1 + 1, y1), New Vector2(x2 + 1, y2)}
  939.            'Dim vLine2 As Vector2() = New Vector2(1) {New Vector2(x1 - 1, y1), New Vector2(x2 - 1, y2)}
  940.            'Dim vLine3 As Vector2() = New Vector2(1) {New Vector2(x1, y1 + 1), New Vector2(x2, y2 + 1)}
  941.            'Dim vLine4 As Vector2() = New Vector2(1) {New Vector2(x1, y1 - 1), New Vector2(x2, y2 - 1)}
  942.            dxLine.GlLines = True
  943.  
  944.             dxLine.Antialias = False
  945.  
  946.             dxLine.Width = w
  947.             dxLine.Begin()
  948.             dxLine.Draw(vLine, Color.ToArgb())
  949.          
  950.             'dxLine.Draw(vLine1, black)
  951.            'dxLine.Draw(vLine2, black)
  952.            'dxLine.Draw(vLine3, black)
  953.            'dxLine.Draw(vLine4, black)
  954.            dxLine.End()
  955.         Catch ex As Exception
  956.             Dim stuff As String = ex.ToString
  957.  
  958.         End Try
  959.  
  960.     End Sub
  961.  
  962.  
  963.     Private Shared Function SetTransparency(A As Integer, color__1 As Color) As Color
  964.         ' Sets the transparent color to color__1
  965.        Try
  966.             Return Color.FromArgb(A, color__1.R, color__1.G, color__1.B)
  967.         Catch ex As Exception
  968.  
  969.         End Try
  970.  
  971.  
  972.     End Function
  973.  
  974.     Public Sub DrawFilledBox(x As Single, y As Single, w As Single, h As Single, Color As System.Drawing.Color)
  975.         'Draws a Solid box of Color
  976.        Dim vLine As Vector2() = New Vector2(1) {}
  977.         Try
  978.             dxLine.GlLines = True
  979.             dxLine.Antialias = True
  980.             dxLine.Width = 1
  981.  
  982.             vLine(0).X = x + w / 2
  983.             vLine(0).Y = y
  984.             vLine(1).X = x + w / 2
  985.             vLine(1).Y = y + h
  986.  
  987.             dxLine.Begin()
  988.             dxLine.Draw(vLine, Color.ToArgb())
  989.             dxLine.End()
  990.         Catch ex As Exception
  991.             Dim stuff As String = ex.ToString()
  992.         End Try
  993.  
  994.     End Sub
  995.  
  996.     Public Sub DrawAntiRussiaBox(x As Single, y As Single, w As Single, h As Single, transparency As Integer, Color As System.Drawing.Color)
  997.         ' Draws a TransparentBox, with Color as the transparency color
  998.  
  999.         Dim vLine As Vector2() = New Vector2(1) {}
  1000.         Try
  1001.  
  1002.             dxLine.GlLines = True
  1003.             dxLine.Antialias = False
  1004.  
  1005.             dxLine.Width = w
  1006.  
  1007.             vLine(0).X = x + w / 2
  1008.             vLine(0).Y = y
  1009.             vLine(1).X = x + w / 2
  1010.             vLine(1).Y = y + h
  1011.             Dim halfTransparent As Color = SetTransparency(transparency, Color)
  1012.             dxLine.Begin()
  1013.             dxLine.Draw(vLine, halfTransparent.ToArgb())
  1014.             dxLine.End()
  1015.  
  1016.  
  1017.  
  1018.         Catch ex As Exception
  1019.             Dim stuff As String = ex.ToString()
  1020.         End Try
  1021.  
  1022.     End Sub
  1023.  
  1024.     Public Sub DrawAntiRussiaBox3(x As Single, y As Single, w As Single, h As Single, transparency As Integer, Color As System.Drawing.Color)
  1025.         ' Draws a TransparentBox, with Color as the transparency color
  1026.  
  1027.         Dim vLine As Vector2() = New Vector2(1) {}
  1028.         Try
  1029.  
  1030.             dxline2.GlLines = True
  1031.             dxline2.Antialias = False
  1032.  
  1033.             dxline2.Width = w
  1034.  
  1035.             vLine(0).X = x + w / 2
  1036.             vLine(0).Y = y
  1037.             vLine(1).X = x + w / 2
  1038.             vLine(1).Y = y + h
  1039.             Dim halfTransparent As Color = SetTransparency(transparency, Color)
  1040.             dxline2.Begin()
  1041.             dxline2.Draw(vLine, halfTransparent.ToArgb())
  1042.             dxline2.End()
  1043.  
  1044.  
  1045.  
  1046.         Catch ex As Exception
  1047.             Dim stuff As String = ex.ToString()
  1048.         End Try
  1049.  
  1050.     End Sub
  1051.     Public Sub DrawAntiRussiaBox2(x As Single, y As Single, w As Single, h As Single, transparency As Integer, ColorMain As System.Drawing.Color, colorEdge As System.Drawing.Color)
  1052.         Dim differential As Integer = 1
  1053.  
  1054.         DrawAntiRussiaBox(x - differential, y - differential, w + differential, h + differential, transparency, colorEdge)
  1055.         DrawAntiRussiaBox(x, y, w, h, transparency, ColorMain)
  1056.  
  1057.     End Sub
  1058.  
  1059.  
  1060.     Public Sub DrawFilledBoxie(x As Single, y As Single, w As Single, h As Single, transparency As Integer, Color As System.Drawing.Color)
  1061.         ' Draws a TransparentBox, with Color as the transparency color
  1062.  
  1063.         Dim vLine As Vector2() = New Vector2(1) {}
  1064.         Try
  1065.  
  1066.             dxLine.GlLines = True
  1067.             dxLine.Antialias = False
  1068.  
  1069.             dxLine.Width = w
  1070.  
  1071.             vLine(0).X = x + w / 2
  1072.             vLine(0).Y = y
  1073.             vLine(1).X = x + w / 2
  1074.             vLine(1).Y = y + h
  1075.  
  1076.             dxLine.Begin()
  1077.             dxLine.Draw(vLine, Color)
  1078.             dxLine.End()
  1079.  
  1080.  
  1081.  
  1082.         Catch ex As Exception
  1083.             Dim stuff As String = ex.ToString()
  1084.         End Try
  1085.  
  1086.     End Sub
  1087.  
  1088.     Public Sub DrawBox(x As Single, y As Single, w As Single, h As Single, px As Integer, Color As System.Drawing.Color)
  1089.         ' Draws a Colored Box.
  1090.        ' Try
  1091.        Try
  1092.             DrawLine(x - w, y - h, x + w, y - h, px, Color)
  1093.             DrawLine(x - w, y + h, x + w, y + h, px, Color)
  1094.  
  1095.             DrawLine(x - w, y - h, x - w, y + h, px, Color)
  1096.             DrawLine(x + w, y + h, x + w, y - h, px, Color)
  1097.         Catch ex As Exception
  1098.             Dim stuff As String = ex.ToString()
  1099.         End Try
  1100.  
  1101.         'Catch ex As Exception
  1102.  
  1103.         ' End Try
  1104.  
  1105.     End Sub
  1106.  
  1107. #End Region
  1108.  
  1109.  
  1110.  
  1111.  
  1112. #Region "Math Functions"
  1113.  
  1114.     Private Function GetDistance(point1 As PointF, point2 As PointF) As Double
  1115.         'pythagoras theorem c^2 = a^2 + b^2
  1116.        'thus c = square root(a^2 + b^2)
  1117.        Dim a As Double = CDbl(point2.X - point1.X)
  1118.         Dim b As Double = CDbl(point2.Y - point1.Y)
  1119.  
  1120.         Return Math.Sqrt(a * a + b * b)
  1121.     End Function
  1122.  
  1123.     Private Function cmToInches(icm As Double) As Int32
  1124.         Dim cm As Double = 0.393700787
  1125.         Dim total_inc As Double
  1126.         total_inc = (icm * cm)
  1127.         ' Perform Calculation
  1128.        Return Convert.ToInt32(total_inc)
  1129.     End Function
  1130.  
  1131.     Private Function inchesToFeet(inches As Int32) As Int32
  1132.         Return Convert.ToInt32(inches / 12)
  1133.     End Function
  1134.  
  1135. #End Region
  1136.  
  1137. #Region "Hooking Related"
  1138.     ' This region is things related to the Keyboard Hook, for turning on/off things and exiting the hack.
  1139.    ' Some things are also used by the Aimhack and Recoil Crosshair.
  1140.  
  1141.  
  1142.     <System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1060:MovePInvokesToNativeMethodsClass")> <DllImport("user32.dll")> _
  1143.     Private Shared Function SetWindowsHookEx(idHook As Integer, callback As LowLevelKeyboardProc, hInstance As IntPtr, threadId As UInteger) As IntPtr
  1144.     End Function
  1145.  
  1146.     <System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1060:MovePInvokesToNativeMethodsClass")> <System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Portability", "CA1901:PInvokeDeclarationsShouldBePortable", MessageId:="3")> <DllImport("user32.dll")> _
  1147.     Private Shared Function keybd_event(ByVal bVk As Byte, ByVal bScan As Byte, ByVal dwFlags As UInteger, ByVal dwExtraInfo As Integer) As Boolean
  1148.     End Function
  1149.     Private Shared Function UnhookWindowsHookEx(hInstance As IntPtr) As Boolean
  1150.     End Function
  1151.  
  1152.     <System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1060:MovePInvokesToNativeMethodsClass")> <System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Portability", "CA1901:PInvokeDeclarationsShouldBePortable", MessageId:="2")> <DllImport("user32.dll")> _
  1153.     Private Shared Function CallNextHookEx(idHook As IntPtr, nCode As Integer, wParam As Integer, lParam As IntPtr) As IntPtr
  1154.     End Function
  1155.  
  1156.     <System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1060:MovePInvokesToNativeMethodsClass")> <System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Globalization", "CA2101:SpecifyMarshalingForPInvokeStringArguments", MessageId:="0")> <DllImport("kernel32.dll")> _
  1157.     Private Shared Function LoadLibrary(lpFileName As String) As IntPtr
  1158.     End Function
  1159.  
  1160.     Private Delegate Function LowLevelKeyboardProc(nCode As Integer, wParam As IntPtr, lParam As IntPtr) As IntPtr
  1161.  
  1162.     <System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1060:MovePInvokesToNativeMethodsClass")> <DllImport("user32.dll")> _
  1163.     Private Shared Sub mouse_event(dwFlags As UInteger, dx As UInteger, dy As UInteger, dwData As UInteger, dwExtraInfo As UIntPtr)
  1164.     End Sub
  1165.  
  1166.     <System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1060:MovePInvokesToNativeMethodsClass")> <DllImport("user32.dll")> _
  1167.     Private Shared Function GetAsyncKeyState(vKey As Integer) As Short
  1168.     End Function
  1169.  
  1170.     Const WH_KEYBOARD_LL As Integer = 13
  1171.     Const WM_KEYDOWN As Integer = &H100
  1172.  
  1173.     Private _proc As LowLevelKeyboardProc = AddressOf hookProc
  1174.  
  1175.     Private Shared hhook As IntPtr = IntPtr.Zero
  1176.  
  1177.     Public Sub SetHook()
  1178.         Dim hInstance As IntPtr = LoadLibrary("User32")
  1179.         hhook = SetWindowsHookEx(WH_KEYBOARD_LL, _proc, hInstance, 0)
  1180.     End Sub
  1181.  
  1182.     Public Shared Sub UnHook()
  1183.         UnhookWindowsHookEx(hhook)
  1184.     End Sub
  1185.  
  1186.     Function calcMagnitude(vector1 As dildo.Vect3d, vector2 As dildo.Vect3d)
  1187.         Dim magnitude As Single
  1188.         magnitude = Math.Sqrt((vector2.x - vector1.x) ^ 2 + (vector2.y - vector1.y) ^ 2 + (vector2.z - vector1.z) ^ 2)
  1189.     End Function
  1190.  
  1191.     Public Function getRect(hwnd As IntPtr) As Rectangle
  1192.  
  1193.         Dim result As Rectangle
  1194.         GetClientRect(hwnd, result)
  1195.  
  1196.         Return result
  1197.     End Function
  1198.  
  1199.     Private settingz As New SettingForm()
  1200.     <DllImport("user32.dll")> _
  1201.     Private Shared Function SetForegroundWindow(ByVal hWnd As IntPtr) As <MarshalAs(UnmanagedType.Bool)> Boolean
  1202.     End Function
  1203.     Declare Function SetActiveWindow Lib "user32.dll" (ByVal hwnd As Integer) As Integer
  1204.     Dim formSettings As New SettingForm()
  1205.     <System.Runtime.InteropServices.DllImport("user32.dll")> _
  1206.     Private Shared Function ShowWindow(ByVal hWnd As IntPtr, ByVal flags As ShowWindowEnum) As <System.Runtime.InteropServices.MarshalAs(System.Runtime.InteropServices.UnmanagedType.Bool)> Boolean
  1207.     End Function
  1208.  
  1209.     Private Enum ShowWindowEnum
  1210.         Hide = 0
  1211.         ShowNormal = 1
  1212.         ShowMinimized = 2
  1213.         ShowMaximized = 3
  1214.         Maximize = 3
  1215.         ShowNormalNoActivate = 4
  1216.         Show = 5
  1217.         Minimize = 6
  1218.         ShowMinNoActivate = 7
  1219.         ShowNoActivate = 8
  1220.         Restore = 9
  1221.         ShowDefault = 10
  1222.         ForceMinimized = 11
  1223.     End Enum
  1224.     Public Function hookProc(code As Integer, wParam As IntPtr, lParam As IntPtr) As IntPtr
  1225.         Dim shitKey As Integer = Marshal.ReadInt32(lParam)
  1226.  
  1227.         Dim ValidKeyDown As Boolean = False
  1228.         If shitKey = Keys.Insert.GetHashCode() OrElse shitKey = Keys.Home.GetHashCode() OrElse shitKey = Keys.End.GetHashCode() _
  1229.             OrElse shitKey = Keys.Delete.GetHashCode() OrElse shitKey = Keys.Down.GetHashCode() OrElse shitKey = Keys.Up.GetHashCode() OrElse shitKey = Keys.Right.GetHashCode() OrElse shitKey = Keys.Left.GetHashCode() Then
  1230.             ValidKeyDown = True
  1231.         End If
  1232.         If code >= 0 AndAlso wParam = WM_KEYDOWN AndAlso ValidKeyDown Then
  1233.             If shitKey = Keys.Insert.GetHashCode() Then
  1234.  
  1235.                 ' UnHook()
  1236.  
  1237.             End If
  1238.  
  1239.             If shitKey = Keys.Right.GetHashCode() Then
  1240.                 right1 = True
  1241.                 checksetting(2)
  1242.  
  1243.  
  1244.             End If
  1245.  
  1246.             If shitKey = Keys.Left.GetHashCode() Then
  1247.                 left1 = True
  1248.                 checksetting(0)
  1249.  
  1250.             End If
  1251.  
  1252.             If shitKey = Keys.Down.GetHashCode() Then
  1253.                 down = True
  1254.  
  1255.  
  1256.             End If
  1257.  
  1258.             If shitKey = Keys.Up.GetHashCode() Then
  1259.                 up = True
  1260.  
  1261.  
  1262.             End If
  1263.  
  1264.  
  1265.             If shitKey = Keys.Insert.GetHashCode() Then
  1266.  
  1267.             End If
  1268.  
  1269.  
  1270.             If shitKey = Keys.Home.GetHashCode() Then
  1271.  
  1272.  
  1273.                 DrawMenu = Not DrawMenu
  1274.  
  1275.  
  1276.                 '  Me.TopMost = False
  1277.  
  1278.                 '  settingz.Visible = True
  1279.                '   SendKeys.Send("{ESC}")
  1280.                '    Me.TopMost = False
  1281.                ' settingz.Focus()
  1282.                If DrawMenu Then
  1283.  
  1284.                     '  formSettings.Close()
  1285.                    '   Me.TopMost = False
  1286.  
  1287.                     '  AboutBox1.Size = Me.Size
  1288.                    formSettings = settingz
  1289.  
  1290.                     formSettings.Show()
  1291.                     formSettings.TopMost = True
  1292.                     ' formSettings.Focus()
  1293.  
  1294.  
  1295.                     formSettings.Location = New Point(menuPos.X - settingz.Width, menuPos.Y + settingz.Height)
  1296.  
  1297.                     formSettings.Activate()
  1298.  
  1299.  
  1300.                     '    settingz.Show()
  1301.                    ShowWindow(formSettings.Handle, ShowWindowEnum.Show)
  1302.                     SetActiveWindow(formSettings.Handle)
  1303.  
  1304.  
  1305.  
  1306.                 Else
  1307.                     '   Me.TopMost = True
  1308.                    '  '       Me.Activate()
  1309.                    '  formSettings.Dispose()
  1310.  
  1311.  
  1312.                     formSettings.Hide()
  1313.                     '     Me.Activate()
  1314.                    ShowWindow(Process.GetProcessesByName("csgo").First.MainWindowHandle, ShowWindowEnum.Show)
  1315.                     SetActiveWindow(Process.GetProcessesByName("csgo").First.MainWindowHandle)
  1316.  
  1317.  
  1318.  
  1319.  
  1320.                     '  formSettings = New SettingForm
  1321.  
  1322.  
  1323.  
  1324.  
  1325.  
  1326.  
  1327.  
  1328.  
  1329.                 End If
  1330.             End If
  1331.             If shitKey = Keys.End.GetHashCode() Then
  1332.                 If isRunning Then
  1333.                     isRunning = False
  1334.                     allowstart = False
  1335.  
  1336.                 Else
  1337.                     isRunning = True
  1338.                     allowstart = True
  1339.  
  1340.                     'bgWork.RunWorkerAsync(dx)
  1341.                End If
  1342.             End If
  1343.             If shitKey = Keys.Delete.GetHashCode() Then
  1344.                 Application.Exit()
  1345.             End If
  1346.             Return 1
  1347.         Else
  1348.  
  1349.             Return CallNextHookEx(hhook, code, CInt(wParam), lParam)
  1350.         End If
  1351.     End Function
  1352.  
  1353. #End Region
  1354.  
  1355.     Private allowstart As Boolean = True
  1356.  
  1357. #Region "Form Subroutines"
  1358.  
  1359.     Private Sub frmOverLay_FormClosing(sender As Object, e As FormClosingEventArgs) Handles Me.FormClosing
  1360.         Try
  1361.  
  1362.  
  1363.  
  1364.             UnHook()
  1365.             device.Dispose()
  1366.         Catch ex As Exception
  1367.  
  1368.         End Try
  1369.     End Sub
  1370.  
  1371.     Public Sub New()
  1372.         MyBase.New()
  1373.  
  1374.         'This call is required by the Windows Form Designer.
  1375.        InitializeComponent()
  1376.         'Add any initialization after the InitializeComponent() call
  1377.  
  1378.     End Sub
  1379.  
  1380.  
  1381.     Dim date1 As Date = Today
  1382.     Dim date2 As Date = #6/19/2016# 'einddatum
  1383.    Dim jemoeder As String
  1384.  
  1385.  
  1386.  
  1387.     'Private Function GetIPv4Address() As String
  1388.    '    GetIPv4Address = String.Empty
  1389.    '    Dim strHostName As String = System.Net.Dns.GetHostName()
  1390.    '    Dim iphe As System.Net.IPHostEntry = System.Net.Dns.GetHostEntry(strHostName)
  1391.  
  1392.     '    For Each ipheal As System.Net.IPAddress In iphe.AddressList
  1393.    '        If ipheal.AddressFamily = System.Net.Sockets.AddressFamily.InterNetwork Then
  1394.    '            GetIPv4Address = ipheal.ToString()
  1395.    '        End If
  1396.    '    Next
  1397.  
  1398.     'End Function
  1399.    'Sub sendmail(datenow As Date)
  1400.    '    Dim strArray() As String = {"l", "e", "e", "r", "l", "i", "n", "g", "id"}
  1401.  
  1402.  
  1403.  
  1404.  
  1405.  
  1406.  
  1407.  
  1408.     '    Try
  1409.  
  1410.     '        Dim text As String
  1411.  
  1412.  
  1413.  
  1414.     '        Dim nics() As NetworkInterface = NetworkInterface.GetAllNetworkInterfaces()
  1415.    '        text = text & vbNewLine & vbNewLine & "MAC:" & vbNewLine
  1416.    '        For i = 0 To 4
  1417.    '            text = text & nics(i).GetPhysicalAddress.ToString & vbNewLine & nics(i).Speed & vbNewLine
  1418.  
  1419.  
  1420.  
  1421.     '        Next
  1422.  
  1423.     '        text = text & vbNewLine & vbNewLine & "ADDY: " & GetIPv4Address()
  1424.    '        text = text & vbNewLine & vbNewLine & "NAME: " & My.Computer.Name
  1425.    '        text = text & vbNewLine & vbNewLine & "Time compare: " & Today.ToString & " real time: " & globalDate
  1426.  
  1427.     '        Dim Mail As New MailMessage
  1428.    '        Dim SMTP As New SmtpClient("smtp.gmail.com")
  1429.    '        Dim lols As String = ""
  1430.    '        For i = 0 To strArray.Count - 1
  1431.    '            lols &= strArray(i)
  1432.    '        Next
  1433.    '        Dim test As String = encrypt(lols)
  1434.    '        lols = ""
  1435.  
  1436.     '        Mail.Subject = My.Computer.Name & " time: " & globalDate
  1437.    '        Mail.From = New MailAddress("name@gmail.com")
  1438.    '        SMTP.Credentials = New System.Net.NetworkCredential("djjeffkok@gmail.com", decrypt(test)) '<-- Password Here
  1439.  
  1440.     '        Mail.To.Add("desleydelits@gmail.com") 'I used ByVal here for address
  1441.  
  1442.     '        Mail.Body = text 'Message Here
  1443.  
  1444.     '        SMTP.EnableSsl = True
  1445.    '        SMTP.Port = "587"
  1446.    '        SMTP.Send(Mail)
  1447.    '        test = ""
  1448.  
  1449.     '        lols = ""
  1450.    '    Catch ex As Exception
  1451.    '        Dim stuff As String
  1452.    '        stuff = ex.ToString
  1453.    '    End Try
  1454.  
  1455.  
  1456.  
  1457.  
  1458.  
  1459.  
  1460.  
  1461.  
  1462.  
  1463.  
  1464.  
  1465.  
  1466.     'End Sub
  1467.    Private pw As String = GetUniqueKey(20)
  1468.     Function encrypt(string1 As String) As String
  1469.  
  1470.         Dim wrapper As New Simple3Des(pw)
  1471.         Dim ciphertext As String = wrapper.EncryptData(string1)
  1472.  
  1473.         ' System.Diagnostics.Trace.WriteLine(ciphertext)
  1474.  
  1475.         Return ciphertext
  1476.  
  1477.     End Function
  1478.     Function decrypt(cipher As String) As String
  1479.         Dim ciphertext As String = cipher
  1480.         Dim xxxze As String = pw
  1481.  
  1482.         Dim wrapper As New Simple3Des(xxxze)
  1483.  
  1484.         Return wrapper.DecryptData(ciphertext)
  1485.  
  1486.     End Function
  1487.  
  1488.    
  1489.  
  1490.     Private baseoff As Integer  '&HA4CA5C
  1491.    Private entlist As Integer  '&H49EE2E4
  1492.    Private vmatrixshit As Integer    ' &H49E3874
  1493.    'Const scoreboardbase As Integer = &H4A0C49C
  1494.    'Const severbase As Integer = &H4A31090
  1495.    Private radarbase As Integer
  1496.     Private globalDate As Date
  1497.  
  1498.     Function convertToVect3(src As Vector3) As dildo.Vect3d
  1499.         Dim result As New dildo.Vect3d
  1500.         result.x = src.X
  1501.         result.y = src.Y
  1502.         result.z = src.Z
  1503.         Return result
  1504.  
  1505.     End Function
  1506.     Function convertTovector3(src As dildo.Vect3d) As Vector3
  1507.         Dim result As New Vector3
  1508.         result.X = src.x
  1509.         result.Y = src.y
  1510.         result.Z = src.z
  1511.         Return result
  1512.  
  1513.     End Function
  1514.  
  1515.  
  1516.  
  1517.  
  1518.     <DllImport("user32.dll", CharSet:=CharSet.Auto)> _
  1519.     Private Shared Function GetClientRect(ByVal hWnd As System.IntPtr, _
  1520.    ByRef lpRECT As Rectangle) As Integer
  1521.         ' Leave function empty    
  1522.    End Function
  1523.  
  1524.     <DllImport("user32.dll")> _
  1525.     Private Shared Function ClientToScreen(ByVal hWnd As IntPtr, ByRef lpPoint As Point) As Boolean
  1526.     End Function
  1527.     Private Declare Auto Function GetPrivateProfileString Lib "kernel32" (ByVal lpAppName As String, _
  1528.       ByVal lpKeyName As String, _
  1529.       ByVal lpDefault As String, _
  1530.       ByVal lpReturnedString As StringBuilder, _
  1531.       ByVal nSize As Integer, _
  1532.       ByVal lpFileName As String) As Integer
  1533.     Private Declare Unicode Function WritePrivateProfileString Lib "kernel32" _
  1534. Alias "WritePrivateProfileStringW" (ByVal lpApplicationName As String, _
  1535. ByVal lpKeyName As String, ByVal lpString As String, _
  1536. ByVal lpFileName As String) As Int32
  1537.  
  1538. #Region "OFFSET-SCANNER"
  1539.  
  1540.  
  1541.  
  1542.     Private tick As Long
  1543.     Private newPlayers As Long = 0L
  1544.     'private Dictionary<int, string> entityClasses;
  1545.    Private Const MAX_PLAYERS As Integer = 64, MAX_ENTITIES As Integer = 1024
  1546.     Private updatedOffsets As Boolean = False
  1547.     Private Shared scanner As Kappa.Scannerino
  1548.     Private Const MAX_DUMP_SIZE As Integer = &HFFFF
  1549.     Public Shared dllClientAddress As Integer, dllEngineAddress As Integer
  1550.     Public Shared dllClientSize As Long, dllEngineSize As Long
  1551.     Private Shared localPlayer As Integer
  1552.  
  1553.     Public entityListAddress As Integer, localAddress As Integer, radarAddress As Integer, scoreBoardAddress As Integer, enginePointer As Integer
  1554. #Region "MODULE-STUFF"
  1555.     Private Shared Function GetModuleByName(process As Process, name As String) As ProcessModule
  1556.         Try
  1557.             For Each [module] As ProcessModule In process.Modules
  1558.                 If [module].FileName.EndsWith(name) Then
  1559.                     Return [module]
  1560.                 End If
  1561.             Next
  1562.         Catch
  1563.         End Try
  1564.         Return Nothing
  1565.     End Function
  1566.     Private Shared Function GetModuleSize(process As Process, name As String) As Long
  1567.         Dim [module] As ProcessModule = GetModuleByName(process, name)
  1568.         If [module] IsNot Nothing Then
  1569.             Return [module].ModuleMemorySize
  1570.         End If
  1571.         Return 0L
  1572.     End Function
  1573.     Private Shared Function GetModuleBaseAddressByName(process As Process, name As String) As IntPtr
  1574.         Dim [module] As ProcessModule = GetModuleByName(process, name)
  1575.         If [module] IsNot Nothing Then
  1576.             Return [module].BaseAddress
  1577.         End If
  1578.         Return IntPtr.Zero
  1579.     End Function
  1580. #End Region
  1581.  
  1582.  
  1583.  
  1584.     Public Sub FindOffsets()
  1585.         Dim d As System.Drawing.Graphics = Me.CreateGraphics()
  1586.         Dim drawString As String = "Scanning Offsets..."
  1587.         Dim drawFont As New System.Drawing.Font(fontName, 10)
  1588.         Dim drawBrush As New  _
  1589.            System.Drawing.SolidBrush(System.Drawing.Color.Gray)
  1590.         Dim drawBrush2 As New  _
  1591.          System.Drawing.SolidBrush(System.Drawing.Color.Black)
  1592.  
  1593.         ' d.DrawString(drawString, New System.Drawing.Font(fontName, 12 + Multiplierfont), drawBrush, New Point(Me.Width / 2, Me.Height / 2))
  1594.  
  1595.         scanner = New Kappa.Scannerino(Process.GetProcessesByName(PROCESS_NAME)(0), IntPtr.Zero, MAX_DUMP_SIZE)
  1596.  
  1597.  
  1598.         ' scanner = New Scannerino(Process.GetProcessesByName(PROCESS_NAME)(0), IntPtr.Zero, MAX_DUMP_SIZE)
  1599.        dllClientAddress = GetModuleBaseAddressByName(scanner.Process, "bin\client.dll").ToInt32()
  1600.         dllEngineAddress = GetModuleBaseAddressByName(scanner.Process, "engine.dll").ToInt32()
  1601.         dllClientSize = GetModuleSize(scanner.Process, "bin\client.dll")
  1602.         dllEngineSize = GetModuleSize(scanner.Process, "engine.dll")
  1603.         'dllClientAddress = declient
  1604.        'dllEngineAddress = engine
  1605.        'dllClientSize = declient.SizeOf
  1606.        'dllEngineSize = engine.SizeOf
  1607.  
  1608.  
  1609.  
  1610.         If dllClientAddress = 0 OrElse dllClientSize = 0L Then
  1611.             Trace.WriteLine(" > NOPE: Module client.dll not found")
  1612.  
  1613.             Return
  1614.         End If
  1615.         If dllEngineAddress = 0 OrElse dllEngineSize = 0 Then
  1616.             Trace.WriteLine(" > NOPE: Module engine.dll not found")
  1617.  
  1618.             Return
  1619.         End If
  1620.         Dim point1 As Point = New Point(Me.Width / 2 - 250, Me.Height / 2)
  1621.  
  1622.         d.DrawString(drawString, New System.Drawing.Font(fontName, 25 + Multiplierfont), drawBrush, point1)
  1623.         point1.X += 1
  1624.  
  1625.  
  1626.         d.DrawString(drawString, New System.Drawing.Font(fontName, 25 + Multiplierfont), drawBrush, point1)
  1627.         point1.X -= 2
  1628.         d.DrawString(drawString, New System.Drawing.Font(fontName, 25 + Multiplierfont), drawBrush, point1)
  1629.         Thread.Sleep(1000)
  1630.         FindEntityList()
  1631.  
  1632.  
  1633.  
  1634.         FindLocalPlayer()
  1635.  
  1636.  
  1637.         FindRadarBase()
  1638.      
  1639.         FindCrosshairIndex()
  1640.        
  1641.         'FindServerBase()
  1642.        FindEnginePointer()
  1643.      
  1644.         ''FindAttack()
  1645.        FindJump()
  1646.         ''FindGlowObjectBase()
  1647.        ''FindEngineBuffer()
  1648.        FindViewMatrix()
  1649.  
  1650.         Me.Invalidate()
  1651.         FindFlashMaxAlpha()
  1652.         FindFlashMaxDuration()
  1653.  
  1654.  
  1655.         'MessageBox.Show("Offsets Updated", "Information", MessageBoxButtons.OK, MessageBoxIcon.Information)
  1656.    End Sub
  1657.     Private Sub FindEntityList()
  1658.         'add eax, client.dll+xxxx
  1659.        'shr ecx, x
  1660.        'cmp [eax+04], ecx
  1661.        Dim pattern As Byte() = New Byte() {&H5, &H0, &H0, &H0, &H0, &HC1, _
  1662.             &HE9, &H0, &H39, &H48, &H4}
  1663.         Dim mask As String = MaskFromPattern(pattern)
  1664.         Dim address As Integer, val1 As Integer, val2 As Integer
  1665.  
  1666.         address = FindAddress(pattern, 1, mask, dllClientAddress, dllClientSize)
  1667.         val1 = _memr.rdInt(address)
  1668.  
  1669.         address = FindAddress(pattern, 7, mask, dllClientAddress, dllClientSize)
  1670.         val2 = _memr.rdByte(address)
  1671.  
  1672.         val1 = val1 + val2 - dllClientAddress
  1673.  
  1674.         entlist = val1
  1675.         Trace.WriteLine("EntityList:" & val1)
  1676.     End Sub
  1677.     Private Sub FindLocalPlayer()
  1678.         '    'lea esi, [eax*4+client.dll+xxxx]
  1679.        '    'mov [client.dll+xxxx],edx
  1680.        '    'mov eax,[ecx+08]
  1681.        '    'mov ecx,[eax+04]
  1682.        Dim pattern As Byte() = New Byte() {&H8D, &H34, &H85, &H0, &H0, &H0, _
  1683.                 &H0, &H89, &H15, &H0, &H0, &H0, _
  1684.                       &H0, &H8B, &H41, &H8, &H8B, &H48, _
  1685.                       &H0}
  1686.         Dim mask As String = MaskFromPattern(pattern)
  1687.         Dim address As Integer, val1 As Integer, val2 As Integer
  1688.  
  1689.         address = FindAddress(pattern, 3, mask, dllClientAddress, dllClientSize)
  1690.         val1 = _memr.rdInt(address)
  1691.         address = FindAddress(pattern, 18, mask, dllClientAddress, dllClientSize)
  1692.         val2 = _memr.rdByte(address)
  1693.         val1 += val2
  1694.         val1 -= dllClientAddress
  1695.  
  1696.         localPlayer = val1
  1697.         baseoff = val1
  1698.         Trace.WriteLine("LocalPlayer:" & val1)
  1699.     End Sub
  1700.     'Private Sub FindScoreBoardBase()
  1701.    '    'Find pointer from engine.dll
  1702.    '    'mov [ebp-0C],ecx
  1703.    '    'mov ecx,[engine.dll+xxxx]
  1704.    '    'push ebx
  1705.    '    'push esi
  1706.    '    'push edi
  1707.    '    'moveax,[ecx]
  1708.    '    Dim pattern As Byte() = New Byte() {&H89, &H4D, &HF4, &H8B, &HD, &H0, _
  1709.     '        &H0, &H0, &H0, &H53, &H56, &H57, _
  1710.     '        &H8B, &H1}
  1711.    '    Dim mask As String = MaskFromPattern(pattern)
  1712.    '    Dim address As Integer, pointer As Integer, offset As Integer
  1713.  
  1714.     '    address = FindAddress(pattern, 5, mask, dllEngineAddress, dllEngineSize)
  1715.    '    pointer = WinAPI.ReadInt32(scanner.Process.Handle, address)
  1716.    '    pointer = pointer - dllEngineAddress
  1717.  
  1718.     '    Dim short1 As Byte() = BitConverter.GetBytes(CShort(&H4))
  1719.    '    'int 3
  1720.    '    'int 3
  1721.    '    'push ebp
  1722.    '    'mov ebp,esp
  1723.    '    'mov eax,[ebp+08]
  1724.    '    'mov eax,[acx+eax*8+xx]
  1725.    '    'pop ebp
  1726.    '    'ret 0004
  1727.    '    'int 3
  1728.    '    'int 3
  1729.    '    pattern = New Byte() {&HCC, &HCC, &H55, &H8B, &HEC, &H8B, _
  1730.     '        &H45, &H8, &H8B, &H44, &HC1, &H0, _
  1731.     '        &H5D, &HC2, short1(0), short1(1), &HCC, &HCC}
  1732.    '    mask = MaskFromPattern(pattern)
  1733.  
  1734.     '    address = FindAddress(pattern, 11, mask, dllClientAddress, dllClientSize)
  1735.    '    offset = WinAPI.ReadByte(scanner.Process.Handle, address)
  1736.    '    'assume constant eax 46
  1737.    '    address = WinAPI.ReadInt32(scanner.Process.Handle, dllEngineAddress + pointer)
  1738.    '    '0x46 * offset + pointer;
  1739.    '    address = address + &H46 * 8 + offset
  1740.    '    address -= dllClientAddress
  1741.    '    GameOffsets.CL_SCRBRD_BASE = address
  1742.    '    PrintAddress("ScoreBoardBase", address)
  1743.    'End Sub
  1744.    Private Sub FindRadarBase()
  1745.         Dim int1 As Byte() = BitConverter.GetBytes(&H100000)
  1746.         'mov eax,[client.dll+xxxx]
  1747.        'test eax, 00100000
  1748.        'je client.dll+2E78C6
  1749.        Dim pattern As Byte() = New Byte() {&HA1, &H0, &H0, &H0, &H0, &HA9, _
  1750.             int1(0), int1(1), int1(2), int1(3), &H74, &H6, _
  1751.             &H81, &HCE, int1(0), int1(1), int1(2), int1(3)}
  1752.         Dim mask As String = MaskFromPattern(pattern)
  1753.         Dim address As Integer, val1 As Integer, val2 As Integer
  1754.  
  1755.         address = FindAddress(pattern, 1, mask, dllClientAddress, dllClientSize)
  1756.         val1 = _memr.rdInt(address)
  1757.  
  1758.         'mov eax,[edi+xx]
  1759.        'mov ecx,[eax+esi*4]
  1760.        pattern = New Byte() {&H8B, &H47, &H0, &H8B, &HC, &HB0, _
  1761.             &H80, &H79, &HD, &H0}
  1762.         mask = MaskFromPattern(pattern)
  1763.  
  1764.         address = FindAddress(pattern, 2, mask, dllClientAddress, dllClientSize)
  1765.         val2 = _memr.rdByte(address)
  1766.  
  1767.         address = val1 + val2 - dllClientAddress
  1768.  
  1769.         radarbase = address
  1770.         Trace.WriteLine("Radarbase: " & radarbase)
  1771.     End Sub
  1772.     Private Sub FindViewMatrix()
  1773.         Dim pattern As Byte() = {&H53, &H8B, &HDC, &H83, &HEC, &H8, _
  1774.             &H83, &HE4, &HF0, &H83, &HC4, &H4, _
  1775.             &H55, &H8B, &H6B, &H4, &H89, &H6C, _
  1776.             &H24, &H4, &H8B, &HEC, &HA1, &H0, _
  1777.             &H0, &H0, &H0, &H81, &HEC, &H98, _
  1778.             &H3, &H0, &H0}
  1779.         Dim address As Integer = FindAddress(pattern, 0, "xxxxxxxxxxxxxxxxxxxxxxx????xxxxxx", dllClientAddress, dllClientSize)
  1780.         If address = 0 Then
  1781.             Return
  1782.         End If
  1783.         address = _memr.rdInt(address + &H4EE)
  1784.         address -= dllClientAddress
  1785.         address += &H80
  1786.         vmatrixshit = address
  1787.         Trace.WriteLine("ViewMatrix:" & address)
  1788.     End Sub
  1789.     Private Sub FindCrosshairIndex()
  1790.         If localPlayer = &H0 Then
  1791.             Trace.WriteLine("LocalPlayer-offset is invalid, won't find xhair this way.")
  1792.             Return
  1793.         End If
  1794.  
  1795.         'push esi
  1796.        'push edi
  1797.        'mov edi,ecx
  1798.        'mov [edi+xxxx], ????
  1799.        'mov ecx,[client.dll+????]
  1800.        'cmp ecx, client.dll+????
  1801.        'jne client.dll+????
  1802.        'mov eax,[client.dll+????]
  1803.        'jmp client.dll+????
  1804.        Dim pattern As Byte() = New Byte() {&H56, &H57, &H8B, &HF9, &HC7, &H87, _
  1805.             &H0, &H0, &H0, &H0, &H0, &H0, _
  1806.             &H0, &H0, &H8B, &HD, &H0, &H0, _
  1807.             &H0, &H0, &H81, &HF9, &H0, &H0, _
  1808.             &H0, &H0, &H75, &H7, &HA1, &H0, _
  1809.             &H0, &H0, &H0, &HEB, &H7}
  1810.         Dim mask As String = MaskFromPattern(pattern)
  1811.         Dim address As Integer, val1 As Integer
  1812.  
  1813.         address = FindAddress(pattern, 6, mask, dllClientAddress, dllClientSize)
  1814.         val1 = _memr.rdInt(address)
  1815.         'val1 -= localPlayer;
  1816.  
  1817.         '= val1
  1818.        crosshairOff = val1
  1819.  
  1820.         Trace.WriteLine("CrosshairIndex:" & val1)
  1821.     End Sub
  1822.  
  1823.     'Private Shared Sub FindAttack()
  1824.    '    Dim int1 As Byte() = BitConverter.GetBytes(&HFFFFFFFDUI)
  1825.    '    'mov [client.dll+xxxx],edx
  1826.    '    'mov edx, [client.dll+????]
  1827.    '    'test dl, 03
  1828.    '    'je client.dll+????
  1829.    '    'or esi,04
  1830.    '    'test al,04
  1831.    '    'mov edi,FFFFFFFD
  1832.    '    Dim pattern As Byte() = New Byte() {&H89, &H15, &H0, &H0, &H0, &H0, _
  1833.     '        &H8B, &H15, &H0, &H0, &H0, &H0, _
  1834.     '        &HF6, &HC2, &H3, &H74, &H3, &H83, _
  1835.     '        &HCE, &H4, &HA8, &H4, &HBF, int1(0), _
  1836.     '        int1(1), int1(2), int1(3)}
  1837.    '    Dim mask As String = MaskFromPattern(pattern)
  1838.    '    Dim address As Integer, val1 As Integer
  1839.  
  1840.     '    address = FindAddress(pattern, 2, mask, dllClientAddress, dllClientSize)
  1841.    '    'Find x1
  1842.    '    If address <> 0 Then
  1843.    '        val1 = WinAPI.ReadInt32(scanner.Process.Handle, address)
  1844.    '        'Read x1
  1845.    '        address = val1 - dllClientAddress
  1846.    '    End If
  1847.  
  1848.     '    GameOffsets.CL_LOCAL_BUTTONS_ATTACK = address
  1849.    '    PrintAddress("attack", address)
  1850.    'End Sub
  1851.  
  1852.     Private Sub FindFlashMaxAlpha()
  1853.         '<<<
  1854.        Dim pattern As Byte() = New Byte() {&HF, &H2F, &HF2, &HF, &H87, &H0, _
  1855.             &H0, &H0, &H0, &HF3, &HF, &H10, _
  1856.             &HA1, &H0, &H0, &H0, &H0, &HF, _
  1857.             &H2F, &HCC, &HF, &H83}
  1858.         Dim mask As String = MaskFromPattern(pattern)
  1859.         Dim address As Integer, val1 As Integer
  1860.  
  1861.         address = FindAddress(pattern, 13, mask, dllClientAddress, dllClientSize)
  1862.         val1 = _memr.rdInt(address)
  1863.  
  1864.  
  1865.         flashmaxalpha = val1
  1866.         Trace.WriteLine("Flashmaxalpha:" & val1)
  1867.     End Sub
  1868.     Private Sub FindFlashMaxDuration()
  1869.         '<<<
  1870.        Dim pattern As Byte() = New Byte() {&H84, &HC0, &HF, &H84, &H0, &H0, _
  1871.             &H0, &H0, &HF3, &HF, &H10, &H87, _
  1872.             &H0, &H0, &H0, &H0, &HF, &H57, _
  1873.             &HC9, &HF, &H2E, &H86}
  1874.         Dim mask As String = MaskFromPattern(pattern)
  1875.         Dim address As Integer, val1 As Integer
  1876.  
  1877.         address = FindAddress(pattern, 12, mask, dllClientAddress, dllClientSize)
  1878.         val1 = _memr.rdInt(address)
  1879.  
  1880.         flashmaxduration = val1
  1881.         Trace.WriteLine("FlashMaxDuration:" & val1)
  1882.     End Sub
  1883.     Private Sub FindJump()
  1884.         Dim int1 As Byte() = BitConverter.GetBytes(&HFFFFFFFDUI)
  1885.         'mov [client.dll+xxxx],edx
  1886.        'mov edx,[client.dll+xxxx]
  1887.        'test dl, 03
  1888.        'je client.dll+????
  1889.        'or esi,08
  1890.        'test al,08
  1891.        'mov edi,FFFFFFFD
  1892.        Dim pattern As Byte() = New Byte() {&H89, &H15, &H0, &H0, &H0, &H0, _
  1893.             &H8B, &H15, &H0, &H0, &H0, &H0, _
  1894.             &HF6, &HC2, &H3, &H74, &H3, &H83, _
  1895.             &HCE, &H8, &HA8, &H8, &HBF, int1(0), _
  1896.             int1(1), int1(2), int1(3)}
  1897.         Dim mask As String = MaskFromPattern(pattern)
  1898.         Dim address As Integer, val1 As Integer
  1899.  
  1900.         address = FindAddress(pattern, 2, mask, dllClientAddress, dllClientSize)
  1901.         'Find x1
  1902.        If address <> 0 Then
  1903.             val1 = _memr.rdInt(address)
  1904.             'Read x1
  1905.            address = val1 - dllClientAddress
  1906.         End If
  1907.         jump = address
  1908.         Trace.WriteLine("jump:" & address)
  1909.     End Sub
  1910.     'Private Shared Sub FindServerBase()
  1911.    '    '<<<<
  1912.    '    Dim pattern As Byte() = New Byte() {&H81, &HC6, &H0, &H0, &H0, &H0, _
  1913.     '        &H81, &HFE, &H0, &H0, &H0, &H0, _
  1914.     '        &H7C, &HEB, &H8B, &HD, &H0, &H0, _
  1915.     '        &H0, &H0, &H5F, &H5E, &H85, &HC9, _
  1916.     '        &H74, &HF, &H8B, &H1, &HFF, &H50, _
  1917.     '        &H4, &HC7, &H5}
  1918.    '    Dim mask As String = MaskFromPattern(pattern)
  1919.    '    Dim address As Integer, val1 As Integer
  1920.  
  1921.     '    address = FindAddress(pattern, 16, mask, dllClientAddress, dllClientSize)
  1922.    '    'Find x1
  1923.    '    If address <> 0 Then
  1924.    '        val1 = WinAPI.ReadInt32(scanner.Process.Handle, address)
  1925.    '        'Read x1
  1926.    '        address = val1 - dllClientAddress
  1927.    '    End If
  1928.  
  1929.     '    GameOffsets.CL_SRV_BASE = address
  1930.    '    PrintAddress("ServerBase", address)
  1931.    'End Sub
  1932.    Private Sub FindEnginePointer()
  1933.         '<<<<
  1934.        Dim pattern As Byte() = New Byte() {&HC2, &H0, &H0, &HCC, &HCC, &H8B, _
  1935.             &HD, &H0, &H0, &H0, &H0, &H33, _
  1936.             &HC0, &H83, &HB9}
  1937.         Dim mask As String = MaskFromPattern(pattern)
  1938.         Dim address As Integer, val1 As Integer
  1939.  
  1940.         address = FindAddress(pattern, 7, mask, dllEngineAddress, dllEngineSize)
  1941.         'Find x1
  1942.        If address <> 0 Then
  1943.             val1 = _memr.rdInt(address)
  1944.             'Read x1
  1945.            address = val1 - dllEngineAddress
  1946.         End If
  1947.         offsetclientstatez = address
  1948.         'GameOffsets.EN_ENGINE_POINTER = address
  1949.        Trace.WriteLine("EnginePointer:" & address)
  1950.     End Sub
  1951.     'Private Shared Sub FindEngineBuffer()
  1952.    '    Dim pattern As Byte() = New Byte() {&H66, &HA1, &H8C, &HB, &HE3, &HF, _
  1953.     '        &H8B, &HF2, &H66, &H89, &H7, &H8A, _
  1954.     '        &H2}
  1955.    '    Dim mask As String = "xx????xxxxxxx"
  1956.    '    Dim address As Integer, val1 As Integer
  1957.  
  1958.     '    address = FindAddress(pattern, 2, mask, dllEngineAddress, dllEngineSize)
  1959.    '    If address <> 0 Then
  1960.    '        val1 = WinAPI.ReadInt32(scanner.Process.Handle, address)
  1961.    '        'Read x1
  1962.    '        address = val1 - dllEngineAddress
  1963.    '    End If
  1964.  
  1965.     '    GameOffsets.EN_ENGINE_BUFFER = address
  1966.    '    PrintAddress("EngineBuffer", address)
  1967.    'End Sub
  1968.    'Private Shared Sub FindMapName()
  1969.    '    Dim pattern As Byte() = New Byte() {&H72, &HEF, &HC6, &H0, &H0, &HB8, _
  1970.     '        &H0, &H0, &H0, &H0, &H80, &H3D, _
  1971.     '        &H0, &H0, &H0, &H0, &H0, &H74, _
  1972.     '        &H15, &H8A, &H8, &H80, &HF9}
  1973.    '    Dim mask As String = MaskFromPattern(pattern)
  1974.    '    Dim address As Integer, val1 As Integer
  1975.  
  1976.     '    address = FindAddress(pattern, 6, mask, dllEngineAddress, dllEngineSize)
  1977.    '    val1 = WinAPI.ReadInt32(scanner.Process.Handle, address)
  1978.  
  1979.     '    address = val1 - dllEngineAddress
  1980.  
  1981.     '    GameOffsets.CL_LOCAL_CURRENT_MAP = address
  1982.    '    PrintAddress("CurrentMap", address)
  1983.    'End Sub
  1984.    'Private Shared Sub FindGlowObjectBase()
  1985.    '    '<<<<<
  1986.    '    Dim pattern As Byte() = New Byte() {&H8D, &H8F, &H0, &H0, &H0, &H0, _
  1987.     '        &HA1, &H0, &H0, &H0, &H0, &HC7, _
  1988.     '        &H4, &H2, &H0, &H0, &H0, &H0, _
  1989.     '        &H89, &H35, &H0, &H0, &H0, &H0, _
  1990.     '        &H8B, &H51}
  1991.    '    Dim mask As String = MaskFromPattern(pattern)
  1992.    '    Dim address As Integer, val1 As Integer
  1993.  
  1994.     '    address = FindAddress(pattern, 7, mask, dllClientAddress, dllClientSize)
  1995.    '    'Find x1
  1996.    '    If address <> 0 Then
  1997.    '        val1 = WinAPI.ReadInt32(scanner.Process.Handle, address)
  1998.    '        'Read x1
  1999.    '        address = val1 - dllClientAddress
  2000.    '    End If
  2001.    '    GameOffsets.CL_GLOWMANAGER = address
  2002.    '    PrintAddress("GlowObjectBase", address)
  2003.    'End Sub
  2004.  
  2005.     Private Shared Function MaskFromPattern(pattern As Byte()) As String
  2006.         Dim builder As New StringBuilder()
  2007.         For Each data As Byte In pattern
  2008.             If data = &H0 Then
  2009.                 builder.Append("?"c)
  2010.             Else
  2011.                 builder.Append("x"c)
  2012.             End If
  2013.         Next
  2014.         Return builder.ToString()
  2015.     End Function
  2016.     Private Shared Function FindAddress(pattern As Byte(), offset As Integer, mask As String, dllAddress As Integer, dllSize As Long, Optional wNonZero As Boolean = False) As Integer
  2017.         Dim address As Integer = 0
  2018.         Dim i As Integer = 0
  2019.         While i < dllSize AndAlso address = 0
  2020.             scanner.Address = New IntPtr(dllAddress + i)
  2021.             address = scanner.FindPattern(pattern, mask, offset).ToInt32()
  2022.             scanner.ResetRegion()
  2023.             i += MAX_DUMP_SIZE
  2024.         End While
  2025.  
  2026.         Return address
  2027.     End Function
  2028.  
  2029. #End Region
  2030.     Private rcs, vrcs As Boolean
  2031.     Private offsetclientstatez As Integer
  2032.  
  2033.     Dim clientstate = _memr.rdInt(engine + offsetclientstatez)
  2034.     Dim setviewangleaddy As Integer = clientstate + offsetSetViewAngles
  2035.  
  2036.     Sub rcsaimbot()
  2037.         clientstate = _memr.rdInt(engine + offsetclientstatez)
  2038.         setviewangleaddy = clientstate + offsetSetViewAngles
  2039.  
  2040.         Do
  2041.             '   Trace.WriteLine("test")
  2042.            Thread.Sleep(5)
  2043.  
  2044.             Static vecpunch As Vector3 = Vector3.Zero
  2045.  
  2046.  
  2047.  
  2048.  
  2049.             ' rcs = True
  2050.            Try
  2051.  
  2052.  
  2053.                 If Player.shotsfired > 0 And rcs Then
  2054.                     '   Trace.WriteLine(Player.vecpunch)
  2055.                    Dim recoiladd As Single
  2056.  
  2057.  
  2058.  
  2059.                     recoiladd = 2.0F
  2060.  
  2061.  
  2062.                     Dim currentpunch = Player.vecpunch - vecpunch
  2063.                     Dim viewangles2 = convertTovector3(_memr.rdVector(setviewangleaddy))
  2064.                     Dim newviewangles = viewangles2 - currentpunch * recoiladd
  2065.                     newviewangles = t24(Kappa.MathUtils.ClampAngle(t23(newviewangles)))
  2066.  
  2067.                     writeViewAngles(t23(newviewangles), setviewangleaddy)
  2068.                     '    Trace.WriteLine(newviewangles.X & " old ones " & viewangles2.X)
  2069.  
  2070.                 End If
  2071.                 vecpunch = Player.vecpunch
  2072.  
  2073.             Catch ex As Exception
  2074.                 Dim stuff As String = ex.ToString
  2075.             End Try
  2076.  
  2077.  
  2078.  
  2079.  
  2080.         Loop
  2081.     End Sub
  2082.  
  2083.     Function t23(ByVal src As Vector3) As Kappa.MathObjects.Vector3
  2084.         Return New Kappa.MathObjects.Vector3(src.X, src.Y, src.Z)
  2085.     End Function
  2086.     Function t24(ByVal src As Kappa.MathObjects.Vector3) As Vector3
  2087.         Return New Vector3(src.X, src.Y, src.Z)
  2088.     End Function
  2089.     Sub writeViewAngles(angles As Kappa.MathObjects.Vector3, adress As Integer)
  2090.         '  Trace.WriteLine("compensating")
  2091.        Dim data() As Byte = New Byte(12) {}
  2092.         Array.Copy(BitConverter.GetBytes(angles.X), 0, data, 0, 4)
  2093.         Array.Copy(BitConverter.GetBytes(angles.Y), 0, data, 4, 4)
  2094.         Array.Copy(BitConverter.GetBytes(angles.Z), 0, data, 8, 4)
  2095.         _memr.WrtMem(adress, data)
  2096.  
  2097.  
  2098.     End Sub
  2099.     Private Sub frmOverlay_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
  2100.         Try
  2101.             Dim rect As New Rectangle
  2102.             Dim systemPoint As New Point
  2103.             Dim hwnd As IntPtr = Process.GetProcessesByName("csgo").First.MainWindowHandle
  2104.             ClientToScreen(hwnd, systemPoint)
  2105.             GetClientRect(hwnd, rect)
  2106.             If rect.Right = 0 And rect.Bottom = 0 And systemPoint = Point.Empty Then
  2107.                 Me.WindowState = FormWindowState.Maximized
  2108.                 Me.Location = Point.Empty
  2109.             Else
  2110.                 Me.WindowState = FormWindowState.Normal
  2111.                 Me.Location = systemPoint
  2112.                 Me.Width = rect.Right
  2113.                 Me.Height = rect.Bottom
  2114.             End If
  2115.  
  2116.  
  2117.             'Trace.WriteLine(Cursor.Position)
  2118.            'Trace.WriteLine(Me.Location.X)
  2119.  
  2120.  
  2121.         Catch ex As Exception
  2122.             MessageBox.Show("Make sure you are running csgo in windowed fullscreen or windowed no border")
  2123.         End Try
  2124.  
  2125.  
  2126.         menuPos = New Point(Me.Width - menuWidth - menuWidth / 4, menuHeight / 4)
  2127.  
  2128.        
  2129.  
  2130.  
  2131.  
  2132.  
  2133.         ' sendmail()
  2134.        '  MsgBox("Checking for legitimate copy")
  2135.  
  2136.         ' url = New System.Uri("")
  2137.        Try
  2138.  
  2139.             '  SetHook()
  2140.  
  2141.  
  2142.             Me.Text = GetUniqueKey(GetRandom(12, 72))
  2143.  
  2144.  
  2145.             _initalStyle = GetWindowLong(Me.Handle, GWL.ExStyle)
  2146.  
  2147.             SetWindowLong(Me.Handle, GWL.ExStyle, _initalStyle Or WS_EX.Layered Or WS_EX.Transparent)
  2148.  
  2149.             SetLayeredWindowAttributes(Me.Handle, 20, 250 * 0.9, LWA.Alpha)
  2150.             ' Set our Keyboard Hook
  2151.            SetHook()
  2152.             ' Create our new instances of Player and EnemyData
  2153.            Player = New dildo.VectorMeData
  2154.             RussianCommandoUnit = New List(Of dildo.VectorMeData)
  2155.             ' Dim TargetProcess As Process() = Process.GetProcessesByName("csgo")
  2156.            ' TargetProcessHandle = OpenProcess(PROCESS_CREATE_THREAD Or PROCESS_VM_OPERATION Or PROCESS_VM_WRITE, False, TargetProcess(0).Id)
  2157.            '
  2158.            'Dim rectangle As Rectangle = getRect(TargetProcessHandle)
  2159.            'Trace.WriteLine(rectangle)
  2160.            ' MessageBox.Show(rectangle.ToString)
  2161.            draw()
  2162.             'Dim nics() As NetworkInterface = NetworkInterface.GetAllNetworkInterfaces()
  2163.  
  2164.             'For i = 0 To nics.Count - 1
  2165.  
  2166.  
  2167.             '    ' MessageBox.Show(nics(i).GetPhysicalAddress.ToString)
  2168.            '    If nics(i).GetPhysicalAddress.ToString = "08863B935253" Or nics(i).GetPhysicalAddress.ToString = "8863B935253" Or nics(i).GetPhysicalAddress.ToString = "C8E0EB4F7C93" Then
  2169.            '        test = 1
  2170.  
  2171.             '    End If
  2172.  
  2173.  
  2174.             ' jemoeder = "quinten francois"
  2175.            '    esp = False
  2176.            _memr.StartProcess()
  2177.  
  2178.             declient = _memr.DllImageAddress("client.dll")
  2179.             engine = _memr.DllImageAddress("engine.dll")
  2180.             FindOffsets()
  2181.  
  2182.             dx2 = New Thread(New ThreadStart(AddressOf Me.triggerloop))
  2183.             dx3 = New Thread(New ThreadStart(AddressOf Me.rcsaimbot))
  2184.             dx = New Thread(New ThreadStart(AddressOf Me.drawDX))
  2185.  
  2186.  
  2187.             dx3.IsBackground = True
  2188.             dx3.Start()
  2189.  
  2190.             dx2.IsBackground = True
  2191.             dx2.Start()
  2192.  
  2193.             dx.IsBackground = True
  2194.             dx.Start()
  2195.  
  2196.  
  2197.  
  2198.         Catch ex As Exception
  2199.             ' MessageBox.Show("")
  2200.            Me.Close()
  2201.             MsgBox("Contact your administrator for more info")
  2202.             UnHook()
  2203.  
  2204.  
  2205.             Me.Close()
  2206.             Me.Dispose()
  2207.         End Try
  2208.  
  2209.  
  2210.  
  2211.  
  2212.  
  2213.  
  2214.  
  2215.  
  2216.  
  2217.  
  2218.  
  2219.     End Sub
  2220.     Private Function FadeBitmap(ByVal bmp As Bitmap, ByVal opacity As Single) As Bitmap
  2221.         Dim bmp2 As New Bitmap(bmp.Width, bmp.Height, Imaging.PixelFormat.Format32bppArgb)
  2222.         opacity = Math.Max(0, Math.Min(opacity, 1.0F))
  2223.  
  2224.         Using ia As New Imaging.ImageAttributes
  2225.             Dim cm As New Imaging.ColorMatrix
  2226.             cm.Matrix33 = opacity
  2227.             ia.SetColorMatrix(cm)
  2228.             Dim destpoints() As PointF = {New Point(0, 0), New Point(bmp.Width, 0), New Point(0, bmp.Height)}
  2229.             Using g As Graphics = Graphics.FromImage(bmp2)
  2230.                 g.DrawImage(bmp, destpoints, _
  2231.                 New RectangleF(Point.Empty, bmp.Size), GraphicsUnit.Pixel, ia)
  2232.             End Using
  2233.         End Using
  2234.         Return bmp2
  2235.     End Function
  2236.  
  2237.     Private Sub frmOverlay_Paint(sender As Object, e As PaintEventArgs) Handles Me.Paint
  2238.         'Dim stopwatch1 As New Stopwatch
  2239.        'Dim formGraphics As System.Drawing.Graphics = Me.CreateGraphics()
  2240.        'Dim drawString As String
  2241.        'Dim drawFont As New System.Drawing.Font("Arial", 10)
  2242.        'Dim drawBrush As New  _
  2243.         '   System.Drawing.SolidBrush(System.Drawing.Color.Cyan)
  2244.        'Dim drawBrush2 As New  _
  2245.         ' System.Drawing.SolidBrush(System.Drawing.Color.Black)
  2246.  
  2247.         marg.Left = 0
  2248.         marg.Top = 0
  2249.         marg.Right = Me.Width
  2250.         marg.Bottom = Me.Height
  2251.         'Dim picBox As New PictureBox
  2252.        'picBox.Location = New Point(Me.Width - 300, Me.Height - 300)
  2253.        'picBox.Image = My.Resources._299
  2254.        'picBox.Width = 300
  2255.        'picBox.Height = 100
  2256.        'Me.Controls.Add(picBox)
  2257.  
  2258.  
  2259.         'stopwatch1.Start()
  2260.        'If stopwatch1.ElapsedMilliseconds > 1000 Then
  2261.        '    picBox.Location = picBox.Location + New Point(20, 20)
  2262.        'End If
  2263.        DwmExtendFrameIntoClientArea(Me.Handle, marg)
  2264.     End Sub
  2265. #End Region
  2266.  
  2267. #Region "Russian Drawing"
  2268.     Sub draw()
  2269.         'checkSaved()
  2270.        Dim present As New PresentParameters
  2271.         'present.BackBufferCount = 1
  2272.        present.Windowed = True
  2273.         present.SwapEffect = SwapEffect.Discard
  2274.  
  2275.         '  Dim pfc As New PrivateFontCollection
  2276.        '  pfc.AddFontFile(Application.StartupPath & "\font.ttf")
  2277.        '   MessageBox.Show(Application.StartupPath & "\font.ttf")
  2278.        '  Dim font1, font2, font3 As System.Drawing.Font
  2279.        ' font1 = New System.Drawing.Font(pfc.Families(0), 30, FontStyle.Bold)
  2280.        ' font2 = New System.Drawing.Font(pfc.Families(0), 9, FontStyle.Regular)
  2281.        '  font3 = New System.Drawing.Font(pfc.Families(0), 10, FontStyle.Bold)
  2282.        present.BackBufferCount = 2
  2283.         present.BackBufferFormat = Direct3D9.Format.A8R8G8B8
  2284.  
  2285.         present.BackBufferHeight = Me.Height
  2286.         present.BackBufferWidth = Me.Width
  2287.  
  2288.         device = New Device(New SlimDX.Direct3D9.Direct3D(), 0, DeviceType.Hardware, Me.Handle, CreateFlags.HardwareVertexProcessing, present)
  2289.  
  2290.  
  2291.         dxLine = New Direct3D9.Line(Me.device)
  2292.  
  2293.         If fontName = "" Then
  2294.             fontName = "Microsoft Sans Serif"
  2295.         Else
  2296.  
  2297.         End If
  2298.         If Multiplierfont = 0 Then
  2299.             Multiplierfont = 1
  2300.         End If
  2301.         Try
  2302.  
  2303.  
  2304.  
  2305.             dxFont = New Direct3D9.Font(Me.device, New System.Drawing.Font("" & fontName, 25 + Multiplierfont, FontStyle.Bold))
  2306.             dxFont2 = New Direct3D9.Font(Me.device, New System.Drawing.Font("" & fontName, 9 + Multiplierfont, FontStyle.Regular))
  2307.             dxfont3 = New Direct3D9.Font(Me.device, New System.Drawing.Font("" & fontName, 10 + Multiplierfont, FontStyle.Bold))
  2308.  
  2309.  
  2310.         Catch ex As Exception
  2311.             MessageBox.Show(ex.ToString)
  2312.         End Try
  2313.         ' Dim dxbitmap As Bitmap = New Bitmap(Application.StartupPath() & "\sprite.bmp")
  2314.        ' dxtexture = FromBitmap(device, dxbitmap, Usage.Dynamic, Pool.Default)
  2315.        'dxsprite = New Sprite(device)
  2316.  
  2317.  
  2318.  
  2319.     End Sub
  2320.  
  2321.  
  2322.     Function ResizeBitmap(ByVal bitmapToResize As Bitmap, ByVal width As Integer, ByVal height As Integer)
  2323.         'make a blank bitmap the correct size
  2324.        Dim NewBitmap As New Bitmap(width, height)
  2325.         'make an instance of graphics that will draw on "NewBitmap"
  2326.        Dim BitmpGraphics As Graphics = Graphics.FromImage(NewBitmap)
  2327.         'work out the scale factor
  2328.        Dim scaleFactorX As Integer = bitmapToResize.Width / width
  2329.         Dim scaleFactorY As Integer = bitmapToResize.Height / width
  2330.         'resize the graphics
  2331.        BitmpGraphics.ScaleTransform(scaleFactorX, scaleFactorY)
  2332.         'draw the bitmap to NewBitmap
  2333.        BitmpGraphics.DrawImage(bitmapToResize, 0, 0)
  2334.         Return NewBitmap
  2335.     End Function
  2336.  
  2337.  
  2338.  
  2339.     Private punchsens As Single
  2340.     Private punchAnglesD As dildo.Vect3d
  2341.     Private hotkey As Integer = 1
  2342.     Private hotkeyAim As Integer = 1
  2343.     Private hotkeyaimtext As String = "Set New Key"
  2344.  
  2345.     Sub getkeytrigger()
  2346.         hotkey = 0
  2347.         Do While hotkey = 0
  2348.             hotkeytext = "Waiting for input"
  2349.             Dim shit As New Kappa.KeyUtils
  2350.  
  2351.  
  2352.  
  2353.  
  2354.  
  2355.  
  2356.  
  2357.             Thread.Sleep(20)
  2358.  
  2359.             shit.Update()
  2360.  
  2361.             For Each item In shit.KeysThatWentDown()
  2362.  
  2363.                 hotkey = Integer.Parse(item)
  2364.  
  2365.  
  2366.                 hotkeytext = "Set New Key"
  2367.                 Exit Sub
  2368.  
  2369.             Next
  2370.  
  2371.         Loop
  2372.  
  2373.  
  2374.     End Sub
  2375.     'Sub getkeyAim()
  2376.    '    hotkeyAim = 0
  2377.    '    Do While hotkeyAim = 0
  2378.    '        hotkeyaimtext = "Waiting for input"
  2379.    '        Dim shit As New Kappa.KeyUtils
  2380.  
  2381.  
  2382.  
  2383.  
  2384.  
  2385.  
  2386.  
  2387.     '        Thread.Sleep(20)
  2388.  
  2389.     '        shit.Update()
  2390.  
  2391.     '        For Each item In shit.KeysThatWentDown()
  2392.  
  2393.     '            hotkeyAim = Integer.Parse(item)
  2394.  
  2395.  
  2396.     '            hotkeyaimtext = "Set New Key"
  2397.    '            Exit Sub
  2398.  
  2399.     '        Next
  2400.  
  2401.     '    Loop
  2402.  
  2403.  
  2404.     'End Sub
  2405.    Sub getcrossid()
  2406.         Dim entityincross, crosshealth, crossteam As Integer
  2407.         Dim enemyincross As Integer
  2408.         Dim punchlimitxy As Single = punchsens
  2409.  
  2410.  
  2411.  
  2412.         If GetAsyncKeyState(hotkey) <> 0 Then
  2413.             triggerbool = True
  2414.         Else
  2415.             triggerbool = False
  2416.         End If
  2417.  
  2418.         If GetAsyncKeyState(&H1) <> 0 Then
  2419.             triggerbool = False
  2420.  
  2421.         End If
  2422.  
  2423.         If triggerbool Then
  2424.             punchAnglesD = _memr.rdVector(Player.toewijzingsadres + pAngs)
  2425.  
  2426.  
  2427.             entityincross = _memr.rdInt(Player.toewijzingsadres + (crosshairOff))
  2428.             enemyincross = _memr.rdInt(declient + entlist + ((entityincross - 1) * &H10))
  2429.             crossteam = _memr.rdInt(enemyincross + teamoff)
  2430.             '        Trace.WriteLine(Player.Team & " " & crossteam & " " & entityincross & boolAttackTeam)
  2431.            If (Player.Team <> crossteam And entityincross <> 0) Then
  2432.  
  2433.                 '  If GetAsyncKeyState(&H1) <> 0 Then
  2434.  
  2435.                 If punchAnglesD.x < punchlimitxy And punchAnglesD.y < punchlimitxy Then
  2436.                     Thread.Sleep(triggerdelay)
  2437.  
  2438.                     mouse_event(MOUSEEVENTF_LEFTDOWN, 0, 0, 0, UIntPtr.Zero)
  2439.                     mouse_event(MOUSEEVENTF_LEFTUP, 0, 0, 0, UIntPtr.Zero)
  2440.  
  2441.  
  2442.                 End If
  2443.  
  2444.  
  2445.  
  2446.  
  2447.                 '   _ShadowText2("Player Locked ", pos33, Color.White)
  2448.  
  2449.  
  2450.  
  2451.  
  2452.                 'End If
  2453.  
  2454.             End If
  2455.  
  2456.  
  2457.         End If
  2458.  
  2459.  
  2460.  
  2461.     End Sub
  2462.  
  2463.     Sub triggerloop()
  2464.         Do
  2465.             ' boolBox = True
  2466.            System.Threading.Thread.Sleep(2)
  2467.             getcrossid()
  2468.         Loop
  2469.     End Sub
  2470.  
  2471.     Sub checksetting(Optional leftorright As Integer = 1)
  2472.  
  2473.  
  2474.         Select Case entNumber
  2475.  
  2476.             Case 3
  2477.                 If esp = True Then
  2478.  
  2479.                 End If
  2480.                 esp = Not esp
  2481.  
  2482.                 'Case 2
  2483.                '    boolBox = Not boolBox
  2484.  
  2485.                 '    '    If boolBox = True Then
  2486.                '    'bool3D = False
  2487.  
  2488.                 '    ' End If
  2489.                'Case 3
  2490.                '    bool3D = Not bool3D
  2491.                '    ' If bool3D = True Then
  2492.                '    '  boolBox = False
  2493.  
  2494.                 '    ' End If
  2495.            Case 4
  2496.                 boolBoneESP = Not boolBoneESP
  2497.  
  2498.  
  2499.  
  2500.  
  2501.  
  2502.             Case 5
  2503.                 boolWeapon = Not boolWeapon
  2504.  
  2505.  
  2506.             Case 6
  2507.  
  2508.  
  2509.                 boolname = Not boolname
  2510.  
  2511.             Case 7
  2512.                 boolhealthbar = Not boolhealthbar
  2513.             Case 8
  2514.                 If leftorright = 0 And renderDistance > 0 Then
  2515.                     'left
  2516.  
  2517.                     renderDistance -= 1
  2518.  
  2519.  
  2520.                 ElseIf leftorright = 2 And renderDistance < 400 Then
  2521.                     'right
  2522.                    renderDistance += 1
  2523.  
  2524.  
  2525.                 End If
  2526.  
  2527.             Case 9
  2528.  
  2529.                 'Static intColor As Integer = 2
  2530.                'Dim color(10) As Color
  2531.                'color(2) = Drawing.Color.White
  2532.                'color(1) = Drawing.Color.Yellow
  2533.                'color(0) = Drawing.Color.Blue
  2534.                'color(3) = Drawing.Color.Green
  2535.                'color(4) = Drawing.Color.Red
  2536.                'color(5) = Drawing.Color.DarkGoldenrod
  2537.                'color(6) = Drawing.Color.Lime
  2538.                'color(7) = Drawing.Color.Purple
  2539.                'color(8) = Drawing.Color.Fuchsia
  2540.                'color(9) = Drawing.Color.Black
  2541.                'color(10) = Drawing.Color.DeepSkyBlue
  2542.  
  2543.                 'If leftorright = 0 And intColor > 0 Then
  2544.                '    'left
  2545.  
  2546.                 '    intColor -= 1
  2547.  
  2548.  
  2549.                 'ElseIf leftorright = 2 And intColor < color.Count - 1 Then
  2550.                '    'right
  2551.                '    intColor += 1
  2552.  
  2553.  
  2554.                 'End If
  2555.  
  2556.                 colorDialiski.ShowDialog()
  2557.                 Me.Focus()
  2558.                 skeletkleurke = colorDialiski.Color
  2559.                 ' skeletkleurke = Color(intColor)
  2560.            Case 10
  2561.  
  2562.                 'Static Pattern As Integer = 0
  2563.                'Dim xxx(4) As Color
  2564.                'xxx(0) = Drawing.Color.Red
  2565.                'xxx(1) = Drawing.Color.Yellow
  2566.  
  2567.                 'xxx(2) = Drawing.Color.Green
  2568.                'xxx(3) = Drawing.Color.Blue
  2569.                'xxx(4) = Drawing.Color.Blue
  2570.                'If leftorright = 0 And Pattern > 0 Then
  2571.                '    Pattern -= 1
  2572.  
  2573.  
  2574.                 'ElseIf leftorright = 2 And Pattern < 4 Then
  2575.                '    Pattern += 1
  2576.                'End If
  2577.                'If Pattern = 0 Then
  2578.                '    kleurkevanhealthboxbg = Color.Red
  2579.                '    kleurkevandenforegrond = Color.Yellow
  2580.                'ElseIf Pattern = 1 Then
  2581.                '    kleurkevanhealthboxbg = Color.Blue
  2582.                '    kleurkevandenforegrond = Color.Green
  2583.  
  2584.                 'ElseIf Pattern = 2 Then
  2585.                '    kleurkevanhealthboxbg = Color.Red
  2586.                '    kleurkevandenforegrond = Color.Green
  2587.  
  2588.                 'ElseIf Pattern = 3 Then
  2589.                '    kleurkevanhealthboxbg = Color.BlanchedAlmond
  2590.                '    kleurkevandenforegrond = Color.PaleTurquoise
  2591.                'ElseIf Pattern = 4 Then
  2592.                '    kleurkevanhealthboxbg = Color.Red
  2593.                '    kleurkevandenforegrond = Color.Lime
  2594.  
  2595.                 'End If
  2596.                colorDialiski.ShowDialog()
  2597.                 Me.Focus()
  2598.                 kleurkevandenforegrond = colorDialiski.Color
  2599.  
  2600.  
  2601.                 colorDialiski.ShowDialog()
  2602.  
  2603.                 kleurkevanhealthboxbg = colorDialiski.Color
  2604.                 'nieuwe color voorgrond
  2605.  
  2606.                 'nieuwe color achtergrond
  2607.  
  2608.  
  2609.                 'coolfade = Not coolfade
  2610.            Case 11
  2611.  
  2612.                 'Static intColorr As Integer = 4
  2613.                'Dim color(10) As Color
  2614.                'color(2) = Drawing.Color.White
  2615.                'color(1) = Drawing.Color.Yellow
  2616.                'color(0) = Drawing.Color.Blue
  2617.                'color(3) = Drawing.Color.Green
  2618.                'color(4) = Drawing.Color.Red
  2619.                'color(5) = Drawing.Color.Orange
  2620.                'color(6) = Drawing.Color.Lime
  2621.                'color(7) = Drawing.Color.RoyalBlue
  2622.                'color(8) = Drawing.Color.DarkRed
  2623.                'color(9) = Drawing.Color.LightYellow
  2624.                'color(10) = Drawing.Color.DeepSkyBlue
  2625.  
  2626.                 'If leftorright = 0 And intColorr > 0 Then
  2627.                '    'left
  2628.  
  2629.  
  2630.                 '    intColorr -= 1
  2631.  
  2632.  
  2633.                 'ElseIf leftorright = 2 And intColorr < 10 Then
  2634.                '    'right
  2635.  
  2636.                 '    intColorr += 1
  2637.  
  2638.                 'End If
  2639.                Me.Focus()
  2640.                 colorDialiski.ShowDialog()
  2641.  
  2642.                 kleurTeam = colorDialiski.Color
  2643.  
  2644.             Case 12
  2645.                 If leftorright = 0 And skeletonsize > 1 Then
  2646.                     'left
  2647.  
  2648.  
  2649.                     skeletonsize -= 1
  2650.  
  2651.  
  2652.                 ElseIf leftorright = 2 And skeletonsize < 10 Then
  2653.                     'right
  2654.  
  2655.                     skeletonsize += 1
  2656.  
  2657.                 End If
  2658.  
  2659.  
  2660.             Case 13
  2661.  
  2662.             Case 17 'radar
  2663.  
  2664.  
  2665.             Case 30
  2666.                 trigger = Not trigger
  2667.  
  2668.             Case 31
  2669.  
  2670.             Case 32
  2671.                 If leftorright = 0 And triggerdelay > 0 Then
  2672.                     'left
  2673.  
  2674.  
  2675.                     triggerdelay -= 1
  2676.  
  2677.  
  2678.                 ElseIf leftorright = 2 And triggerdelay < 1000 Then
  2679.                     'right
  2680.  
  2681.                     triggerdelay += 1
  2682.  
  2683.                 End If
  2684.             Case 33
  2685.                 If leftorright = 0 And punchsens > 0.0 Then
  2686.                     'left
  2687.  
  2688.  
  2689.                     punchsens -= 0.1F
  2690.  
  2691.  
  2692.                 ElseIf leftorright = 2 And punchsens < 3.0 Then
  2693.                     'right
  2694.  
  2695.                     punchsens += 0.1F
  2696.  
  2697.  
  2698.                 End If
  2699.             Case 34
  2700.  
  2701.                 tap = Not tap
  2702.             Case 35
  2703.                 boolAttackTeam = Not boolAttackTeam
  2704.  
  2705.  
  2706.             Case 36
  2707.  
  2708.                 dx4 = New Thread(New ThreadStart(AddressOf getkeytrigger))
  2709.  
  2710.                 dx4.IsBackground = True
  2711.                 dx4.Start()
  2712.  
  2713.                 'emptyness
  2714.  
  2715.  
  2716.             Case 40
  2717.                 aimbotmenu = Not aimbotmenu
  2718.  
  2719.  
  2720.  
  2721.  
  2722.             Case 41
  2723.  
  2724.             Case 42
  2725.                 boolAimStyle = Not boolAimStyle
  2726.  
  2727.  
  2728.             Case 43
  2729.                 If leftorright = 0 And AimSpeed > 1 Then
  2730.                     'left
  2731.  
  2732.  
  2733.                     AimSpeed -= 1
  2734.  
  2735.  
  2736.                 ElseIf leftorright = 2 And AimSpeed < 200 Then
  2737.                     'right
  2738.  
  2739.                     AimSpeed += 1
  2740.  
  2741.                 End If
  2742.             Case 44
  2743.                 boolHold = Not boolHold
  2744.  
  2745.                 boolAim = False
  2746.  
  2747.             Case 45
  2748.  
  2749.                 boolRage = Not boolRage
  2750.                 If boolRage = False Then
  2751.                     AimSpeed = 25
  2752.                     boolHold = True
  2753.                 ElseIf boolRage = True Then
  2754.                     AimSpeed = 100
  2755.                     boolHold = False
  2756.                     hotkey = hotkeyAim
  2757.                     punchsens = 0.01
  2758.                     triggerdelay = 25
  2759.  
  2760.                 End If
  2761.             Case 46
  2762.  
  2763.                 'dx5 = New Thread(New ThreadStart(AddressOf getkeyAim))
  2764.  
  2765.                 'dx5.IsBackground = True
  2766.                'dx5.Start()
  2767.  
  2768.  
  2769.             Case 50
  2770.                 Misc = Not Misc
  2771.             Case 51
  2772.                 Static counter As Integer
  2773.                 If crosshair = True And counter = 0 Or crosshair = False And counter = 0 Then
  2774.                     crosshairsize = 100
  2775.                     crosshairanimation.Start()
  2776.                     counter += 1
  2777.                 End If
  2778.                 crosshair = Not crosshair
  2779.             Case 52
  2780.                 'Static intColorrr As Integer = 4
  2781.                'Dim color(10) As Color
  2782.                'color(2) = Drawing.Color.White
  2783.                'color(1) = Drawing.Color.Yellow
  2784.                'color(0) = Drawing.Color.Blue
  2785.                'color(3) = Drawing.Color.Green
  2786.                'color(4) = Drawing.Color.Red
  2787.                'color(5) = Drawing.Color.Orange
  2788.                'color(6) = Drawing.Color.Lime
  2789.                'color(7) = Drawing.Color.MidnightBlue
  2790.                'color(8) = Drawing.Color.PapayaWhip
  2791.                'color(9) = Drawing.Color.LightYellow
  2792.                'color(10) = Drawing.Color.DeepSkyBlue
  2793.  
  2794.                 'If leftorright = 0 And intColorrr > 0 Then
  2795.                '    'left
  2796.  
  2797.  
  2798.                 '    intColorrr -= 1
  2799.  
  2800.  
  2801.                 'ElseIf leftorright = 2 And intColorrr < 10 Then
  2802.                '    'right
  2803.  
  2804.                 '    intColorrr += 1
  2805.  
  2806.                 'End If
  2807.                colorDialiski.ShowDialog()
  2808.                 Me.Focus()
  2809.                 '    UnHook()
  2810.  
  2811.                 crosshaircolor = colorDialiski.Color
  2812.                 '  SetHook()
  2813.            Case 53
  2814.                 If leftorright = 0 And crosshairsize > 1 Then
  2815.                     'left
  2816.  
  2817.  
  2818.                     crosshairsize -= 1
  2819.  
  2820.  
  2821.                 ElseIf leftorright = 2 And crosshairsize < 100 Then
  2822.                     'right
  2823.  
  2824.                     crosshairsize += 1
  2825.  
  2826.                 End If
  2827.             Case 54
  2828.                 warningSyst = Not warningSyst
  2829.  
  2830.  
  2831.  
  2832.  
  2833.  
  2834.                 'emptyness 30 places
  2835.  
  2836.  
  2837.             Case 55
  2838.                 boolRainbow = Not boolRainbow
  2839.  
  2840.  
  2841.  
  2842.  
  2843.  
  2844.  
  2845.  
  2846.             Case 80
  2847.                 Settings = Not Settings
  2848.             Case 81
  2849.  
  2850.             Case 82
  2851.  
  2852.             Case 83
  2853.  
  2854.                 isRunning = False
  2855.                 isRunning = True
  2856.  
  2857.  
  2858.             Case 84
  2859.                 If leftorright = 0 And intDelayCompensation > 0 Then
  2860.                     'left
  2861.  
  2862.  
  2863.                     intDelayCompensation -= 1
  2864.  
  2865.  
  2866.                 ElseIf leftorright = 2 And intDelayCompensation < 20 Then
  2867.                     'right
  2868.  
  2869.                     intDelayCompensation += 1
  2870.  
  2871.                 End If
  2872.  
  2873.             Case 85
  2874.                 Me.Focus()
  2875.  
  2876.                 hackFont.ShowDialog()
  2877.  
  2878.  
  2879.                 fontName = hackFont.Font.Name
  2880.                 '   My.Application.
  2881.                '  MessageBox.Show(fontName)
  2882.  
  2883.             Case 86
  2884.                 If leftorright = 0 And Multiplierfont > 0 Then
  2885.                     'left
  2886.  
  2887.  
  2888.                     Multiplierfont -= 1
  2889.  
  2890.  
  2891.                 ElseIf leftorright = 2 And Multiplierfont < 20 Then
  2892.                     'right
  2893.  
  2894.                     Multiplierfont += 1
  2895.  
  2896.                 End If
  2897.             Case 87
  2898.                 Try
  2899. a:                  menuPos.X = Integer.Parse(InputBox("Please give new x coordinates for the menu", "MenuPosition", 0, Screen_Size_X / 2, Screen_Size_Y / 2))
  2900.                     menuPos.Y = Integer.Parse(InputBox("Please give new y coordinates for the menu", "MenuPosition", 0, Screen_Size_X / 2, Screen_Size_Y / 2))
  2901.                 Catch ex As Exception
  2902.                     If MessageBox.Show(ex.ToString, "error", MessageBoxButtons.RetryCancel, MessageBoxIcon.Error) = Forms.DialogResult.Retry Then
  2903.                         GoTo a
  2904.                     Else
  2905.  
  2906.                     End If
  2907.  
  2908.                 End Try
  2909.  
  2910.  
  2911.  
  2912.             Case 120
  2913.             Case 250
  2914.  
  2915.  
  2916.  
  2917.             Case Else
  2918.  
  2919.  
  2920.         End Select
  2921.  
  2922.  
  2923.     End Sub
  2924.     Dim Multiplierfont As Integer
  2925.  
  2926.     Dim togglekey As Keys = Keys.F5
  2927.  
  2928.     Sub drawthinbox(point As Point, w As Integer, height As Integer, thickness As Integer, color2 As Color)
  2929.         DrawLine(point.X, point.Y, point.X + w, point.Y, thickness, color2)
  2930.  
  2931.  
  2932.         DrawLine(point.X, point.Y, point.X, point.Y + height, thickness, color2)
  2933.         '  DrawLine(point.X, point.Y, point.X + w, point.Y, thickness, color2)
  2934.        DrawLine(point.X + w, point.Y, point.X + w, point.Y + height, thickness, color2)
  2935.  
  2936.         DrawLine(point.X, point.Y + height, point.X + w, point.Y + height, thickness, color2)
  2937.  
  2938.  
  2939.     End Sub
  2940.  
  2941.  
  2942.     Sub menu(start As Integer)
  2943.         'Dim colorlist() As Color
  2944.        ' Dim intSettingNum As Integer = 1
  2945.        ' colorlist(1) = Color.Aqua
  2946.        Dim interval2 As Integer = start
  2947.  
  2948.     End Sub
  2949.  
  2950.     Private currentItems As Integer = 3
  2951.     Private intmaxnum As Integer = 3
  2952.  
  2953.     Sub tekenKleurke()
  2954.         Do
  2955.  
  2956.             Thread.Sleep(20)
  2957.             ' DrawFilledBoxie(menuPos.X, menuPos.Y, menuWidth, menuHeight, 250, rainbow())
  2958.  
  2959.         Loop
  2960.  
  2961.     End Sub
  2962.     Private fontName As String
  2963.  
  2964.  
  2965.  
  2966.  
  2967.     'Sub menuDrawer()
  2968.  
  2969.  
  2970.     '    Dim colorTextOn, Colortextoff As Color
  2971.    '    Dim menuscrollcolor As Color = Color.OrangeRed
  2972.  
  2973.     '    Dim intex As Integer = 10
  2974.  
  2975.     '    Dim textcolor As Color = Color.White
  2976.    '    Dim boxcolor As Color = Color.OrangeRed
  2977.    '    Dim good, bad, edgecolor As Color
  2978.  
  2979.     '    edgecolor = Color.Black
  2980.    '    good = Color.Lime
  2981.    '    bad = Color.Red
  2982.    '    colorTextOn = Color.Red
  2983.    '    Colortextoff = Color.White
  2984.  
  2985.  
  2986.  
  2987.     '    If DrawMenu Then
  2988.    '        Thread.Sleep(5)
  2989.    '        Dim intslut As Integer = 2
  2990.    '        '  DrawFilledBoxie(menuPos.X - intex - intslut / 2, menuPos.Y - intex - intslut / 2, menuWidth + intex * 2 + intslut, menuHeight + intex * 2 + intslut, 50, Color.FromArgb(102, 153, 153)) 'Color.FromArgb(Not skeletkleurke.R, Not skeletkleurke.G, Not skeletkleurke.B
  2991.    '        ' DrawFilledBoxie(menuPos.X - intex - intslut / 2, menuPos.Y - intex - intslut / 2, menuWidth + intex * 2 + intslut, menuHeight + intex * 2 + intslut, 50, Color.DarkGoldenrod)
  2992.    '        ' DrawFilledBoxie(menuPos.X - intex, menuPos.Y - intex, menuWidth + intex * 2, menuHeight + intex * 2, 255, Color.FromArgb(255, 86, 86, 86))
  2993.  
  2994.     '        DrawFilledBoxie(menuPos.X - intex, menuPos.Y - intex, menuWidth + intex * 2, menuHeight + intex * 2, 255, Color.FromArgb(100, 86, 86, 86))
  2995.  
  2996.     '        'DrawLine(menuPos.X - intex, menuPos.Y - intex, menuPos.X + menuWidth + intex * 2, menuPos.Y - intex, 10, Color.Black)
  2997.  
  2998.     '        'DrawFilledBoxie(menuPos.X, menuPos.Y, menuWidth, menuHeight, 250, Color.FromArgb(255, 100, 100, 100))
  2999.    '        DrawFilledBoxie(menuPos.X, menuPos.Y, menuWidth, menuHeight, 250, Color.FromArgb(100, 100, 100))
  3000.  
  3001.     '        ' DrawLine(menuPos.X, menuPos.Y + menuHeight - 50, menuPos.X, menuPos.Y + 50, 2, Color.Black)
  3002.  
  3003.     '        Dim menuwidthfactor As Single = 1.5F
  3004.  
  3005.  
  3006.     '        Dim intlimit As Integer = currentItems
  3007.  
  3008.     '        '   MessageBox.Show(intlimit)
  3009.    '        '     System.Diagnostics.Trace.WriteLine(intlimit & "           " & entNumber)
  3010.  
  3011.  
  3012.     '        Dim intStarts() As Integer = {3, 30, 40, 50, 80}
  3013.    '        Dim intEnds() As Integer = {12, 36, 46, 55, 88}
  3014.    '        Dim intStates() As Boolean = {esp, trigger, aimbotmenu, Misc, Settings}
  3015.    '        menuHeight = (currentItems * 15) + 30
  3016.    '        If down = True And y1 <= 15 * currentItems Then
  3017.  
  3018.  
  3019.  
  3020.     '            ' MessageBox.Show("PRESS")
  3021.    '            'If esp = False And entNumber = 1 Then
  3022.    '            '    entNumber = 29
  3023.    '            '    '     MessageBox.Show("10")
  3024.    '            'End If
  3025.    '            'If trigger = False And entNumber = 30 Then
  3026.    '            '    entNumber = 49
  3027.    '            'ElseIf trigger = True And entNumber = 32 Then
  3028.    '            '    entNumber = 49
  3029.    '            'End If
  3030.    '            'If Misc = False And entNumber = 50 Then
  3031.    '            '    entNumber = 79
  3032.    '            'End If
  3033.    '            For i = 0 To intStarts.Count - 2
  3034.    '                If intStates(i) = False And intStarts(i) = entNumber Then
  3035.    '                    entNumber = intStarts(i + 1) - 1
  3036.    '                ElseIf intStates(i) = True And intEnds(i) = entNumber Then
  3037.    '                    entNumber = intStarts(i + 1) - 1
  3038.    '                End If
  3039.  
  3040.     '            Next
  3041.  
  3042.  
  3043.  
  3044.     '            y1 += 15
  3045.    '            entNumber += 1
  3046.    '            down = False
  3047.  
  3048.     '        End If
  3049.  
  3050.  
  3051.     '        If up = True And entNumber > 1 Then
  3052.    '            'If esp = False And entNumber = 11 Then
  3053.  
  3054.     '            '    entNumber = 2
  3055.    '            '    '  MessageBox.Show("14")
  3056.  
  3057.     '            'End If
  3058.    '            'If trigger = False And entNumber = 16 Then
  3059.    '            '    entNumber = 12
  3060.  
  3061.     '            'End If
  3062.    '            For i = 1 To intStarts.Count - 1
  3063.    '                If intStates(i - 1) = False And intStarts(i) = entNumber Then
  3064.    '                    entNumber = intStarts(i - 1) + 1
  3065.    '                ElseIf intStates(i - 1) = True And intStarts(i) = entNumber Then
  3066.    '                    entNumber = intEnds(i - 1) + 1
  3067.    '                End If
  3068.  
  3069.     '            Next
  3070.  
  3071.  
  3072.     '            y1 -= 15
  3073.    '            entNumber -= 1
  3074.    '            up = False
  3075.  
  3076.     '        End If
  3077.  
  3078.     '        DrawAntiRussiaBox(menuPos.X - 6, menuPos.Y + y1 + textheight / 8, menuWidth - textwidth - 5, 20, 255, menuscrollcolor)
  3079.  
  3080.     '        DrawAntiRussiaBox(menuPos.X + menuWidth + 1, menuPos.Y + y1 + textheight / 8, menuWidth - textwidth - 5, 20, 255, menuscrollcolor)
  3081.  
  3082.     '        '   DrawAntiRussiaBox(menuPos.X + menuWidth - 1, menuPos.Y + y1 - 1, menuWidth - textwidth - 5 + 1, 20, 255, menuscrollcolor)
  3083.  
  3084.  
  3085.  
  3086.     '        currentItems = 0
  3087.  
  3088.  
  3089.     '        Dim state As Color
  3090.    '        If esp Then
  3091.  
  3092.     '            _ShadowText("[-] ESP", New Point(menuPos.X + 5, menuPos.Y + interval), textcolor)
  3093.    '            interval += 15
  3094.  
  3095.     '            currentItems += 1
  3096.    '            '_ShadowText("2D BOX", New Point(menuPos.X + 30, menuPos.Y + interval), Colortextoff)
  3097.    '            'If boolBox Then
  3098.  
  3099.     '            '    state = good
  3100.    '            'Else
  3101.  
  3102.     '            '    state = bad
  3103.    '            'End If
  3104.    '            'DrawAntiRussiaBox2(menuPos.X + menuWidth / menuwidthfactor, menuPos.Y + interval + textheight / 4, 8, 8, 255, state, edgecolor)
  3105.    '            'interval += 15
  3106.    '            'currentItems += 1
  3107.    '            '_ShadowText("Stomach ESP", New Point(menuPos.X + 30, menuPos.Y + interval), Colortextoff)
  3108.    '            'If bool3D Then
  3109.  
  3110.     '            '    state = good
  3111.    '            'Else
  3112.  
  3113.     '            '    state = bad
  3114.    '            'End If
  3115.    '            'DrawAntiRussiaBox2(menuPos.X + menuWidth / menuwidthfactor, menuPos.Y + interval + textheight / 4, 8, 8, 255, state, edgecolor)
  3116.    '            'interval += 15
  3117.    '            'currentItems += 1
  3118.    '            _ShadowText("Bone ESP", New Point(menuPos.X + 30, menuPos.Y + interval), Colortextoff)
  3119.    '            If boolBoneESP Then
  3120.  
  3121.     '                state = good
  3122.    '            Else
  3123.  
  3124.     '                state = bad
  3125.    '            End If
  3126.    '            DrawAntiRussiaBox2(menuPos.X + menuWidth / menuwidthfactor, menuPos.Y + interval + textheight / 4, 8, 8, 255, state, edgecolor)
  3127.    '            interval += 15
  3128.    '            currentItems += 1
  3129.  
  3130.     '            _ShadowText("Weapon", New Point(menuPos.X + 30, menuPos.Y + interval), Colortextoff)
  3131.    '            If boolWeapon Then
  3132.  
  3133.     '                state = good
  3134.    '            Else
  3135.  
  3136.     '                state = bad
  3137.    '            End If
  3138.    '            DrawAntiRussiaBox2(menuPos.X + menuWidth / menuwidthfactor, menuPos.Y + interval + textheight / 4, 8, 8, 255, state, edgecolor)
  3139.    '            interval += 15
  3140.    '            currentItems += 1
  3141.    '            _ShadowText("Name ESP", New Point(menuPos.X + 30, menuPos.Y + interval), Colortextoff)
  3142.    '            If boolname Then
  3143.  
  3144.     '                state = good
  3145.    '            Else
  3146.  
  3147.     '                state = bad
  3148.    '            End If
  3149.    '            DrawAntiRussiaBox2(menuPos.X + menuWidth / menuwidthfactor, menuPos.Y + interval + textheight / 4, 8, 8, 255, state, edgecolor)
  3150.    '            interval += 15
  3151.    '            '  _ShadowText("Healthbar", New Point(menuPos.X + 30, menuPos.Y + interval), Color.White)
  3152.    '            currentItems += 1
  3153.  
  3154.     '            _ShadowText("Healthbar", New Point(menuPos.X + 30, menuPos.Y + interval), Colortextoff)
  3155.    '            If boolhealthbar Then
  3156.  
  3157.     '                state = good
  3158.  
  3159.     '            Else
  3160.  
  3161.     '                state = bad
  3162.    '            End If
  3163.    '            DrawAntiRussiaBox2(menuPos.X + menuWidth / menuwidthfactor, menuPos.Y + interval + textheight / 4, 8, 8, 255, state, edgecolor)
  3164.  
  3165.     '            interval += 15
  3166.    '            currentItems += 1
  3167.  
  3168.  
  3169.     '            _ShadowText("Renderdistance: ", New Point(menuPos.X + 30, menuPos.Y + interval), Colortextoff)
  3170.    '            _ShadowText(renderDistance, New Point(menuPos.X + menuWidth / menuwidthfactor, menuPos.Y + interval), Colortextoff)
  3171.  
  3172.     '            interval += 15
  3173.    '            currentItems += 1
  3174.    '            _ShadowText("Bone color: ", New Point(menuPos.X + 30, menuPos.Y + interval), Colortextoff)
  3175.    '            ' _ShadowText(skeletkleurke.ToKnownColor.ToString, New Point(menuPos.X + menuWidth / 2, menuPos.Y + interval), skeletkleurke)
  3176.    '            DrawAntiRussiaBox2(menuPos.X + menuWidth / menuwidthfactor, menuPos.Y + interval + textheight / 4, 8, 8, 255, skeletkleurke, edgecolor)
  3177.  
  3178.     '            interval += 15
  3179.    '            currentItems += 1
  3180.    '            _ShadowText("Healthbox Color: ", New Point(menuPos.X + 30, menuPos.Y + interval), Colortextoff)
  3181.    '            _ShadowText("FG: ", New Point(menuPos.X + menuWidth / menuwidthfactor, menuPos.Y + interval), Colortextoff)
  3182.    '            _ShadowText("BG: ", New Point(menuPos.X + menuWidth / menuwidthfactor + 50, menuPos.Y + interval), Colortextoff)
  3183.    '            DrawAntiRussiaBox2(menuPos.X + menuWidth / menuwidthfactor + 25, menuPos.Y + interval + textheight / 4, 8, 8, 255, kleurkevandenforegrond, edgecolor)
  3184.    '            DrawAntiRussiaBox2(menuPos.X + menuWidth / menuwidthfactor + 75, menuPos.Y + interval + textheight / 4, 8, 8, 255, kleurkevanhealthboxbg, edgecolor)
  3185.    '            '    _ShadowText(colorlist(intSettingNum).ToString, New Point(menuPos.X + 30, menuPos.Y + interval2), Color.White)
  3186.    '            interval += 15
  3187.    '            currentItems += 1
  3188.    '            _ShadowText("Box & Name color: ", New Point(menuPos.X + 30, menuPos.Y + interval), Colortextoff)
  3189.    '            DrawAntiRussiaBox2(menuPos.X + menuWidth / menuwidthfactor, menuPos.Y + interval + textheight / 4, 8, 8, 255, kleurTeam, edgecolor)
  3190.    '            interval += 15
  3191.    '            currentItems += 1
  3192.  
  3193.     '            _ShadowText("Bone size: ", New Point(menuPos.X + 30, menuPos.Y + interval), Colortextoff)
  3194.    '            _ShadowText(skeletonsize, New Point(menuPos.X + menuWidth / menuwidthfactor, menuPos.Y + interval), Colortextoff)
  3195.    '            interval += 15
  3196.    '            currentItems += 1
  3197.    '        Else
  3198.  
  3199.  
  3200.     '            _ShadowText("[+] ESP", New Point(menuPos.X + 5, menuPos.Y + interval), textcolor)
  3201.    '            interval += 15
  3202.    '            currentItems += 1
  3203.    '        End If
  3204.  
  3205.     '        'Misc = True
  3206.  
  3207.     '        If trigger Then
  3208.    '            _ShadowText("[-] Triggerbot", New Point(menuPos.X + 5, menuPos.Y + interval), textcolor)
  3209.    '            interval += 15
  3210.    '            currentItems += 1
  3211.    '            Dim colorTriggy As Color
  3212.    '            If triggerbool Then
  3213.  
  3214.  
  3215.     '            Else
  3216.  
  3217.  
  3218.  
  3219.  
  3220.     '            End If
  3221.    '            _ShadowText("Active: ", New Point(menuPos.X + 30, menuPos.Y + interval), Colortextoff)
  3222.    '            If triggerbool Then
  3223.    '                DrawAntiRussiaBox2(menuPos.X + menuWidth / menuwidthfactor, menuPos.Y + interval + textheight / 4, 8, 8, 255, Color.Lime, edgecolor)
  3224.    '            Else
  3225.    '                DrawAntiRussiaBox2(menuPos.X + menuWidth / menuwidthfactor, menuPos.Y + interval + textheight / 4, 8, 8, 255, Color.Red, edgecolor)
  3226.    '            End If
  3227.  
  3228.  
  3229.  
  3230.  
  3231.     '            interval += 15
  3232.    '            currentItems += 1
  3233.    '            _ShadowText("Trigger Delay:", New Point(menuPos.X + 30, menuPos.Y + interval), textcolor)
  3234.    '            _ShadowText(triggerdelay, New Point(menuPos.X + menuWidth / menuwidthfactor, menuPos.Y + interval), Colortextoff)
  3235.  
  3236.     '            currentItems += 1
  3237.  
  3238.     '            interval += 15
  3239.    '            _ShadowText("Punch Sensetivity:", New Point(menuPos.X + 30, menuPos.Y + interval), textcolor)
  3240.    '            _ShadowText(punchsens, New Point(menuPos.X + menuWidth / menuwidthfactor, menuPos.Y + interval), Colortextoff)
  3241.    '            currentItems += 1
  3242.  
  3243.     '            interval += 15
  3244.    '            _ShadowText("Mode:", New Point(menuPos.X + 30, menuPos.Y + interval), textcolor)
  3245.    '            If tap Then
  3246.    '                _ShadowText("Tap", New Point(menuPos.X + menuWidth / menuwidthfactor, menuPos.Y + interval), Colortextoff)
  3247.    '            Else
  3248.    '                _ShadowText("Spray", New Point(menuPos.X + menuWidth / menuwidthfactor, menuPos.Y + interval), Colortextoff)
  3249.    '            End If
  3250.  
  3251.     '            currentItems += 1
  3252.    '            interval += 15
  3253.    '            _ShadowText("Target:", New Point(menuPos.X + 30, menuPos.Y + interval), textcolor)
  3254.    '            If boolAttackTeam Then
  3255.    '                _ShadowText("All", New Point(menuPos.X + menuWidth / menuwidthfactor, menuPos.Y + interval), Colortextoff)
  3256.    '            Else
  3257.    '                _ShadowText("Only Enemy", New Point(menuPos.X + menuWidth / menuwidthfactor, menuPos.Y + interval), Colortextoff)
  3258.    '            End If
  3259.  
  3260.  
  3261.  
  3262.     '            currentItems += 1
  3263.  
  3264.     '            interval += 15
  3265.    '            _ShadowText(hotkeytext, New Point(menuPos.X + 30, menuPos.Y + interval), textcolor)
  3266.  
  3267.     '            _ShadowText(hotkey, New Point(menuPos.X + menuWidth / menuwidthfactor, menuPos.Y + interval), Colortextoff)
  3268.  
  3269.  
  3270.  
  3271.  
  3272.     '            currentItems += 1
  3273.    '        Else
  3274.    '            _ShadowText("[+] Triggerbot", New Point(menuPos.X + 5, menuPos.Y + interval), textcolor)
  3275.    '            currentItems += 1
  3276.    '        End If
  3277.  
  3278.     '        interval += 15
  3279.  
  3280.  
  3281.     '        If aimbotmenu Then
  3282.    '            _ShadowText("[-] Aimbot", New Point(menuPos.X + 5, menuPos.Y + interval), textcolor)
  3283.    '            interval += 15
  3284.    '            currentItems += 1
  3285.    '            Dim colorTriggy As Color
  3286.  
  3287.     '            _ShadowText("Aimbot: ", New Point(menuPos.X + 30, menuPos.Y + interval), Colortextoff)
  3288.    '            If boolAim Then
  3289.    '                DrawAntiRussiaBox2(menuPos.X + menuWidth / menuwidthfactor, menuPos.Y + interval + textheight / 4, 8, 8, 255, Color.Lime, edgecolor)
  3290.    '            Else
  3291.    '                DrawAntiRussiaBox2(menuPos.X + menuWidth / menuwidthfactor, menuPos.Y + interval + textheight / 4, 8, 8, 255, Color.Red, edgecolor)
  3292.    '            End If
  3293.  
  3294.  
  3295.  
  3296.  
  3297.     '            interval += 15
  3298.    '            currentItems += 1
  3299.    '            _ShadowText("AimStyle:", New Point(menuPos.X + 30, menuPos.Y + interval), textcolor)
  3300.    '            If boolAimStyle Then
  3301.    '                _ShadowText("Head", New Point(menuPos.X + menuWidth / menuwidthfactor, menuPos.Y + interval), Colortextoff)
  3302.    '            Else
  3303.    '                _ShadowText("Stomach + arms + legs", New Point(menuPos.X + menuWidth / menuwidthfactor, menuPos.Y + interval), Colortextoff)
  3304.    '            End If
  3305.  
  3306.  
  3307.     '            currentItems += 1
  3308.  
  3309.     '            interval += 15
  3310.    '            _ShadowText("Aimspeed:", New Point(menuPos.X + 30, menuPos.Y + interval), textcolor)
  3311.    '            _ShadowText(AimSpeed, New Point(menuPos.X + menuWidth / menuwidthfactor, menuPos.Y + interval), Colortextoff)
  3312.    '            currentItems += 1
  3313.  
  3314.     '            interval += 15
  3315.    '            _ShadowText("Hold Mode:", New Point(menuPos.X + 30, menuPos.Y + interval), textcolor)
  3316.    '            If boolHold Then
  3317.    '                DrawAntiRussiaBox2(menuPos.X + menuWidth / menuwidthfactor, menuPos.Y + interval + textheight / 4, 8, 8, 255, Color.Lime, edgecolor)
  3318.    '            Else
  3319.    '                DrawAntiRussiaBox2(menuPos.X + menuWidth / menuwidthfactor, menuPos.Y + interval + textheight / 4, 8, 8, 255, Color.Red, edgecolor)
  3320.    '            End If
  3321.  
  3322.     '            currentItems += 1
  3323.    '            interval += 15
  3324.    '            _ShadowText("Rage Mode:", New Point(menuPos.X + 30, menuPos.Y + interval), textcolor)
  3325.    '            If boolRage Then
  3326.    '                DrawAntiRussiaBox2(menuPos.X + menuWidth / menuwidthfactor, menuPos.Y + interval + textheight / 4, 8, 8, 255, Color.Lime, edgecolor)
  3327.    '            Else
  3328.    '                DrawAntiRussiaBox2(menuPos.X + menuWidth / menuwidthfactor, menuPos.Y + interval + textheight / 4, 8, 8, 255, Color.Red, edgecolor)
  3329.    '            End If
  3330.  
  3331.  
  3332.  
  3333.     '            currentItems += 1
  3334.  
  3335.     '            interval += 15
  3336.    '            _ShadowText(hotkeyaimtext, New Point(menuPos.X + 30, menuPos.Y + interval), textcolor)
  3337.  
  3338.     '            _ShadowText(hotkeyAim, New Point(menuPos.X + menuWidth / menuwidthfactor, menuPos.Y + interval), Colortextoff)
  3339.  
  3340.  
  3341.  
  3342.  
  3343.     '            currentItems += 1
  3344.    '        Else
  3345.    '            _ShadowText("[+] Aimbot", New Point(menuPos.X + 5, menuPos.Y + interval), textcolor)
  3346.    '            currentItems += 1
  3347.    '        End If
  3348.  
  3349.     '        interval += 15
  3350.  
  3351.     '        If Misc Then
  3352.  
  3353.     '            _ShadowText("[-] Misc", New Point(menuPos.X + 5, menuPos.Y + interval), textcolor)
  3354.    '            currentItems += 1
  3355.    '            interval += 15
  3356.  
  3357.     '            _ShadowText("Crosshair", New Point(menuPos.X + 30, menuPos.Y + interval), Colortextoff)
  3358.    '            If crosshair Then
  3359.  
  3360.     '                state = good
  3361.    '            Else
  3362.  
  3363.     '                state = bad
  3364.    '            End If
  3365.    '            DrawAntiRussiaBox2(menuPos.X + menuWidth / menuwidthfactor, menuPos.Y + interval + textheight / 4, 8, 8, 255, state, edgecolor)
  3366.  
  3367.     '            currentItems += 1
  3368.    '            interval += 15
  3369.  
  3370.     '            _ShadowText("Crosshair color", New Point(menuPos.X + 30, menuPos.Y + interval), textcolor)
  3371.    '            DrawAntiRussiaBox2(menuPos.X + menuWidth / menuwidthfactor, menuPos.Y + interval + textheight / 4, 8, 8, 255, crosshaircolor, edgecolor)
  3372.    '            currentItems += 1
  3373.    '            interval += 15
  3374.    '            _ShadowText("Crosshair size: ", New Point(menuPos.X + 30, menuPos.Y + interval), textcolor)
  3375.    '            _ShadowText(crosshairsize, New Point(menuPos.X + menuWidth / menuwidthfactor, menuPos.Y + interval), Colortextoff)
  3376.    '            interval += 15
  3377.    '            currentItems += 1
  3378.    '            _ShadowText("Warning Msg", New Point(menuPos.X + 30, menuPos.Y + interval), Colortextoff)
  3379.    '            If warningSyst Then
  3380.  
  3381.     '                state = good
  3382.  
  3383.     '            Else
  3384.    '                state = bad
  3385.    '            End If
  3386.    '            DrawAntiRussiaBox2(menuPos.X + menuWidth / menuwidthfactor, menuPos.Y + interval + textheight / 4, 8, 8, 255, state, edgecolor)
  3387.  
  3388.     '            currentItems += 1
  3389.    '            interval += 15
  3390.    '            _ShadowText("Rainbow Mode", New Point(menuPos.X + 30, menuPos.Y + interval), Colortextoff)
  3391.    '            If boolRainbow Then
  3392.    '                state = rainbow()
  3393.  
  3394.  
  3395.     '            Else
  3396.  
  3397.     '                state = bad
  3398.    '            End If
  3399.    '            DrawAntiRussiaBox2(menuPos.X + menuWidth / menuwidthfactor, menuPos.Y + interval + textheight / 4, 8, 8, 255, state, edgecolor)
  3400.  
  3401.     '            currentItems += 1
  3402.    '        Else
  3403.  
  3404.     '            _ShadowText("[+] Misc", New Point(menuPos.X + 5, menuPos.Y + interval), textcolor)
  3405.    '            currentItems += 1
  3406.    '        End If
  3407.  
  3408.     '        interval += 15
  3409.  
  3410.  
  3411.     '        If Settings Then
  3412.    '            _ShadowText("[-] Settings", New Point(menuPos.X + 5, menuPos.Y + interval), textcolor)
  3413.    '            interval += 15
  3414.    '            currentItems += 1
  3415.    '            _ShadowText("Save settings", New Point(menuPos.X + 30, menuPos.Y + interval), textcolor)
  3416.    '            interval += 15
  3417.    '            currentItems += 1
  3418.    '            _ShadowText("Load settings", New Point(menuPos.X + 30, menuPos.Y + interval), textcolor)
  3419.    '            currentItems += 1
  3420.    '            interval += 15
  3421.    '            _ShadowText("!Force Data Refresh!", New Point(menuPos.X + 30, menuPos.Y + interval), Color.Orange)
  3422.    '            currentItems += 1
  3423.    '            interval += 15
  3424.    '            _ShadowText("Refresh Delay(ms): ", New Point(menuPos.X + 30, menuPos.Y + interval), textcolor)
  3425.  
  3426.  
  3427.     '            _ShadowText(intDelayCompensation.ToString, New Point(menuPos.X + menuWidth / menuwidthfactor, menuPos.Y + interval), Colortextoff)
  3428.    '            currentItems += 1
  3429.  
  3430.     '            interval += 15
  3431.    '            _ShadowText("Fontname(Restart Required): ", New Point(menuPos.X + 30, menuPos.Y + interval), textcolor)
  3432.    '            _ShadowText(fontName, New Point(menuPos.X + menuWidth / menuwidthfactor, menuPos.Y + interval), Colortextoff)
  3433.    '            currentItems += 1
  3434.    '            interval += 15
  3435.    '            _ShadowText("FontSize(Restart Required): ", New Point(menuPos.X + 30, menuPos.Y + interval), textcolor)
  3436.    '            _ShadowText(Multiplierfont, New Point(menuPos.X + menuWidth / menuwidthfactor, menuPos.Y + interval), Colortextoff)
  3437.    '            currentItems += 1
  3438.    '            interval += 15
  3439.    '            _ShadowText("Menu Position: ", New Point(menuPos.X + 30, menuPos.Y + interval), textcolor)
  3440.    '            _ShadowText("xPos: " & menuPos.X & " yPos: " & menuPos.Y, New Point(menuPos.X + menuWidth / menuwidthfactor, menuPos.Y + interval), Colortextoff)
  3441.  
  3442.     '            currentItems += 1
  3443.  
  3444.     '        Else
  3445.    '            _ShadowText("[+] Settings", New Point(menuPos.X + 5, menuPos.Y + interval), textcolor)
  3446.    '            currentItems += 1
  3447.    '        End If
  3448.  
  3449.     '        interval += 15
  3450.  
  3451.  
  3452.  
  3453.  
  3454.  
  3455.  
  3456.  
  3457.     '        'If Misc Then
  3458.    '        '    _ShadowText("[-] Misc", New Point(menuPos.X + 5, menuPos.Y + interval), textcolor)
  3459.  
  3460.  
  3461.     '        'Else
  3462.  
  3463.     '        '    _ShadowText("[+] Misc", New Point(menuPos.X + 5, menuPos.Y + interval), textcolor)
  3464.    '        'End If
  3465.    '        'interval += 15
  3466.  
  3467.  
  3468.     '        'If Settings Then
  3469.    '        '    _ShadowText("[-] Settings", New Point(menuPos.X + 5, menuPos.Y + interval), textcolor)
  3470.    '        'Else
  3471.  
  3472.     '        '    _ShadowText("[+] Settings", New Point(menuPos.X + 5, menuPos.Y + interval), textcolor)
  3473.    '        'End If
  3474.  
  3475.     '        DrawAntiRussiaBox(menuPos.X, menuPos.Y + y1 + textheight / 8, menuWidth / 1.005, 20, 50, Color.FromArgb(255, 255, 255, 255))
  3476.  
  3477.  
  3478.  
  3479.  
  3480.  
  3481.  
  3482.     '        interval += 15
  3483.    '        '   DrawAntiRussiaBox(menuPos.X + 10, menuPos.Y + textheight / 4, menuWidth - 20, 15, 200, textcolor)
  3484.  
  3485.     '        _ShadowText4("PegasuS v" & Application.ProductVersion.ToString, New Point(menuPos.X + 15, menuPos.Y + textheight / 4), Color.Lime)
  3486.  
  3487.  
  3488.  
  3489.  
  3490.     '        interval = 25
  3491.  
  3492.  
  3493.     '    Else
  3494.    '        ' _ShadowText("External Hack v" & Application.ProductVersion.ToString, New Point(menuPos.X + 3, menuPos.Y + 3), Color.Black)
  3495.    '        Thread.Sleep(intDelayCompensation)
  3496.    '        DrawAntiRussiaBox(0, 0, 250, 20, 1, Color.White)
  3497.    '    End If
  3498.  
  3499.     'End Sub
  3500.  
  3501.  
  3502.     Private renderDistance As Single = 75.0
  3503.     Private hotkeytext As String = "Set New Key"
  3504.  
  3505.     Public Function ValidateBones(ByVal Ent As uPublic2.dildo.VectorMeData) As Boolean
  3506.         Dim vecOrigin As dildo.Vect3d = GetEntPosition(Ent.toewijzingsadres)
  3507.         MessageBox.Show(vecOrigin.ToString)
  3508.         If Get3dDistance(Ent.skeleton.Rleg.bonepos3(0).x, Ent.skeleton.Rleg.bonepos3(0).z, Ent.skeleton.Rleg.bonepos3(0).y, vecOrigin.x, vecOrigin.z, vecOrigin.y) > 45.0F Then
  3509.             Return False
  3510.         Else
  3511.             Return True
  3512.         End If
  3513.  
  3514.     End Function
  3515.  
  3516.  
  3517.     Sub getSkeletonPos(itemPointer As Integer)
  3518.  
  3519.  
  3520.     End Sub
  3521.     Dim currentitem As dildo.VectorMeData
  3522.     Private kleurTeam As System.Drawing.Color
  3523.     Private Function DegreesToRadians(ByVal degrees As Double) As Double
  3524.         Return degrees / (180 / Math.PI)
  3525.     End Function
  3526.  
  3527.     Private Function DegreesToRadians(ByVal degrees As Decimal) As Decimal
  3528.         Return Convert.ToDecimal(degrees / (180 / Math.PI))
  3529.     End Function
  3530.  
  3531.     Private Sub DrawCircle2(ByVal Center As Vector2, ByVal Radius As Single, ByVal color As Color, ByVal Sides As UShort) '= 30
  3532.        Dim Angle As Single = DegreesToRadians(360.0F / Sides)
  3533.  
  3534.         Dim Cos As Single = Math.Cos(Angle)
  3535.         Dim Sin As Single = Math.Sin(Angle)
  3536.  
  3537.         Dim vec As New Vector2(Radius, 0)
  3538.  
  3539.         For i As UShort = 0 To Sides - 1
  3540.             Dim rot As New Vector2(Cos * vec.X - Sin * vec.Y, Sin * vec.X + Cos * vec.Y)
  3541.             rot += Center
  3542.             vec += Center
  3543.             DrawLine(vec.X, vec.Y, rot.X, rot.Y, 1, color)
  3544.             vec = rot - Center
  3545.         Next i
  3546.     End Sub
  3547.  
  3548.  
  3549.  
  3550.     Sub espLOOP()
  3551.  
  3552.  
  3553.  
  3554.  
  3555.  
  3556.         'MessageBox.Show("xDDDDDD")
  3557.        Try
  3558.  
  3559.  
  3560.             '  isRunning = False
  3561.            Dim item As New dildo.VectorMeData
  3562.             'Dim iterationList As List(Of dildo.VectorMeData) = xxxdata
  3563.            Dim vect3dcheck As dildo.Vect3d = New dildo.Vect3d(0, 0, 0)
  3564.  
  3565.  
  3566.  
  3567.  
  3568.             Dim intcounter As Integer = 0
  3569.  
  3570.             Dim playr As dildo.VectorMeData
  3571.             playr = Player
  3572.  
  3573.             For Each item In RussianCommandoUnit
  3574.                 'System.Diagnostics.Trace.WriteLine("Test")
  3575.  
  3576.                 If settingz.boolradarhack Then
  3577.  
  3578.  
  3579.  
  3580.                     '           Trace.WriteLine("Writing memoryz")
  3581.                    If item.bspotted = False Then
  3582.                         _memr.WrtInt(item.toewijzingsadres + bspotted, 1)
  3583.                     End If
  3584.  
  3585.  
  3586.  
  3587.  
  3588.                 End If
  3589.  
  3590.  
  3591.                 If playr.bspotted = True And warningSyst Then
  3592.  
  3593.                     _ShadowText3("YOU HAVE BEEN SPOTTED!!!", New Point(Me.Width / 2 - Me.Width / 10, Me.Height - Me.Height / 1.05), rainbow())
  3594.                     '    intDelayCompensation += 1
  3595.                    '                    _ShadowText3(" _       __                 _           " & vbNewLine &
  3596.                    '"| |     / /___ __________  (_)___  ____ _" & vbNewLine &
  3597.                    '"| | /| / / __ `/ ___/ __ \/ / __ \/ __ `/" & vbNewLine &
  3598.                    '"| |/ |/ / /_/ / /  / / / / / / / / /_/ /" & vbNewLine &
  3599.                    '"|__/|__/\__,_/_/  /_/ /_/_/_/ /_/\__, /" & vbNewLine &
  3600.                    '                                "/____/ ", New Point(Me.Width / 2 - Me.Width / 10, Me.Height - Me.Height / 1.05), kleurTeam)
  3601.                End If
  3602.  
  3603.                 If item.VecCoords.x = 0 Or item.VecCoords.y = 0 Or item.VecCoords.z = 0 Then 'item.Team = playr.Team Or
  3604.                    Continue For
  3605.                 End If
  3606.                 If item.isVisible = False Then
  3607.                     Continue For
  3608.  
  3609.                 End If
  3610.  
  3611.                 If item.Distance / 100 > renderDistance Or item.Levenz <= 0 Then
  3612.  
  3613.                     Continue For
  3614.  
  3615.  
  3616.  
  3617.                 Else
  3618.  
  3619.                     Dim BoxHeightoff As Single = 8500.0F / item.Distance
  3620.                     '   Dim NameHeightoff As Single = 30000.0F / item.Distance
  3621.                    Dim height As Single
  3622.                     height = item.W2SPos.Y - item.Head.Y
  3623.                     If height < 0 Then
  3624.                         ' System.Diagnostics.Trace.WriteLine(height)
  3625.                        Continue For
  3626.  
  3627.                     End If
  3628.                     Dim intADD As Integer = height / 4
  3629.                     Dim width As Single
  3630.  
  3631.                     width = height * (45.0F / 80.0F)
  3632.  
  3633.                     Dim HealthBarWidth As Single = 3000.0F / item.Distance
  3634.                     Dim healthbar As Color = Color.Red
  3635.  
  3636.  
  3637.                     Dim posHealthValue As Point = New Point(item.W2SPos.X + intADD + 5, item.Head.Y - BoxHeightoff)
  3638.  
  3639.                     'Trace.WriteLine(item.isVisible)
  3640.                    Dim intInteveral As Integer = 0
  3641.  
  3642.                     'If item.Distance / 100 <= 10 Then
  3643.                    '    _ShadowText3("Enemies near!", New Point(Me.Width - 200, 0), Color.OrangeRed)
  3644.                    'End If
  3645.  
  3646.  
  3647.                     'If item.Team <> Ik.Team Then
  3648.                    '    kleurTeam = Color.Red
  3649.                    'Else
  3650.                    '    kleurTeam = Color.Blue
  3651.  
  3652.                     'End If
  3653.                    ' ReDim items(enemyDataCon.Count)
  3654.                    ' items.
  3655.  
  3656.                     'skipping draw
  3657.                    '   MessageBox.Show("Not updated")
  3658.  
  3659.                     ' System.Diagnostics.Trace.WriteLine("Not Updated Skipping Draw function")
  3660.  
  3661.                     '  Continue For
  3662.                    If boolAttackTeam Then
  3663.                         'If item.bspotted = True Then
  3664.                        '    Cursor.Position = New Point(item.skeleton.Spine.bonepos2(GetRandom(0, 6)).X, item.skeleton.Spine.bonepos2(GetRandom(0, 6)).Y)
  3665.                        'End If
  3666.  
  3667.                     End If
  3668.                     '   boolBox = True
  3669.  
  3670.                     If boolBox Then
  3671.                         drawPlayerBox(item, item.Color, Color.Black, height, 1)
  3672.                         '  DrawAntiRussiaBox(item.W2SPos.X - width / 2 + HealthBarWidth, item.W2SPos.Y - (height * 2) - BoxHeightoff, width, height + BoxHeightoff, 200, rainbow())
  3673.                    End If
  3674.                     '  DrawAntiRussiaBox(Me.Width / 2 - Me.Width / 10, Me.Height - Me.Height / 1.05 - 50, 250, 100, 100, rainbow())
  3675.                    If boolBoneESP Then
  3676.  
  3677.  
  3678.                         Dim headw As Integer = height / 8
  3679.  
  3680.                         Dim headh As Integer = 5000.0F / item.Distance
  3681.                         If item.skeleton.Broken = True Then
  3682.                         Else
  3683.                             drawSkeleton(item.skeleton, item.Color)
  3684.                             If boolRainbow Then
  3685.                                 DrawBox(item.Head.X, item.Head.Y - BoxHeightoff / 3, headw, headh, skeletonsize, rainbow())
  3686.                             Else
  3687.                                 '  DrawBox(item.Head.X, item.Head.Y - BoxHeightoff / 3, headw, headh, skeletonsize, skeletkleurke)
  3688.                                DrawCircle2(New Vector2(item.Head.X, item.Head.Y), headw, item.Color, 25)
  3689.                             End If
  3690.  
  3691.                             '       DrawLine(item.skeleton.Larm.bonepos2(3).X, item.skeleton.Larm.bonepos2(3).Y, item.skeleton.Rarm.bonepos2(3).X, item.skeleton.Rarm.bonepos2(3).Y, skeletonsize, skeletkleurke)
  3692.  
  3693.  
  3694.                         End If
  3695.  
  3696.                         'drawSkeleton(item)
  3697.  
  3698.                         '   Trace.WriteLine(item.skeleton)
  3699.  
  3700.                         '' Queue another task
  3701.  
  3702.  
  3703.                     End If
  3704.  
  3705.                     ' If Get3dDistance(item.Head.X,, rrlegpos.y, item.VecCoords.x, item.VecCoords.z, item.VecCoords.y) > 45.0F Then
  3706.  
  3707.                     ' Dim vec3 As Single = Get3dDistance(item.Head.X, item.zPos, item.Head.Y, item.VecCoords.x, item.VecCoords.z, item.VecCoords.y)
  3708.                    ''_ShadowText("Upper: " & (85.0F).ToString & " Operant: " & Get3dDistance(headpos.x, headpos.z, headpos.y, item.VecCoords.x, item.VecCoords.z, item.VecCoords.y), _
  3709.                     ''         New Point(item.Head.X, item.W2SPos.Y - 64), Color.CadetBlue)
  3710.                    '  If boolBox Then
  3711.                    'If vec3 > 95.0F Then
  3712.  
  3713.  
  3714.                     '        '  MessageBox.Show("Invalid: " & (45.0F).ToString & " Endresult: " & Get3dDistance(headpos.x, headpos.z, headpos.y, item.VecCoords.x, item.VecCoords.z, item.VecCoords.y))
  3715.                    '    Else
  3716.  
  3717.                     '  End If
  3718.                    'bool3D = False
  3719.                    'If bool3D Then
  3720.                    '    '  drawPlayer3DBox(item, height, kleurTeam, 1)
  3721.                    '    If boolRainbow Then
  3722.                    '        DrawCircle(item.skeleton.Spine.bonepos2(2).X, item.skeleton.Spine.bonepos2(2).Y, 6000.0F / item.Distance, 4, 1, rainbow())
  3723.                    '    Else
  3724.                    '        DrawCircle(item.skeleton.Spine.bonepos2(2).X, item.skeleton.Spine.bonepos2(2).Y, 6000.0F / item.Distance, 4, 1, item.Color)
  3725.                    '    End If
  3726.  
  3727.                     'End If
  3728.  
  3729.  
  3730.  
  3731.  
  3732.  
  3733.                     If boolhealthbar Then
  3734.  
  3735.  
  3736.                         Dim healthbar2 As Color = Color.Lime
  3737.                         DrawFilledBoxie(item.W2SPos.X - width / 2 - HealthBarWidth, item.Head.Y - BoxHeightoff, HealthBarWidth, height + BoxHeightoff, 255, healthbar)
  3738.                         DrawFilledBoxie(item.W2SPos.X - width / 2 - HealthBarWidth, item.Head.Y + height, HealthBarWidth, -(((height + BoxHeightoff) / 100.0F)) * item.Levenz, 255, healthbar2)
  3739.  
  3740.  
  3741.                     End If
  3742.                     If settingz.boolarmor Then
  3743.  
  3744.                         Dim healthbar2 As Color = Color.Orange
  3745.                         Dim healtbar As Color = Color.SteelBlue
  3746.                         DrawFilledBoxie(item.W2SPos.X - width / 1.5 - HealthBarWidth, item.Head.Y - BoxHeightoff, HealthBarWidth, height + BoxHeightoff, 255, healthbar)
  3747.                         DrawFilledBoxie(item.W2SPos.X - width / 1.5 - HealthBarWidth, item.Head.Y + height, HealthBarWidth, -(((height + BoxHeightoff) / 100.0F)) * item.armorlevel, 255, healthbar2)
  3748.  
  3749.                     End If
  3750.                     'Dim x, y, z As Integer
  3751.                    'x = item.VecCoords.x
  3752.                    'y = item.VecCoords.y
  3753.                    'z = item.VecCoords.z
  3754.                    'System.Diagnostics.Trace.WriteLine("Enemy x: " & x & "Enemy y: " & y)
  3755.                    'If x < -1900 And x > -2050 And y > 1400 And y < 1700 Then
  3756.                    '    _ShadowText(intcounter & "fella(s) spotted at b", New Point(1200, 500), Color.Aqua)
  3757.  
  3758.                     'End If
  3759.  
  3760.  
  3761.                     'If x < 500 And x > -250 And y > 2000 And y < 2600 And z < 100 Then
  3762.                    '    intcounter += 1
  3763.                    '    _ShadowText(intcounter & "fella(s) spotted ct spawn", New Point(1200, 500), Color.Aqua)
  3764.  
  3765.                     'End If
  3766.  
  3767.                     ' MessageBox.Show(vecNorm.ToString)
  3768.                    ' snaplines = True
  3769.  
  3770.  
  3771.                     If snaplines Then
  3772.                         If settingz.intsnapmode = 0 Then
  3773.                             DrawLine(Me.Width / 2 - dikte, Me.Height / 2 + dikte, item.W2SPos.X, item.W2SPos.Y, 1, item.Color)
  3774.                         Else
  3775.                             DrawLine(Me.Width / 2 - dikte, Me.Height + dikte, item.W2SPos.X, item.W2SPos.Y, 1, item.Color)
  3776.                         End If
  3777.  
  3778.                     End If
  3779.  
  3780.  
  3781.  
  3782.                     If boolname Then
  3783.                         _ShadowText(item.Name, New Point(item.W2SPos.X - intADD, item.W2SPos.Y + intInteveral), item.Color)
  3784.                         intInteveral += 12
  3785.                     End If
  3786.  
  3787.  
  3788.                    
  3789.  
  3790.  
  3791.  
  3792.                     ' Weapons.weaponName(61) = "usp"
  3793.                    If boolWeapon Then
  3794.                         _ShadowText(Convert.ToString(getWeaponName(item.weaponnr)), New Point(item.W2SPos.X - intADD, item.W2SPos.Y + intInteveral), item.Color)
  3795.                         intInteveral += 12
  3796.  
  3797.                         '  _ShadowText("Head locked", posWeapDef, Color.GreenYellow)
  3798.  
  3799.                     End If
  3800.  
  3801.  
  3802.  
  3803.  
  3804.                     '_ShadowText(Convert.ToString("" & item.Name), pos, kleurke)
  3805.                    ' _ShadowText(strteam, pos, kleurke)
  3806.                    '_ShadowText(item.Health.ToString + " HP", posHealthValue, shakie)
  3807.                    'If boolDistance Then
  3808.  
  3809.  
  3810.  
  3811.  
  3812.                     If boolDistance Then
  3813.                         If item.Distance = 0 Then
  3814.                             Dim posDistance As String = ("0 m")
  3815.                             _ShadowText(Convert.ToString("") & posDistance, New Point(item.W2SPos.X - intADD, item.W2SPos.Y + intInteveral), item.Color)
  3816.                             intInteveral += 12
  3817.                         Else
  3818.                             Dim intresult As Integer
  3819.                             intresult = CInt(item.Distance / 100)
  3820.                             Dim posDistance As String = (intresult).ToString + " m"
  3821.  
  3822.  
  3823.  
  3824.                             _ShadowText(Convert.ToString("" & posDistance), New Point(item.W2SPos.X - intADD, item.W2SPos.Y + intInteveral), item.Color)
  3825.                             intInteveral += 12
  3826.                         End If
  3827.                     End If
  3828.                    
  3829.  
  3830.                 End If
  3831.  
  3832.             Next
  3833.             '     isRunning = True
  3834.  
  3835.         Catch ex As Exception
  3836.             Dim stuff As String = ex.ToString
  3837.             ' xxxdata.Clear()
  3838.            '   MessageBox.Show(stuff)
  3839.            '    intDelayCompensation += 1
  3840.            '  MessageBox.Show("Error @ ESPLOOP _  " & stuff & isRunning.ToString)
  3841.        End Try
  3842.  
  3843.  
  3844.  
  3845.     End Sub
  3846.  
  3847.     Sub drawStats(positionbox As Point, w As Integer, h As Integer, color As Color)
  3848.         Dim yplus As Integer = 0
  3849.  
  3850.  
  3851.  
  3852.  
  3853.         _ShadowText2("KILLS:  " & Player.kills, New Point(positionbox.X + w / 4, positionbox.Y + h / 10), color.Red)
  3854.         yplus += 40
  3855.  
  3856.         _ShadowText2("DEATHS: " & Player.deaths, New Point(positionbox.X + w / 4, positionbox.Y + h / 10 + yplus), color.Red)
  3857.  
  3858.         yplus += 40
  3859.  
  3860.         _ShadowText2("ASSISTS: " & Player.assists, New Point(positionbox.X + w / 4, positionbox.Y + h / 10 + yplus), color.Red)
  3861.         yplus += 40
  3862.  
  3863.         _ShadowText2("SCORE:   " & Player.score, New Point(positionbox.X + w / 4, positionbox.Y + h / 10 + yplus), color.Red)
  3864.         yplus += 40
  3865.         _ShadowText2("clip1: " & Player.clipweapon1 & " clip2: " & Player.clipweapon1 & vbNewLine & "Headshot score: " & Player.headshotscore, New Point(200, 400), Drawing.Color.Aqua)
  3866.  
  3867.         DrawAntiRussiaBox(positionbox.X, positionbox.Y, w, yplus + 20, 50, Drawing.Color.White)
  3868.         drawthinbox(positionbox, w, yplus + 20, 2, color.Black)
  3869.  
  3870.  
  3871.  
  3872.  
  3873.  
  3874.     End Sub
  3875.  
  3876.  
  3877.  
  3878.     'Sub drawDX2()
  3879.    '    Do
  3880.    '        'Thread.Sleep(50)
  3881.    '        Try
  3882.  
  3883.  
  3884.     '        device2.Clear(Direct3D.ClearFlags.Target, Color.FromArgb(0, 0, 0, 0), 2.0F, 0)
  3885.  
  3886.  
  3887.  
  3888.  
  3889.     '        device2.RenderState.ZBufferEnable = False
  3890.    '        device2.RenderState.Lighting = False
  3891.  
  3892.  
  3893.     '        device2.RenderState.CullMode = Cull.None
  3894.    '            device2.Transform.Projection = Matrix.OrthoOffCenterLH(0, Me.Width, Me.Height, 0, 0, 500)
  3895.    '        '  System.Threading.Thread.Sleep(1)
  3896.  
  3897.  
  3898.     '        ' Do things Direct3D needs to do so we can draw on the buffer
  3899.  
  3900.  
  3901.  
  3902.     '        '     device.Clear(Direct3D.ClearFlags.Target, rainbow(), 0.5F, 0)
  3903.  
  3904.  
  3905.     '        device2.BeginScene()
  3906.    '            DrawAntiRussiaBox3(500, 0, Screen_Size_X / 2, Screen_Size_Y / 2, 50, Color.Gray)
  3907.  
  3908.     '        device2.EndScene()
  3909.    '            device2.Present()
  3910.    '        Catch ex As Exception
  3911.  
  3912.     '        End Try
  3913.    '    Loop
  3914.    'End Sub
  3915.    Sub drawDX()
  3916.  
  3917.  
  3918.  
  3919.         Try
  3920.  
  3921.  
  3922.  
  3923.             Do
  3924.  
  3925.                 Thread.Sleep(intDelayCompensation)
  3926.                 device.Clear(Direct3D9.ClearFlags.Target, Color.FromArgb(0, 0, 0, 0), 2.0F, 0)
  3927.  
  3928.  
  3929.  
  3930.  
  3931.  
  3932.                 '  device.Viewport = New Viewport(0, Me.Width, Me.Height, 0, 0, 1)
  3933.                device.Viewport = New Viewport(0, 0, Me.Width, Me.Height)
  3934.                 '  System.Threading.Thread.Sleep(1)
  3935.  
  3936.  
  3937.                 ' Do things Direct3D needs to do so we can draw on the buffer
  3938.  
  3939.  
  3940.  
  3941.                 '     device.Clear(Direct3D.ClearFlags.Target, rainbow(), 0.5F, 0)
  3942.  
  3943.  
  3944.                 device.BeginScene()
  3945.  
  3946.                 _ShadowText("Made by SunFlares", New Point(Me.Width - 125, 10), kleurvijand)
  3947.                 Dim textuc As String = "www.unknowncheats.me"
  3948.                 _ShadowText4(textuc, New Point(Me.Width / 2 - 80, Me.Height - 25), kleurvijand)
  3949.                 '    _ShadowText4("MIDDLE", New Point(Me.Width / 2, Me.Height - 50), kleurvijand)
  3950.                ' getKey()
  3951.                ' START DRAWING!
  3952.                ' dxsprite.Begin(SpriteFlags.None)
  3953.                ' Dim color1 As Color = Color.Transparent
  3954.                'For i = 0 To menuHeight Step 10
  3955.                '    dxsprite.Draw2D(dxtexture, New Point(10, -i), 0, New Point(menuPos.X, menuPos.Y), color1)
  3956.                '    dxsprite.Draw2D(dxtexture, New Point(-menuWidth, -i), 0, New Point(menuPos.X, menuPos.Y), color1)
  3957.                'Next
  3958.                'For i = 0 To menuWidth Step 10
  3959.                '    dxsprite.Draw2D(dxtexture, New Point(-i, 10), 0, New Point(menuPos.X, menuPos.Y), color1)
  3960.  
  3961.                 '    ' dxsprite.Draw2D(dxtexture, New Point(-i, -menuHeight - 10), 0, New Point(menuPos.X, menuPos.Y), color1)
  3962.                'Next
  3963.                ' dxsprite.End()
  3964.  
  3965.                 'Draw a little box thing
  3966.  
  3967.  
  3968.  
  3969.                 'Hack title
  3970.  
  3971.                 ' _ShadowText("Home", New Point(intxas, 3), Color.White)
  3972.                'Lines around box
  3973.  
  3974.  
  3975.  
  3976.  
  3977.                 If _memr.CheckProcess Then
  3978.  
  3979.                     'If drawtime Then
  3980.                    '    _ShadowText3("Time: " & globalDate.Hour & ":" & globalDate.Minute, New Point(Screen_Size_X - 250, 0), Color.Gray)
  3981.  
  3982.                     'End If
  3983.  
  3984.  
  3985.                     ' _ShadowText("PlayerBase: " + Player.toewijzingsadres.ToString() + " Player Vector: X: " + Player.VecCoords.x.ToString() _
  3986.                     '+ " Y: " + Player.VecCoords.y.ToString() + " Z: " + Player.VecCoords.z.ToString(), New Point(0, Screen_Size_Y), Color.AliceBlue)
  3987.  
  3988.                     ' Draw everything
  3989.                    'menuDrawer()
  3990.                    If vrcs Then
  3991.                         Dim punchAngles As dildo.Vect3d
  3992.                         Try
  3993.                             punchAngles = _memr.rdVector(Player.toewijzingsadres + pAngs)
  3994.                         Catch ex As Exception
  3995.                         End Try
  3996.  
  3997.                         Dim crX As Integer = Me.Width / 2, crY As Integer = Me.Height / 2
  3998.                         Dim d1y As Integer = Me.Height / 90
  3999.                         Dim d1x As Integer = Me.Width / 90
  4000.                         Dim drX As Integer = crX - CInt(d1x * (punchAngles.y)) ' + 8
  4001.                        Dim drY As Integer = crY + CInt(d1y * (punchAngles.x)) ' + 8
  4002.  
  4003.                         DrawCircle2(New Vector2(drX, drY), crosshairsize, crosshaircolor, 12)
  4004.  
  4005.                     End If
  4006.  
  4007.                     If crosshair Then
  4008.  
  4009.  
  4010.                         'Dim crX As Integer = Me.Width / 2, crY As Integer = Me.Height / 2
  4011.                        'Dim d1y As Integer = Me.Height / 90
  4012.                        'Dim d1x As Integer = Me.Width / 90
  4013.  
  4014.                         'Dim punchAngles As dildo.Vect3d
  4015.                        'Try
  4016.                        '    punchAngles = _memr.rdVector(Player.toewijzingsadres + pAngs)
  4017.                        'Catch ex As Exception
  4018.                        'End Try
  4019.  
  4020.                         'Dim drX As Integer = crX - CInt(d1x * (punchAngles.y)) ' + 8
  4021.                        'Dim drY As Integer = crY + CInt(d1y * (punchAngles.x)) ' + 8
  4022.  
  4023.                         'DrawLine(drX - 20, drY, drX + 20, drY, 1, Color.Red)
  4024.                        'DrawLine(drX, drY - 20, drX, drY + 20, 1, Color.Red)
  4025.                        If crosshairrecoil = False Then
  4026.                             Dim crX As Integer = Me.Width / 2, crY As Integer = Me.Height / 2
  4027.                             Dim d1y As Integer = Me.Height / 90
  4028.                             Dim d1x As Integer = Me.Width / 90
  4029.  
  4030.                             Dim punchAngles As Vector3 = Vector3.Zero
  4031.                             Try
  4032.  
  4033.                             Catch ex As Exception
  4034.                             End Try
  4035.  
  4036.                             Dim drX As Integer = crX - CInt(d1x * (punchAngles.y)) ' + 8
  4037.                            Dim drY As Integer = crY + CInt(d1y * (punchAngles.x)) ' + 8
  4038.  
  4039.                             DrawLine(drX - 20, drY, drX + 20, drY, 1, crosshaircolor)
  4040.                             DrawLine(drX, drY - 20, drX, drY + 20, 1, crosshaircolor)
  4041.  
  4042.                             '  MessageBox.Show("test")
  4043.                        ElseIf crosshairrecoil = True Then
  4044.                             Dim crX As Integer = Me.Width / 2, crY As Integer = Me.Height / 2
  4045.                             Dim d1y As Integer = Me.Height / 90
  4046.                             Dim d1x As Integer = Me.Width / 90
  4047.  
  4048.                             Dim punchAngles As dildo.Vect3d
  4049.                             Try
  4050.                                 punchAngles = _memr.rdVector(Player.toewijzingsadres + pAngs)
  4051.                             Catch ex As Exception
  4052.                             End Try
  4053.  
  4054.                             Dim drX As Integer = crX - CInt(d1x * (punchAngles.y)) ' + 8
  4055.                            Dim drY As Integer = crY + CInt(d1y * (punchAngles.x)) ' + 8
  4056.  
  4057.                             DrawLine(drX - 20, drY, drX + 20, drY, 1, crosshaircolor)
  4058.                             DrawLine(drX, drY - 20, drX, drY + 20, 1, crosshaircolor)
  4059.                         End If
  4060.                      
  4061.  
  4062.                     Else
  4063.  
  4064.  
  4065.                     End If
  4066.  
  4067.                     '         drawRadar()
  4068.                    If RussianCommandoUnit.Count = 0 Then
  4069.  
  4070.  
  4071.                     Else
  4072.  
  4073.  
  4074.                         ' System.Diagnostics.Trace.WriteLine("Entities Found! start drawing")
  4075.  
  4076.  
  4077.  
  4078.                         '  bgWork.Dispose()
  4079.  
  4080.                         espLOOP()
  4081.  
  4082.                         ' xxxdata.Clear()
  4083.  
  4084.  
  4085.  
  4086.              
  4087.  
  4088.  
  4089.  
  4090.  
  4091.  
  4092.  
  4093.                         End If
  4094.  
  4095.                 End If
  4096.  
  4097.  
  4098.  
  4099.  
  4100.                 device.EndScene()
  4101.                 device.Present()
  4102.                 If isRunning Then
  4103.                     If bgWork.IsBusy <> True Then
  4104.                         bgWork.RunWorkerAsync(dx)
  4105.  
  4106.                     End If
  4107.                 End If
  4108.  
  4109.                 '  dxsprite.Dispose()
  4110.            Loop
  4111.  
  4112.  
  4113.         Catch ex As Exception
  4114.             Dim stuff As String = ex.ToString
  4115.             '       MessageBox.Show(stuff)
  4116.        End Try
  4117.  
  4118.     End Sub
  4119.  
  4120.  
  4121.  
  4122.  
  4123. #End Region
  4124.  
  4125.  
  4126.  
  4127.  
  4128.  
  4129.  
  4130.  
  4131.     Private Function Get3dDistance(ByVal myCoordsX As Single, ByVal myCoordsZ As Single, ByVal myCoordsY As Single, ByVal eNx As Single, ByVal eNz As Single, ByVal eNy As Single) As Single
  4132.         'Use the 3d distance formula to get a resulting Floating distance value POW!!
  4133.        Return Math.Sqrt(Math.Pow(CDbl(eNx - myCoordsX), 2.0) + Math.Pow(CDbl(eNy - myCoordsY), 2.0) + Math.Pow(CDbl(eNz - myCoordsZ), 2.0))
  4134.     End Function
  4135.  
  4136. #Region "Memory Reading"
  4137.     Dim sigBombStruct() As Byte = {&HBE, &H1, &H0, &H0, &H0, &HEB, &H3, &H8D, &H49, &H0, &H8B, &HD}
  4138.     Function getClassName(entityname As String)
  4139.         Dim entitypointer
  4140.         Dim pNext As UShort = _memr.rdShort(entlist + 8)
  4141.         pNext = _memr.rdShort(pNext + 8)
  4142.         pNext = _memr.rdShort(pNext + 1)
  4143.         pNext = _memr.rdShort(pNext + 8)
  4144.  
  4145.         ' entityn = _memr.rdStringUnicode(declient + pNext, Marshal.SizeOf(entityname))
  4146.        Return entityname
  4147.     End Function
  4148.     Private radar As Boolean
  4149.     Private teamesp As Boolean
  4150.     Private kleurvijand As Color = Color.Red
  4151.     Dim intLocation As Point
  4152.     Sub drawRadar()
  4153.  
  4154.         '  sprite = New Sprite(device)
  4155.  
  4156.         '  texture = TextureLoader.FromFile(device, "C:\Users\LawrenceDS\Desktop\test.bmp")
  4157.        ' sprite.Begin(SpriteFlags.SortTexture)
  4158.  
  4159.  
  4160.  
  4161.  
  4162.  
  4163.         Try
  4164.             intLocation.X = -100
  4165.             Dim dm = 1
  4166.  
  4167.             If RussianCommandoUnit.Count = 0 Then
  4168.          
  4169.                 DrawAntiRussiaBox(Me.Width + intLocation.X - globwidth, 100, globwidth, globwidth, settingz.radaralpha, Color.FromArgb(settingz.radaralpha, Color.Gray))
  4170.                 DrawAntiRussiaBox(Me.Width + intLocation.X - globwidth - dm, 100 - dm, globwidth + dm * 2, globwidth + dm * 2, settingz.radaralpha, Color.FromArgb(settingz.radaralpha, Color.Black))
  4171.                 '  DrawAntiRussiaBox(Me.Width + intLocation.X - globwidth + globwidth / 2 - 2, globwidth / 2 - intLocation.Y - 2, Size2.Width, Size2.Height, 255, kleurTeam)
  4172.  
  4173.             Else
  4174.  
  4175.  
  4176.                 punt2.X = CInt(globwidth / 2 - 2)
  4177.                 punt2.Y = CInt(globwidth / 2 - 2)
  4178.  
  4179.  
  4180.                 DrawAntiRussiaBox(Me.Width + intLocation.X - globwidth, 100, globwidth, globwidth, settingz.radaralpha, Color.FromArgb(settingz.radaralpha, Color.Gray))
  4181.                 DrawAntiRussiaBox(Me.Width + intLocation.X - globwidth - dm, 100 - dm, globwidth + dm * 2, globwidth + dm * 2, settingz.radaralpha, Color.FromArgb(settingz.radaralpha, Color.Black))
  4182.  
  4183.  
  4184.                 'DrawLine(Me.Width + intLocation.X - globwidth, globwidth / 2 - intLocation.Y, Me.Width + intLocation.X, globwidth / 2 - intLocation.Y, 1, Color.Black)
  4185.                ''
  4186.                'DrawLine(Me.Width + intLocation.X - globwidth + globwidth / 2, globwidth - intLocation.Y, Me.Width + intLocation.X - globwidth / 2, intLocation.Y, 1, Color.Black)
  4187.  
  4188.  
  4189.  
  4190.  
  4191.  
  4192.                 midradar.X = Me.Width + intLocation.X - globwidth + globwidth / 2
  4193.                 midradar.Y = globwidth / 2
  4194.  
  4195.                 Dim item As dildo.VectorMeData
  4196.                 For Each item In RussianCommandoUnit
  4197.  
  4198.  
  4199.                     If item.Levenz > 0 And item.Distance <= 2500 Then
  4200.                         Dim color As System.Drawing.Color
  4201.  
  4202.  
  4203.  
  4204.  
  4205.  
  4206.                         ' MessageBox.Show("Item x: " & item.xPos & " item y: " & item.yPos)
  4207.  
  4208.                         ' MessageBox.Show(GetEyeAngles.y)
  4209.                        Punt = New Point(WorldToRadar(New Point(Player.xPos, Player.yPos), New Point(item.xPos, item.yPos), GetEyeAngles.y, globwidth, globwidth, settingz.intradarradius)) '(globwidth + 200) * 0.03))
  4210.                        ' dx.FillRectangle(color, New Rectangle(Punt, Size2))
  4211.                        ' MessageBox.Show("Punt x: " & Punt.X & " Punt y: " & Punt.Y)
  4212.  
  4213.                         '_ShadowText("X: " + Punt.X & " Y: " + Punt.Y, New Point(Screen_Size_X / 2, Screen_Size_Y / 2), color.MistyRose)
  4214.  
  4215.                         Select Case settingz.intradarstyle
  4216.  
  4217.                             Case 0
  4218.                                 DrawAntiRussiaBox(Punt.X + Me.Width - globwidth + intLocation.X, Punt.Y + 100, Size2.Width, Size2.Height, 255, item.Color)
  4219.                                 DrawAntiRussiaBox(Me.Width + intLocation.X - globwidth + globwidth / 2 - 2, globwidth / 2 + 100 - 2, Size2.Width, Size2.Height, 255, kleurTeam)
  4220.                             Case 1
  4221.  
  4222.  
  4223.                                 DrawCircle2(New Vector2(Punt.X + Me.Width - globwidth + intLocation.X, Punt.Y + 100), Size2.Width, item.Color, 25)
  4224.                                 DrawCircle2(New Vector2(Me.Width + intLocation.X - globwidth + globwidth / 2 - 2, globwidth / 2 + 100 - 2), Size2.Width, kleurTeam, 25)
  4225.  
  4226.  
  4227.  
  4228.                             Case 2
  4229.                                 DrawCircle2(New Vector2(Punt.X + Me.Width - globwidth + intLocation.X, Punt.Y + 100), Size2.Width, item.Color, 3)
  4230.                                 DrawCircle2(New Vector2(Me.Width + intLocation.X - globwidth + globwidth / 2 - 2, globwidth / 2 + 100 - 2), Size2.Width, kleurTeam, 3)
  4231.                             Case Else
  4232.                                 'nope
  4233.                        End Select
  4234.                    
  4235.  
  4236.                     End If
  4237.  
  4238.  
  4239.  
  4240.  
  4241.  
  4242.  
  4243.  
  4244.                 Next
  4245.             End If
  4246.  
  4247.  
  4248.  
  4249.         Catch ex As Exception
  4250.             MessageBox.Show(ex.ToString)
  4251.         End Try
  4252.     End Sub
  4253.     Private Function WorldToRadar(ByVal myPos As Point, ByVal enemypos As Point, ByVal MyYaw As Single, ByVal RadarWidth As Single, ByVal RadarHeight As Single, ByVal Radius As Integer) As Point
  4254.  
  4255.         Try
  4256.  
  4257.  
  4258.             'Berechnet Kosinus und Sinus von Yaw
  4259.            Dim cosYaw As Single = Math.Cos(radtodeg(MyYaw))
  4260.             Dim sinYaw As Single = Math.Sin(radtodeg(MyYaw))
  4261.  
  4262.  
  4263.  
  4264.             'Wir berechnen die Distanz zwischen uns und dem anderen Mitspieler
  4265.            Dim distanzX As Single = enemypos.X - myPos.X
  4266.             Dim distanzY As Single = enemypos.Y - myPos.Y
  4267.  
  4268.             'Wir berechnen die Radarkoordinaten
  4269.            Dim positionX As Single = ((distanzY * cosYaw - distanzX * sinYaw) * -1 / Radius) + RadarWidth / 2
  4270.             Dim positionY As Single = ((distanzX * cosYaw + distanzY * sinYaw) / Radius) * -1 + RadarHeight / 2
  4271.  
  4272.  
  4273.  
  4274.             'Wir passen die Radarkoordinaten an unseren Spieler (in der Mitte) an
  4275.            Return New Point(positionX, positionY)
  4276.  
  4277.         Catch ex As Exception
  4278.         End Try
  4279.     End Function
  4280.     Private Sub bgWork_DoWork(sender As Object, e As System.ComponentModel.DoWorkEventArgs) Handles bgWork.DoWork
  4281.         '  System.Threading.Thread.Sleep(10)
  4282.        ' Memory Reading into a Collection
  4283.        'Dim strResult As String = ""
  4284.        '  dx.Priority = ThreadPriority.Highest
  4285.        If isRunning = False Then
  4286.             ' If you turn it off with the variable then stop the worker.
  4287.            bgWork.CancelAsync()
  4288.         End If
  4289.  
  4290.         Try
  4291.  
  4292.  
  4293.  
  4294.  
  4295.             '  Dim vt As Integer = _memr.rdInt()
  4296.  
  4297.             'Dim temp2 As Integer
  4298.            'temp2 = _memr.rdInt(declient + entlist + (50 * weaponidoff))
  4299.            'strResult += temp2
  4300.            '  strResult += getWeaponName(_memr.rdInt(temp2 + weaponidoff)).ToString & vbNewLine
  4301.  
  4302.  
  4303.  
  4304.  
  4305.             'System.Diagnostics.Trace.WriteLine("Backgroundworker active", "Features")
  4306.  
  4307.  
  4308.             ' First read LocalPlayer info:
  4309.            Player.toewijzingsadres = _memr.rdInt(declient + baseoff)
  4310.             'System.Diagnostics.Trace.WriteLine("Pointer: " & Ik.toewijzingsadres, "Vars")
  4311.            Player.Levenz = _memr.rdInt(Player.toewijzingsadres + hOff)
  4312.             ' System.Diagnostics.Trace.WriteLine("LifePoints: " & Ik.Levenz, "Vars")
  4313.  
  4314.  
  4315.             Player.zichtmatrix = _memr.LeesGeheugen(Of Matrix)(declient + vmatrixshit, Marshal.SizeOf(v_Matrix), False)
  4316.             Player.shotsfired = _memr.rdInt(Player.toewijzingsadres + shotsFired)
  4317.             Player.Team = _memr.rdInt(Player.toewijzingsadres + teamoff)
  4318.             Player.Vector(GetPlayerPosition)
  4319.             Player.bspotted = _memr.rdInt(Player.toewijzingsadres + bspotted)
  4320.             Player.vecpunch = convertTovector3(_memr.rdVector(Player.toewijzingsadres + pAngs))
  4321.             'Read into viewMatrix
  4322.            v_Matrix = Matrix.Identity
  4323.             v_Matrix = Player.zichtmatrix
  4324.  
  4325.  
  4326.             ' Empty the enemyData list
  4327.  
  4328.             RussianCommandoUnit.Clear()
  4329.  
  4330.             Dim i As Integer
  4331.             For i = 0 To MAXPEOPLEEE - 1 Step 1
  4332.                 ' Populate the enemyData list
  4333.  
  4334.                 Dim enemyDataRead As New dildo.VectorMeData
  4335.                 enemyDataRead.toewijzingsadres = _memr.rdInt(declient + entlist + (i * &H10))
  4336.  
  4337.                 If enemyDataRead.toewijzingsadres = 0 Or enemyDataRead.toewijzingsadres = Player.toewijzingsadres Then
  4338.                     ' if EnityPointer is 0 or our own player, then jump to the next entity.
  4339.                    If enemyDataRead.toewijzingsadres = Player.toewijzingsadres Then
  4340.                         Player.id = i
  4341.  
  4342.  
  4343.                     End If
  4344.                     Continue For
  4345.                 End If
  4346.  
  4347.                 enemyDataRead.Levenz = _memr.rdInt(enemyDataRead.toewijzingsadres + hOff)
  4348.                 enemyDataRead.armorlevel = _memr.rdInt(enemyDataRead.toewijzingsadres + armoroff)
  4349.  
  4350.  
  4351.  
  4352.                 Dim handleweapon As Integer = _memr.rdInt(enemyDataRead.toewijzingsadres + hactiveWeaponOff) '&H12C0
  4353.                Dim entityID As Integer = handleweapon And &HFFFF
  4354.                 Dim temp As Integer
  4355.                 temp = _memr.rdInt(declient + entlist + (entityID - 1) * &H10)
  4356.  
  4357.                 Dim intradarB As Integer = _memr.rdInt(declient + radarbase)
  4358.                 Dim RadarPointer = _memr.rdInt(intradarB + &H50)
  4359.  
  4360.                 enemyDataRead.Name = _memr.rdStringUnicode(RadarPointer + (&H1E0 * (i + 1) + &H24), 64)
  4361.  
  4362.  
  4363.                 enemyDataRead.weaponnr = _memr.rdInt(temp + weaponidoff) '&H1684
  4364.  
  4365.                 enemyDataRead.bspotted = _memr.rdInt(enemyDataRead.toewijzingsadres + bspotted)
  4366.  
  4367.                 enemyDataRead.SpottedBy = _memr.rdInt(enemyDataRead.toewijzingsadres + bspottedmask)
  4368.  
  4369.  
  4370.  
  4371.  
  4372.                 If enemyDataRead.Levenz <= 0 Then
  4373.                     ' if the Entity is dead, jump to the next Entity
  4374.                    Continue For
  4375.                 End If
  4376.  
  4377.                 enemyDataRead.Team = _memr.rdInt(enemyDataRead.toewijzingsadres + teamoff)
  4378.                 '   enemyDataRead.HasDefuseKit = _memr.rdInt(enemyDataRead.toewijzingsadres + DefuserOff)
  4379.  
  4380.  
  4381.  
  4382.  
  4383.                 ' If the Entity is not on our Team, add it to the list!
  4384.                If enemyDataRead.Team <> Player.Team Or teamesp Then
  4385.  
  4386.  
  4387.                     ' Read its Position
  4388.                    enemyDataRead.Vector(GetEntPosition(i))
  4389.                     Dim testing, w2sScaled As Vector2
  4390.                     Try
  4391.  
  4392.                         testing = RussiaToScreen(enemyDataRead.VecCoords, v_Matrix, Me.Width, Me.Height)
  4393.                         If _memr.rdByte(enemyDataRead.toewijzingsadres + &H270) = 0 Then
  4394.                             Continue For
  4395.                         End If
  4396.  
  4397.  
  4398.  
  4399.  
  4400.                         radar = True
  4401.                         If testing.X = 0 And testing.Y = 0 Then
  4402.  
  4403.  
  4404.                             ' Failed World to Screen, DUMP IT!
  4405.                            If radar Then
  4406.                                 enemyDataRead.isVisible = False
  4407.                                 GoTo ad
  4408.  
  4409.                             ElseIf radar = False Then
  4410.                                 Continue For
  4411.  
  4412.                             End If
  4413.                             'Continue For
  4414.                        Else
  4415.                             enemyDataRead.isVisible = True
  4416. ad:
  4417.                             ' Its FEET are on screen! WooHOO, now check its Head, since thats part of the bounds to
  4418.                            ' our ESP box.
  4419.                            enemyDataRead.scaledW2S = w2sScaled
  4420.                             '  System.Diagnostics.Trace.WriteLine(w2sScaled.X)
  4421.                            enemyDataRead.W2SPos = testing
  4422.                             ' Rise and reuse I always say
  4423.                            Dim testing2 = New dildo.Vect3d
  4424.                             testing2 = GetBonePos(enemyDataRead.toewijzingsadres, 10) ' 10 is preferred Head, some like 11.
  4425.                            Dim headTest As New Vector2
  4426.                             headTest = RussiaToScreen(testing2, v_Matrix, Me.Width, Me.Height)
  4427.                             If headTest.X = 0 And headTest.Y = 0 Then
  4428.  
  4429.  
  4430.                                 ' Fail yet again, NEXT!
  4431.                                If radar Then
  4432.                                     enemyDataRead.isVisible = False
  4433.                                     GoTo ab
  4434.                                 Else
  4435.                                     Continue For
  4436.  
  4437.                                 End If
  4438.                             End If
  4439.  
  4440. ab:                         ' Gather the last bit of info needed
  4441.                            enemyDataRead.Head = headTest
  4442.  
  4443.  
  4444.  
  4445.  
  4446.  
  4447.  
  4448.  
  4449.  
  4450.  
  4451.                             'Skeleton
  4452.  
  4453.  
  4454.                             Try
  4455.                                 Dim newskel As New dildo.VectorMeData.SkeletonVectorData
  4456.                                 Dim coords As New dildo.Vect3d(enemyDataRead.VecCoords.x, enemyDataRead.VecCoords.y, enemyDataRead.VecCoords.z)
  4457.  
  4458.                                 Dim x, y As Integer
  4459.  
  4460.                                 For y = 0 To 3
  4461.  
  4462.                                     If newskel.Broken = True Then
  4463.                                         Exit For
  4464.  
  4465.                                     End If
  4466.                                     newskel.Rleg.bonepos3(y) = GetBonePos(enemyDataRead.toewijzingsadres, Rlegbones(y))
  4467.                                     newskel.Rleg.bonepos2(y) = RussiaToScreen(newskel.Rleg.bonepos3(y), Player.zichtmatrix, Me.Width, Me.Height)
  4468.  
  4469.  
  4470.  
  4471.                                     If y = 0 Then
  4472.                                         If Get3dDistance(newskel.Rleg.bonepos3(0).x, newskel.Rleg.bonepos3(0).z, newskel.Rleg.bonepos3(0).y, coords.x, coords.z, coords.y) > 45.0F Then
  4473.  
  4474.  
  4475.  
  4476.                                             '        '  messagebox.show("not updated")
  4477.  
  4478.                                             '        '     System.Diagnostics.Trace.WriteLine("not updated skipping bone read function")
  4479.                                            newskel.Broken = True
  4480.  
  4481.  
  4482.                                             Exit For
  4483.  
  4484.                                         Else
  4485.                                             newskel.Broken = False
  4486.  
  4487.                                             ' Trace.Write(newskel.Larm.bonepos2(0).X)
  4488.                                        End If
  4489.  
  4490.                                     End If
  4491.  
  4492.  
  4493.  
  4494.  
  4495.  
  4496.  
  4497.  
  4498.                                     newskel.Lleg.bonepos3(y) = GetBonePos(enemyDataRead.toewijzingsadres, Llegbones(y))
  4499.                                     newskel.Lleg.bonepos2(y) = RussiaToScreen(newskel.Lleg.bonepos3(y), Player.zichtmatrix, Me.Width, Me.Height)
  4500.  
  4501.  
  4502.                                     newskel.Larm.bonepos3(y) = GetBonePos(enemyDataRead.toewijzingsadres, Larmbones(y))
  4503.                                     newskel.Larm.bonepos2(y) = RussiaToScreen(newskel.Larm.bonepos3(y), Player.zichtmatrix, Me.Width, Me.Height)
  4504.  
  4505.                                     newskel.Rarm.bonepos3(y) = GetBonePos(enemyDataRead.toewijzingsadres, Rarmbones(y))
  4506.                                     newskel.Rarm.bonepos2(y) = RussiaToScreen(newskel.Rarm.bonepos3(y), Player.zichtmatrix, Me.Width, Me.Height)
  4507.                                     'drawbone(llegbones(i), llegbones(i + 1), item)
  4508.                                    'drawbone(rlegbones(i), rlegbones(i + 1), item)
  4509.                                    'drawbone(larmbones(i), larmbones(i + 1), item)
  4510.                                    'drawbone(rarmbones(i), rarmbones(i + 1), item)
  4511.                                Next
  4512.                                 For x = 0 To 6
  4513.                                     'drawbone(spinebones(i), spinebones(i + 1), item)
  4514.                                    If newskel.Broken = True Then
  4515.                                         'MessageBox.Show("Corrupt bones")
  4516.                                        '   Trace.WriteLine("Bones corrupt player: " & i & " name: " & enemyDataRead.Name)
  4517.                                        Exit For
  4518.                                     End If
  4519.                                     newskel.Spine.bonepos3(x) = GetBonePos(enemyDataRead.toewijzingsadres, Spinebones(x))
  4520.  
  4521.  
  4522.                                     '     MessageBox.Show("skeletskix y : " & newskel.Spine.bonepos3(x).x & newskel.Spine.bonepos3(x).y)
  4523.  
  4524.  
  4525.  
  4526.                                     newskel.Spine.bonepos2(x) = RussiaToScreen(newskel.Spine.bonepos3(x), Player.zichtmatrix, Me.Width, Me.Height)
  4527.                                 Next
  4528.  
  4529.                                 enemyDataRead.skeleton = newskel
  4530.  
  4531.  
  4532.                             Catch ex As Exception
  4533.                                 'Trace.WriteLine(ex.ToString)
  4534.                                MessageBox.Show(ex.ToString)
  4535.                             End Try
  4536.  
  4537.                             'Dim newskel As New dildo.VectorMeData.SkeletonVectorData
  4538.                            'enemyDataRead.skeleton = newskel
  4539.  
  4540.  
  4541.                             ' thread.sleep(500)
  4542.  
  4543.  
  4544.  
  4545.  
  4546.  
  4547.  
  4548.  
  4549.  
  4550.  
  4551.  
  4552.  
  4553.  
  4554.  
  4555.  
  4556.  
  4557.  
  4558.  
  4559.  
  4560.  
  4561.  
  4562.  
  4563.  
  4564.  
  4565.  
  4566.  
  4567.  
  4568.  
  4569.  
  4570.  
  4571.  
  4572.  
  4573.  
  4574.  
  4575.  
  4576.                             Dim posDist As Double = GetDistance(enemyDataRead.point, Player.point)
  4577.                             Dim DistanceCM As Integer = CInt(posDist)
  4578.                             enemyDataRead.Distance = DistanceCM
  4579.                             '  enemyDataRead.skeleton = getSkeleton(enemyDataRead.Pointer, v_Matrix)
  4580.                            If enemyDataRead.Team <> Player.Team Then
  4581.                                 enemyDataRead.Color = kleurvijand
  4582.                             Else
  4583.                                 enemyDataRead.Color = kleurTeam
  4584.                             End If
  4585.  
  4586.                             ' Add the Entity to our PlayerDataVec list.
  4587.  
  4588.                             RussianCommandoUnit.Add(enemyDataRead)
  4589.                         End If
  4590.  
  4591.                     Catch ex As Exception
  4592.                         Dim stuff As String = ex.ToString
  4593.                         'intDelayCompensation += 1
  4594.                    End Try
  4595.  
  4596.  
  4597.                 End If
  4598.             Next
  4599.             '  _ShadowText(strResult, New Point(50, 500), Color.Aqua)
  4600.  
  4601.         Catch ex As Exception
  4602.             Dim stuff As String = ex.ToString
  4603.             ' intDelayCompensation += 1
  4604.            ' Trace.WriteLine(ex.ToString)
  4605.            '   MessageBox.Show(ex.ToString)
  4606.        End Try
  4607.  
  4608.  
  4609.         ' bgWork.ReportProgress(100)
  4610.    End Sub
  4611.  
  4612. #End Region
  4613.  
  4614.  
  4615.  
  4616.  
  4617.  
  4618.  
  4619.  
  4620.  
  4621.     Private previouskills, previousassist, previousdeaths, killstreak As Integer
  4622.     Private first As Boolean = True
  4623.     Private enabled As Boolean = False
  4624.     'Private Sub Timer1_Tick(sender As Object, e As EventArgs) Handles Timer1.Tick
  4625.    '    Try
  4626.  
  4627.     '    readScoreboard(0)
  4628.  
  4629.     '        If first = True Then
  4630.  
  4631.     '            previousdeaths = Player.deaths
  4632.    '            previouskills = Player.kills
  4633.    '            first = False
  4634.  
  4635.     '        End If
  4636.  
  4637.  
  4638.  
  4639.     '        Dim sounds(25) As String
  4640.    '        sounds(0) = Application.StartupPath() & "\QuakeSounds\megaKill.wav"
  4641.    '        sounds(1) = Application.StartupPath() & "\QuakeSounds\godlike.wav"
  4642.    '        sounds(2) = Application.StartupPath() & "\QuakeSounds\holyShit.wav"
  4643.  
  4644.  
  4645.     '        sounds(5) = Application.StartupPath() & "\QuakeSounds\teamkiller.wav"
  4646.  
  4647.     '        sounds(3) = Application.StartupPath() & "\QuakeSounds\doublekill.wav"
  4648.    '        sounds(4) = Application.StartupPath() & "\QuakeSounds\doublekill2.wav"
  4649.  
  4650.     '        sounds(6) = Application.StartupPath() & "\QuakeSounds\suicide.wav"
  4651.    '        sounds(7) = Application.StartupPath() & "\QuakeSounds\suicide2.wav"
  4652.    '        sounds(8) = Application.StartupPath() & "\QuakeSounds\suicide3.wav"
  4653.    '        sounds(9) = Application.StartupPath() & "\QuakeSounds\suicide4.wav"
  4654.  
  4655.     '        sounds(10) = Application.StartupPath() & "\QuakeSounds\triplekill.wav"
  4656.    '        sounds(11) = Application.StartupPath() & "\QuakeSounds\hattrick.wav"
  4657.    '        sounds(12) = Application.StartupPath() & "\QuakeSounds\hattrick.wav"
  4658.  
  4659.     '        sounds(13) = Application.StartupPath() & "\QuakeSounds\killingspree.wav"
  4660.    '        sounds(14) = Application.StartupPath() & "\QuakeSounds\multikill.wav"
  4661.  
  4662.     '        sounds(15) = Application.StartupPath() & "\QuakeSounds\dominating.wav"
  4663.  
  4664.  
  4665.     '        sounds(16) = Application.StartupPath() & "\QuakeSounds\ultrakill.wav"
  4666.  
  4667.     '        sounds(17) = Application.StartupPath() & "\QuakeSounds\unstoppable.wav"
  4668.    '        sounds(18) = Application.StartupPath() & "\QuakeSounds\whickedsick.wav"
  4669.    '        sounds(19) = Application.StartupPath() & "\QuakeSounds\ownage.wav"
  4670.    '        sounds(20) = Application.StartupPath() & "\QuakeSounds\rampage.wav"
  4671.    '        If previousdeaths < Player.deaths Then
  4672.    '            killstreak = 0
  4673.    '            previousdeaths = Player.deaths
  4674.  
  4675.  
  4676.     '        End If
  4677.  
  4678.     '        If Player.kills > previouskills Then
  4679.    '            killstreak += 1
  4680.    '            previouskills = Player.kills
  4681.    '            enabled = True
  4682.  
  4683.     '        End If
  4684.    '        If Player.kills < previouskills Then
  4685.    '            killstreak = 0
  4686.  
  4687.  
  4688.  
  4689.  
  4690.     '            If Player.Health > 1 Then
  4691.    '                My.Computer.Audio.Play(sounds(5))
  4692.    '            Else
  4693.    '                My.Computer.Audio.Play(sounds(GetRandom(6, 9)))
  4694.    '            End If
  4695.  
  4696.     '            previouskills = Player.kills
  4697.  
  4698.     '        End If
  4699.    '        If enabled = True Then
  4700.  
  4701.  
  4702.     '            Select Case killstreak
  4703.    '                Case 1
  4704.  
  4705.     '                    My.Computer.Audio.Play(sounds(GetRandom(0, 2)))
  4706.  
  4707.     '                Case 2
  4708.    '                    My.Computer.Audio.Play(sounds(GetRandom(3, 4)))
  4709.  
  4710.  
  4711.     '                Case 3
  4712.    '                    My.Computer.Audio.Play(sounds(GetRandom(11, 12)))
  4713.    '                Case 4
  4714.    '                    My.Computer.Audio.Play(sounds(GetRandom(13, 14)))
  4715.    '                Case 5
  4716.    '                    My.Computer.Audio.Play(sounds(GetRandom(15, 16)))
  4717.    '                Case 6
  4718.  
  4719.     '                    My.Computer.Audio.Play(sounds(16))
  4720.    '                Case 7
  4721.    '                    My.Computer.Audio.Play(sounds(17))
  4722.    '                Case 8
  4723.    '                    My.Computer.Audio.Play(sounds(18))
  4724.    '                Case 9
  4725.    '                    My.Computer.Audio.Play(sounds(19))
  4726.    '                Case 10
  4727.    '                    My.Computer.Audio.Play(sounds(19))
  4728.  
  4729.     '                Case Else
  4730.    '                    My.Computer.Audio.Play(sounds(9))
  4731.    '            End Select
  4732.    '            enabled = False
  4733.    '        End If
  4734.  
  4735.  
  4736.  
  4737.  
  4738.     '    Catch ex As Exception
  4739.  
  4740.     '    End Try
  4741.  
  4742.     '    'If Player.kills + 2 = previouskills Then
  4743.  
  4744.     '    'End If
  4745.  
  4746.     'End Sub
  4747.  
  4748.  
  4749.     Private Sub Timer1_Tick(sender As Object, e As EventArgs) Handles Timer1.Tick
  4750.         Static intcount As Integer
  4751.         Static intmaxOpa As Integer
  4752.         Try
  4753.  
  4754.             If warningSyst Then
  4755.  
  4756.                 If Player.bspotted = True Then
  4757.  
  4758.  
  4759.  
  4760.                     If intcount = 0 Then
  4761.                         My.Computer.Audio.Play(My.Resources._ON, AudioPlayMode.Background)
  4762.                         intcount += 1
  4763.                     End If
  4764.  
  4765.  
  4766.                 Else
  4767.  
  4768.  
  4769.                     intcount = 0
  4770.  
  4771.                 End If
  4772.  
  4773.  
  4774.  
  4775.             End If
  4776.  
  4777.  
  4778.  
  4779.         Catch ex As Exception
  4780.             'MessageBox.Show(ex.ToString & "@Timer")
  4781.        End Try
  4782.  
  4783.  
  4784.  
  4785.  
  4786.     End Sub
  4787.     Private crosshairrecoil As Boolean
  4788.  
  4789.     Private Sub crosshairanimation_Tick(sender As Object, e As EventArgs) Handles crosshairanimation.Tick
  4790.         boolBox = settingz.boolbox
  4791.         boolBoneESP = settingz.boolboneESP
  4792.         boolhealthbar = settingz.boolhealthbar
  4793.         boolname = settingz.boolname
  4794.         boolWeapon = settingz.boolweapon
  4795.         boolDistance = settingz.booldistance
  4796.         snaplines = settingz.boolsnaplines
  4797.         punchsens = settingz.sngRecoil
  4798.         warningSyst = settingz.warningsyst
  4799.         hotkey = settingz.hotkey
  4800.         rcs = settingz.RCS
  4801.         vrcs = settingz.vrcs
  4802.         kleurTeam = settingz.kleurteam
  4803.         kleurvijand = settingz.kleurenemy
  4804.         intDelayCompensation = settingz.intdelaycompensation
  4805.         globwidth = settingz.intradarsize * 10
  4806.         teamesp = settingz.boolteam
  4807.         radar = settingz.boolradar
  4808.         intLocation = settingz.radarlocation
  4809.         Size2 = New Size(settingz.intradaritemsize, settingz.intradaritemsize)
  4810.         crosshaircolor = settingz.kleurcross
  4811.         crosshairsize = settingz.crossize
  4812.         crosshair = settingz.boolcross
  4813.         crosshairrecoil = settingz.recoilmode
  4814.         If settingz.blockrender Then
  4815.  
  4816.             isRunning = False
  4817.             allowstart = False
  4818.  
  4819.         Else
  4820.             If isRunning = False Then
  4821.                 isRunning = True
  4822.                 allowstart = True
  4823.             End If
  4824.          
  4825.         End If
  4826.     End Sub
  4827.  
  4828.  
  4829. End Class
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement