mtasa-blue
mtasa-blue copied to clipboard
Random foliage on replaced collisions bug
Describe the bug
When you replace collision on model which originaly have random foliage generated on it and this original collision was not loaded by GTA since you started your game, then random foliage will not generate on replaced collision because MTA currently does not use CPlantMgr::SetPlantFriendlyFlagInAtomicMI. However if you first go to place where this model is and then replace collision - random foliage will generate if appropriate materials are assigned in collision.
Steps to reproduce
Scenario 1
- Re/start MTA.
- Open Map Editor.
- Start resource collision_test_resource.zip
- Fly there: -2026, 2275, 23.82
Result:

Scenario 2
- Re/start MTA.
- Open Map Editor.
- Fly there: -2026, 2275, 23.82
- Start resource collision_test_resource.zip
- Fly back to Grove Street.
- Fly back to replaced model and collision.
Result:

Version
No response
Additional context
PR #2678 fixes this problem.
Relevant log output
No response
Security Policy
- [X] I have read and understood the Security Policy and this issue is not security related.