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

broken avatar :(
Created 1806 days ago
by mrpeanut188
0 Members and 1 Guest are viewing this topic.
5,172 views
broken avatar :(
×
broken avatar :(
Location: usCali(fornia)
Date Registered: 21 December 2013
Last active: 65 days 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 [You are not allowed to view external links. Register or Login to see them] .

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:
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
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

                 self give_player_specific_viewmodel();
                 return;

In the init_models_and_variables_loadout() function look for
set_laststand_pistol( "zombie_colt" );
and directly under it add this:
         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:
         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: 292 days 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: 3 days ago
Posts
560
Respect
Forum Rank
Zombie Enslaver
Primary Group
Community Mapper
My Groups
More
My Contact & Social Links
More
Signature
If you like my work feel free to donate: [You are not allowed to view external links. Register or Login to see them]

Check out my Alcatraz WIP: https://ugx-mods.com/forum/index.php/topic,7912.0.html
Jigsaw: https://ugx-mods.com/forum/index.php/topic,13563.msg142016.html#msg142016
Christmas with the Joker: https://ugx-mods.com/forum/index.php/topic,1563.msg14836.html#msg14836
Wayne Manor: https://ugx-mods.com/forum/index.php/topic,9821.ms
×
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: [You are not allowed to view external links. Register or Login to see them]


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: 1 day ago
Posts
178
Respect
Forum Rank
Pack-a-Puncher
Primary Group
Donator ♥
My Groups
More
My Contact & Social Links
More
Personal Quote
Favourite Languages: PHP CSS HTML JS C# SQL XSLT
Signature
Walk your Talk
×
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: 29 days ago
Posts
3,998
Respect
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: 1 day ago
Posts
178
Respect
Forum Rank
Pack-a-Puncher
Primary Group
Donator ♥
My Groups
More
My Contact & Social Links
More
Personal Quote
Favourite Languages: PHP CSS HTML JS C# SQL XSLT
×
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: 21 days ago
Posts
74
Respect
Forum Rank
Rotting Walker
Primary Group
Member
My Contact & Social Links
More
Personal Quote
Current Map: Folter der Verdammten
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: 937 days 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: mxMexico
Date Registered: 18 April 2020
Last active: 3 days 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

 

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
Loading ...