Advertisement
Guest User

Needed Natives for Scenes

a guest
Aug 20th, 2018
166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.45 KB | None | 0 0
  1. PED::SET_PED_ACCURACY - void SET_PED_ACCURACY(Ped ped, int accuracy) / accuracy = 0-100, 100 being perfectly accurate
  2. PED::SET_PED_SEEING_RANGE - void SET_PED_SEEING_RANGE(Ped ped, float value)
  3. PED::SET_PED_FIRING_PATTERN -
  4.  
  5. FIRING_PATTERN_BURST_FIRE = 0xD6FF6D61 ( 1073727030 )
  6. FIRING_PATTERN_BURST_FIRE_IN_COVER = 0x026321F1 ( 40051185 )
  7. FIRING_PATTERN_BURST_FIRE_DRIVEBY = 0xD31265F2 ( -753768974 )
  8. FIRING_PATTERN_FROM_GROUND = 0x2264E5D6 ( 577037782 )
  9. FIRING_PATTERN_DELAY_FIRE_BY_ONE_SEC = 0x7A845691 ( 2055493265 )
  10. FIRING_PATTERN_FULL_AUTO = 0xC6EE6B4C ( -957453492 )
  11. FIRING_PATTERN_SINGLE_SHOT = 0x5D60E4E0 ( 1566631136 )
  12. FIRING_PATTERN_BURST_FIRE_PISTOL = 0xA018DB8A ( -1608983670 )
  13. FIRING_PATTERN_BURST_FIRE_SMG = 0xD10DADEE ( 1863348768 )
  14. FIRING_PATTERN_BURST_FIRE_RIFLE = 0x9C74B406 ( -1670073338 )
  15. FIRING_PATTERN_BURST_FIRE_MG = 0xB573C5B4 ( -1250703948 )
  16. FIRING_PATTERN_BURST_FIRE_PUMPSHOTGUN = 0x00BAC39B ( 12239771 )
  17. FIRING_PATTERN_BURST_FIRE_HELI = 0x914E786F ( -1857128337 )
  18. FIRING_PATTERN_BURST_FIRE_MICRO = 0x42EF03FD ( 1122960381 )
  19. FIRING_PATTERN_SHORT_BURSTS = 0x1A92D7DF ( 445831135 )
  20. FIRING_PATTERN_SLOW_FIRE_TANK = 0xE2CA3A71 ( -490063247 )
  21.  
  22.  
  23. PED::SET_PED_SHOOT_RATE - void SET_PED_SHOOT_RATE(Ped ped, int shootRate) / shootRate 0-1000
  24.  
  25. PED::SET_PED_COMBAT_RANGE - void SET_PED_COMBAT_RANGE(Ped ped, int p1) / Only the values 0, 1 and 2 occur in the decompiled scripts. Most likely refers directly to the values also described as AttackRange in combatbehaviour.meta:
  26. 0: CR_Near
  27. 1: CR_Medium
  28. 2: CR_Far
  29.  
  30. PED::SET_DRIVER_AGGRESSIVENESS - void SET_DRIVER_AGGRESSIVENESS(Ped driver, float aggressiveness) / range 0.0f - 1.0f
  31. PED::SET_DRIVER_ABILITY - void SET_DRIVER_ABILITY(Ped driver, float ability) / The function specifically verifies the value is equal to, or less than 1.0f. If it is greater than 1.0f, the function does nothing at all.
  32.  
  33. PED::GET_PED_ACCURACY - int GET_PED_ACCURACY(Ped ped)
  34.  
  35. PED::SET_PED_COMBAT_ATTRIBUTES - void SET_PED_COMBAT_ATTRIBUTES(Ped ped, int attributeIndex, BOOL enabled)
  36.  
  37. These combat attributes seem to be the same as the BehaviourFlags from combatbehaviour.meta.
  38. So far, these are the equivalents found:
  39. enum CombatAttributes
  40. {
  41. BF_CanUseCover = 0,
  42. BF_CanUseVehicles = 1,
  43. BF_CanDoDrivebys = 2,
  44. BF_CanLeaveVehicle = 3,
  45. BF_CanFightArmedPedsWhenNotArmed = 5,
  46. BF_CanTauntInVehicle = 20,
  47. BF_AlwaysFight = 46,
  48. BF_IgnoreTrafficWhenDriving = 52,
  49. BF_FreezeMovement = 292,
  50. BF_PlayerCanUseFiringWeapons = 1424
  51. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement