commonlibsse_ng\re\p\PlayerCamera/
runtime_data2.rs

1use crate::re::NiPoint3::NiPoint3;
2
3#[derive(Debug)]
4#[repr(C)]
5pub struct RUNTIME_DATA2 {
6    pub worldFOV: f32,             // 0x13C, VR: 0x158
7    pub firstPersonFOV: f32,       // 0x140, VR: 0x15c
8    pub pos: NiPoint3,             // 0x144, VR: 0x160 - ?
9    pub idleTimer: f32,            // 0x150, VR: 0x16c - ?
10    pub yaw: f32,                  // 0x154, VR: 0x170 - ? - in radians
11    pub unk158: u32,               // 0x158 - ?
12    pub unk15C: u32,               // 0x15C - ?
13    pub allowAutoVanityMode: bool, // 0x160, VR: 0x17c
14    pub bowZoomedIn: bool,         // 0x161, VR: 0x17d
15    pub isWeapSheathed: bool,      // 0x162, VR: 0x17e - ?
16    pub isProcessed: bool,         // 0x163, VR: 0x17f - ?
17    pub unk164: u8,                // 0x164
18    pub unk165: u8,                // 0x165
19    pub pad166: u16,               // 0x166
20}
21const _: () = assert!(core::mem::size_of::<RUNTIME_DATA2>() == 0x2C);