mtasa-blue icon indicating copy to clipboard operation
mtasa-blue copied to clipboard

Add damageable objects support

Open TheNormalnij opened this issue 1 year ago • 2 comments

Damageable models can be loaded via a IMG, but they cause random crashes. This PR adds proper support for damageable models.

local modelId = engineRequestModel('object-damageable')

TheNormalnij avatar Oct 13 '24 19:10 TheNormalnij

Do we really need another type "object-damageable"?

Fernando-A-Rocha avatar Oct 13 '24 20:10 Fernando-A-Rocha

Do we really need another type "object-damageable"?

This is last missing type from the game world, that can not be allocated. SA uses IS_DAMAGEABLE model flag to allocate damageable models. Changing this flag in MTA causes crashes. So we need to allocate those models explicitly

TheNormalnij avatar Oct 14 '24 16:10 TheNormalnij