Character model bug fix

master
AlmTech Software 5 years ago
parent b7a4433236
commit c853e58646
  1. 2
      gamemode/engine/core/server/sv_player_init.lua
  2. 6
      gamemode/engine/lib/server/sv_character.lua

@ -43,7 +43,7 @@ end
function GM:PlayerSpawn( ply )
if( !ply:IsBot() ) then
if( ply.isloaded == true ) then -- replace logic ( reversed )
if( ply.isloaded == true ) then
ply:UnSpectate()
setUpPlayer( ply )
else

@ -12,7 +12,11 @@ local function CreateCharTable( args )
local rand = table.Random(Quantum.Classes)
local randMdl = rand.Models[ args.gender ][ math.random(1, #rand.Models[ args.gender ]) ]
local setMdl
if( args.class == nil ) then setMdl = randMdl end
if( args.class == nil ) then
setMdl = randMdl
else
setMdl = Quantum.Classes[args.class].Models[args.gender][args.modelIndex]
end
return {
name = args.name || "UNKNOWN",

Loading…
Cancel
Save