learn C++?
think about it.
in the player class of CA it has a object pointer in it for the position. how do i use it to get the position?
Credits: -GHOSTER-Code:class c_object { public: char unknown0[4]; D3DXVECTOR3 MaxRootPosition; //0x0004 D3DXVECTOR3 MinRootPosition; //0x0010 char unknown28[120]; //DWORD ObjectColorRGBA; BYTE ObjectColorR; //0x0094 BYTE ObjectColorG; //0x0095 BYTE ObjectColorB; //0x0096 BYTE ObjectColorA; //0x0097 char unknown152[4]; float ObjectScaleX; //0x009C float ObjectScaleY; //0x00A0 float ObjectScaleZ; //0x00A4 char unknown168[16]; float xPlayerUnit; //0x00B8 float yPlayerUnit; //0x00BC float zPlayerUnit; //0x00C0 float PlayerUnitWidth; //0x00C4 D3DXVECTOR3 RootPosition; //0x00C8 char unknown212[4]; float Pitch; //0x00D8 float Yaw; //0x00DC float Roll; //0x00E0 }; D3DXVECTOR3 MyGetObjectMaxPos( int* obj ) { return *(D3DXVECTOR3*)( obj + 0x4 ); } D3DXVECTOR3 MyGetObjectMinPos( int* obj ) { return *(D3DXVECTOR3*)( obj + 0x10 ); } D3DXVECTOR3 MyGetObjectRootPos( int* obj ) { return *(D3DXVECTOR3*)( obj + 0xC8 ); } DWORD MyGetObjectColorRGBA( int* obj ) { return *(DWORD*)( obj + 0x94 ); } void MySetObjectColorRGBA( int* obj, DWORD dwColorRGBA ) { *(DWORD*)( obj + 0x94 ) = dwColorRGBA; }
[MPGH]AVGN (06-30-2011),DeadLinez (06-30-2011),kibbles18 (06-30-2011),koral13579 (07-01-2011),qwerty01 (08-30-2011)
Close this.
If u ddint understand till now:
return the object as vector(d3dxvector3) and u have position...
Progress with my game - "Disbanded"
- Fixed FPS lag on spawning entities due to the ent_preload buffer!
- Edit the AI code to get some better pathfinding
- Fixed the view bug within the sniper scope view. The mirror entity is invisible now!
- Added a new silencer for ALL weapons. Also fixed the rotation bugs
- Added a ton of new weapons and the choice to choose a silencer for every weapon
- Created a simple AntiCheat, noobs will cry like hell xD
- The name will be Disbanded, the alpha starts on the 18th august 2014
Some new physics fun (Serversided, works on every client)
My new AI
https://www.youtube.com/watch?v=EMSB1GbBVl8
And for sure my 8 months old gameplay with 2 friends
https://www.youtube.com/watch?v=Na2kUdu4d_k
use LTVector.
Progress with my game - "Disbanded"
- Fixed FPS lag on spawning entities due to the ent_preload buffer!
- Edit the AI code to get some better pathfinding
- Fixed the view bug within the sniper scope view. The mirror entity is invisible now!
- Added a new silencer for ALL weapons. Also fixed the rotation bugs
- Added a ton of new weapons and the choice to choose a silencer for every weapon
- Created a simple AntiCheat, noobs will cry like hell xD
- The name will be Disbanded, the alpha starts on the 18th august 2014
Some new physics fun (Serversided, works on every client)
My new AI
https://www.youtube.com/watch?v=EMSB1GbBVl8
And for sure my 8 months old gameplay with 2 friends
https://www.youtube.com/watch?v=Na2kUdu4d_k
@Ch40zz-C0d3r i can help u wats ur msn?
so basically i cast it as any struct containing members float x,y,z
dont flame me because i didnt know. just because i didnt know what one member of a class was used for i dont know c++ at all?
Last edited by kibbles18; 06-30-2011 at 12:28 PM.
Lol look at gellins base and u should know and dont need to ask here
@NOOB can i use that class to set my player's camera (yaw, pitch, roll)?