Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- roundstats.deaths = roundstats.deaths + 1
- victim:SetTeam(TEAM_SPEC)
- //victim:UnUseArmor()
- if #victim:GetWeapons() > 0 then
- local pos = victim:GetPos()
- for k,v in pairs(victim:GetWeapons()) do
- local candrop = true
- if v.droppable != nil then
- if v.droppable == false then
- candrop = false
- end
- end
- if candrop then
- local wep = ents.Create( v:GetClass() )
- if IsValid( wep ) then
- wep:SetPos( pos )
- wep:Spawn()
- local atype = v:GetPrimaryAmmoType()
- if atype > 0 then
- wep.SavedAmmo = v:Clip1()
- end
- end
- local wep = ents.Create( v:GetClass() )
- if IsValid( wep ) then
- wep:SetPos( pos )
- wep:Spawn()
- wep:SetClip1(v:Clip1())
- end
- end
- end
- end
- WinCheck()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement