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

how can i make own viewhands for every player

broken avatar :(
Created 12 years ago
by knzombiemaster
0 Members and 1 Guest are viewing this topic.
3,648 views
broken avatar :(
×
broken avatar :(
Date Registered: 7 August 2012
Last active: 7 years ago
Posts
75
Respect
Forum Rank
Rotting Walker
Primary Group
Member
My Contact & Social Links
More
×
knzombiemaster's Contact & Social LinksNiklas3411gangxta987
hey guys i think you know that every bo cha have own viewhands and i want to know how to make that every character have his own viewhands
broken avatar :(
×
broken avatar :(
Location: de
Date Registered: 6 August 2012
Last active: 4 years ago
Posts
277
Respect
Forum Rank
Mr. Elemental
Primary Group
Community Scripter Elite
My Groups
More
×
YaPh1l's Groups
Community Scripter Elite Has shown excellence and experience in the area of custom scripting in the UGX-Mods community.
YaPh1l's Contact & Social Links
You can call SetViewModel() on the player entity to set the viewhands. This is done in _loadout::give_model(), so you might want to change it there. But there's also the "interactive hands", they are only set as a level variable, so I'm not sure what to do with that.

- Phil.
broken avatar :(
×
broken avatar :(
Date Registered: 7 August 2012
Last active: 7 years ago
Posts
75
Respect
Forum Rank
Rotting Walker
Primary Group
Member
My Contact & Social Links
More
×
knzombiemaster's Contact & Social LinksNiklas3411gangxta987
You can call SetViewModel() on the player entity to set the viewhands. This is done in _loadout::give_model(), so you might want to change it there. But there's also the "interactive hands", they are only set as a level variable, so I'm not sure what to do with that.

- Phil.

please more info are you german ?? working with team 00 ?
broken avatar :(
×
broken avatar :(
Location: de
Date Registered: 6 August 2012
Last active: 4 years ago
Posts
277
Respect
Forum Rank
Mr. Elemental
Primary Group
Community Scripter Elite
My Groups
More
×
YaPh1l's Groups
Community Scripter Elite Has shown excellence and experience in the area of custom scripting in the UGX-Mods community.
YaPh1l's Contact & Social Links
please more info are you german ?? working with team 00 ?
Yep, I'm german and part of Team 00. Why?
So assuming you have _loadout.gsc added to yourmodfolder/maps. The last lines of the give_model() function should be:
Code Snippet
Plaintext
if( IsDefined( level.player_viewmodel ) )
{
self SetViewModel( level.player_viewmodel );
}
This is where the viewhands are set. So to make them separate for each character you need to identify the character and set the appropriate viewhands. Could work like this:
Code Snippet
Plaintext
switch(self.entity_num)
{
    case 0: // Tank Dempsey
        self SetViewModel("viewmodel_dempsey_hands");
        break;
    case 1: // Nikolai Belinski
        self SetViewModel("viewmodel_nikolai_hands");
        break;
    case 2: // Takeo Masaki
        self SetViewModel("viewmodel_takeo_hands");
        break;
    case 3: // Dr. Edward Richtofen
        self SetViewModel("viewmodel_richtofen_hands");
        break;
}
You could just add this code directly under the original, but you could also delete the original. Of course the viewhands need to be included in your mod, this is only the scripting part. I haven't made custom viewhands yet, so I can't tell you anything about that.

- Phil.

 
Loading ...