@@ -13,7 +13,7 @@ local CStructView = require("includes.classes.gta.CStructView")
1313---- ----------------------------------
1414-- Class: CFlyingHandlingData
1515---- ----------------------------------
16- --- @class CFlyingHandlingData : CBaseSubHandlingData
16+ --- @class CFlyingHandlingData : CStructBase < CFlyingHandlingData >
1717--- @field m_thrust pointer<float> -- 0x0008
1818--- @field m_thrust_falloff pointer<float> -- 0x000C
1919--- @field m_thrust_vectoring pointer<float> -- 0x0010
@@ -56,48 +56,58 @@ local CStructView = require("includes.classes.gta.CStructView")
5656--- @field m_afterburner_effect_force_mult pointer<float> -- 0x00BC
5757--- @field m_submerge_level pointer<float> -- 0x00C0
5858--- @field m_unk_lift_00C4 pointer<float> -- 0x00C4
59- --- @overload fun ( addr : pointer ): CFlyingHandlingData
60- local CFlyingHandlingData = CStructView (" CFlyingHandlingData" , {
61- { " m_thrust" , 0x0008 },
62- { " m_thrust_falloff" , 0x000C },
63- { " m_thrust_vectoring" , 0x0010 },
64- { " m_initial_thrust" , 0x0014 },
65- { " m_initial_thrust_falloff" , 0x0018 },
66- { " m_yaw_mult" , 0x001C },
67- { " m_yaw_stability_mult" , 0x0020 },
68- { " m_side_slip_mult" , 0x0024 },
69- { " m_roll_mult" , 0x002C },
70- { " m_roll_stability_mult" , 0x0030 },
71- { " m_initial_roll_mult" , 0x0034 },
72- { " m_pitch_mult" , 0x0038 },
73- { " m_pitch_stability_mult" , 0x003C },
74- { " m_initial_pitch_mult" , 0x0040 },
75- { " m_lift_mult" , 0x0044 },
76- { " m_unk_0048" , 0x0048 },
77- { " m_dive_mult" , 0x004C },
78- { " m_gear_down_drag_mult" , 0x0050 },
79- { " m_gear_down_lift_mult" , 0x0054 },
80- { " m_wind_force_mult" , 0x0058 },
81- { " m_move_resistance" , 0x005C },
82- { " m_turn_resistance" , 0x0060 },
83- { " m_speed_resistance" , 0x0070 },
84- { " m_gear_door_front_state" , 0x0080 },
85- { " m_gear_door_rl_state" , 0x0084 },
86- { " m_gear_door_rr_state" , 0x0088 },
87- { " m_gear_door_rm_state" , 0x008C },
88- { " m_turbulence_mag_max" , 0x0090 },
89- { " m_turbulence_force_mult" , 0x0094 },
90- { " m_turbulence_roll_torque_mult" , 0x0098 },
91- { " m_body_damage_control_effect_mult" , 0x00A0 },
92- { " m_unk_00A4" , 0x00A4 },
93- { " m_ground_yaw_speed_max" , 0x00A8 },
94- { " m_ground_yaw_speed_cap" , 0x00AC },
95- { " m_glide_mult" , 0x00B0 },
96- { " m_afterburner_effect_radius" , 0x00B4 },
97- { " m_afterburner_effect_dist" , 0x00B8 },
98- { " m_afterburner_effect_force_mult" , 0x00BC },
99- { " m_submerge_level" , 0x00C0 },
100- { " m_unk_lift_00C4" , 0x00C4 },
101- }, 0x00C8 )
59+ --- @overload fun ( ptr : pointer ): CFlyingHandlingData
60+ local CFlyingHandlingData = CStructView (" CFlyingHandlingData" , 0x00C8 )
61+
62+ --- @param ptr pointer
63+ --- @return CFlyingHandlingData
64+ function CFlyingHandlingData .new (ptr )
65+ return setmetatable ({
66+ m_ptr = ptr ,
67+ m_thrust = ptr :add (0x0008 ),
68+ m_thrust_falloff = ptr :add (0x000C ),
69+ m_thrust_vectoring = ptr :add (0x0010 ),
70+ m_initial_thrust = ptr :add (0x0014 ),
71+ m_initial_thrust_falloff = ptr :add (0x0018 ),
72+ m_yaw_mult = ptr :add (0x001C ),
73+ m_yaw_stability_mult = ptr :add (0x0020 ),
74+ m_side_slip_mult = ptr :add (0x0024 ),
75+ m_initial_yaw_mult = ptr :add (0x0028 ),
76+ m_roll_mult = ptr :add (0x002C ),
77+ m_roll_stability_mult = ptr :add (0x0030 ),
78+ m_initial_roll_mult = ptr :add (0x0034 ),
79+ m_pitch_mult = ptr :add (0x0038 ),
80+ m_pitch_stability_mult = ptr :add (0x003C ),
81+ m_initial_pitch_mult = ptr :add (0x0040 ),
82+ m_lift_mult = ptr :add (0x0044 ),
83+ m_unk_0048 = ptr :add (0x0048 ),
84+ m_dive_mult = ptr :add (0x004C ),
85+ m_gear_down_drag_mult = ptr :add (0x0050 ),
86+ m_gear_down_lift_mult = ptr :add (0x0054 ),
87+ m_wind_force_mult = ptr :add (0x0058 ),
88+ m_move_resistance = ptr :add (0x005C ),
89+ m_turn_resistance = ptr :add (0x0060 ),
90+ m_speed_resistance = ptr :add (0x0070 ),
91+ m_gear_door_front_state = ptr :add (0x0080 ),
92+ m_gear_door_rl_state = ptr :add (0x0084 ),
93+ m_gear_door_rr_state = ptr :add (0x0088 ),
94+ m_gear_door_rm_state = ptr :add (0x008C ),
95+ m_turbulence_mag_max = ptr :add (0x0090 ),
96+ m_turbulence_force_mult = ptr :add (0x0094 ),
97+ m_turbulence_roll_torque_mult = ptr :add (0x0098 ),
98+ m_turbulence_pitch_torque_mult = ptr :add (0x009C ),
99+ m_body_damage_control_effect_mult = ptr :add (0x00A0 ),
100+ m_unk_00A4 = ptr :add (0x00A4 ),
101+ m_ground_yaw_speed_max = ptr :add (0x00A8 ),
102+ m_ground_yaw_speed_cap = ptr :add (0x00AC ),
103+ m_glide_mult = ptr :add (0x00B0 ),
104+ m_afterburner_effect_radius = ptr :add (0x00B4 ),
105+ m_afterburner_effect_dist = ptr :add (0x00B8 ),
106+ m_afterburner_effect_force_mult = ptr :add (0x00BC ),
107+ m_submerge_level = ptr :add (0x00C0 ),
108+ m_unk_lift_00C4 = ptr :add (0x00C4 ),
109+ --- @diagnostic disable-next-line : param-type-mismatch
110+ }, CFlyingHandlingData )
111+ end
102112
103113return CFlyingHandlingData
0 commit comments