mirror of
https://github.com/TombEngine/TombEngine.git
synced 2025-05-01 09:18:00 +03:00
31 lines
512 B
C++
31 lines
512 B
C++
![]() |
#include "framework.h"
|
||
|
#include "tr4_laradouble.h"
|
||
|
#include "items.h"
|
||
|
#include "level.h"
|
||
|
#include "sound.h"
|
||
|
#include "box.h"
|
||
|
#include "lara.h"
|
||
|
|
||
|
void InitialiseLaraDouble(short itemNum)
|
||
|
{
|
||
|
ClearItem(itemNum);
|
||
|
}
|
||
|
|
||
|
void LaraDoubleControl(short itemNum)
|
||
|
{
|
||
|
ITEM_INFO* item = &Items[itemNum];
|
||
|
|
||
|
SoundEffect(SFX_TR4_METAL_SCRAPE_LOOP, &item->pos, 0);
|
||
|
|
||
|
if (CreatureActive(itemNum))
|
||
|
{
|
||
|
if (item->hitStatus)
|
||
|
{
|
||
|
LaraItem->hitPoints += item->hitPoints - 1000;
|
||
|
}
|
||
|
|
||
|
item->hitPoints = 1000;
|
||
|
|
||
|
AnimateItem(item);
|
||
|
}
|
||
|
}
|