Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //incomplete
- /* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
- ulonglong playAnimation(__uint64 nativeHash,uint playerPed,__uint64 animDict,__uint64 animName,
- undefined8 param_5,undefined8 param_6,uint param_7)
- {
- __uint64 *p_Var1;
- ulonglong ullPlayerPed;
- /* TASK_PLAY_ANIM */
- nativeInit(0xea47fe3719165b94);
- ullPlayerPed = (ulonglong)playerPed;
- nativePush64(ullPlayerPed);
- nativePush64(animDict);
- nativePush64(animName);
- nativePush64(0x40000000);
- nativePush64(0xc0000000);
- ullPlayerPed = (ulonglong)param_7;
- nativePush64(ullPlayerPed);
- nativePush64(0);
- nativePush64(0);
- nativePush64(0);
- nativePush64(0);
- nativePush64(0);
- p_Var1 = nativeCall();
- return (ulonglong)*(uint *)p_Var1;
- }
- void setPedWeapon(uint ped,uint weaponHash)
- {
- ulonglong ullTempParam;
- /* SET_CURRENT_PED_WEAPON */
- nativeInit(0xadf692b254977c0c);
- ullTempParam = (ulonglong)ped;
- nativePush64(ullTempParam);
- ullTempParam = (ulonglong)weaponHash;
- nativePush64(ullTempParam);
- nativePush64(1);
- /* WARNING: Could not recover jumptable at 0x0001800011b4. Too many branches */
- /* WARNING: Treating indirect jump as call */
- nativeCall();
- return;
- }
- bool doesPedHaveStrapWeapon(uint ped)
- {
- uint uVar1;
- bool *p_hasStrapWeapon;
- ulonglong local_res20;
- uVar1 = strapHash;
- nativeInit(0x8decb02f88f428bc);
- local_res20 = (ulonglong)ped;
- nativePush64(local_res20);
- local_res20 = (ulonglong)uVar1;
- nativePush64(local_res20);
- nativePush64(0);
- p_hasStrapWeapon = (bool *)nativeCall();
- return SUB41(*(undefined4 *)p_hasStrapWeapon,0);
- }
- bool isPedInAnyVehicle(uint ped)
- {
- bool *p_inAnyVeh;
- ulonglong uStackX24;
- /* IS_PED_IN_ANY_VEHICLE */
- nativeInit(0x997abd671d25ca0b);
- uStackX24 = (ulonglong)ped;
- nativePush64(uStackX24);
- nativePush64(1);
- p_inAnyVeh = (bool *)nativeCall();
- return SUB41(*(undefined4 *)p_inAnyVeh,0);
- }
- bool isPedArmed(uint ped,uint weaponGroup)
- {
- bool *p_pedArmed;
- ulonglong local_res18;
- /* IS_PED_ARMED */
- nativeInit(0x475768a975d5ad17);
- local_res18 = (ulonglong)ped;
- nativePush64(local_res18);
- local_res18 = (ulonglong)weaponGroup;
- nativePush64(local_res18);
- p_pedArmed = (bool *)nativeCall();
- return SUB41(*(undefined4 *)p_pedArmed,0);
- }
- void FUN_180001a20(void)
- {
- do {
- FUN_1800014f0();
- if (DAT_18001b7d0 == 0) {
- LAB_180001a7d:
- /* DISABLE_CONTROL_ACTION */
- nativeInit(0xfe99b66d079cf6bc);
- nativePush64(2);
- nativePush64(0x25);
- nativePush64(1);
- nativeCall();
- }
- else {
- /* ENABLE_ALL_CONTROL_ACTIONS */
- nativeInit(0xa5ffe9b05f199de7);
- nativePush64(0);
- nativeCall();
- if (DAT_18001b7d0 == 0) goto LAB_180001a7d;
- }
- scriptWait(0);
- } while( true );
- }
- void FUN_1800014f0(void)
- {
- bool bVar1;
- ushort uVar2;
- __uint64 *p_Var3;
- undefined7 extraout_var;
- undefined7 extraout_var_00;
- undefined7 extraout_var_01;
- undefined7 extraout_var_02;
- undefined7 extraout_var_03;
- undefined7 extraout_var_04;
- undefined7 extraout_var_05;
- undefined7 extraout_var_06;
- undefined7 extraout_var_07;
- undefined7 extraout_var_08;
- undefined7 extraout_var_09;
- undefined7 extraout_var_10;
- undefined7 extraout_var_11;
- undefined7 extraout_var_12;
- undefined7 extraout_var_13;
- undefined7 extraout_var_14;
- __uint64 nativeHash;
- undefined8 in_stack_ffffffffffffffb8;
- undefined8 in_stack_ffffffffffffffc0;
- /* REQUEST_ANIM_SET */
- nativeInit(0x6ea47dae7fad0eed);
- nativePush64((__uint64)"reaction@intimidation@1h");
- nativeCall();
- /* REQUEST_ANIM_DICT */
- nativeInit(0xd3bd40951412fef6);
- nativePush64((__uint64)"combat@reaction_aim@pistol");
- nativeCall();
- if (_DAT_18001ccd4 == 1) {
- uVar2 = GetAsyncKeyState(equipStrapKey);
- if (((uVar2 & 0x8000) != 0) && (DAT_18001ccc8 == 0)) {
- /* PLAYER_PED_ID */
- nativeInit(0xd80958fc74e988a6);
- p_Var3 = nativeCall();
- bVar1 = isPedInAnyVehicle(*(uint *)p_Var3);
- if ((int)CONCAT71(extraout_var,bVar1) == 0) {
- /* PLAYER_PED_ID */
- nativeInit(0xd80958fc74e988a6);
- p_Var3 = nativeCall();
- bVar1 = doesPedHaveStrapWeapon(*(uint *)p_Var3);
- if ((int)CONCAT71(extraout_var_00,bVar1) == 1) {
- /* PLAYER_PED_ID */
- nativeInit(0xd80958fc74e988a6);
- p_Var3 = nativeCall();
- setPedWeapon(*(uint *)p_Var3,0xa2719263);
- /* PLAYER_PED_ID */
- nativeHash = 0xd80958fc74e988a6;
- /* PLAYER_PED_ID */
- nativeInit(0xd80958fc74e988a6);
- p_Var3 = nativeCall();
- playAnimation(nativeHash,*(uint *)p_Var3,(__uint64)"reaction@intimidation@1h",
- (__uint64)"intro",in_stack_ffffffffffffffb8,in_stack_ffffffffffffffc0,0x9c4)
- ;
- scriptWait(1000);
- /* PLAYER_PED_ID */
- nativeInit(0xd80958fc74e988a6);
- p_Var3 = nativeCall();
- setPedWeapon(*(uint *)p_Var3,strapHash);
- scriptWait(0x5dc);
- DAT_18001ccc8 = 1;
- DAT_18001b7d0 = 0;
- goto LAB_180001728;
- }
- }
- }
- uVar2 = GetAsyncKeyState(equipStrapKey);
- if (((uVar2 & 0x8000) != 0) && (DAT_18001ccc8 != 0)) {
- /* PLAYER_PED_ID */
- nativeInit(0xd80958fc74e988a6);
- p_Var3 = nativeCall();
- bVar1 = isPedInAnyVehicle(*(uint *)p_Var3);
- if ((int)CONCAT71(extraout_var_01,bVar1) == 0) {
- /* PLAYER_PED_ID */
- nativeInit(0xd80958fc74e988a6);
- p_Var3 = nativeCall();
- bVar1 = doesPedHaveStrapWeapon(*(uint *)p_Var3);
- if ((int)CONCAT71(extraout_var_02,bVar1) == 1) {
- /* PLAYER_PED_ID */
- nativeInit(0xd80958fc74e988a6);
- p_Var3 = nativeCall();
- setPedWeapon(*(uint *)p_Var3,strapHash);
- /* PLAYER_PED_ID */
- nativeHash = 0xd80958fc74e988a6;
- /* PLAYER_PED_ID */
- nativeInit(0xd80958fc74e988a6);
- p_Var3 = nativeCall();
- playAnimation(nativeHash,*(uint *)p_Var3,(__uint64)"reaction@intimidation@1h",
- (__uint64)"outro",in_stack_ffffffffffffffb8,in_stack_ffffffffffffffc0,0x9c4)
- ;
- /* 1500ms */
- scriptWait(0x5dc);
- /* PLAYER_PED_ID */
- nativeInit(0xd80958fc74e988a6);
- p_Var3 = nativeCall();
- setPedWeapon(*(uint *)p_Var3,0xa2719263);
- /* 1500ms */
- scriptWait(0x5dc);
- DAT_18001ccc8 = 0;
- DAT_18001b7d0 = 1;
- }
- }
- }
- }
- LAB_180001728:
- if (_DAT_18001ccd4 == 2) {
- uVar2 = GetAsyncKeyState(equipStrapKey);
- if (((uVar2 & 0x8000) != 0) && (DAT_18001ccc8 == 0)) {
- /* PLAYER_PED_ID */
- nativeInit(0xd80958fc74e988a6);
- p_Var3 = nativeCall();
- bVar1 = isPedInAnyVehicle(*(uint *)p_Var3);
- if ((int)CONCAT71(extraout_var_03,bVar1) == 0) {
- /* PLAYER_PED_ID */
- nativeInit(0xd80958fc74e988a6);
- p_Var3 = nativeCall();
- bVar1 = doesPedHaveStrapWeapon(*(uint *)p_Var3);
- if ((int)CONCAT71(extraout_var_04,bVar1) == 1) {
- /* PLAYER_PED_ID */
- nativeInit(0xd80958fc74e988a6);
- p_Var3 = nativeCall();
- bVar1 = isPedArmed(*(uint *)p_Var3,4);
- if ((int)CONCAT71(extraout_var_05,bVar1) == 0) {
- /* PLAYER_PED_ID */
- nativeInit(0xd80958fc74e988a6);
- p_Var3 = nativeCall();
- bVar1 = isPedArmed(*(uint *)p_Var3,5);
- if ((int)CONCAT71(extraout_var_06,bVar1) == 0) {
- /* PLAYER_PED_ID */
- nativeInit(0xd80958fc74e988a6);
- p_Var3 = nativeCall();
- bVar1 = isPedArmed(*(uint *)p_Var3,6);
- if ((int)CONCAT71(extraout_var_07,bVar1) == 0) {
- /* PLAYER_PED_ID */
- nativeInit(0xd80958fc74e988a6);
- p_Var3 = nativeCall();
- bVar1 = isPedArmed(*(uint *)p_Var3,7);
- if ((int)CONCAT71(extraout_var_08,bVar1) == 0) {
- /* PLAYER_PED_ID */
- nativeInit(0xd80958fc74e988a6);
- p_Var3 = nativeCall();
- setPedWeapon(*(uint *)p_Var3,0xa2719263);
- /* PLAYER_PED_ID */
- nativeHash = 0xd80958fc74e988a6;
- /* PLAYER_PED_ID */
- nativeInit(0xd80958fc74e988a6);
- p_Var3 = nativeCall();
- /* DAT_1800173fc = "0" */
- playAnimation(nativeHash,*(uint *)p_Var3,(__uint64)"combat@reaction_aim@pistol",
- (__uint64)&DAT_1800173fc,in_stack_ffffffffffffffb8,
- in_stack_ffffffffffffffc0,0x1e5);
- scriptWait(500);
- /* PLAYER_PED_ID */
- nativeInit(0xd80958fc74e988a6);
- p_Var3 = nativeCall();
- setPedWeapon(*(uint *)p_Var3,strapHash);
- /* 1500ms */
- scriptWait(0x5dc);
- }
- }
- }
- }
- }
- }
- }
- }
- if (_DAT_18001ccd4 == 3) {
- uVar2 = GetAsyncKeyState(equipStrapKey);
- if (((uVar2 & 0x8000) != 0) && (DAT_18001ccc8 == 0)) {
- /* PLAYER_PED_ID */
- nativeInit(0xd80958fc74e988a6);
- p_Var3 = nativeCall();
- bVar1 = isPedInAnyVehicle(*(uint *)p_Var3);
- if ((int)CONCAT71(extraout_var_09,bVar1) == 0) {
- /* PLAYER_PED_ID */
- nativeInit(0xd80958fc74e988a6);
- p_Var3 = nativeCall();
- bVar1 = doesPedHaveStrapWeapon(*(uint *)p_Var3);
- if ((int)CONCAT71(extraout_var_10,bVar1) == 1) {
- /* PLAYER_PED_ID */
- nativeInit(0xd80958fc74e988a6);
- p_Var3 = nativeCall();
- bVar1 = isPedArmed(*(uint *)p_Var3,4);
- if ((int)CONCAT71(extraout_var_11,bVar1) == 0) {
- /* PLAYER_PED_ID */
- nativeInit(0xd80958fc74e988a6);
- p_Var3 = nativeCall();
- bVar1 = isPedArmed(*(uint *)p_Var3,5);
- if ((int)CONCAT71(extraout_var_12,bVar1) == 0) {
- /* PLAYER_PED_ID */
- nativeInit(0xd80958fc74e988a6);
- p_Var3 = nativeCall();
- bVar1 = isPedArmed(*(uint *)p_Var3,6);
- if ((int)CONCAT71(extraout_var_13,bVar1) == 0) {
- /* PLAYER_PED_ID */
- nativeInit(0xd80958fc74e988a6);
- p_Var3 = nativeCall();
- bVar1 = isPedArmed(*(uint *)p_Var3,7);
- if ((int)CONCAT71(extraout_var_14,bVar1) == 0) {
- /* PLAYER_PED_ID */
- nativeInit(0xd80958fc74e988a6);
- p_Var3 = nativeCall();
- setPedWeapon(*(uint *)p_Var3,0xa2719263);
- /* PLAYER_PED_ID */
- nativeHash = 0xd80958fc74e988a6;
- /* PLAYER_PED_ID */
- nativeInit(0xd80958fc74e988a6);
- p_Var3 = nativeCall();
- /* DAT_180017400 = "-0" */
- playAnimation(nativeHash,*(uint *)p_Var3,(__uint64)"combat@reaction_aim@pistol",
- (__uint64)&DAT_180017400,in_stack_ffffffffffffffb8,
- in_stack_ffffffffffffffc0,0x1e5);
- scriptWait(500);
- /* PLAYER_PED_ID */
- nativeInit(0xd80958fc74e988a6);
- p_Var3 = nativeCall();
- setPedWeapon(*(uint *)p_Var3,strapHash);
- /* WARNING: Could not recover jumptable at 0x000180001a05. Too many branches */
- /* WARNING: Treating indirect jump as call */
- /* 1500ms */
- scriptWait(0x5dc);
- return;
- }
- }
- }
- }
- }
- }
- }
- }
- return;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement