fivem icon indicating copy to clipboard operation
fivem copied to clipboard

feat(onesync): physical game state and health research

Open packfile opened this issue 1 year ago • 2 comments

  • Adds research for CPhysicalScriptGameStateDataNode, CPhysicalHealthDataNode and CPedAIDataNode with respective natives to access relationship groups, object damage, proofs and other parsed data.
  • Makes GetEntityHealth and GetEntityMaxHealth work with objects, and adds GetIsTaskActive to check if a task is being performed.

packfile avatar Sep 12 '23 22:09 packfile

Using 1604 as the reference, it looks like 0xD2 was the removed field. Here are the other fields I had documented (verification required, etc):

0xCD = SET_ENTITY_CAN_ONLY_BE_DAMAGED_BY_SCRIPT_PARTICIPANTS
0xCE = DontResetDamageFlagsOnCleanup
0xCF = SET_NETWORK_ID_CAN_BE_REASSIGNED (negated)
0xD0 = SET_NETWORK_ID_PASS_CONTROL_IN_TUTORIAL
0xD1 = _AnimatedCutsceneEntity (guesstimate'd)
0xD2 = SET_ENTITY_GHOSTED_FOR_GHOST_PLAYERS
0xD3 = SET_PICK_UP_BY_CARGOBOB_DISABLED
0xDD = SET_ALLOW_MIGRATE_TO_SPECTATOR

gottfriedleibniz avatar Sep 14 '23 04:09 gottfriedleibniz

Anyone have any idea if this will ever be merged? This PR adds a lot of really useful natives, since many of these were previously only available on the client.

EinS4ckZwiebeln avatar Feb 10 '24 20:02 EinS4ckZwiebeln