Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add damageable objects support #3793

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

TheNormalnij
Copy link
Member

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 TheNormalnij added enhancement New feature or request bugfix Solution to a bug of any kind labels Oct 13, 2024
@TheNormalnij TheNormalnij added this to the 1.6.1 milestone Oct 13, 2024
@Fernando-A-Rocha
Copy link
Contributor

Fernando-A-Rocha commented Oct 13, 2024

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

@TheNormalnij
Copy link
Member Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix Solution to a bug of any kind enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants