102 Patches: Detours to the Rescue
C reference for DttR maintainers and modders.
Loading...
Searching...
No Matches
DTTR_PCDOGS_T_Entity_State Struct Reference

#include <dttr_pcdogs.h>

Data Fields

uint32_t flags
 Offset 0x0.
DTTR_PCDOGS_T_Math_Vec3I32 bonus_respawn_pos
int32_t collision_radius_sq
int32_t collision_height_sq
uint8_t active_flag
 Offset 0x18.
uint8_t bonus_respawn_mode
uint16_t reserved_1a
 Reserved entity record pad. Offset 0x1A.
int32_t * bonus_respawn_target_pos
 Offset 0x1C.
int16_t attach_offset_x
 Offset 0x20.
int16_t default_anim_state
int32_t local_vars [9]
 Offset 0x24.
voidscript_base_ptr
 Offset 0x48.
voidactor_template_header_ref
 Offset 0x4C.
voidshared_ref_50
 Offset 0x50.
voidshared_ref_54
 Offset 0x54.
int32_t * runtime_target_pos
uint8_t reserved_5c [44]
int32_t respawn_transition_speed
uint8_t reserved_8c [52]
 Continuation of the copied actor-default block. Offset 0x8C.
uint8_t cached_actor_defaults [104]
DTTR_PCDOGS_T_Actor_Stateactive_actor
uint8_t padding_12c [16]
 Offset 0x12C.
int32_t script_timer
 Offset 0x13C.
uint8_t behavior_index
 Offset 0x140.
uint8_t behavior_stack [3]
 Offset 0x141.
uint8_t reserved_144 [40]
int32_t target_offset_phase
int32_t target_offset_step
int32_t default_collision_radius_sq
int32_t default_collision_height_sq
uint32_t default_flags

Detailed Description

Runtime entity slot record used by spawn and visibility paths; current_level_data->entity_array supplies the slot index.

Definition at line 4247 of file dttr_pcdogs.h.

Field Documentation

◆ active_actor

DTTR_PCDOGS_T_Actor_State* DTTR_PCDOGS_T_Entity_State::active_actor

Live Actor_State currently spawned from this Entity_State slot. Offset 0x128.

Definition at line 4284 of file dttr_pcdogs.h.

◆ active_flag

uint8_t DTTR_PCDOGS_T_Entity_State::active_flag

Offset 0x18.

Definition at line 4256 of file dttr_pcdogs.h.

◆ actor_template_header_ref

void* DTTR_PCDOGS_T_Entity_State::actor_template_header_ref

Offset 0x4C.

Definition at line 4268 of file dttr_pcdogs.h.

◆ attach_offset_x

int16_t DTTR_PCDOGS_T_Entity_State::attach_offset_x

Offset 0x20.

Definition at line 4262 of file dttr_pcdogs.h.

◆ behavior_index

uint8_t DTTR_PCDOGS_T_Entity_State::behavior_index

Offset 0x140.

Definition at line 4288 of file dttr_pcdogs.h.

◆ behavior_stack

uint8_t DTTR_PCDOGS_T_Entity_State::behavior_stack[3]

Offset 0x141.

Definition at line 4289 of file dttr_pcdogs.h.

◆ bonus_respawn_mode

uint8_t DTTR_PCDOGS_T_Entity_State::bonus_respawn_mode

Entity respawn mode byte; Player_RespawnAfterDeath checks entity-slot state at this position. Offset 0x19.

Definition at line 4258 of file dttr_pcdogs.h.

◆ bonus_respawn_pos

DTTR_PCDOGS_T_Math_Vec3I32 DTTR_PCDOGS_T_Entity_State::bonus_respawn_pos

Inactive/pre-spawn entity position; also mirrors Entity_State bonus respawn position. Offset 0x4.

Definition at line 4250 of file dttr_pcdogs.h.

◆ bonus_respawn_target_pos

int32_t* DTTR_PCDOGS_T_Entity_State::bonus_respawn_target_pos

Offset 0x1C.

Definition at line 4261 of file dttr_pcdogs.h.

◆ cached_actor_defaults

uint8_t DTTR_PCDOGS_T_Entity_State::cached_actor_defaults[104]

Entity_SpawnActor caches actor defaults here. Actor_CopyEntityDefaultsToRecord copies this block into the package actor record. Offset 0xC0.

Definition at line 4281 of file dttr_pcdogs.h.

◆ collision_height_sq

int32_t DTTR_PCDOGS_T_Entity_State::collision_height_sq

Squared visibility/collision height used by Entity_UpdateVisibilityAndSpawn. Offset 0x14.

Definition at line 4254 of file dttr_pcdogs.h.

◆ collision_radius_sq

int32_t DTTR_PCDOGS_T_Entity_State::collision_radius_sq

Squared visibility/collision radius used by Entity_UpdateVisibilityAndSpawn. Offset 0x10.

Definition at line 4252 of file dttr_pcdogs.h.

◆ default_anim_state

int16_t DTTR_PCDOGS_T_Entity_State::default_anim_state

Default animation state reset to 0xFFFF by Entity_UpdateVisibilityAndSpawn/despawn paths. Offset 0x22.

Definition at line 4263 of file dttr_pcdogs.h.

◆ default_collision_height_sq

int32_t DTTR_PCDOGS_T_Entity_State::default_collision_height_sq

Default collision height restored into collision_height_sq by Entity_SetActorProperty/despawn reset paths. Offset 0x178.

Definition at line 4301 of file dttr_pcdogs.h.

◆ default_collision_radius_sq

int32_t DTTR_PCDOGS_T_Entity_State::default_collision_radius_sq

Default collision radius restored into collision_radius_sq by Entity_SetActorProperty/despawn reset paths. Offset 0x174.

Definition at line 4297 of file dttr_pcdogs.h.

◆ default_flags

uint32_t DTTR_PCDOGS_T_Entity_State::default_flags

Default flags restored by despawn/reset and used as the default flag mask by Entity_SetActorProperty. Offset 0x17C.

Definition at line 4306 of file dttr_pcdogs.h.

◆ flags

uint32_t DTTR_PCDOGS_T_Entity_State::flags

Offset 0x0.

Definition at line 4248 of file dttr_pcdogs.h.

◆ local_vars

int32_t DTTR_PCDOGS_T_Entity_State::local_vars[9]

Offset 0x24.

Definition at line 4266 of file dttr_pcdogs.h.

◆ padding_12c

uint8_t DTTR_PCDOGS_T_Entity_State::padding_12c[16]

Offset 0x12C.

Definition at line 4286 of file dttr_pcdogs.h.

◆ reserved_144

uint8_t DTTR_PCDOGS_T_Entity_State::reserved_144[40]

Runtime entity scratch before target_offset_phase. Offset 0x144.

Definition at line 4290 of file dttr_pcdogs.h.

◆ reserved_1a

uint16_t DTTR_PCDOGS_T_Entity_State::reserved_1a

Reserved entity record pad. Offset 0x1A.

Definition at line 4260 of file dttr_pcdogs.h.

◆ reserved_5c

uint8_t DTTR_PCDOGS_T_Entity_State::reserved_5c[44]

Reserved portion copied by Entity_SpawnActor into cached_actor_defaults. Offset 0x5C.

Definition at line 4274 of file dttr_pcdogs.h.

◆ reserved_8c

uint8_t DTTR_PCDOGS_T_Entity_State::reserved_8c[52]

Continuation of the copied actor-default block. Offset 0x8C.

Definition at line 4279 of file dttr_pcdogs.h.

◆ respawn_transition_speed

int32_t DTTR_PCDOGS_T_Entity_State::respawn_transition_speed

Default transition speed mirrored from Entity_State. Offset 0x88.

Definition at line 4276 of file dttr_pcdogs.h.

◆ runtime_target_pos

int32_t* DTTR_PCDOGS_T_Entity_State::runtime_target_pos

Runtime/default target-position pointer copied into cached_actor_defaults by Entity_SpawnActor. Offset 0x58.

Definition at line 4272 of file dttr_pcdogs.h.

◆ script_base_ptr

void* DTTR_PCDOGS_T_Entity_State::script_base_ptr

Offset 0x48.

Definition at line 4267 of file dttr_pcdogs.h.

◆ script_timer

int32_t DTTR_PCDOGS_T_Entity_State::script_timer

Offset 0x13C.

Definition at line 4287 of file dttr_pcdogs.h.

◆ shared_ref_50

void* DTTR_PCDOGS_T_Entity_State::shared_ref_50

Offset 0x50.

Definition at line 4269 of file dttr_pcdogs.h.

◆ shared_ref_54

void* DTTR_PCDOGS_T_Entity_State::shared_ref_54

Offset 0x54.

Definition at line 4270 of file dttr_pcdogs.h.

◆ target_offset_phase

int32_t DTTR_PCDOGS_T_Entity_State::target_offset_phase

Runtime target-position accumulator advanced by Entity_UpdateVisibilityAndSpawn. Offset 0x16C.

Definition at line 4292 of file dttr_pcdogs.h.

◆ target_offset_step

int32_t DTTR_PCDOGS_T_Entity_State::target_offset_step

Signed per-update target-position delta; Entity_UpdateVisibilityAndSpawn negates it at bounds. Offset 0x170.

Definition at line 4294 of file dttr_pcdogs.h.


The documentation for this struct was generated from the following file: