Sly 1:Damage: Difference between revisions

From SlyMods
Jump to navigation Jump to search
Content added Content deleted
m (Fixed typo)
(Added navbox)
Line 15: Line 15:


{{clear}}
{{clear}}
{{Navbox Sly 1}}
{{stub}}
{{stub}}

Revision as of 23:00, 23 July 2022

Damage
Game Mechanic
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.

Sly 1

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

In Sly Cooper and the Thievius Raccoonus, damage is dealt on contact with zap volumes. 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.

When Sly touches a zap volume, OnJtZap is called with a pointer to the JT and ZAP structs.[check] This function updates JT’s state and calls FCharmAvailable to check if the damage is the damage is fatal.

In the May 2002 Demo build there is a debug flag that makes zap volumes visible.