Welcome, Guest. Please login or register.
Did you miss your activation email?
November 23, 2024, 04:33:40 AM
Home Help Login Register
News: Zombie Master 2 discussion

Zombie Master  |  Other  |  Trouble in Terrorist Town  |  Topic: Custom Player Models
Pages: [1]
Author Topic: Custom Player Models  (Read 4864 times)
PAL-18
Poster

Posts: 36



« on: August 05, 2010, 06:42:04 AM »

When i try setting new player models (changing the models listed in shared.lua), they don't display in-game. The default player models still display but the hitboxes use the new models.

I use a separate plugin to cache the models, and all the materials/models download properly.  The models use CSS bones too.

Any idea why it doesnt work?

Bad King Urgrain
Administrator
*****
Posts: 12276



« Reply #1 on: August 05, 2010, 07:13:43 AM »

Have you tried using a standard gmod playermodel like "/models/player/Kleiner.mdl" instead of the custom models in your code, just to see if the basic thing works without involving potential download issues or issues with the models?
Mr. Gash
Poster

Posts: 382


www.nonerdsjustgeeks.com


« Reply #2 on: August 06, 2010, 03:16:27 AM »

Maybe the map you're playing on is forcing a playermodel? Try starting it on gm_construct and see if the new models are used.
PAL-18
Poster

Posts: 36



« Reply #3 on: August 07, 2010, 07:09:13 AM »

It's not the map.  While looking through the lua, i found several references to the default model in files other than shared.lua  I edited those files, but the old model was still being displayed.
Mr. Gash
Poster

Posts: 382


www.nonerdsjustgeeks.com


« Reply #4 on: August 07, 2010, 07:35:30 PM »

You're changing this, right?
-- Everyone's model
local ttt_playermodels = {
  Model("models/player/phoenix.mdl"),
  Model("models/player/arctic.mdl"),
  Model("models/player/guerilla.mdl"),
  Model("models/player/leet.mdl")
};


That's all I changed on my version and the player models are always the ones I listed if not forced. This is all you should need to change if you want different models.
PAL-18
Poster

Posts: 36



« Reply #5 on: August 31, 2010, 07:40:02 PM »

Odd, something must've been repaired in a recent release cause just editing that code now displays the model properly in-game.

There is one odd thing though, the models arent facing forward and they dont animate.  The custom models (just like the default ones) are made for CSS and i dont understand why they dont animate because they use the same bones.
Mr. Gash
Poster

Posts: 382


www.nonerdsjustgeeks.com


« Reply #6 on: August 31, 2010, 07:47:51 PM »

They they're supposed to use npc animations it won't work.
Model path?
PAL-18
Poster

Posts: 36



« Reply #7 on: August 31, 2010, 10:46:12 PM »

Here's the path of all the models:

materials/models/player/b4p/vader/alnewhope.vmt
materials/models/player/b4p/vader/alnewhope.vtf
materials/models/player/b4p/vader/beltxtras.vmt
materials/models/player/b4p/vader/beltxtras.vtf
materials/models/player/b4p/vader/darthshing.vmt
materials/models/player/b4p/vader/darthshing.vtf
materials/models/player/b4p/vader/dbreather.vmt
materials/models/player/b4p/vader/dbreather.vtf
materials/models/player/b4p/vader/dcape.vmt
materials/models/player/b4p/vader/dcape.vtf
materials/models/player/b4p/vader/handhope.vmt
materials/models/player/b4p/vader/handhope.vtf
materials/models/player/b4p/vader/headhope.vmt
materials/models/player/b4p/vader/headhope.vtf
materials/models/player/b4p/vader/helmethope.vmt
materials/models/player/b4p/vader/helmethope.vtf
materials/models/player/b4p/vader/hipsvader.vmt
materials/models/player/b4p/vader/hipsvader.vtf
materials/models/player/b4p/vader/legsvader.vmt
materials/models/player/b4p/vader/legsvader.vtf
materials/models/player/b4p/vader/shoulderhope.vmt
materials/models/player/b4p/vader/shoulderhope.vtf
materials/models/player/b4p/vader/torsovader.vmt
materials/models/player/b4p/vader/torsovader.vtf
materials/models/player/b4p/vader/vaderface.vmt
materials/models/player/b4p/vader/vaderface.vtf

models/player/b4p/b4p_vader/b4p_vader.mdl
models/player/b4p/b4p_vader/b4p_vader.phy
models/player/b4p/b4p_vader/b4p_vader.vvd
models/player/b4p/b4p_vader/b4p_vader.dx80.vtx
models/player/b4p/b4p_vader/b4p_vader.dx90.vtx
models/player/b4p/b4p_vader/b4p_vader.sw.vtx

materials/models/player/techknow/b-lara/accessories.vmt
materials/models/player/techknow/b-lara/b-lara.vtf
materials/models/player/techknow/b-lara/b-lara_n.vtf
materials/models/player/techknow/b-lara/body.vmt
materials/models/player/techknow/b-lara/bra.vmt
materials/models/player/techknow/b-lara/eyes.vmt
materials/models/player/techknow/b-lara/hair.vmt
materials/models/player/techknow/b-lara/hair.vtf
materials/models/player/techknow/b-lara/hair_n.vtf
materials/models/player/techknow/b-lara/panties.vmt

models/player/techknow/b-lara/b-lara.mdl
models/player/techknow/b-lara/b-lara.phy
models/player/techknow/b-lara/b-lara.vvd
models/player/techknow/b-lara/b-lara.dx80.vtx
models/player/techknow/b-lara/b-lara.dx90.vtx
models/player/techknow/b-lara/b-lara.sw.vtx

materials/models/player/techknow/glowing_one/body.vmt
materials/models/player/techknow/glowing_one/body.vtf
materials/models/player/techknow/glowing_one/body_n.vtf
materials/models/player/techknow/glowing_one/pants.vmt
materials/models/player/techknow/glowing_one/pants.vtf
materials/models/player/techknow/glowing_one/pants_n.vtf

models/player/techknow/glowing_one/glowingone.mdl
models/player/techknow/glowing_one/glowingone.phy
models/player/techknow/glowing_one/glowingone.vvd
models/player/techknow/glowing_one/glowingone.dx80.vtx
models/player/techknow/glowing_one/glowingone.dx90.vtx
models/player/techknow/glowing_one/glowingone.sw.vtx

materials/models/player/techknow/ironman_v3/body.vmt
materials/models/player/techknow/ironman_v3/body.vtf
materials/models/player/techknow/ironman_v3/body_n.vtf
materials/models/player/techknow/ironman_v3/flame.vmt
materials/models/player/techknow/ironman_v3/flame.vtf
materials/models/player/techknow/ironman_v3/head.vmt
materials/models/player/techknow/ironman_v3/head.vtf
materials/models/player/techknow/ironman_v3/head_n.vtf
materials/models/player/techknow/ironman_v3/sphere.vmt
materials/models/player/techknow/ironman_v3/sphere.vtf

models/player/techknow/ironman_v3/ironman3.mdl
models/player/techknow/ironman_v3/ironman3.phy
models/player/techknow/ironman_v3/ironman3.vvd
models/player/techknow/ironman_v3/ironman3.dx80.vtx
models/player/techknow/ironman_v3/ironman3.dx90.vtx
models/player/techknow/ironman_v3/ironman3.sw.vtx

materials/models/player/techknow/tmnt/body.vmt
materials/models/player/techknow/tmnt/body.vtf
materials/models/player/techknow/tmnt/body_n.vtf
materials/models/player/techknow/tmnt/color_n.vtf
materials/models/player/techknow/tmnt/eyes.vmt
materials/models/player/techknow/tmnt/orange.vmt
materials/models/player/techknow/tmnt/orange.vtf
materials/models/player/techknow/tmnt/weapons.vmt
materials/models/player/techknow/tmnt/weapons.vtf
materials/models/player/techknow/tmnt/weapons_n.vtf

models/player/techknow/tmnt/michelangelo.mdl
models/player/techknow/tmnt/michelangelo.phy
models/player/techknow/tmnt/michelangelo.vvd
models/player/techknow/tmnt/michelangelo.dx80.vtx
models/player/techknow/tmnt/michelangelo.dx90.vtx
models/player/techknow/tmnt/michelangelo.sw.vtx

I added the files to the typical folders for models/materials in garrys mod and into the content folder of TTT.  I thought that maybe the files werent being downloaded properly so i precached everything with sourcemod too.
« Last Edit: August 31, 2010, 10:48:49 PM by PAL-18 »
Pages: [1]
Zombie Master  |  Other  |  Trouble in Terrorist Town  |  Topic: Custom Player Models « previous next »
Jump to:  


Login with username, password and session length

Powered by SMF 1.1.21 | SMF © 2015, Simple Machines
Page created in 0.011 seconds with 18 queries.