SauerSauce

Playermodels Guide

Jul 9, 2018 • Salatiel (tutorials) • models

Adding a new playermodel

Files that need modification:
src/fpsgame/render.cpp
data/game_fps.cfg

File src/fpsgame/render.cpp, line 11:

VARFP(playermodel, 0, 0, 4, changedplayermodel());

4 is the default amount of playermodels (/playermodel 0...4), we will change this to 5.

VARFP(playermodel, 0, 0, 5, changedplayermodel());

So we can select the playermodel 5 using the /playermodel 5 command.

File src/fpsgame/render.cpp, line 49:

static const playermodelinfo playermodels[5] =

we will change this '[5]' to '[6]'.

static const playermodelinfo playermodels[6] =

File src/fpsgame/render.cpp, line 56:

{ "captaincannon", "captaincannon/blue"...

below that, on line 57, we'll add our playermodel (inside the braces of course).


What each "block" represents:

"playermodel name"
"playermodel blue skin cfg folder"
"playermodel red skin cfg folder"
"playermodel hudguns folder"
"playermodel quaddamage folder"
"playermodel blue armor folder"
"playermodel green armor folder"
"playermodel yellow armor folder"
"playermodel name"
"playermodelname_blue"
"playermodelname_red"

This article is not complete? You can help by expanding it.


See also