This commit is contained in:
vrockwave
2025-06-30 02:56:33 -07:00
parent d7dd1354d2
commit f96937a73e
5 changed files with 8 additions and 11 deletions
+3 -4
View File
@@ -2711,10 +2711,9 @@ int8 CRunningScript::ProcessCommands200To299(int32 command)
CollectParameters(&m_nIp, 1);
CPed* ped = CPools::GetPedPool()->GetAt(ScriptParams[0]);
script_assert(ped);
CVehicle* pCurrent = nil;
if (ped->bInVehicle) {
pCurrent = ped->m_pMyVehicle;
}
if(!ped->bInVehicle)
return 0;
CVehicle* pCurrent = ped->m_pMyVehicle;
script_assert(pCurrent); // GetIndex(0) doesn't look good
int handle = CPools::GetVehiclePool()->GetIndex(pCurrent);
if (handle != CTheScripts::StoreVehicleIndex && m_bIsMissionScript){
+1 -1
View File
@@ -371,7 +371,7 @@ enum Config {
#define LEGACY_MENU_OPTIONS // i.e. frame sync(vsync)
#define MUCH_SHORTER_OUTRO_SCREEN
// #define XBOX_MESSAGE_SCREEN // Blue background, no "saved successfully press OK" screen etc.
# define CUSTOM_FRONTEND_OPTIONS
#define CUSTOM_FRONTEND_OPTIONS
# ifdef CUSTOM_FRONTEND_OPTIONS
# define GRAPHICS_MENU_OPTIONS // otherwise Display settings will be scrollable
+1 -1
View File
@@ -236,7 +236,7 @@ CPhysical::GetBoundRect(void)
void
CPhysical::AddToMovingList(void)
{
if (!bIsStaticWaitingForCollision)
if(!bIsStaticWaitingForCollision && !CWorld::GetMovingEntityList().FindItem(this))
m_movingListNode = CWorld::GetMovingEntityList().InsertItem(this);
}
+1 -1
View File
@@ -1369,7 +1369,7 @@ CPlayerPed::ProcessPlayerWeapon(CPad *padUsed)
SetAimFlag(limitedCam);
SetLookTimer(INT32_MAX);
((CPlayerPed*)this)->m_fFPSMoveHeading = TheCamera.Find3rdPersonQuickAimPitch();
if (m_nPedState != PED_ATTACK && m_nPedState != PED_AIM_GUN) {
if (m_nPedState != PED_ATTACK && m_nPedState != PED_AIM_GUN && m_nPedState != PED_FIGHT) {
// This is a seperate ped state just for pointing gun. Used for target button
SetPointGunAt(nil);
}
+2 -4
View File
@@ -1587,15 +1587,13 @@ CWeapon::DoBulletImpact(CEntity *shooter, CEntity *victim,
if ( !victimObject->bInfiniteMass && victimObject->m_fCollisionDamageMultiplier < 99.9f)
{
bool notStatic = !victimObject->GetIsStatic();
if (notStatic && victimObject->m_fUprootLimit <= 0.0f)
if(victimObject->GetIsStatic() && victimObject->m_fUprootLimit <= 0.0f)
{
victimObject->SetIsStatic(false);
victimObject->AddToMovingList();
}
notStatic = !victimObject->GetIsStatic();
if (!notStatic)
if(!victimObject->GetIsStatic())
{
CVector moveForce = point->normal * -4.0f;
victimObject->ApplyMoveForce(moveForce.x, moveForce.y, moveForce.z);