Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(SERVER) then AddCSLuaFile() end
- local newDampenDrop = function(self)
- local phys = self:GetPhysicsObject()
- if IsValid(phys) then
- phys:SetVelocityInstantaneous(Vector(0,0,-75) + phys:GetVelocity() * 0.001)
- phys:AddAngleVelocity(phys:GetAngleVelocity() * -0.99)
- end
- end
- timer.Simple(1, function()
- local pistols = {"gdcw_dgal50", "gdcw_cm1911", "usp45"}
- for k,v in pairs(weapons.GetList()) do
- if(string.find(v.ClassName, "_ttt_") or string.find(v.ClassName, "_zm_")) then continue end
- if(not v.DampenDrop) then
- v.DampenDrop = newDampenDrop
- v.IsEquipment = function() return false end
- v.GetHeadshotMultiplier = function() return nil end
- v.Slot = 2
- v.Kind = WEAPON_HEAVY
- for _,pistname in pairs(pistols) do
- if(string.find(v.ClassName,pistname)) then
- v.Kind = WEAPON_PISTOL
- v.Slot = 1
- end
- end
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement