TombEngine/TR5Main/Game/hair.cpp
TokyoSU c89394d528 Fix Swamp Flag, Added Old/New Object ID
- fixed swamp flag.
- fixed phd_PopDxMatrix() not being used anymore.
- deleted ENV_FLAG_SFX_ALWAYS and ENV_FLAG_PITCH_SHIFT and use the sound.h define instead.
- fixed loadlevel update progress not correct at 90%.
- updated GAME_OBJECT_ID, now you can use the new one, but TR5_DEBUG is defined by default to use the old one !
2019-12-31 14:56:02 +01:00

32 lines
No EOL
600 B
C++

#include "hair.h"
#include "..\Global\global.h"
void InitialiseHair()
{
int* bone;
FirstHair = 1;
bone = &Bones[Objects[ID_LARA_HAIR].boneIndex];
Hairs[0].pos.yRot = 0;
Hairs[0].pos.xRot = -0x4000;
// normal hair
for (int i = 1; i < HAIR_SEGMENTS; i++, bone += 4)
{
Hairs[i].pos.xPos = *(bone + 1);
Hairs[i].pos.yPos = *(bone + 2);
Hairs[i].pos.zPos = *(bone + 3);
Hairs[i].pos.xRot = -0x4000;
Hairs[i].pos.yRot = 0;
Hairs[i].pos.zRot = 0;
//Hairs[i].hvel.x = 0;
//Hairs[i].hvel.y = 0;
//Hairs[i].hvel.z = 0;
}
}
void Inject_Hair()
{
}