Play Flags: Difference between revisions

From NPC for VCMP 0.4 Servers
Jump to navigation Jump to search
No edit summary
No edit summary
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{v1_8_beta}}
<poem style="border: 2px solid #d6d2c5; background-color: #f9f4e6; padding: 1em;">
<poem style="border: 2px solid #d6d2c5; background-color: #f9f4e6; padding: 1em;">
The parameter flags was added in v1.8 (not released as of 03.Jan.2024) and will not work in previous versions.
This flags only work with PLAYER_RECORDING_TYPE_ALL
</poem>
</poem>
<source lang="lua">
<source lang="lua">
Line 15: Line 16:
PLAY_AVOID_OBJECTSHOT_WEAPONCHECK  1024
PLAY_AVOID_OBJECTSHOT_WEAPONCHECK  1024
</source>
</source>
If PLAY_IGNORE_PASSENGER_HEALTH is used, then the health and armour present inside the passenger data of rec file will not be used.
<poem>
If PLAY_IGNORE_VEHMODEL will not raise error if vehicle model inside rec file is different from that of the server now. Models are checked using vehicle IDs.
If <source inline>PLAY_IGNORE_PASSENGER_HEALTH</source> is used, then the health and armour present inside the passenger data of rec file will not be used.
PLAY_IGNORE_CHECKPOINTS will not stop the playback if the checkpoint with the ID in rec file is not found/streamed in. If PLAY_IGNORE_CHECKPOINT_POSITIONS is used, then position of checkpoint will not be checked against that in rec file. PLAY_AVOID_OBJECTSHOT_WEAPONCHECK will not raise error, if the weapon with object was shot is not available to npc. It simply send the packet.
If <source inline>PLAY_IGNORE_VEHMODEL</source> will not raise error if vehicle model inside rec file is different from that of the server now. Models are checked using vehicle IDs.
<source inline>PLAY_IGNORE_CHECKPOINTS</source> will not stop the playback if the checkpoint with the ID in rec file is not found/streamed in. If <source inline>PLAY_IGNORE_CHECKPOINT_POSITIONS</source> is used, then position of checkpoint will not be checked against that in rec file.  
<source inline>PLAY_AVOID_OBJECTSHOT_WEAPONCHECK</source> will not raise error, if the weapon with object was shot is not available to npc. It simply send the packet.
</poem>
<poem>
For constants provided by npc04relxx to be used with [[StartRecordingPlayerData]], see [[Recording Flags]]</poem>

Latest revision as of 16:01, 26 January 2024

This function was added in v1.8 beta and will not work on previous versions.

This flags only work with PLAYER_RECORDING_TYPE_ALL

PLAY_IGNORE_PASSENGER_HEALTH  1
PLAY_IGNORE_SEATID  2
PLAY_IGNORE_VEHMODEL  4
PLAY_IGNORE_VEHICLEID  8
PLAY_IGNORE_CHECKPOINTS  16
PLAY_IGNORE_CHECKPOINT_POSITIONS  32
PLAY_IGNORE_UNSTREAMED_PICKUPS  64
PLAY_IGNORE_PICKUP_MODEL  128
PLAY_IGNORE_UNSTREAMED_OBJECTS  256
PLAY_IGNORE_OBJECT_MODEL  512
PLAY_AVOID_OBJECTSHOT_WEAPONCHECK  1024

If PLAY_IGNORE_PASSENGER_HEALTH is used, then the health and armour present inside the passenger data of rec file will not be used.
If PLAY_IGNORE_VEHMODEL will not raise error if vehicle model inside rec file is different from that of the server now. Models are checked using vehicle IDs.
PLAY_IGNORE_CHECKPOINTS will not stop the playback if the checkpoint with the ID in rec file is not found/streamed in. If PLAY_IGNORE_CHECKPOINT_POSITIONS is used, then position of checkpoint will not be checked against that in rec file.
PLAY_AVOID_OBJECTSHOT_WEAPONCHECK will not raise error, if the weapon with object was shot is not available to npc. It simply send the packet.

For constants provided by npc04relxx to be used with StartRecordingPlayerData, see Recording Flags