Site Tools


ds1-refmat:param:objectparam

ObjectParam

Fields

Field Type Offset Description Notes
hp s16 0x0 The amount of damage this object can receive before breaking. -1 means it will never break from damage.
defense u16 0x2 The threshold compared against AtkParam field atkObj. If object damage surpasses object defense, the object will take damage. Otherwise, no damage occurs.
extRefTexId s16 0x4 The map ID of the TPF in which to source the external textures this object uses (if it uses them).
materialId s16 0x6 The material to use when this object is hit, determines the visual effect and sound that occurs. -1 means it will inherit the material used for the collision it belongs to.
animBreakIdMax u8 0x8 The maximum ID in the animation range to use for object destruction for this object.
isCamHit u8 0x9 [0] If ON, a camera will collide with this object. This field is a boolean.
isBreakByPlayerCollide u8 0x9 [1] If ON, this object can be destroyed when collided with by a player. This field is a boolean.
isAnimBreak u8 0x9 [2] If ON, this object will use a destruction animation when destroyed. This field is a boolean.
isPenetrationBulletHit u8 0x9 [3] If ON, projectiles with isPenetrate enabled will collide with this object. This field is a boolean.
isChrHit u8 0x9 [4] If ON, characters will collide with this object and their attacks will hit this object. This field is a boolean.
isAttackBacklash u8 0x9 [5] If ON, incoming attacks can deflect off of the object (attacks can deflect anyway if object is invincible). This field is a boolean.
isDisableBreakForFirstAppear u8 0x9 [6] If ON, the object will break when the game is loaded if the player collides with the object upon spawning. This field is a boolean.
isLadder u8 0x9 [7] If ON, this object is treated as a ladder. This field is a boolean.
isAnimPauseOnRemoPlay u8 0xa [0] If ON, any object animation active is paused during a cutscene. This field is a boolean.
isDamageNoHit u8 0xa [1] If ON, damage will not count as a hit. This field is a boolean.
isMoveObj u8 0xa [2] If ON, is treated as a moving object. This field is a boolean.
pad_1 dummy8 0xa [3-7] This field is padding.
defaultLodParamId s8 0xb The default LOD parameter to use for this character.
breakSfxId s32 0xc The SFX to use upon object destruction for this object. This field takes an Particle ID.
ds1-refmat/param/objectparam.txt · Last modified: by admin