• Changing Death Playermodel
    5 replies, posted
So I was looking through the files on where it sets the playermodels for the two teams in deathmatch but all I find is the [CODE]local rModels = {} for i = 1, 8 do rModels[#rModels+1] = "models/player/group01/male_0"..i..".mdl" end[/CODE] Can someone help me out and point me in the right direction on where to set the model path for that team. Any help would be great.
I don't know if it's just me, but I don't really understand your question? You got the model path right in the code inside of a loop, making their models random?
For future reference, gamemodes don't require certain way to set player models, you can always use ply:SetModel [lua] function GM:PlayerSpawn( ply ) if ply:Team() == TEAM_NAME then ply:SetModel('models/player/death_model.mdl') elseif ply:Team() == TEAM_NAME then ply:SetModel('models/player/group01/male_03.mdl') else end end [/lua]
[QUOTE=Richtofen;45557526]For future reference, gamemodes don't require certain way to set player models, you can always use ply:SetModel [lua] function GM:PlayerSpawn( ply ) if ply:Team() == TEAM_NAME then ply:SetModel('models/player/death_model.mdl') elseif ply:Team() == TEAM_NAME then ply:SetModel('models/player/group01/male_03.mdl') else end end [/lua][/QUOTE] Well the gamemode obviously sets the playermodel already, where is that so i can comment that out? I dont want anything interfering with anything else [editline]31st July 2014[/editline] [QUOTE=The Beta;45557459]I don't know if it's just me, but I don't really understand your question? You got the model path right in the code inside of a loop, making their models random?[/QUOTE] that is what is inside the init.lua in the deathrun gamemode
what fucking gamemode? lmao
Deathrun. Duh.
Sorry, you need to Log In to post a reply to this thread.