Skip to content

Add damageable objects support #3793

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

Merged

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

botder
botder previously approved these changes Dec 31, 2024
@botder botder merged commit 21593b9 into multitheftauto:master Dec 31, 2024
MTABot pushed a commit that referenced this pull request Dec 31, 2024
21593b9 Add damageable objects support (PR #3793)
9d24451 Update client en_US pot
@TheNormalnij TheNormalnij deleted the TheNormalnij/atomic-damagable branch January 5, 2025 13:30
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.

5 participants