Home of Gamehacking - Archiv
Type FloaT - Druckversion

+- Home of Gamehacking - Archiv (http://archiv-homeofgamehacking.de)
+-- Forum: Coding (http://archiv-homeofgamehacking.de/forumdisplay.php?fid=15)
+--- Forum: Visual Basic 6, VB.NET (http://archiv-homeofgamehacking.de/forumdisplay.php?fid=19)
+--- Thema: Type FloaT (/showthread.php?tid=935)



Type FloaT - Dave843111 - 18.03.2012

Hat jemand ahnung wie ich diese variable : 0x1B82BF0
adde?

Sie ist Type FloaT

FAQ

Q: Was will ich mit dieser variable?

A: Super Jump for das Game Modern Warfare 3

Oder kann mir vll jemand NUR Super Jump in einen Project Adden das wen ich ZB: numpad0 drücke 500meter springe?

Danke euer DaVe


RE: Type FloaT - Bluespide - 18.03.2012

Code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
.   <Runtime.InteropServices.DllImport("kernel32.dll")> Private Shared Function WriteProcessMemory(ByVal hProcess As IntPtr, ByVal lpBaseAddress As IntPtr, ByVal lpBuffer As Byte(), ByVal nSize As UIntPtr, ByRef lpNumberOfBytesWritten As UInteger) As Boolean
    End Function
    <Runtime.InteropServices.DllImport("kernel32.dll")> Private Shared Function ReadProcessMemory(ByVal hProcess As IntPtr, ByVal lpBaseAddress As IntPtr, ByVal lpBuffer As Byte(), ByVal nSize As UIntPtr, ByRef lpNumberOfBytesWritten As UInteger) As Boolean
    End Function
    <Runtime.InteropServices.DllImport("kernel32.dll")> Private Shared Function OpenProcess(ByVal dwDesiredAccess As UInt32, ByVal bInheritHandle As [Boolean], ByVal dwProcessId As UInt32) As IntPtr
    End Function

    Public Property myVar() As Single
        Get
            Dim bytes(3) As Byte
            ReadProcessMemory(OpenProcess(&H1F0FFF, False, Process.GetProcessesByName("MW3")(0).Id), &H1B82BF0, bytes, 4, 0)
            Return BitConverter.ToSingle(bytes, 0)
        End Get
        Set(ByVal value As Single)
            Dim bytes() As Byte = BitConverter.GetBytes(value)
            WriteProcessMemory(OpenProcess(&H1F0FFF, False, Process.GetProcessesByName("MW3")(0).Id), &H1B82BF0, bytes, 4, 4)
        End Set
    End Property




    'Beispiel: Verwendung
    Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click
        Button1.Text = myVar.ToString() 'Lesen
    End Sub

    Private Sub Button2_Click(sender As System.Object, e As System.EventArgs) Handles Button2.Click
        myVar = 555.0F 'Schreiben
    End Sub




RE: Type FloaT - iNvIcTUs oRCuS - 18.03.2012

Würde ich am ehesten mit einer Codecave lösen...
Das per Trainer und Pointer zu realisieren sehe ich nicht unbedingt als sinnvoll.
Da könnten unter Umständen Timingprobleme auftauchen...
Innerhalb einer Codecave lässt sich das auch bequem per FPU berechnen...