1
0
mirror of https://github.com/td512/re3.git synced 2026-04-25 03:24:26 +00:00

Merge remote-tracking branch 'origin/miami' into lcs

# Conflicts:
#	src/animation/CutsceneMgr.cpp
#	src/control/CarCtrl.cpp
#	src/control/Script.cpp
#	src/control/Script2.cpp
#	src/core/Frontend.cpp
#	src/core/main.cpp
#	src/entities/Physical.cpp
#	src/peds/Ped.cpp
#	src/peds/PedAI.cpp
#	src/text/Messages.cpp
#	src/vehicles/Cranes.cpp
#	src/vehicles/Transmission.cpp
This commit is contained in:
Sergeanur
2021-01-22 15:04:09 +02:00
130 changed files with 92 additions and 669 deletions

View File

@@ -26,8 +26,6 @@
#include "Glass.h"
#include "SpecialFX.h"
//--MIAMI: file done
uint16 nPlayerInComboMove;
RpClump* flyingClumpTemp;
@@ -161,7 +159,6 @@ CheckForPedsOnGroundToAttack(CPed *attacker, CPed **pedOnGround)
return stateToReturn;
}
// --MIAMI: Done
void
CPed::SetPointGunAt(CEntity *to)
{
@@ -204,7 +201,6 @@ CPed::SetPointGunAt(CEntity *to)
Say(SOUND_PED_ATTACK);
}
// --MIAMI: Done
void
CPed::PointGunAt(void)
{
@@ -232,7 +228,6 @@ CPed::PointGunAt(void)
}
}
// --MIAMI: Done
void
CPed::ClearPointGunAt(void)
{
@@ -259,7 +254,6 @@ CPed::ClearPointGunAt(void)
}
}
// --MIAMI: Done
void
CPed::SetAttack(CEntity *victim)
{
@@ -442,7 +436,6 @@ CPed::SetAttack(CEntity *victim)
SetLookTimer(100);
}
// --MIAMI: Done
void
CPed::ClearAttack(void)
{
@@ -463,7 +456,6 @@ CPed::ClearAttack(void)
}
}
// --MIAMI: Done
void
CPed::ClearAttackByRemovingAnim(void)
{
@@ -499,7 +491,6 @@ CPed::ClearAttackByRemovingAnim(void)
}
}
// --MIAMI: Done
void
CPed::FinishedAttackCB(CAnimBlendAssociation *attackAssoc, void *arg)
{
@@ -579,7 +570,6 @@ CPed::FinishedAttackCB(CAnimBlendAssociation *attackAssoc, void *arg)
}
}
// --MIAMI: Done
void
CPed::FinishedReloadCB(CAnimBlendAssociation *reloadAssoc, void *arg)
{
@@ -613,7 +603,6 @@ CPed::FinishedReloadCB(CAnimBlendAssociation *reloadAssoc, void *arg)
}
}
// --MIAMI: Done
uint8
CPed::CheckForPointBlankPeds(CPed *pedToVerify)
{
@@ -657,7 +646,6 @@ CPed::CheckForPointBlankPeds(CPed *pedToVerify)
return NO_POINT_BLANK_PED;
}
// --MIAMI: Done except commented things
void
CPed::Attack(void)
{
@@ -1045,7 +1033,6 @@ CPed::Attack(void)
bIsAttacking = attackShouldContinue;
}
// --MIAMI: Done
void
CPed::StartFightAttack(uint8 buttonPressure)
{
@@ -1135,7 +1122,6 @@ CPed::StartFightAttack(uint8 buttonPressure)
nPlayerInComboMove = 0;
}
// --MIAMI: Done
void
CPed::StartFightDefend(uint8 direction, uint8 hitLevel, uint8 unk)
{
@@ -1385,7 +1371,6 @@ CPed::StartFightDefend(uint8 direction, uint8 hitLevel, uint8 unk)
}
}
// --MIAMI: Done
void
CPed::Fight(void)
{
@@ -1610,7 +1595,6 @@ CPed::Fight(void)
}
}
// --MIAMI: Done
int32
CPed::ChooseAttackAI(uint8 buttonPressure, bool fightWithWeapon)
{
@@ -1698,7 +1682,6 @@ CPed::ChooseAttackAI(uint8 buttonPressure, bool fightWithWeapon)
return FIGHTMOVE_SHUFFLE_F;
}
// --MIAMI: Done
int32
CPed::ChooseAttackPlayer(uint8 buttonPressure, bool fightWithWeapon)
{
@@ -1947,7 +1930,6 @@ CPed::ChooseAttackPlayer(uint8 buttonPressure, bool fightWithWeapon)
return choosenMove;
}
// --MIAMI: Done
void
CPed::EndFight(uint8 endType)
{
@@ -1982,7 +1964,6 @@ CPed::EndFight(uint8 endType)
m_nWaitTimer = 0;
}
// --MIAMI: Done
void
CPed::PlayHitSound(CPed *hitTo)
{
@@ -2060,7 +2041,6 @@ CPed::PlayHitSound(CPed *hitTo)
#endif
}
// --MIAMI: Done
bool
CPed::FightStrike(CVector &touchedNodePos, bool fightWithWeapon)
{
@@ -2157,7 +2137,6 @@ CPed::FightStrike(CVector &touchedNodePos, bool fightWithWeapon)
return false;
}
// --MIAMI: Done
void
CPed::FightHitPed(CPed *victim, CVector &touchPoint, CVector &dir, int16 piece)
{
@@ -2308,7 +2287,6 @@ CPed::FightHitPed(CPed *victim, CVector &touchPoint, CVector &dir, int16 piece)
}
}
// --MIAMI: Done
void
CPed::FinishFightMoveCB(CAnimBlendAssociation *animAssoc, void *arg)
{
@@ -2320,7 +2298,6 @@ CPed::FinishFightMoveCB(CAnimBlendAssociation *animAssoc, void *arg)
}
}
// --MIAMI: Done
void
CPed::LoadFightData(void)
{
@@ -2408,7 +2385,6 @@ CPed::LoadFightData(void)
}
}
// --MIAMI: Done
void
CPed::SetInvestigateEvent(eEventType event, CVector2D pos, float distanceToCountDone, uint16 time, float angle)
{
@@ -2431,7 +2407,6 @@ CPed::SetInvestigateEvent(eEventType event, CVector2D pos, float distanceToCount
}
// --MIAMI: Done
void
CPed::InvestigateEvent(void)
{
@@ -2637,7 +2612,6 @@ CPed::InvestigateEvent(void)
}
}
// --MIAMI: Done
void
CPed::ClearInvestigateEvent(void)
{
@@ -2663,7 +2637,6 @@ CPed::ClearInvestigateEvent(void)
SetMoveState(PEDMOVE_WALK);
}
// --MIAMI: Done
bool
CPed::InflictDamage(CEntity *damagedBy, eWeaponType method, float damage, ePedPieceTypes pedPiece, uint8 direction)
{
@@ -3235,7 +3208,6 @@ RecurseFrameChildrenToCloneCB(RwFrame *frame, void *data)
return newFrame;
}
// --MIAMI: Done
void
CPed::RemoveBodyPart(PedNode nodeId, int8 direction)
{
@@ -3266,7 +3238,6 @@ CPed::RemoveBodyPart(PedNode nodeId, int8 direction)
}
}
// --MIAMI: Done
CObject*
CPed::SpawnFlyingComponent(int pedNode, int8 direction)
{
@@ -3274,7 +3245,6 @@ CPed::SpawnFlyingComponent(int pedNode, int8 direction)
return nil;
}
// --MIAMI: Done
// III leftover and unused
void
CPed::ApplyHeadShot(eWeaponType weaponType, CVector pos, bool evenOnPlayer)
@@ -3317,14 +3287,12 @@ CPed::ApplyHeadShot(eWeaponType weaponType, CVector pos, bool evenOnPlayer)
}
}
// --MIAMI: Done
bool
CPed::IsPedHeadAbovePos(float zOffset)
{
return zOffset + GetPosition().z < GetNodePosition(PED_HEAD).z;
}
// --MIAMI: Done
bool
CPed::PlacePedOnDryLand(void)
{
@@ -3376,7 +3344,6 @@ CPed::PlacePedOnDryLand(void)
return true;
}
// --MIAMI: Done
void
CPed::CollideWithPed(CPed *collideWith)
{
@@ -3643,7 +3610,6 @@ CPed::CollideWithPed(CPed *collideWith)
}
}
// --MIAMI: Done
void
CPed::KillPedWithCar(CVehicle *car, float impulse)
{
@@ -3881,7 +3847,6 @@ CPed::KillPedWithCar(CVehicle *car, float impulse)
}
}
// --MIAMI: Done
void
CPed::DriveVehicle(void)
{
@@ -4189,7 +4154,6 @@ CPed::DriveVehicle(void)
}
}
// --MIAMI: Done
void
CPed::RemoveWeaponAnims(int unused, float animDelta)
{