mirror of
https://github.com/TombEngine/TombEngine.git
synced 2025-04-30 08:47:58 +03:00

- moved InitialiseHair to hair.cpp. - changed while() to for() in LoadObjects() in inventory. - fixed INV_OBJECT_PASSPORT name (old: INV_OBJECT_PASSAPORT). - changed objectMip to zoneType. while be used in InitialiseSlot. - renamed usingDrawanimatingItem to use usingDrawAnimatingItem.
32 lines
No EOL
595 B
C++
32 lines
No EOL
595 B
C++
#include "hair.h"
|
|
#include "..\Global\global.h"
|
|
|
|
void InitialiseHair()
|
|
{
|
|
int* bone;
|
|
|
|
FirstHair = 1;
|
|
bone = &Bones[Objects[ID_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()
|
|
{
|
|
|
|
} |