summaryrefslogtreecommitdiffstats
path: root/src/peds/Ped.cpp
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2020-05-22 01:42:04 +0200
committerNikolay Korolev <nickvnuk@gmail.com>2020-05-22 01:42:04 +0200
commit864847a6fe5461581232a68b64d98dd15d035330 (patch)
tree0d57b42ff992fa7afe651f6e74da950168aa030a /src/peds/Ped.cpp
parentscript revision (diff)
downloadre3-864847a6fe5461581232a68b64d98dd15d035330.tar
re3-864847a6fe5461581232a68b64d98dd15d035330.tar.gz
re3-864847a6fe5461581232a68b64d98dd15d035330.tar.bz2
re3-864847a6fe5461581232a68b64d98dd15d035330.tar.lz
re3-864847a6fe5461581232a68b64d98dd15d035330.tar.xz
re3-864847a6fe5461581232a68b64d98dd15d035330.tar.zst
re3-864847a6fe5461581232a68b64d98dd15d035330.zip
Diffstat (limited to 'src/peds/Ped.cpp')
-rw-r--r--src/peds/Ped.cpp15
1 files changed, 13 insertions, 2 deletions
diff --git a/src/peds/Ped.cpp b/src/peds/Ped.cpp
index 539bbfaf..081ea91e 100644
--- a/src/peds/Ped.cpp
+++ b/src/peds/Ped.cpp
@@ -603,14 +603,25 @@ CPed::CPed(uint32 pedType) : m_pedIK(this)
bCarPassenger = false;
bMiamiViceCop = false;
bMoneyHasBeenGivenByScript = false;
+ bHasBeenPhotographed = false;
bIsDrowning = false;
- bCanDrownInWater = true;
+ bDrownsInWater = true;
#ifdef VC_PED_PORTS
bHeadStuckInCollision = false;
#endif
bIsPlayerFriend = true;
bDeadPedInFrontOfCar = false;
+ bStayInCarOnJack = false;
+
+ bDontFight = false;
+ bDoomAim = true;
+ bCanBeShotInVehicle = true;
+ bIgnoreThreatsBehindObjects = false;
+
+ bNeverEverTargetThisPed = false;
+
+ bBoughtIceCream = false;
if ((CGeneral::GetRandomNumber() & 3) == 0)
bHasACamera = true;
@@ -4116,7 +4127,7 @@ CPed::InflictDamage(CEntity *damagedBy, eWeaponType method, float damage, ePedPi
if (DyingOrDead())
return false;
- if (method == WEAPONTYPE_DROWNING && !bCanDrownInWater)
+ if (method == WEAPONTYPE_DROWNING && !bDrownsInWater)
return false;
if (!bUsesCollision && (!bInVehicle || m_nPedState != PED_DRIVING) && method != WEAPONTYPE_DROWNING)