summaryrefslogtreecommitdiffstats
path: root/src/objects/CutsceneObject.cpp
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2020-05-09 17:05:26 +0200
committeraap <aap@papnet.eu>2020-05-09 17:05:26 +0200
commit97d5698e0c669fd98911991b2ce3042fce376f06 (patch)
tree925f3f75e2b7d643fb7484018d484edc6a1e73d5 /src/objects/CutsceneObject.cpp
parentremoved cutscene heads (diff)
downloadre3-97d5698e0c669fd98911991b2ce3042fce376f06.tar
re3-97d5698e0c669fd98911991b2ce3042fce376f06.tar.gz
re3-97d5698e0c669fd98911991b2ce3042fce376f06.tar.bz2
re3-97d5698e0c669fd98911991b2ce3042fce376f06.tar.lz
re3-97d5698e0c669fd98911991b2ce3042fce376f06.tar.xz
re3-97d5698e0c669fd98911991b2ce3042fce376f06.tar.zst
re3-97d5698e0c669fd98911991b2ce3042fce376f06.zip
Diffstat (limited to 'src/objects/CutsceneObject.cpp')
-rw-r--r--src/objects/CutsceneObject.cpp44
1 files changed, 0 insertions, 44 deletions
diff --git a/src/objects/CutsceneObject.cpp b/src/objects/CutsceneObject.cpp
index 5c10d37d..bf39bd03 100644
--- a/src/objects/CutsceneObject.cpp
+++ b/src/objects/CutsceneObject.cpp
@@ -21,12 +21,6 @@ CCutsceneObject::CCutsceneObject(void)
ObjectCreatedBy = CUTSCENE_OBJECT;
m_fMass = 1.0f;
m_fTurnMass = 1.0f;
-
-#ifdef PED_SKIN
- bRenderHead = true;
- bRenderRightHand = true;
- bRenderLeftHand = true;
-#endif
}
void
@@ -85,47 +79,9 @@ CCutsceneObject::PreRender(void)
void
CCutsceneObject::Render(void)
{
-#ifdef PED_SKIN
- if(IsClumpSkinned(GetClump())){
- if(bRenderLeftHand) RenderLimb(BONE_Lhand);
- if(bRenderRightHand) RenderLimb(BONE_Rhand);
- if(bRenderHead) RenderLimb(BONE_head);
- }
-#endif
CObject::Render();
}
-#ifdef PED_SKIN
-void
-CCutsceneObject::RenderLimb(int32 bone)
-{
- RpAtomic *atomic;
- CPedModelInfo *mi = (CPedModelInfo *)CModelInfo::GetModelInfo(GetModelIndex());
- switch(bone){
- case BONE_head:
- atomic = mi->getHead();
- break;
- case BONE_Lhand:
- atomic = mi->getLeftHand();
- break;
- case BONE_Rhand:
- atomic = mi->getRightHand();
- break;
- default:
- return;
- }
- if(atomic){
- RpHAnimHierarchy *hier = GetAnimHierarchyFromSkinClump(GetClump());
- int idx = RpHAnimIDGetIndex(hier, bone);
- RwMatrix *mat = &RpHAnimHierarchyGetMatrixArray(hier)[idx];
- RwFrame *frame = RpAtomicGetFrame(atomic);
- *RwFrameGetMatrix(frame) = *mat;
- RwFrameUpdateObjects(frame);
- RpAtomicRender(atomic);
- }
-}
-#endif
-
bool
CCutsceneObject::SetupLighting(void)
{