UGX-Mods

Call of Duty: Black Ops 1 => Help Desk => Modding => Topic started by: mobofthedead123 on August 05, 2019, 02:01:40 pm

Title: Character Viewhands in my custom BO1 map
Post by: mobofthedead123 on August 05, 2019, 02:01:40 pm
Hello. I was wondering how I would be able to get the different characters’ viewhands in my Black Ops custom map, so like in Kino Der Toten, Nikolai has different viewhands from Richtofen. Right now in my map, the viewhands are always Dempsey’s hands but the character doesn’t match them. How could I add the different viewhands? Thanks
Title: Re: Character Viewhands in my custom BO1 map
Post by: Gogeta22344 on August 06, 2019, 09:10:45 pm
in your mapname.gsc search for
PreCacheModel( "viewmodel_usa_hazmat_arms" );// Richtofen
underneath that paste:
level.zombiemode_player_set_viewmodel_override = ::set_viewhands;
 then at the bottom of the file add:
set_viewhands( entity_num )
{
switch( self.entity_num )
{
case 0:
// Dempsey
self SetViewModel( "viewmodel_usa_pow_arms" );
break;
case 1:
// Nikolai
self SetViewModel( "viewmodel_rus_prisoner_arms" );
break;
case 2:
// Takeo
self SetViewModel( "viewmodel_vtn_nva_standard_arms" );
break;
case 3:
// Richtofen
self SetViewModel( "viewmodel_usa_hazmat_arms" );
break;
}
}
 
Title: Re: Character Viewhands in my custom BO1 map
Post by: mobofthedead123 on August 07, 2019, 12:43:44 pm
Thanks, it worked but there is still a problem. The third person models of the characters are not working and are made up of grey blocks, and this is for all of the characters. Do you know a fix for this? Thanks



Double Post Merge: August 07, 2019, 04:34:29 pm
Thanks, it worked but there is still a problem. The third person models of the characters are not working and are made up of grey blocks, and this is for all of the characters. Do you know a fix for this? Thanks
Never mind, I got it the block issue fixed by this tutorial:


https://www.ugx-mods.com/forum/modding/115/character-body-and-hand-models-problems/16695/ (https://www.ugx-mods.com/forum/modding/115/character-body-and-hand-models-problems/16695/)
Thanks for your help!