Jump to content

Hooking player Problem :/


Red16

1 post in this topic

Recommended Posts

Posted

My player wont move its like its frozen i tried multiple methods to fix this but none of those methods i tried worked, the method i hooked is working it dose spawn items but then player won’t move, im sure you guys will know something 

 

void (*Player_QuickSpawnItem) (void *player, int item) = (void (*) (void *, int))getRealOffset(0x100F2929C);



bool shouldSpawn = true;



void (*old_Player_Update) (void *player);

void Player_Update (void *player){

int item = [[switches getValueFromSwitch:@"Spawn Item:"]intValue];



  if([switches isSwitchOn:@"Spawn Item:"])

{

 if(shouldSpawn)

  {

    Player_QuickSpawnItem(player, item); 

     shouldSpawn = false;

  }

 }

   else 

   {

      shouldSpawn = true;

    }

  

 old_Player_Update(player);

}

void setup() {

//ADD YOUR HACKS UNDER THIS

//Public void Update(int i);//RVA:0x100F68320 Offset: 0xF68320

HOOK(0x100F68320, Player_Update, old_Player_Update);

  [switches addTextfieldSwitch:@"Spawn Item:"

              description:@"Put the item ID!"

                inputBorderColor:[UIColor colorWithRed:0.31 green:0.31 blue:0.78 alpha:1.0]];

 

 

Archived

This topic is now archived and is closed to further replies.

×
  • Create New...

Important Information

We would like to place cookies on your device to help make this website better. The website cannot give you the best user experience without cookies. You can accept or decline our cookies. You may also adjust your cookie settings. Privacy Policy - Guidelines