mirror of
https://github.com/swordbluesword/PalWorld-NetCrack.git
synced 2025-04-28 18:37:16 +09:00
Implement a force join guild feature.
This commit is contained in:
parent
69e5d54b2f
commit
23f20a4481
17
feature.cpp
17
feature.cpp
@ -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 };
|
||||||
|
@ -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 );
|
@ -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"))
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user