Sly 1:Damage

From SlyMods
Jump to navigation Jump to search
Damage
Game Mechanic
Sly taking PIT damage from a ZAP volume
GameSly Cooper and the Thievius Raccoonus

In Sly 1, the player takes damage on contact with ZAP volumes. Taking damage always results in death, unless you have a lucky charm.

ZAP volumes

In Sly Cooper and the Thievius Raccoonus, Zap volumes are placed around level hazards and spawned in by guard attacks. The damage type for a zap volume can be one of several values as dictated by the ZAPK[check] enum.

The UpdateJtActive function checks whether Sly is touching a zap volume. If so, his JTS is set to JTS::ZAP. Subsequently, FCharmAvailable is called during his update function to check if the damage is the damage is fatal.

Lucky charms

The function FCharmAvailable is called each time Sly takes damage.

In either case, the function returns true and the charm is used to save JT from dying. If the player has 0 charms and the cheat is disabled, the function returns false.

Death

Some zap geometry being rendered in the Sly 1 May 2002 demo

May 2002 demo

In the May 2002 Demo build there is a debug flag that makes zap volumes visible. The zap volumes are rendered as red wireframe boxes, and Sly takes damage upon coming into contact with them. The flag is located at address 0x28C174 and it can be set to 1 to make the zap volumes visible.