UGX-Mods Login

or login with an authentication provider below
Sign In with Google
Sign In with Twitter
Sign In with Discord
Sign In with Steam
Sign In with Facebook
Sign In with Twitch

Randomize Players (Viewhands, Voice, Points Color) (YaPh1l and alaurenc9)

broken avatar :(
Created 9 years ago
by mrpeanut188
0 Members and 1 Guest are viewing this topic.
7,754 views
broken avatar :(
×
broken avatar :(
Location: usCali(fornia)
Date Registered: 21 December 2013
Last active: 4 years ago
Posts
418
Respect
Forum Rank
Perk Hacker
Primary Group
Member
My Contact & Social Links
More
Signature
The sound of God is the screech of tires, lights and magnets, bolts and wires. Strayed from the road, this very one, still to come. The sound of tires is the sound of God, the electric version.
×
mrpeanut188's Groups
mrpeanut188's Contact & Social Linksmrpeanut1881337p34nutmrpeanut188
This is a tutorial on combining two different scripts to correctly randomize all aspects of the players. For example, this could be used to randomize a player and still use the correct viewhands for that player.

Without further ado, let's get to the tutorial. This is a combination of two scripts, alaurenc9's Randomize Player Characters script, with YaPh1l's Character specific viewhands.

First, install the randomize player characters, it is available by clicking here. Follow the full tutorial to the end.

Now you will have to use an edited version of the specific viewhands script by YaPh1l.

If you do not have _loadout.gsc included in your mod, do it now. Copy it from raw/maps into mod/mapname/maps .
Open the file with a text editor, and add the following functions to the end of the file:
Code Snippet
Plaintext
set_player_specific_viewmodel(num, name)
{
if(!IsDefined(level.player_specific_viewmodels))
         level.player_specific_viewmodels = [];
level.player_specific_viewmodels[num] = name;
PrecacheModel(name);
}

give_player_specific_viewmodel()
{
if(IsDefined(level.player_specific_viewmodels) && IsDefined(level.player_specific_viewmodels[ maps\_zombiemode_weapons::get_player_index( self ) ]))
{
         self SetViewModel(level.player_specific_viewmodels[ maps\_zombiemode_weapons::get_player_index( self ) ]);
}
else if(IsDefined(level.player_viewmodel))
{
         self SetViewModel(level.player_viewmodel);
}
}

In the give_model( class ) function, find
Code Snippet
Plaintext
switch( maps\_zombiemode_weapons::get_player_index( self ) )
{
case 0:
character\char_zomb_player_0::main();
break;
case 1:
character\char_zomb_player_1::main();
break;
case 2:
character\char_zomb_player_2::main();
break;
case 3:
character\char_zomb_player_3::main();
break;
}

and directly under it add

Code Snippet
Plaintext
                 self give_player_specific_viewmodel();
                 return;

In the init_models_and_variables_loadout() function look for
Code Snippet
Plaintext
set_laststand_pistol( "zombie_colt" );
and directly under it add this:
Code Snippet
Plaintext
         set_player_specific_viewmodel(0, "viewmodel_usa_marine_arms"); //Dempsey
         set_player_specific_viewmodel(1, "viewmodel_usa_marine_arms"); //Nikolai
         set_player_specific_viewmodel(2, "viewmodel_usa_marine_arms");//Takeo
         set_player_specific_viewmodel(3, "viewmodel_usa_marine_arms");//Richtofen

If instead you want to port the 4 hero's viewmodels from BO, here is the above script premade for all of their viewhands:
Code Snippet
Plaintext
         set_player_specific_viewmodel(0, "viewmodel_usa_pow_arms"); //Dempsey
         set_player_specific_viewmodel(1, "viewmodel_rus_prisoner_arms"); //Nikolai
         set_player_specific_viewmodel(2, "viewmodel_vtn_nva_standard_arms"); //Takeo
         set_player_specific_viewmodel(3, "viewmodel_usa_hazmat_arms"); //Richtofen

Last but not least, give credit to YaPh1l & xSanchez78(alaurenc9).

[Edit]
I dun fucked when i posted this and completely forgot to include the edited script :P.
Make sure you have used the edited scripts in this thread.
Last Edit: June 25, 2015, 03:14:27 am by mrpeanut188
broken avatar :(
×
broken avatar :(
Location: fr
Date Registered: 25 July 2015
Last active: 2 years ago
Posts
121
Respect
Forum Rank
Pack-a-Puncher
Primary Group
Member
My Contact & Social Links
More
Personal Quote
//This is a comment
Signature
×
fusorf's Groups
fusorf's Contact & Social LinksfusorffusorfFireFusorf
Hi :) the "Character specific viewhand" link is dead, do I need it for this tutorial ? thanks.
broken avatar :(
×
broken avatar :(
Location: usgeorgia
Date Registered: 24 April 2013
Last active: 8 months ago
Posts
560
Respect
Forum Rank
Zombie Enslaver
Primary Group
Community Mapper
×
whippytrout's Groups
Community Mapper Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager.
whippytrout's Contact & Social LinksWhippyTroutWhippyTrout
Hi :) the "Character specific viewhand" link is dead, do I need it for this tutorial ? thanks.

Here is a link to the old tutorial: http://www.zombiemodding.com/index.php?topic=14036.0


This works great thanks.  :nyan:
Last Edit: December 08, 2016, 07:11:40 am by whippytrout
broken avatar :(
×
broken avatar :(
Location: gbEurasian Plate, The Crust, Earth, The Solar System, The Milky Way
Date Registered: 4 November 2014
Last active: 12 days ago
Posts
181
Respect
Forum Rank
Pack-a-Puncher
Primary Group
Donator ♥
My Groups
More
My Contact & Social Links
More
Personal Quote
Mod Tools Tutorial Creator YouTube.com/IceGrenade
Signature
YouTuber Call of Duty Mod Tools Tutorial Creator on YouTube.com/IceGrenade
×
IceGrenade's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Thanks for this... I am trying to set 100% custom player models etc and this might help.

FYI: Your triple mgames link flagged up as a virus.
broken avatar :(
×
broken avatar :(
Location: fi
Date Registered: 25 June 2013
Last active: 8 months ago
Posts
3,997
Respect
1,024Add +1
Forum Rank
Eviscerator
Primary Group
UGX V.I.P.
My Groups
More
My Contact & Social Links
More
×
HitmanVere's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
UGX V.I.P.
UGX V.I.P.
Community Mapper Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager.
BO3 Modtools Alpha
BO3 Modtools Alpha
This user has access to the Black Ops 3 Modtools Alpha
Thanks for this... I am trying to set 100% custom player models etc and this might help.

FYI: Your triple mgames link flagged up as a virus.

The website doesnt even exist anymore, this tut is from 2015
broken avatar :(
×
broken avatar :(
Location: gbEurasian Plate, The Crust, Earth, The Solar System, The Milky Way
Date Registered: 4 November 2014
Last active: 12 days ago
Posts
181
Respect
Forum Rank
Pack-a-Puncher
Primary Group
Donator ♥
My Groups
More
My Contact & Social Links
More
Personal Quote
Mod Tools Tutorial Creator YouTube.com/IceGrenade
×
IceGrenade's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Found both those things out on 8th December, but cheers.
broken avatar :(
×
broken avatar :(
Location: usNew York
Date Registered: 28 March 2015
Last active: 4 weeks ago
Posts
80
Respect
Forum Rank
Rotting Walker
Primary Group
Member
My Contact & Social Links
More
Personal Quote
Current Maps: HellBound (Re) and Lab 7734 (Re)
Signature
Found both those things out on 8th December, but cheers.

Do you still have that file? I need it
broken avatar :(
×
broken avatar :(
Location: hr
Date Registered: 4 October 2017
Last active: 6 years ago
Posts
1
Respect
Forum Rank
Fresh Corpse
Primary Group
Member
×
axisz8008's Groups
axisz8008's Contact & Social Links
Semi old thread, I know, but if anyone could post a download for the view-models I'd greatly appreciate it.
broken avatar :(
×
broken avatar :(
Location: mx
Date Registered: 18 April 2020
Last active: 3 years ago
Posts
1
Respect
Forum Rank
Fresh Corpse
Primary Group
Member
×
MANU12JDA's Groups
MANU12JDA's Contact & Social Links
Semi old thread, I know, but if anyone could post a download for the view-models I'd greatly appreciate it.
No work

 
Loading ...