Skip to content

Commit

Permalink
Set the owner of dropped weapons
Browse files Browse the repository at this point in the history
Fixes #2939
  • Loading branch information
FPtje committed Aug 15, 2019
1 parent bd01b30 commit 5c640f9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions entities/weapons/weapon_cs_base2/sv_commands.lua
Expand Up @@ -14,6 +14,7 @@ function meta:dropDRPWeapon(weapon)

local primAmmo = self:GetAmmoCount(weapon:GetPrimaryAmmoType())
self:DropWeapon(weapon) -- Drop it so the model isn't the viewmodel
weapon:SetOwner(self)

local ent = ents.Create("spawned_weapon")

Expand Down

0 comments on commit 5c640f9

Please sign in to comment.