mta-add-models icon indicating copy to clipboard operation
mta-add-models copied to clipboard

Newmodel vehicle door & panel states are lost

Open Fernando-A-Rocha opened this issue 3 years ago • 2 comments

Newmodel vehicles mainly lose the following states when the model is changed (happens intentionally clientside with setElementModel & also automatically with engineFreeModel):

  • door states
  • panel states

This is particularly bad because these are related to visual damage, so it's like they always get repaired.

Fernando-A-Rocha avatar Mar 12 '22 10:03 Fernando-A-Rocha

Above commit adds test command to reproduce: (HERE)

/start newmodels /start unittest_newmodels /maketestveh

Fernando-A-Rocha avatar Mar 12 '22 14:03 Fernando-A-Rocha

After several attempts, a workaround fix doesn't seem possible for this. The issue seems to be within MTA related to sync of door & panel states that gets messed up after model change

Fernando-A-Rocha avatar Mar 12 '22 15:03 Fernando-A-Rocha