mirror of
https://github.com/GTAmodding/re3.git
synced 2024-12-25 08:05:42 +00:00
get rid of all PED_SKIN defines
This commit is contained in:
parent
75a9976cbc
commit
c17ccc50ab
12 changed files with 7 additions and 47 deletions
|
@ -17,19 +17,13 @@ struct AnimBlendFrameData
|
|||
|
||||
uint8 flag;
|
||||
RwV3d resetPos;
|
||||
#ifdef PED_SKIN
|
||||
union {
|
||||
RwFrame *frame;
|
||||
RpHAnimStdInterpFrame *hanimFrame;
|
||||
};
|
||||
int32 nodeID;
|
||||
#else
|
||||
RwFrame *frame;
|
||||
#endif
|
||||
};
|
||||
#ifndef PED_SKIN
|
||||
VALIDATE_SIZE(AnimBlendFrameData, 0x14);
|
||||
#endif
|
||||
VALIDATE_SIZE(AnimBlendFrameData, 0x18);
|
||||
|
||||
|
||||
class CAnimBlendClumpData
|
||||
|
@ -44,8 +38,6 @@ public:
|
|||
CAnimBlendClumpData(void);
|
||||
~CAnimBlendClumpData(void);
|
||||
void SetNumberOfFrames(int n);
|
||||
#ifdef PED_SKIN
|
||||
void SetNumberOfBones(int n) { SetNumberOfFrames(n); }
|
||||
#endif
|
||||
void ForAllFrames(void (*cb)(AnimBlendFrameData*, void*), void *arg);
|
||||
};
|
||||
|
|
|
@ -10,9 +10,7 @@ CAnimBlendSequence::CAnimBlendSequence(void)
|
|||
numFrames = 0;
|
||||
keyFrames = nil;
|
||||
keyFramesCompressed = nil;
|
||||
#ifdef PED_SKIN
|
||||
boneTag = -1;
|
||||
#endif
|
||||
}
|
||||
|
||||
CAnimBlendSequence::~CAnimBlendSequence(void)
|
||||
|
|
|
@ -49,10 +49,6 @@ public:
|
|||
// void CompressKeyframes(void);
|
||||
// void RemoveUncompressedData(void);
|
||||
|
||||
#ifdef PED_SKIN
|
||||
void SetBoneTag(int tag) { boneTag = tag; }
|
||||
#endif
|
||||
};
|
||||
#ifndef PED_SKIN
|
||||
VALIDATE_SIZE(CAnimBlendSequence, 0x2C);
|
||||
#endif
|
||||
VALIDATE_SIZE(CAnimBlendSequence, 0x30);
|
||||
|
|
|
@ -1255,13 +1255,10 @@ CAnimManager::CreateAnimAssocGroups(void)
|
|||
group->firstAnimId = def->animDescs[0].animId;
|
||||
group->CreateAssociations(def->blockName, clump, def->animNames, def->numAnims);
|
||||
for(j = 0; j < group->numAssociations; j++)
|
||||
|
||||
// GetAnimation(i) in III (but it's in LoadAnimFiles), GetAnimation(group->animDesc[j].animId) in VC
|
||||
group->GetAnimation(def->animDescs[j].animId)->flags |= def->animDescs[j].flags;
|
||||
#ifdef PED_SKIN
|
||||
if(IsClumpSkinned(clump))
|
||||
RpClumpForAllAtomics(clump, AtomicRemoveAnimFromSkinCB, nil);
|
||||
#endif
|
||||
RpClumpDestroy(clump);
|
||||
}
|
||||
}
|
||||
|
@ -1352,10 +1349,8 @@ CAnimManager::LoadAnimFile(RwStream *stream, bool compress, char (*somename)[32]
|
|||
ROUNDSIZE(anim.size);
|
||||
RwStreamRead(stream, buf, anim.size);
|
||||
int numFrames = *(int*)(buf+28);
|
||||
#ifdef PED_SKIN
|
||||
if(anim.size == 44)
|
||||
seq->SetBoneTag(*(int*)(buf+40));
|
||||
#endif
|
||||
seq->SetName(buf);
|
||||
if(numFrames == 0)
|
||||
continue;
|
||||
|
|
|
@ -84,10 +84,8 @@ typedef uint16_t wchar;
|
|||
|
||||
#include "config.h"
|
||||
|
||||
#ifdef PED_SKIN
|
||||
#include <rphanim.h>
|
||||
#include <rpskin.h>
|
||||
#endif
|
||||
|
||||
#ifdef __GNUC__
|
||||
#define TYPEALIGN(n) __attribute__ ((aligned (n)))
|
||||
|
|
|
@ -346,7 +346,6 @@ static_assert(false, "SUPPORT_XBOX_SCRIPT and SUPPORT_MOBILE_SCRIPT are mutually
|
|||
#define CAMERA_PICKUP
|
||||
|
||||
// Peds
|
||||
#define PED_SKIN // support for skinned geometry on peds
|
||||
#define CANCELLABLE_CAR_ENTER
|
||||
|
||||
// Camera
|
||||
|
|
|
@ -171,9 +171,7 @@ public:
|
|||
void PruneReferences(void);
|
||||
void CleanUpOldReference(CEntity **pent);
|
||||
|
||||
#ifdef PED_SKIN
|
||||
void UpdateRpHAnim(void);
|
||||
#endif
|
||||
|
||||
void PreRenderForGlassWindow(void);
|
||||
void AddSteamsFromGround(CVector *unused);
|
||||
|
|
|
@ -23,6 +23,4 @@ public:
|
|||
void EnterVacantNearbyCars(void);
|
||||
bool IsOnStealWishList(int32);
|
||||
};
|
||||
#ifndef PED_SKIN
|
||||
VALIDATE_SIZE(CCivilianPed, 0x53C);
|
||||
#endif
|
||||
//VALIDATE_SIZE(CCivilianPed, 0x53C);
|
||||
|
|
|
@ -48,6 +48,4 @@ public:
|
|||
void ProcessStingerCop(void);
|
||||
};
|
||||
|
||||
#ifndef PED_SKIN
|
||||
VALIDATE_SIZE(CCopPed, 0x558);
|
||||
#endif
|
||||
VALIDATE_SIZE(CCopPed, 0x62C);
|
||||
|
|
|
@ -36,6 +36,4 @@ public:
|
|||
void FiremanAI(void);
|
||||
void MedicAI(void);
|
||||
};
|
||||
#ifndef PED_SKIN
|
||||
VALIDATE_SIZE(CEmergencyPed, 0x554);
|
||||
#endif
|
||||
//VALIDATE_SIZE(CEmergencyPed, 0x554);
|
||||
|
|
|
@ -264,9 +264,7 @@ CPed::CPed(uint32 pedType) : m_pedIK(this)
|
|||
bVehExitWillBeInstant = false;
|
||||
bHasAlreadyBeenRecorded = false;
|
||||
bFallenDown = false;
|
||||
#ifdef PED_SKIN
|
||||
bDontAcceptIKLookAts = false;
|
||||
#endif
|
||||
bReachedAttractorHeadingTarget = false;
|
||||
bTurnedAroundOnAttractor = false;
|
||||
#ifdef KANGAROO_CHEAT
|
||||
|
@ -365,9 +363,7 @@ CPed::CPed(uint32 pedType) : m_pedIK(this)
|
|||
m_vehicleInAccident = nil;
|
||||
m_attractor = nil;
|
||||
m_positionInQueue = -1;
|
||||
#ifdef PED_SKIN
|
||||
m_pWeaponModel = nil;
|
||||
#endif
|
||||
m_delayedSoundID = -1;
|
||||
m_delayedSoundTimer = 0;
|
||||
CPopulation::UpdatePedCount((ePedType)m_nPedType, false);
|
||||
|
@ -4797,11 +4793,7 @@ CPed::PreRender(void)
|
|||
CTimeCycle::m_fShadowFrontX[CTimeCycle::m_CurrentStoredValue], CTimeCycle::m_fShadowFrontY[CTimeCycle::m_CurrentStoredValue],
|
||||
CTimeCycle::m_fShadowSideX[CTimeCycle::m_CurrentStoredValue], CTimeCycle::m_fShadowSideY[CTimeCycle::m_CurrentStoredValue]);
|
||||
|
||||
#ifdef PED_SKIN
|
||||
if(IsClumpSkinned(GetClump())){
|
||||
UpdateRpHAnim();
|
||||
}
|
||||
#endif
|
||||
|
||||
bool bIsWindModifierTurnedOn = false;
|
||||
float fAnyDirectionShift = 1.0f;
|
||||
|
|
|
@ -108,6 +108,4 @@ public:
|
|||
static const uint32 nSaveStructSize;
|
||||
};
|
||||
|
||||
#ifndef PED_SKIN
|
||||
VALIDATE_SIZE(CPlayerPed, 0x5F0);
|
||||
#endif
|
||||
//VALIDATE_SIZE(CPlayerPed, 0x5F0);
|
||||
|
|
Loading…
Reference in a new issue