diff options
author | aap <aap@papnet.eu> | 2021-08-04 13:55:01 +0200 |
---|---|---|
committer | aap <aap@papnet.eu> | 2021-08-04 13:56:29 +0200 |
commit | 621f941ff777f6fb32db06c7eec3898292ce0e3b (patch) | |
tree | 47d5d481bea29bdfa4d3ae93bd0ed1778ff73bfe /src/peds | |
parent | 0338d4c393f45cd6aede7bc24190f9558c4a6f94 (diff) |
CVehicle done
Diffstat (limited to 'src/peds')
-rw-r--r-- | src/peds/Ped.cpp | 6 | ||||
-rw-r--r-- | src/peds/Ped.h | 2 |
2 files changed, 6 insertions, 2 deletions
diff --git a/src/peds/Ped.cpp b/src/peds/Ped.cpp index dc143098..fc57719d 100644 --- a/src/peds/Ped.cpp +++ b/src/peds/Ped.cpp @@ -287,7 +287,7 @@ CPed::CPed(uint32 pedType) : m_pedIK(this) bHeadStuckInCollision = false; bDeadPedInFrontOfCar = false; - m_gangFlags = 0xFF; + m_gangFlags = ~0; bStayInCarOnJack = false; @@ -307,6 +307,10 @@ CPed::CPed(uint32 pedType) : m_pedIK(this) bDonePositionOutOfCollision = false; bCanAttackPlayerWithCops = false; + bDropsWeaponsOnDeath = false; + b1A4_2 = true; + bAttacksPlayerWithCops = false; + if (CGeneral::GetRandomNumber() & 3) bHasACamera = false; else diff --git a/src/peds/Ped.h b/src/peds/Ped.h index bed1e2e1..63feeef5 100644 --- a/src/peds/Ped.h +++ b/src/peds/Ped.h @@ -587,7 +587,7 @@ public: uint16 m_gangFlags; // <- this one is uint16 uint8 bDropsWeaponsOnDeath : 1; - uint8 b1A4_2 : 1; + uint8 b1A4_2 : 1; // something to do with car hostages uint8 bAttacksPlayerWithCops : 1; uint8 b1A4_8 : 1; uint8 b1A4_10 : 1; |