BasicPlayerInfo Class [FIRST CLASS]

Posts 1–11 of 11 · Page 1 of 1
BasicPlayerInfo Class [FIRST CLASS]
This is what I reversed

Code:
struct _basicplayerinfo
{
	char skipbytes[8];
	float MovementWalkRate;
	float MovementDuckWalkRate;
	float MovementSideMoveRate;
	float MovementFBRunAnimRate;
	float MovementLRRunAnimRate;
	float MovementFBWalkAnimRate;
	float MovementLRWalkAnimRate;
	float MovementAccelation;
	float MovementFriction;
	float JumpTime;
	float JumpLandedWaitTime;
	float JumpLandedNoJumpTimeRate;
	float JumpRepeatPenaltyMoveRate;
	float JumpRepeatPenaltyHeightRate;
	float JumpLandedMovePenaltyTimeRate;
	float JumpLandedMovePenaltyMoveRate;
	char skipbytes2[44];
	float DamagePenaltyFlipTime;
	float DamagePenaltyMoveRate;
	float C4PlantTime;
	float C4DefuseTime;
	float MaxCanDefuseDistance;
	float CharacterHiddenAlpha;
	float CharacterHiddenWalkAlpha;
	float CharacterHiddenRunAlpha;
	float MovementHiddenRate;
};
thanks to
@~FALLEN~ , @giniyat202
Nice try... for first attempt its very close, heres the correct one

Code:
class cBasicPlayerInfo{
	public:
		char spacer00[4];
		float MovementSpeed;
		float MovementWalkRate;
		float MovementDuckWalkRate;
		float MovementSideMoveRate;
		float MovementFrontBackRunAnimationRate;
		float MovementLeftRightRunAnimationRate;
		float MovementFrontBackWalkAnimationRate;
		float MovementLeftRightWalkAnimationRate;
		float MovementAcceleration;
		float MovementFriction;
		float JumpTime;
		float JumpVelocity;
		float JumpLandedWaitTime;
		float JumpLandedNoJumpTimeRate;
		float JumpRepeatPenaltyMoveRate;
		float JumpRepeatPenaltyHeightRate;
		float JumpLandedMovePenaltyTimeRate;
		float JumpLandedMovePenaltyMoveRate;
		char spacer01[40];
		float DamagePenaltyTime;
		float DamagePenaltyMoveRate;
		float C4PlantTime;
		float C4DefuseTime;
		float MaxCanDefuseDistance;
		float CharacterHiddenAlpha;
		float CharacterHiddenWalkAlpha;
		float CharacterHiddenRunAlpha;
		float MovementHiddenRate;
		unsigned long CrossHairColor;
		float CrossHairRedChangeRate;
		float CrossHairGreenChangeRate;
		float CrossHairBlueChangeRate;
	};
the reason its 40 and not 44 is because the fact that the float before it takes up 4 bytes and seeing how you're at the offset after that float thats why you subtract, because you're spacing from the offset after that to the next not from that offset to the next.
Quote Originally Posted by ~FALLEN~ View Post
Nice try... for first attempt its very close, heres the correct one

Code:
class cBasicPlayerInfo{
	public:
		char spacer00[4];
		float MovementSpeed;
		float MovementWalkRate;
		float MovementDuckWalkRate;
		float MovementSideMoveRate;
		float MovementFrontBackRunAnimationRate;
		float MovementLeftRightRunAnimationRate;
		float MovementFrontBackWalkAnimationRate;
		float MovementLeftRightWalkAnimationRate;
		float MovementAcceleration;
		float MovementFriction;
		float JumpTime;
		float JumpVelocity;
		float JumpLandedWaitTime;
		float JumpLandedNoJumpTimeRate;
		float JumpRepeatPenaltyMoveRate;
		float JumpRepeatPenaltyHeightRate;
		float JumpLandedMovePenaltyTimeRate;
		float JumpLandedMovePenaltyMoveRate;
		char spacer01[40];
		float DamagePenaltyTime;
		float DamagePenaltyMoveRate;
		float C4PlantTime;
		float C4DefuseTime;
		float MaxCanDefuseDistance;
		float CharacterHiddenAlpha;
		float CharacterHiddenWalkAlpha;
		float CharacterHiddenRunAlpha;
		float MovementHiddenRate;
		unsigned long CrossHairColor;
		float CrossHairRedChangeRate;
		float CrossHairGreenChangeRate;
		float CrossHairBlueChangeRate;
	};
the reason its 40 and not 44 is because the fact that the float before it takes up 4 bytes and seeing how you're at the offset after that float thats why you subtract, because you're spacing from the offset after that to the next not from that offset to the next.
hey i got 1 question.. when u do this does it automatically get the offset? coz it is going from 4 bytes?
@~FALLEN~
Quote Originally Posted by NeCro13 View Post
hey i got 1 question.. when u do this does it automatically get the offset? coz it is going from 4 bytes?
@~FALLEN~
yea u dont have to put the offset..it automatically gets the offset
if u reverse it right
Good job for first time
good job
but u failed in this line:
float DamagePenaltyFlipTime;

the string is DamagePenaltyTime
but who cares ^^

Quote Originally Posted by NeCro13 View Post
hey i got 1 question.. when u do this does it automatically get the offset? coz it is going from 4 bytes?
@~FALLEN~
it just makes the code easier

likethis:

Code:
pBPI->C4DefuseTime = 0.0f;
Quote Originally Posted by giniyat101 View Post
good job
but u failed in this line:
float DamagePenaltyFlipTime;

the string is DamagePenaltyTime
but who cares ^^



it just makes the code easier

likethis:

Code:
pBPI->C4DefuseTime = 0.0f;
and gets the offset by itself if u reverse it right

---------- Post added at 09:43 AM ---------- Previous post was at 09:15 AM ----------

@giniyat101

here's mine:

Code:
class cWeapon
{
	public:
		char spacer01[1668];
		float NoRecoil6;
		char spacer02[368];
		float AmmoDamage;
		char spacer03[560];
		float KnifeNormalAniRate;
		char spacer04[32];
		float KnifeBigShotAniRate;
		char spacer05[360];
		float KnifeNormalAmmoDamage;
		char spacer06[8];
		float KnifeBigShotAmmoDamage;
		char spacer07[3424];
		float NoRecoil4;
		char spacer08[464];
		float Norecoil5;
		char spacer09[1160];
		float NoRecoil3;
		char spacer10[356];
		float NoRecoil2;
		char spacer11[356];
		float NoRecoil1;
		char spacer12[1084];
		float ReloadAnimRatio;
		float ChangeWeaponAnimRatio;
};
i don't if that's right but it is my first try
it has most of the offset that i use in my hack
and yea..How do i add a loop using classes?
Quote Originally Posted by DaRk View Post
and gets the offset by itself if u reverse it right

---------- Post added at 09:43 AM ---------- Previous post was at 09:15 AM ----------

@giniyat101

here's mine:

Code:
class cWeapon
{
	public:
		char spacer01[1668];
		float NoRecoil6;
		char spacer02[368];
		float AmmoDamage;
		char spacer03[560];
		float KnifeNormalAniRate;
		char spacer04[32];
		float KnifeBigShotAniRate;
		char spacer05[360];
		float KnifeNormalAmmoDamage;
		char spacer06[8];
		float KnifeBigShotAmmoDamage;
		char spacer07[3424];
		float NoRecoil4;
		char spacer08[464];
		float Norecoil5;
		char spacer09[1160];
		float NoRecoil3;
		char spacer10[356];
		float NoRecoil2;
		char spacer11[356];
		float NoRecoil1;
		char spacer12[1084];
		float ReloadAnimRatio;
		float ChangeWeaponAnimRatio;
};
i don't if that's right but it is my first try
it has most of the offset that i use in my hack
and yea..How do i add a loop using classes?
thats is not called "finding offsets by itself" .. you already have found them through ollydbg lol
will answer your pm later
Quote Originally Posted by giniyat101 View Post
thats is not called "finding offsets by itself" .. you already have found them through ollydbg lol
will answer your pm later
i meant dont have to write the offsets.. and it auto updates it self..
Please PM me fast
Quote Originally Posted by DaRk View Post
i meant dont have to write the offsets.. and it auto updates it self..
Please PM me fast
no it doesnt auto update
if the offsets got changed
u must rewrite the class :P
Quote Originally Posted by giniyat101 View Post
no it doesnt auto update
if the offsets got changed
u must rewrite the class :P
oh i just relized that
Posts 1–11 of 11 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us