Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Needs testing, ASM released by CraigChrist, reversed by Bitwise
- inline void setPerk(int clientIndex, char*perkName)
- {
- int player = *(int*)(getEntity(clientIndex) + 0x158), perk = BG_GetPerkIndexForName(perkName);
- *(int*)(player + 0x428 + ((perk >> 3) & 0x1FFFFFFC)) |= (1 << (perk & 0x1F));
- *(int*)(player + 0x32BC + ((perk >> 3) & 0x1FFFFFFC)) |= (1 << (perk & 0x1F));
- }
- /*
- Just call it like you would normally;
- setPerk(0, "specialty_explosivebullets");
- */
Add Comment
Please, Sign In to add comment