Update crossmap and natives.hpp to 3095. (#2565)

This commit is contained in:
Aure7138
2023-12-15 23:01:57 +08:00
committed by GitHub
parent f3faa8540f
commit 8b62dadcd5
21 changed files with 195 additions and 90 deletions

View File

@ -154,7 +154,7 @@ namespace big
{
m_current_ent = ped::spawn(ePedType::PED_TYPE_ARMY, m_ped_model_hash, m_ped_clone, location, 0.f, false);
ENTITY::SET_ENTITY_HEALTH(m_current_ent, 0, 0);
ENTITY::SET_ENTITY_HEALTH(m_current_ent, 0, 0, 0);
script::get_current()->yield(20ms);
PED::RESURRECT_PED(m_current_ent);
TASK::CLEAR_PED_TASKS(m_current_ent);

View File

@ -52,7 +52,7 @@ namespace big
if (s.should_override_health())
{
PED::SET_PED_MAX_HEALTH(handle, s.m_ped_health);
ENTITY::SET_ENTITY_HEALTH(handle, s.m_ped_health, 0);
ENTITY::SET_ENTITY_HEALTH(handle, s.m_ped_health, 0, 0);
}
if (s.should_override_armor())
{

View File

@ -17,7 +17,7 @@ namespace big
{
if (entity::take_control_of(m.handle))
{
ENTITY::SET_ENTITY_HEALTH(m.handle, 0, false);
ENTITY::SET_ENTITY_HEALTH(m.handle, 0, false, 0);
entity::delete_entity(m.handle);
}
}
@ -38,7 +38,7 @@ namespace big
{
if (entity::take_control_of(m.handle))
{
ENTITY::SET_ENTITY_HEALTH(m.handle, 0, false);
ENTITY::SET_ENTITY_HEALTH(m.handle, 0, false, 0);
entity::delete_entity(m.handle);
}
}

View File

@ -134,7 +134,7 @@ namespace big
ENTITY::SET_ENTITY_ALPHA(ped_handle, ped_node.child("OpacityLevel").text().as_int(), false);
PED::SET_PED_MAX_HEALTH(ped_handle, ped_node.child("MaxHealth").text().as_float());
ENTITY::SET_ENTITY_HEALTH(ped_handle, ped_node.child("Health").text().as_float(), false);
ENTITY::SET_ENTITY_HEALTH(ped_handle, ped_node.child("Health").text().as_float(), false, 0);
PED::SET_PED_ARMOUR(ped_handle, ped_properties_node.child("Armour").text().as_float());
ENTITY::SET_ENTITY_PROOFS(ped_handle,
ped_node.child("IsBulletProof").text().as_bool(),

View File

@ -403,7 +403,7 @@ namespace big
ENTITY::FREEZE_ENTITY_POSITION(ent, frozenpos);
ENTITY::SET_ENTITY_VISIBLE(ent, visible, 0);
ENTITY::SET_ENTITY_MAX_HEALTH(ent, max_health);
ENTITY::SET_ENTITY_HEALTH(ent, health, 0);
ENTITY::SET_ENTITY_HEALTH(ent, health, 0, 0);
ENTITY::SET_ENTITY_HAS_GRAVITY(ent, gravity);
ENTITY::SET_ENTITY_INVINCIBLE(ent, invincible);
ENTITY::SET_ENTITY_PROOFS(ent, bullet_proof, collision_proof, explosion_proof, fire_proof, melee_proof, false, 0, 0);