From 621f941ff777f6fb32db06c7eec3898292ce0e3b Mon Sep 17 00:00:00 2001 From: aap Date: Wed, 4 Aug 2021 13:55:01 +0200 Subject: CVehicle done --- src/peds/Ped.cpp | 6 +++++- src/peds/Ped.h | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'src/peds') 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; -- cgit v1.2.3