Sly 2:ZAP

From SlyMods
Jump to navigation Jump to search
ZAP
Data Structure
GameSly 2: Band of Thieves

ZAP is a Sly 2 struct representing a volume that deals damage to an entity. It has a damage type and amount. They are often referred to as "damage planes" or "damage volumes".

Fields

Offset Size Type Name Description
0x0 4
unknown*
Probably vtable*
0x4 4
unknown*
Unknown pointer
0x8 4
float
Unknown float
0xc 2
short
Unknown signed short (sometimes -1, other times large values
0xe 2
short
Unknown short
0x10 4
float
damage radius? Affects the size of the volume
0x14 2
short
damage amount 2-byte val (negative deals damage, positive heals)
0x16 2
short
unkonwn Unknown 2-byte val
0x18 4
uint
damage type Bitfield
0x20 16
VECTOR
Unknown
0x30 16
VECTOR
Unknown
0x40 16
VECTOR
Unknown
0x50 16
VECTOR
Unknown

Damage types

The possible damage types are represented by a bitfield. All known values the game uses are as follows.

Name Value Description
Instakill 0xFFFFFFFF Merely does increased damage to bosses
Normal attack 0x2
X+Square attack 0x4
Spin attack 0x10
X+Triangle attack 0x80
Object impact 0x202 As if something was thrown at the target
Knockback 0x100
Flatten 0x400
Electrocute 0x800
Fire 0x1000
Drown 0x2000
Fall 0x4000
Drunk 0x8000
Sleep 0x80000 Must be the finishing blow
Passive 0x100000