Skip to content

Commit

Permalink
Consider armed weapon in other places
Browse files Browse the repository at this point in the history
  • Loading branch information
NexiusTailer authored Oct 9, 2024
1 parent 2f51a98 commit 40536e5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Server/Source/player_impl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1726,7 +1726,7 @@ struct Player final : public IPlayer, public PoolIDProvider, public NoCopy
{
if (!allowWeapons_)
{
// Give the player all their weapons back. Don't worry about the armed weapon.
// Give the player all their weapons back.
allowWeapons_ = true;
NetCode::RPC::ResetPlayerWeapons resetWeaponsRPC;
PacketHelper::send(resetWeaponsRPC, *this);
Expand All @@ -1740,6 +1740,9 @@ struct Player final : public IPlayer, public PoolIDProvider, public NoCopy
PacketHelper::send(givePlayerWeaponRPC, *this);
}
}
NetCode::RPC::SetPlayerArmedWeapon setPlayerArmedWeaponRPC;
setPlayerArmedWeaponRPC.Weapon = armedWeapon_;
PacketHelper::send(setPlayerArmedWeaponRPC, *this);
}
}
else
Expand Down

0 comments on commit 40536e5

Please sign in to comment.