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

Remove Viewhands for Specific Weapon

HOT
broken avatar :(
Created 9 years ago
by jiggy22
0 Members and 1 Guest are viewing this topic.
6,358 views
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 30 December 2016
Last active: 5 months ago
Posts
229
Respect
Forum Rank
Mr. Elemental
Primary Group
Member
My Contact & Social Links
More
×
jiggy22's Groups
jiggy22's Contact & Social Linksjiggy22archdukesquidlylll
Yeah, I misunderstood one of the above comments, so thanks for pointing that out.

I'm getting really close with this one now. So the viewhands are invisible while holding the weapon as they should, but when I switch any other different weapon, the viewhands are now invisible for all weapons. It should be important to point out that I am using mrpeanut's randomize player/viewhands/voice script, so I had to change two lines at the bottom. Not sure if the randomized script will make this harder to fix, but hey, whatever happens, happens.

Here's my latest fix of this function:
Code Snippet
Plaintext
Flammenwerfer()
{
while(1)
{
self.weap_model = GetWeaponModel(self GetCurrentWeapon());
self waittill_any( "weapon_change", "weapon_change_complete" );

if(self GetCurrentWeapon() == "m2_flamethrower_zombie" )
self SetViewModel("viewmodel_blank_arms");
        else if(IsDefined(level.player_specific_viewmodels))
        self SetViewModel(level.player_specific_viewmodels);
}
}


 
Loading ...