Skip to content
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

Improvements to "Spawn Companion" effects #3703

Merged
merged 2 commits into from
Jan 27, 2025

Conversation

Regynate
Copy link
Contributor

  • Extracted common code to set relationships
  • Made spawned peds like / hate the same entities player does

- Extracted common code to set relationships
- Made spawned peds like / hate the same entities player does
@@ -55,3 +55,24 @@ inline Ped CreateHostilePed(Hash modelHash, Hash weaponHash, Vector3 *location =
SET_PED_FIRING_PATTERN(ped, 0xC6EE6B4C);
return ped;
}

inline void SetCompanionRelationship(Ped ped, const char* name)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Considering we expose it to the Lua runtime we should accept a const std::string& instead

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Noted, didn't know that

@pongo1231 pongo1231 merged commit cb6a8d1 into gta-chaos-mod:master Jan 27, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants