Refactoring; Added all sounds from all TR; Removed trash legacy functions for skinning and meshes processing; New skinning procedure, without fixed arrays; Code cleaning; Decompiled LoadSamples; Dynamic size sound map;

This commit is contained in:
MontyTRC89 2020-03-02 09:49:11 +01:00
parent 49070202eb
commit ac7d6b95f7
32 changed files with 1510 additions and 279 deletions

View file

@ -751,16 +751,14 @@ void InitialiseLara(int restore)
Lara.gunStatus = LG_NO_ARMS;
Lara.skelebob = 0;
short gun;
short gun = WEAPON_NONE;
// TODO: we should script this behaviour
if (Objects[ID_HK_ITEM].loaded)
gun = WEAPON_HK;
else if (Objects[ID_PISTOLS_ITEM].loaded)
if (Objects[ID_PISTOLS_ITEM].loaded)
gun = WEAPON_PISTOLS;
else
gun = WEAPON_NONE; // avoid problem with empty gun level
Lara.lastGunType = Lara.gunType = Lara.requestGunType = gun;
LaraInitialiseMeshes();