Sly 1:ZAP: Difference between revisions

From SlyMods
Jump to navigation Jump to search
Content added Content deleted
(Added ZAPK enum)
(Updated enum table)
 
Line 3: Line 3:
| size=
| size=
}}
}}
'''ZAP''' is a data structure in {{Sly 1}}. It represents an area volume that will cause Sly to take damage upon entering it.
'''ZAP''' is a data structure in {{Sly 1}}. It represents an area volume that will cause Sly to take {{Sly 1|damage}} upon entering it.


== Fields ==
== Fields ==
{{Empty section}}


{{Struct top}}
{{Struct top}}
Line 18: Line 17:
The kind of damage dealt by the ZAP is determined by the ZAPK (ZAP kind) enum. It controls what animation {{Sly 1|JT}} does upon triggering the ZAP.
The kind of damage dealt by the ZAP is determined by the ZAPK (ZAP kind) enum. It controls what animation {{Sly 1|JT}} does upon triggering the ZAP.


{{Enum top}}
{| class="wikitable"
{{Enum value|Blunt|0x1|Causes knockback}}
|+ZAPK enum
{{Enum value|Electric|0x2}}
!'''Value''' !! '''Name'''
{{Enum value|Fire|0x3}}
|-
{{Enum value|Water|0x4|Drowning}}
|0x1 || Blunt
{{Enum value|Crush|0x5}}
|-
{{Enum value|Pit|0x6|Falling}}
|0x2 || Electric
{{Enum bottom}}
|-
|0x3 || Fire
|-
|0x4 || Water
|-
|0x5 || Crush
|-
|0x6 || Pit
|}


{{Navbox Sly 1}}
{{Navbox Sly 1}}

Latest revision as of 20:14, 27 September 2023

ZAP
Data Structure
GameSly Cooper and the Thievius Raccoonus

ZAP is a data structure in Sly Cooper and the Thievius Raccoonus. It represents an area volume that will cause Sly to take damage upon entering it.

Fields

Offset Size Type Name Notes
0x4
ZAPK
zapk Zap kind

ZAPK

The kind of damage dealt by the ZAP is determined by the ZAPK (ZAP kind) enum. It controls what animation JT does upon triggering the ZAP.

Name Value Description
Blunt 0x1 Causes knockback
Electric 0x2
Fire 0x3
Water 0x4 Drowning
Crush 0x5
Pit 0x6 Falling