Skip to content

Conversation

@Xenius97
Copy link
Contributor

@Xenius97 Xenius97 commented Jan 6, 2026

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

image

@FileEX FileEX added the enhancement New feature or request label Jan 6, 2026
@Xenius97 Xenius97 requested a review from FileEX January 6, 2026 18:35
@Xenius97 Xenius97 requested a review from FileEX January 7, 2026 06:54
Comment on lines +466 to +474
auto* upgradeModelInfo = g_pGame->GetModelInfo(us);
if (upgradeModelInfo && upgradeModelInfo->GetParentID() != 0)
{
unsigned short parentID = upgradeModelInfo->GetParentID();
if (IsUpgrade(parentID))
{
us = parentID;
}
}
Copy link
Member

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?

Copy link
Contributor Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants