When I click on my new swep I made, it Gmod crashes and says: CMDLCache:: out of memory. When I click on the taskbar icon of Engine Error, my footstep sounds are still playing, but looping?
Anyone know what CMDLCache:: Out of memory means and how do I fix it?
[highlight](User was banned for this post ("Wrong section" - mahalis))[/highlight]
Anyone?
Perhaps this can help?
[url]http://www.age-of-chivalry.com/smf/index.php?topic=5184.0[/url]
[QUOTE=commander204;22551584]Perhaps this can help?
[url]http://www.age-of-chivalry.com/smf/index.php?topic=5184.0[/url][/QUOTE]
but its not my computer thats crashing, its Gmod. I have 4gb DDR3 or 4? ram
Well the error says that there no more Memory left for the Cache, how big is the model?
[QUOTE=commander204;22553833]Well the error says that there no more Memory left for the Cache, how big is the model?[/QUOTE]
The .MDL file is only 26kb. Its really small. Its the M21 from COD6
As for the Code:
[lua]if (SERVER) then
AddCSLuaFile("shared.lua")
SWEP.HoldType = "ar2"
end
if (CLIENT) then
SWEP.ViewModelFlip = true
SWEP.PrintName = "M14 EBR"
SWEP.Slot = 3
SWEP.SlotPos = 1
SWEP.IconLetter = "n"
killicon.AddFont("weapon_real_cs_scout", "CSKillIcons", SWEP.IconLetter, Color( 255, 100, 0, 255 ))
end
SWEP.Category = "Flubadoo's MW2 Weapons"
SWEP.Base = "weapon_flub_base_sniper"
SWEP.PrintName = "M14 EBR"
SWEP.Author = "Flubadoo"
SWEP.Instructions = "Bullet damage will dropoff at \n 500 units and reaches the \n minimum damage at 30k units \n Effective range: 400m"
SWEP.Spawnable = true
SWEP.AdminSpawnable = false
SWEP.Weight = 5
SWEP.AutoSwitchTo = true
SWEP.AutoSwitchFrom = true
SWEP.Category = "Flubadoo's Rifles"
SWEP.Spawnable = true
SWEP.AdminSpawnable = true
SWEP.ViewModel = "models/weapons/v_mw2sm21ebr.mdl"
SWEP.WorldModel = "models/weapons/w_snip_sg550.mdl"
SWEP.Primary.Sound = Sound( "weapons/M14/m21_fire.wav" )
SWEP.Primary.Damage = 28.52375
SWEP.Primary.Recoil = 1
SWEP.Primary.NumShots = 1
SWEP.Primary.Cone = 0.0025
SWEP.Primary.ClipSize = 20
SWEP.Primary.Delay = 0.33
SWEP.Primary.DefaultClip = 60
SWEP.Primary.Automatic = false
SWEP.Primary.Ammo = "357"
SWEP.Pistol = false
SWEP.Rifle = false
SWEP.Shotgun = false
SWEP.Sniper = true
SWEP.IronSightsPos = Vector (3.0487, 0, 0.7516)
SWEP.IronSightsAng = Vector (0.4972, -1.9329, -0.3635)
SWEP.RunArmOffset = Vector (-3.1776, -5.9785, 0.0807)
SWEP.RunArmAngle = Vector (-13.6261, -49.9557, 8.0579)
SWEP.IronSightZoom = 1.03
SWEP.UseScope = true
SWEP.ScopeScale = 0.45
SWEP.ScopeZooms = {8}
SWEP.BoltActionSniper = false
SWEP.DamageFalloffMinDistance = 500
SWEP.DamageFalloffMaxDistance = 30000
SWEP.MininumDamageFraction = 0.45
SWEP.Idle = 0.65
SWEP.Amp = 0.05
SWEP.Penetration = 30
SWEP.PenetrationMultiplier = 0.74
SWEP.DegradeSpeed = 5
SWEP.DegradeDamage = 0.82535
SWEP.Reliability = 0.98[/lua]
Sorry, you need to Log In to post a reply to this thread.