TTT- how do I change the default player model?

Post Reply
fuzzlefluff
A semi-regular
A semi-regular
Posts: 16
https://www.youtube.com/channel/UC40BgXanDqOYoVCYFDSTfHA
Joined: Sun Nov 10, 2013 1:00 pm

TTT- how do I change the default player model?

Post by fuzzlefluff »

I would like to change the default player model from a random CS:S Terrorist model to one of the HL2 rebel models

how would I go about doing this? I can't find the LUA file where the playermodel is set
ahoffman
New to forums
New to forums
Posts: 9
Joined: Mon Nov 11, 2013 3:53 pm

Re: TTT- how do I change the default player model?

Post by ahoffman »

gamemodes/terrortown/gamemode/shared.lua

Code: Select all

-- 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")
};
I was looking in the past as well
fuzzlefluff
A semi-regular
A semi-regular
Posts: 16
Joined: Sun Nov 10, 2013 1:00 pm

Re: TTT- how do I change the default player model?

Post by fuzzlefluff »

do you have any idea where the base HL2 models are stored on the server?
I want to use the male_07 model, but I have no idea where that is stored at
ahoffman
New to forums
New to forums
Posts: 9
Joined: Mon Nov 11, 2013 3:53 pm

Re: TTT- how do I change the default player model?

Post by ahoffman »

http://deadeye.comule.com/tools/models.html

There's a list of all default player models from hl2
fuzzlefluff
A semi-regular
A semi-regular
Posts: 16
Joined: Sun Nov 10, 2013 1:00 pm

Re: TTT- how do I change the default player model?

Post by fuzzlefluff »

yes but how do I reference this in lua?

models/player/male_07.mdl
ahoffman
New to forums
New to forums
Posts: 9
Joined: Mon Nov 11, 2013 3:53 pm

Re: TTT- how do I change the default player model?

Post by ahoffman »

Change it in the array I posted earlier

Code: Select all

-- 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")
};
You can literally just change the file path in the quotes. Make sure to add this to the gamemodes/terrortown/gamemode/shared.lua

You'll see where I pulled that from in there.
fuzzlefluff
A semi-regular
A semi-regular
Posts: 16
Joined: Sun Nov 10, 2013 1:00 pm

Re: TTT- how do I change the default player model?

Post by fuzzlefluff »

that is what my question is, what is the filepath to the default models?
ahoffman
New to forums
New to forums
Posts: 9
Joined: Mon Nov 11, 2013 3:53 pm

Re: TTT- how do I change the default player model?

Post by ahoffman »

You posted it, models/player/male_07.mdl
Post Reply