Originally Posted by
nilly
Well I found the auto-nexus code in cubeone and managed to insert it into the current client.
Code:
pop
getlocal0
getlex map_
getproperty player_
ifne 45
getlex map_
getproperty gs_
getproperty gsc_
getproperty server_
getproperty name_
pushstring Nexus
ifeq 26
getlex _-WA //current health variable (name changes with client update)
convert_d
getlex _-PV //max health variable (name changes with client update)
convert_d
divide
pushdouble 2 //pushes .5 to stack
ifgt 11
getlex map_
getproperty gs_
getproperty gsc_
callpropvoid _-093,0 //name changes with client update
pushtrue
The code was changed so that it can be a simple insert into the current client. No need to add strings and what not. This code can be inserted by opening yogda, navigating to com.company.assembleegameclient.objects.player update(), scrolling to the last instruction, right clicking on returnvoid and clicking insert (remember to get rid of comments). The current auto-nexus point is at 50% health for reasons explained below.
There is one thing I don't understand that maybe one of you and help me with. How would one go about pushing .3 or .25 or whatever onto the stack? I understand for instructions like pushdouble, one would give an integer value that would reference a floating point variable in this thing a called a constant pool. I do not know how to look at this constant pool, make use it, or add to it. Anyone here have experience with this?
Also, anyone manage to find where cubeone put his aimbot and noclip code in his client?
---------- Post added at 01:40 AM ---------- Previous post was at 01:18 AM ----------
As I was writing the above I thought of a way to get .35 (so the auto-nexus would be set at 35% health).
Code:
pop
getlocal0
getlex map_
getproperty player_
ifne 50
getlex map_
getproperty gs_
getproperty gsc_
getproperty server_
getproperty name_
pushstring Nexus
ifeq 31
getlex _-WA
convert_d
getlex _-PV
convert_d
divide
pushbyte 7
convert_d
pushbyte 20
convert_d
divide
ifgt 11
getlex map_
getproperty gs_
getproperty gsc_
callpropvoid _-093,0
pushtrue
you did get all the updated variables as have i, but you're not going to the correct lines on ifne, ifeq, and ifgt. Also depending on where you insert you'll need to update those lines. Currently my only issue is that my auto nexus code is being consumed into the other if, i was drunk doing this so my assumption is it will be easier today.
Code:
L501:
getlocal0
getlex QName(PackageNamespace(""), "map_")
getproperty QName(PackageNamespace(""), "player_")
ifne L523
getlex QName(PackageNamespace(""), "map_")
getproperty QName(PackageNamespace(""), "gs_")
getproperty QName(PackageNamespace(""), "gsc_")
getproperty QName(PackageNamespace(""), "server_")
getproperty QName(PackageNamespace(""), "name_")
pushstring "Nexus"
ifeq L523
getlex QName(PackageNamespace(""), "_-WA")
convert_d
getlex QName(PackageNamespace(""), "_-PV")
convert_d
divide
pushdouble 0.5
ifgt L523
getlex QName(PackageNamespace(""), "map_")
getproperty QName(PackageNamespace(""), "gs_")
getproperty QName(PackageNamespace(""), "gsc_")
callpropvoid QName(PackageNamespace(""), "_-093"), 0