I have a server running nZombies and I wanted to replace the models for the zombies and their sounds. I am rewarding $25 for anyone who can fix this.
In the gamemode folder I would go to entities/entities/ which have 3 files for 3 types of zombies in them. They all use the same model and sounds. I want to swap them with other models and sounds i have. Here is an example of what I did.
[CODE]for i = 1, 8 do
util.PrecacheModel("models/zed/"..i..".mdl")
end
function ENT:Initialize()
self:SetModel("models/zed/"..(math.random(1,8))..".mdl")
self.breathing = CreateSound(self, "sound/zombie/misc/moan_loop"..(math.random(1, 4))..".wav")
self.breathing:Play()
self.breathing:ChangePitch(60, 0)
self.breathing:ChangeVolume(0.1, 0)
self.loco:SetDeathDropHeight(700)
if SERVER then
self:SetHealth(nz.Rounds.Curve.Health[nz.Rounds.CurrentRound])
end
self:SetCollisionBounds(Vector(-12,-12, 0), Vector(12, 12, 64))
self:SetSkin(math.random(0, self:SkinCount() - 1))
hook.Add("EntityRemoved", self, function()
if (self.breathing) then
self.breathing:Stop()
self.breathing = nil
end
end)
end[/CODE]
Heres the directory for the models
[IMG]http://i.imgur.com/9Sffat2.png[/IMG]
Heres one that doesn't work
[CODE]
ITEM.Name = 'Spy'
ITEM.Price = 1000
ITEM.Model = 'models/tfbeta/spy.mdl'
function ITEM:OnEquip(ply, modifications)
if not ply._OldModel then
ply._OldModel = ply:GetModel()
end
timer.Simple(1, function() ply:SetModel(self.Model) end)
end
function ITEM:OnHolster(ply)
if ply._OldModel then
ply:SetModel(ply._OldModel)
end
end
[/CODE]
Anyone who can get this working for me I will send you $25 on paypal or bitcoin.
What exactly is the problem?
I'm getting errors, but the files seem to be in the right place.
Can you post some of the errors?
No lua errors, but its just saying I don't have the files in my file systems, the directorys are in the lua.
Is all of these files on a dedicated server or on your client?
server.
Also, 1 and 4 seem to be the only models that will work since they're the only ones with all of the model components.
On my server.
[editline]23rd June 2015[/editline]
I tried using 1 only still didn't work.
Are you downloading them to clients with FastDL?
Also I tried other models still no luck.
[editline]23rd June 2015[/editline]
I tried fastdl it didn't work aswell.
Post your server.cfg please
[CODE]hostname "[SURVIVIAL] NZombies [Beta]"
sv_password ""
sv_region 255
sv_lan 0
sv_logbans 0
sv_logecho 0
sv_logfile 1
sv_log_onefile 0
sv_noclipspeed 5
sv_noclipaccelerate 5
sbox_allownpcs 1
sbox_godmode 0
sbox_plpldamage 0
sbox_playergod 0
sbox_noclip 1
sbox_maxprops 150
sbox_maxragdolls 5
sbox_maxnpcs 10
sbox_maxballoons 10
sbox_maxeffects 50
sbox_maxdynamite 10
sbox_maxlamps 20
sbox_maxthrusters 30
sbox_maxwheels 20
sbox_maxhoverballs 20
sbox_maxvehicles 6
sbox_maxbuttons 20
sbox_maxsents 20
sbox_maxemitters 5
sbox_maxspawners 3
sbox_maxturrets 0
net_maxfilesize "64"
sv_minrate 0
sv_maxrate 20000
decalfrequency 10
sv_maxupdaterate 66
sv_minupdaterate 10
sv_allowupload 1
sv_allowdownload 1
sv_downloadurl "http://www.cs-golucky.com/gmod/"
exec banned_ip.cfg
exec banned_user.cfg[/CODE]
[editline]23rd June 2015[/editline]
Mind you I removed the models from my fastdl after it didn't work to save space.
So it currently uses a single model and that works, but you want to change the model(s)?
yes
Your sv_downloadurl is returning a 403. Also, try putting 1.mdl and its components back on the FastDL in .bz2 format. Make sure you also resource.AddFile it.
Where can I get bz2, google isnt helping.
[editline]23rd June 2015[/editline]
So I fixed the 403, I zipped everything but the problem still remains.
Sorry, you need to Log In to post a reply to this thread.