mirror of
https://github.com/TombEngine/TombEngine.git
synced 2025-05-11 21:16:55 +03:00

- 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 !
32 lines
No EOL
600 B
C++
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()
|
|
{
|
|
|
|
} |