You are viewing our Forum Archives. To view or take place in current topics click here.
#41. Posted:
Status: Offline
Joined: Sep 21, 201311Year Member
Posts: 454
Reputation Power: 26
Bitwise wroteIDA wroteBitwise wrote Why you no add my weapon flags It's simple to understand, you set the bits to trigger it, and then clear the bits to suppress it. OR is used to set bits, AND with the selected value's bits reversed (use NOT) to clear the bits.
#lrn2bitwise
shhh i have added some of them ;) becuase they useful..
i have "enable" and disable" weapons
and in the SharpShooter i used disable weapon pick up ;)
Disable weapons, think i done it right ?
uint wF = Pars.ReadUInt32(getPlayerState(client) + 0x420);
wF |= 0x80;
Pars.WriteUInt32(getPlayerState(client) + 0x420, wF);
I don't know, I only write code in C lol, but I don't see why that wouldn't work
void clearMemoryBits(uint address, int value2clr)
{
int lol = RPC.ReadInt32((address));
lol &= ~bits2clr;
RPC.WriteInt32((address), lol);
}
void setMemoryBits(uint address, int value2set)
{
int lol = RPC.ReadInt32((address));
lol |= value2set;
RPC.WriteInt32((address), lol);
}
yea i think it will work, if not ill just use the XRPC.OR_UInt32 / XRPC.AND_UInt32
- 0useful
- 0not useful
#42. Posted:
Status: Offline
Joined: Feb 09, 201410Year Member
Posts: 267
Reputation Power: 14
Status: Offline
Joined: Feb 09, 201410Year Member
Posts: 267
Reputation Power: 14
IDA wroteBitwise wroteIDA wroteBitwise wrote Why you no add my weapon flags It's simple to understand, you set the bits to trigger it, and then clear the bits to suppress it. OR is used to set bits, AND with the selected value's bits reversed (use NOT) to clear the bits.
#lrn2bitwise
shhh i have added some of them ;) becuase they useful..
i have "enable" and disable" weapons
and in the SharpShooter i used disable weapon pick up ;)
Disable weapons, think i done it right ?
uint wF = Pars.ReadUInt32(getPlayerState(client) + 0x420);
wF |= 0x80;
Pars.WriteUInt32(getPlayerState(client) + 0x420, wF);
I don't know, I only write code in C lol, but I don't see why that wouldn't work
void clearMemoryBits(uint address, int value2clr)
{
int lol = RPC.ReadInt32((address));
lol &= ~bits2clr;
RPC.WriteInt32((address), lol);
}
void setMemoryBits(uint address, int value2set)
{
int lol = RPC.ReadInt32((address));
lol |= value2set;
RPC.WriteInt32((address), lol);
}
yea i think it will work, if not ill just use the XRPC.OR_UInt32 / XRPC.AND_UInt32
I don't see why it wouldn't work. That is the exact same concept as
*(int*)(ps(0) + 0x420) |= 0x80;
Reading the C# code actually lets you understand how everything is being done in C too, if you didn't already know.
- 0useful
- 0not useful
#43. Posted:
Status: Offline
Joined: Sep 21, 201311Year Member
Posts: 454
Reputation Power: 26
Bitwise wroteIDA wroteBitwise wroteIDA wroteBitwise wrote Why you no add my weapon flags It's simple to understand, you set the bits to trigger it, and then clear the bits to suppress it. OR is used to set bits, AND with the selected value's bits reversed (use NOT) to clear the bits.
#lrn2bitwise
shhh i have added some of them ;) becuase they useful..
i have "enable" and disable" weapons
and in the SharpShooter i used disable weapon pick up ;)
Disable weapons, think i done it right ?
uint wF = Pars.ReadUInt32(getPlayerState(client) + 0x420);
wF |= 0x80;
Pars.WriteUInt32(getPlayerState(client) + 0x420, wF);
I don't know, I only write code in C lol, but I don't see why that wouldn't work
void clearMemoryBits(uint address, int value2clr)
{
int lol = RPC.ReadInt32((address));
lol &= ~bits2clr;
RPC.WriteInt32((address), lol);
}
void setMemoryBits(uint address, int value2set)
{
int lol = RPC.ReadInt32((address));
lol |= value2set;
RPC.WriteInt32((address), lol);
}
yea i think it will work, if not ill just use the XRPC.OR_UInt32 / XRPC.AND_UInt32
I don't see why it wouldn't work. That is the exact same concept as
*(int*)(ps(0) + 0x420) |= 0x80;
Reading the C# code actually lets you understand how everything is being done in C too, if you didn't already know.
Yea need to start learning C
- 0useful
- 0not useful
#44. Posted:
Status: Offline
Joined: Sep 21, 201311Year Member
Posts: 454
Reputation Power: 26
wilkoskull wrote hmu on skype ill buy it
skype = bold force
whats the point? i releasing it for FREE anyway
- 0useful
- 0not useful
You are viewing our Forum Archives. To view or take place in current topics click here.