-
-
Notifications
You must be signed in to change notification settings - Fork 529
Add vehicle-upgrade for engineRequestModel
#4603
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
base: master
Are you sure you want to change the base?
Conversation
| auto* upgradeModelInfo = g_pGame->GetModelInfo(us); | ||
| if (upgradeModelInfo && upgradeModelInfo->GetParentID() != 0) | ||
| { | ||
| unsigned short parentID = upgradeModelInfo->GetParentID(); | ||
| if (IsUpgrade(parentID)) | ||
| { | ||
| us = parentID; | ||
| } | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What do you think about moving this into a separate helper function to avoid redundancy here and in IsCompatibleUpgrade?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good idea, i will do it tomorrow
This PR adds option for requesting infinite vehicle upgrades like: wheels, spoilers etc.
Upgrade type is based on parent ID and will work same as default.
Test resource:
custom_upgrades.zip