Skip to content

Commit

Permalink
Improve RemovePlayerWeapon native
Browse files Browse the repository at this point in the history
  • Loading branch information
NexiusTailer authored Oct 9, 2024
1 parent e798980 commit 2f51a98
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Server/Source/player_impl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1342,6 +1342,16 @@ struct Player final : public IPlayer, public PoolIDProvider, public NoCopy
PacketHelper::send(givePlayerWeaponRPC, *this);
}
}
NetCode::RPC::SetPlayerArmedWeapon setPlayerArmedWeaponRPC;
if (weaponid != armedWeapon_)
{
setPlayerArmedWeaponRPC.Weapon = armedWeapon_;
}
else
{
setPlayerArmedWeaponRPC.Weapon = 0;
}
PacketHelper::send(setPlayerArmedWeaponRPC, *this);
}

void setWeaponAmmo(WeaponSlotData weapon) override
Expand Down

0 comments on commit 2f51a98

Please sign in to comment.