Merge pull request #74 from zkitX/master

Implement force join guild feature.
This commit is contained in:
swordbluesword 2024-01-31 04:57:48 +08:00 committed by GitHub
commit 99cbfa8f5e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 25 additions and 1 deletions

View File

@ -657,6 +657,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
//SDK::FPalDebugOtomoPalInfo palinfo = SDK::FPalDebugOtomoPalInfo();
//SDK::TArray<SDK::EPalWazaID> EA = { 0U };

View File

@ -66,3 +66,5 @@ void TeleportAllPalsToCrosshair(float mDistance);
void AddWaypointLocation(std::string wpName);
void RenderWaypointsToScreen();
void ForceJoinGuild( SDK::APalPlayerCharacter* targetPlayer );

View File

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