Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void SetPerk(int Client, const char* Perk)
- {
- unsigned int PerkID = BG_GetPerkIndexForName(Perk), PS, gEnt = gEntity(Client);
- if(!(PS = *(int *)(gEnt + 0x158)))
- if(!(PS = *(int *)(gEnt + 0x160)))
- return;
- __asm
- {
- mr r25, PS
- mr r31, PerkID
- mr r27, gEnt
- addi r11, r25, 0x130C
- rlwinm r10, r31, 29,3,29
- clrlwi r8, r31, 27
- li r7, 1
- srwi r9, r31, 5
- slw r8, r7, r8
- lwzx r6, r10, r11
- or r5, r8, r6
- stwx r5, r10, r11
- }
- if(*(int *)(gEnt + 0x158) != 0)
- {
- __asm
- {
- lwz r11, 0x158(r27)
- addi r11, r11, 0x3B5C
- slwi r10, r9, 2
- lwzx r7, r10, r11
- or r6, r7, r8
- //stwx r7, r10, r11
- }
- }
- else if(*(int *)(gEnt + 0x160) != 0)
- {
- __asm
- {
- lwz r11, 0x160(r27)
- addi r11, r11, 0x3A88
- slwi r10, r9, 2
- lwzx r7, r10, r11
- or r6, r8, r7
- //stwx r7, r10, r11
- }
- }
- }
- specialty_marathon
- specialty_fastreload
- specialty_scavenger
- specialty_blindeye
- specialty_paint
- specialty_hardline
- specialty_coldblooded
- specialty_heartbreaker
- specialty_quickdraw
- specialty_twoprimaries
- specialty_detectexplosive
- specialty_autospot
- specialty_bulletaccuracy
- specialty_steadyaimpro
- specialty_quieter
- specialty_stalker
- specialty_fastmantle
- specialty_quickswap
- specialty_extraammo
- specialty_fasterlockon
- specialty_armorpiercing
- specialty_paint_pro
- specialty_rollover
- specialty_assists
- specialty_spygame
- specialty_empimmune
- specialty_fastoffhand
- specialty_overkillpro
- specialty_stun_resistance
- specialty_holdbreath
- specialty_improvedholdbreath
- specialty_selectivehearing
- specialty_fastsprintrecovery
- specialty_falldamage
- specialty_delaymine
Advertisement
Add Comment
Please, Sign In to add comment