Change Player Model in Third Person: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
m (clean up, added orphan tag)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
{{otherlang2|es=:Change Player Model in Third Person:es|}}
{{Orphan|date=January 2024}}
 
{{lang|Change Player Model in Third Person}}
For change the Player Model in Third Person you will need to do the follow:
For change the Player Model in Third Person you will need to do the follow:


Line 13: Line 15:


"With a parameter override of" - setmodel <Your Model Dir without "models/" and ".mdl" at the end> (Example: setmodel humans/group01/male_01)
"With a parameter override of" - setmodel <Your Model Dir without "models/" and ".mdl" at the end> (Example: setmodel humans/group01/male_01)


And That's it!
And That's it!


For fix the player Animations you'll need to follow this tutorial: [[Fixing the player animation state (Single Player)]]
For fix the player Animations you'll need to follow this tutorial: [[Fixing the player animation state (Single Player)]]


 
== See also ==
 
*[[Third-person camera]]


[[Category:Programming]]
[[Category:Programming]]
== See also ==
*[[Third-person camera]]

Latest revision as of 22:37, 21 January 2024

English (en)Español (es)Translate (Translate)

For change the Player Model in Third Person you will need to do the follow:

  • Put a prop_physics in your map inside a Nodraw box with the model that you want to be the new Player Model (Example: models/humans/group01/male_01.mdl), this is for Precache the Model and its animations.
  • Now, add a point_clientcommand with the name "Console" inside the same box.
  • Finally add a "logic_auto" inside the same box, and create an Output with the following:

"My Output Named" - OnMapSpawn

"Target Entities Named" - console

"Via this Input" - Command

"With a parameter override of" - setmodel <Your Model Dir without "models/" and ".mdl" at the end> (Example: setmodel humans/group01/male_01)

And That's it!

For fix the player Animations you'll need to follow this tutorial: Fixing the player animation state (Single Player)

See also