feat(vendor): updated GTAV-Classes (#560)

This commit is contained in:
Aure7138
2022-11-09 06:44:52 +08:00
committed by GitHub
parent 1087146e56
commit 5f70975ffe
10 changed files with 16 additions and 14 deletions

View File

@ -28,7 +28,7 @@ namespace big
MISC::GET_MODEL_DIMENSIONS(hash, &min, &max);
const auto dimensions = (max - min) * 0.5f;
const auto& position = m_pointer->m_position;
const auto& position = *m_pointer->m_navigation->get_position();
rage::fvector3 front_upper_right, back_lower_left;
front_upper_right.x = position.x + dimensions.y * forward.x + dimensions.x * right.x + dimensions.z * up.x;
@ -225,7 +225,7 @@ namespace big
if (!temp_pointer->m_navigation)
continue;
const auto pos = temp_pointer->m_navigation->m_position;
const auto pos = *temp_pointer->m_navigation->get_position();
HUD::GET_HUD_SCREEN_POSITION_FROM_WORLD_POSITION(pos.x, pos.y, pos.z, &screen_pos.x, &screen_pos.y);
if (distance_to_middle_of_screen(screen_pos) < distance &&
ENTITY::HAS_ENTITY_CLEAR_LOS_TO_ENTITY(PLAYER::PLAYER_PED_ID(), temp_handle, 17) &&

View File

@ -96,11 +96,11 @@ namespace big
0,
{}, {
{"EXPLODE", [this] {
rage::fvector3 pos = m_pointer->m_navigation->m_position;
rage::fvector3 pos = *m_pointer->m_navigation->get_position();
FIRE::ADD_EXPLOSION(pos.x, pos.y, pos.z, 1, 1000, 1, 0, 1, 0);
}},
{"TP TO", [this] {
rage::fvector3 pos = m_pointer->m_navigation->m_position;
rage::fvector3 pos = *m_pointer->m_navigation->get_position();
teleport::to_coords({ pos.x, pos.y, pos.z });
}},
}