mtasa-blue
mtasa-blue copied to clipboard
Add damageable objects support
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')
Do we really need another type "object-damageable"?
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