From c1bd90c7ddcb28c0ba5ebe66ab90319ffeee6d8b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?eray=20or=C3=A7unus?= Date: Sun, 16 Jun 2019 21:39:48 +0300 Subject: CPed fixes and needed functions for further commits MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: eray orçunus --- src/PedStat.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 src/PedStat.h (limited to 'src/PedStat.h') diff --git a/src/PedStat.h b/src/PedStat.h new file mode 100644 index 00000000..23c75a2b --- /dev/null +++ b/src/PedStat.h @@ -0,0 +1,20 @@ +#pragma once +#include "common.h" + +struct PedStat { + uint32 m_id; + char m_name[24]; + int32 m_fleeDistance; + int32 m_headingChangeRate; + int8 m_fear; + int8 m_temper; + int8 m_lawfulness; + int8 m_sexiness; + int32 m_attackStrength; + int32 m_defendWeakness; + int16 m_flags; + uint8 unknown1; + uint8 unknown2; +}; + +static_assert(sizeof(PedStat) == 0x34, "PedStat: error"); \ No newline at end of file -- cgit v1.2.3 From 93223b2baca75e53b88ca5d5a7ac7a2412368657 Mon Sep 17 00:00:00 2001 From: aap Date: Sun, 16 Jun 2019 23:12:14 +0200 Subject: some more cleanup --- src/PedStat.h | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'src/PedStat.h') diff --git a/src/PedStat.h b/src/PedStat.h index 23c75a2b..3045e494 100644 --- a/src/PedStat.h +++ b/src/PedStat.h @@ -1,7 +1,7 @@ #pragma once -#include "common.h" -struct PedStat { +struct PedStat +{ uint32 m_id; char m_name[24]; int32 m_fleeDistance; @@ -13,8 +13,5 @@ struct PedStat { int32 m_attackStrength; int32 m_defendWeakness; int16 m_flags; - uint8 unknown1; - uint8 unknown2; }; - -static_assert(sizeof(PedStat) == 0x34, "PedStat: error"); \ No newline at end of file +static_assert(sizeof(PedStat) == 0x34, "PedStat: error"); -- cgit v1.2.3