Author Topic: Change player's model on the fly  (Read 957 times)

0 Members and 1 Guest are viewing this topic.

bitterman

  • Sr. Member
  • ****
  • Posts: 381
  • Karma: +9/-5
  • Doom Newbie
    • View Profile
Change player's model on the fly
« on: December 19, 2019, 09:20:48 PM »
I looking for how to do this thing e.g. if player takes a new armor or suit.
Then whole model or part of model must be changed to acheive this effect.

Not sure how it can be done.

I found some tuts about player customization, but these is not the same.

In base concept I can make one model with few armors/suits and shut off unused via setSkin"".
Is there a way to replace whole players model or part of model?

Thanks.

The Happy Friar

  • Happy Happy Joy Joy
  • Administrator
  • Hero Member
  • *****
  • Posts: 1,028
  • Karma: +46/-4
  • Semi-Newbie.
    • View Profile
    • EarthQuake
Re: Change player's model on the fly
« Reply #1 on: December 19, 2019, 11:24:06 PM »
the setskin has always seemed to be the way to go for the player model.   i'd say it's also easier & faster as new assets aren't loading, you don't need to rig multiple models, etc.
I'm guessing it would work the same way as the invisibility powerup for the skin change.

bitterman

  • Sr. Member
  • ****
  • Posts: 381
  • Karma: +9/-5
  • Doom Newbie
    • View Profile
Re: Change player's model on the fly
« Reply #2 on: December 22, 2019, 05:04:08 AM »
Thanks THF!

About setModel.

On mc_underground when a lostsoul impacted with scientist the last one turned to zombie.

This scene use setModel to swap human head to zombie head.

« Last Edit: December 22, 2019, 05:09:03 AM by bitterman »