mirror of
https://github.com/swordbluesword/PalWorld-NetCrack.git
synced 2025-04-28 18:37:16 +09:00
Merge pull request #74 from zkitX/master
Implement force join guild feature.
This commit is contained in:
commit
99cbfa8f5e
17
feature.cpp
17
feature.cpp
@ -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 };
|
||||
|
@ -66,3 +66,5 @@ void TeleportAllPalsToCrosshair(float mDistance);
|
||||
void AddWaypointLocation(std::string wpName);
|
||||
|
||||
void RenderWaypointsToScreen();
|
||||
|
||||
void ForceJoinGuild( SDK::APalPlayerCharacter* targetPlayer );
|
@ -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"))
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user