UGX-Mods

Call of Duty 5: World at War => Help Desk => Scripting => Topic started by: ville88 on July 04, 2014, 08:20:29 pm

Title: Character help!
Post by: ville88 on July 04, 2014, 08:20:29 pm
How to change the model of the player's body and viewhands? (I need a model of the Russian soldier mission Seelow)
Like this but in zombie mod
(https://www.ugx-mods.com/forum/proxy.php?request=http%3A%2F%2Fs1067.photobucket.com%2Fuser%2Fsarastus88%2Fmedia%2Fda432e5f0d364e6ecbe918c230942f47_img_full_zpsf0561adf.jpg.html&hash=a4c02d9e59290cff87e51a47f88f9a580b3e267c)
Title: Re: Character help!
Post by: ProGamerzFTW on July 04, 2014, 09:33:31 pm
Fixed image.

(https://www.ugx-mods.com/forum/proxy.php?request=http%3A%2F%2Fi1067.photobucket.com%2Falbums%2Fu431%2Fsarastus88%2Fda432e5f0d364e6ecbe918c230942f47_img_full_zpsf0561adf.jpg&hash=240e56fd80d3acab12d8cf2029b2487d4584741a)
Title: Re: Character help!
Post by: Alerion on July 05, 2014, 09:54:37 am
First you need to find both the player- and viewmodel via the asset-viewer (which is located in root/bin, has a simple search-function).
Then for the viewhands you have to got to root/raw/maps and copy the _loadout.gsc to your modfolder (if you used the UGX-scriptplacer it would be root/mods/yourmapname/maps).
Then open it up and search for (normally by pressing shift+F):

Code Snippet
Plaintext
else if( GetDvar( "zombiemode" )

a few lines underneath you should see this line:

Code Snippet
Plaintext
set_player_viewmodel( "viewmodel_usa_marine_arms");
(it's necessary to search for the other line first, as the second one appears multiple times.)

Then you only have to replace viewmodel_usa_marine_arms (leave the ""!) with the viewmodel you want.
(would be more complicated if you used one from another game.)

I sadly don't know how to change the player model though.
Title: Re: Character help!
Post by: daedra descent on July 05, 2014, 10:10:08 am
Map's csv:

Code Snippet
Plaintext
include,common_player_rus
xmodel,viewmodel_rus_guard_player
xmodel,viewmodel_rus_guard_arms

_loadout:

Code Snippet
Plaintext
set_player_viewmodel( "viewmodel_rus_guard_arms");
set_player_interactive_hands( "viewmodel_rus_guard_player");
level.campaign = "russian";

Title: Re: Character help!
Post by: ville88 on July 05, 2014, 12:15:29 pm
Thanks all!)) It's work!