mirror of
https://github.com/LostArtefacts/TRX.git
synced 2025-04-28 12:47:58 +03:00
38 lines
863 B
C
38 lines
863 B
C
#include "game/effect_routines/lara_effects.h"
|
|
|
|
#include "game/items.h"
|
|
#include "game/viewport.h"
|
|
#include "global/vars.h"
|
|
|
|
#include <libtrx/utils.h>
|
|
|
|
#include <stdint.h>
|
|
|
|
void FX_LaraNormal(ITEM *item)
|
|
{
|
|
item->current_anim_state = LS_STOP;
|
|
item->goal_anim_state = LS_STOP;
|
|
Item_SwitchToAnim(item, LA_STOP, 0);
|
|
g_Camera.type = CAM_CHASE;
|
|
Viewport_SetFOV(Viewport_GetUserFOV());
|
|
}
|
|
|
|
void FX_LaraHandsFree(ITEM *item)
|
|
{
|
|
g_Lara.gun_status = LGS_ARMLESS;
|
|
}
|
|
|
|
void FX_LaraDrawRightGun(ITEM *item)
|
|
{
|
|
int16_t *tmp_mesh;
|
|
OBJECT *obj = &g_Objects[item->object_id];
|
|
OBJECT *obj2 = &g_Objects[O_PISTOL_ANIM];
|
|
|
|
SWAP(
|
|
g_Meshes[obj->mesh_idx + LM_THIGH_R],
|
|
g_Meshes[obj2->mesh_idx + LM_THIGH_R], tmp_mesh);
|
|
|
|
SWAP(
|
|
g_Meshes[obj->mesh_idx + LM_HAND_R],
|
|
g_Meshes[obj2->mesh_idx + LM_HAND_R], tmp_mesh);
|
|
}
|