Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
trs:savegame:tr5 [2017/03/21 20:24] – created zdimension | trs:savegame:tr5 [2018/10/12 17:49] (current) – zdimension | ||
---|---|---|---|
Line 3: | Line 3: | ||
Heavily based on the TR4 savegame format | Heavily based on the TR4 savegame format | ||
<code cpp> | <code cpp> | ||
- | struct | + | struct |
{ | { | ||
- | uint8_t | + | uint8_t |
- | int32_t | + | int32_t |
- | uint16_t | + | uint16_t |
- | uint16_t | + | uint16_t |
- | uint16_t | + | uint16_t |
- | uint16_t | + | uint16_t |
- | int16_t | + | |
- | int16_t | + | |
- | int16_t | + | int16_t |
- | int16_t | + | int16_t |
- | /* 0 None | + | int16_t |
- | * 1 Pistols | + | |
- | * 2 Desert Eagle | + | |
- | * 3 Uzis | + | |
- | * 4 Shotgun | + | |
- | * 5 H&K | + | |
- | * 6 Grappling Gun | + | |
- | */ | + | |
- | int16_t | + | |
- | | + | int16_t |
- | int16_t | + | |
- | | + | int16_t |
- | int16_t | + | |
- | | + | int16_t |
- | int16_t | + | |
- | int16_t | + | int16_t |
- | | + | int16_t |
- | | + | |
- | | + | |
- | int16_t | + | int16_t back_gun; |
- | uint8_t | + | int16_t flare_frame; |
- | | + | |
- | | + | int16_t |
- | | + | uint8_t |
- | | + | uint8_t wet[15]; |
- | | + | |
- | | + | uint16_t Unused1 : 1; |
- | | + | |
- | uint8_t Binoculars; | + | uint16_t burn : 1; |
- | | + | uint16_t keep_ducked : 1; |
- | | + | |
- | | + | uint16_t CanMonkeySwing : 1; |
- | | + | |
- | | + | uint16_t Gassed : 1; |
- | | + | uint16_t BurnSmoke : 1; |
- | | + | |
- | | + | uint16_t has_fired : 1; |
- | | + | |
- | | + | uint16_t LitTorch : 1; |
- | | + | uint16_t IsClimbing : 1; |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | int mesh_effects; |
- | | + | |
- | | + | |
- | | + | int16_t target_angles[2]; |
- | | + | |
- | int16_t | + | |
- | int16_t | + | |
- | int16_t | + | |
- | int16_t | + | |
- | int16_t | + | |
- | int16_t | + | |
- | int16_t | + | |
- | int16_t | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | int8_t RopeDirection; |
- | uint8_t | + | |
- | uint8_t | + | int16_t |
- | uint8_t | + | int16_t |
- | uint8_t | + | int16_t |
- | | + | int16_t |
- | | + | int32_t RopeDFrame; |
- | struct | + | int32_t RopeFrame; |
+ | uint16_t RopeFrameRate; | ||
+ | uint16_t RopeY; | ||
+ | int32_t RopePtr; | ||
+ | void* GeneralPtr; | ||
+ | int RopeOffset; | ||
+ | uint32_t RopeDownVel; | ||
+ | int8_t RopeFlag; | ||
+ | int8_t MoveCount; | ||
+ | int RopeCount; | ||
+ | int8_t skelebob; | ||
+ | int8_t pistols_type_carried; | ||
+ | int8_t uzis_type_carried; | ||
+ | int8_t shotgun_type_carried; | ||
+ | int8_t crossbow_type_carried; | ||
+ | int8_t hk_type_carried; | ||
+ | int8_t sixshooter_type_carried; | ||
+ | int8_t lasersight; | ||
+ | int8_t silencer; | ||
+ | int8_t binoculars; | ||
+ | int8_t crowbar; | ||
+ | int8_t examine1; | ||
+ | int8_t examine2; | ||
+ | int8_t examine3; | ||
+ | int8_t wetcloth; | ||
+ | int8_t bottle; | ||
+ | int8_t puzzleitems[12]; | ||
+ | uint16_t puzzleitemscombo; | ||
+ | | ||
+ | uint16_t keyitemscombo; | ||
+ | uint16_t pickupitems; | ||
+ | uint16_t pickupitemscombo; | ||
+ | | ||
+ | int16_t num_large_medipack; | ||
+ | int16_t num_flares; | ||
+ | int16_t | ||
+ | int16_t num_uzi_ammo; | ||
+ | int16_t num_revolver_ammo; | ||
+ | int16_t | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | uint8_t | ||
+ | uint8_t | ||
+ | uint8_t | ||
+ | uint8_t | ||
+ | | ||
+ | |||
+ | struct | ||
{ | { | ||
- | | + | |
- | | + | |
- | uint8_t | + | uint32_t ammoUsed; |
- | uint8_t | + | uint32_t ammoHits; |
- | } FogColour; | + | uint16_t kills; |
- | int8_t | + | uint8_t |
- | uint8_t | + | uint8_t |
+ | } levelStats, gameStats; | ||
+ | int16_t weaponObject; | ||
+ | int16_t weaponAnim; | ||
+ | int16_t weaponFrame; | ||
+ | int16_t weaponCurrent; | ||
+ | int16_t weaponGoal; | ||
+ | uint32_t cutSceneTriggered1; | ||
+ | uint32_t cutSceneTriggered2; | ||
+ | int8_t | ||
+ | uint8_t | ||
+ | uint8_t campaignSecrets[4]; | ||
+ | uint8_t tlCount; | ||
}; | }; | ||
</ | </ |