Implement a force join guild feature.

This commit is contained in:
Evan 2024-01-30 15:00:56 -05:00
parent 69e5d54b2f
commit 23f20a4481
No known key found for this signature in database
GPG Key ID: 90FEF2398B59BD4E
3 changed files with 25 additions and 1 deletions

View File

@ -679,6 +679,23 @@ void RenderWaypointsToScreen()
} }
} }
void ForceJoinGuild( SDK::APalPlayerCharacter* targetPlayer )
{
if ( !targetPlayer->CharacterParameterComponent->IndividualHandle )
return;
if ( !Config.GetPalPlayerController() )
return;
UPalNetworkGroupComponent* group = Config.GetPalPlayerController()->Transmitter->Group;
if ( !group )
return;
SDK::FGuid myPlayerId = Config.GetPalPlayerController()->GetPlayerUId();
SDK::FGuid playerId = targetPlayer->CharacterParameterComponent->IndividualHandle->ID.PlayerUId;
group->RequestJoinGuildForPlayer_ToServer( myPlayerId, playerId );
}
/// OLDER METHODS /// OLDER METHODS
//SDK::FPalDebugOtomoPalInfo palinfo = SDK::FPalDebugOtomoPalInfo(); //SDK::FPalDebugOtomoPalInfo palinfo = SDK::FPalDebugOtomoPalInfo();
//SDK::TArray<SDK::EPalWazaID> EA = { 0U }; //SDK::TArray<SDK::EPalWazaID> EA = { 0U };

View File

@ -65,4 +65,6 @@ void TeleportAllPalsToCrosshair(float mDistance);
void AddWaypointLocation(std::string wpName); void AddWaypointLocation(std::string wpName);
void RenderWaypointsToScreen(); void RenderWaypointsToScreen();
void ForceJoinGuild( SDK::APalPlayerCharacter* targetPlayer );

View File

@ -605,6 +605,11 @@ namespace DX11_Base
}*/ }*/
if (Character->IsA(SDK::APalPlayerCharacter::StaticClass())) if (Character->IsA(SDK::APalPlayerCharacter::StaticClass()))
{ {
ImGui::SameLine();
if ( ImGui::Button( "Join Guild" ) )
{
ForceJoinGuild( (SDK::APalPlayerCharacter*)Character );
}
ImGui::SameLine(); ImGui::SameLine();
if (ImGui::Button("MaskIt")) if (ImGui::Button("MaskIt"))
{ {