mirror of
https://github.com/LostArtefacts/TRX.git
synced 2025-04-28 12:47:58 +03:00
tr2/skidoo: use common approach to kill enemies
This treats killing enemies with the skidoo as though they were shot down, so that statistics can remain accurate. It also means that monks will become angry if one is run over. Resolves #1772.
This commit is contained in:
parent
78e60c2d2c
commit
04d75ac8a5
3 changed files with 4 additions and 2 deletions
|
@ -56,6 +56,7 @@
|
|||
- fixed the dragon counting as more than one kill if allowed to revive (#1771)
|
||||
- fixed a crash when firing grenades at Xian guards in statue form (#1561)
|
||||
- fixed harpoon bolts damaging inactive enemies (#1804)
|
||||
- fixed enemies that are run over by the skidoo not being counted in the statistics (#1772)
|
||||
|
||||
## [0.5](https://github.com/LostArtefacts/TRX/compare/afaf12a...tr2-0.5) - 2024-10-08
|
||||
- added `/sfx` command
|
||||
|
|
|
@ -38,6 +38,7 @@ decompilation process. We recognize that there is much work to be done.
|
|||
|
||||
#### Statistics
|
||||
- fixed the dragon counting as more than one kill if allowed to revive
|
||||
- fixed enemies that are run over by the skidoo not being counted in the statistics
|
||||
|
||||
#### Visuals
|
||||
|
||||
|
|
|
@ -136,11 +136,11 @@ static bool M_CheckBaddieCollision(ITEM *const item, ITEM *const skidoo)
|
|||
if (item->current_anim_state == TRAP_ACTIVATE) {
|
||||
Lara_TakeDamage(100, true);
|
||||
}
|
||||
} else {
|
||||
} else if (object->intelligent && item->status == IS_ACTIVE) {
|
||||
DoLotsOfBlood(
|
||||
item->pos.x, skidoo->pos.y - STEP_L, item->pos.z, skidoo->speed,
|
||||
skidoo->rot.y, item->room_num, 3);
|
||||
item->hit_points = 0;
|
||||
Gun_HitTarget(item, NULL, item->hit_points);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue