Raised This Month: $32 Target: $400
 8% 

War3FT [ Change Skin ]


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
MayroN
Senior Member
Join Date: Aug 2017
Location: Kyiv
Old 09-11-2019 , 15:49   War3FT [ Change Skin ]
Reply With Quote #1

Welcome.
Such a pleasant thing, not wants to change skin player on the opposite team on subject Chameleon ( Warcraft )

First there was terrible lag in the capture of the Subject player ( Ping jumps) added
PHP Code:
if ( is_user_aliveid ) ) 
If suddenly that, then the Usual start of the game-changes the skin
On Server Start-up-no.

Also tried to leave only
PHP Code:
if ( g_MOD == GAME_CSTRIKE 
still doesn't change

All Function
PHP Code:
// Function changes your skin for ITEM_MOLE and Chameleon
public SHARED_ChangeSkinidiFlag )
{
    
   
// Don't change a bots model - it just confuses the bots!
   
if ( is_user_aliveid ) )
   {
      return;
   }
 
   new 
szSkin[32];
    
   
// Reset the user's model
   
if ( iFlag == SKIN_RESET && p_data_b[id][PB_SKINSWITCHED] )
   {
 
      if ( 
g_MOD == GAME_CSTRIKE || g_MOD == GAME_CZERO )
      {
         
cs_reset_user_modelid );
      }
      else if ( 
g_MOD == GAME_DOD )
      {
         
dod_clear_modelid );
      }
 
      
p_data_b[id][PB_SKINSWITCHED] = false;
   }
    
   
// Switch the user's skin to the opposing team
   
else if ( iFlag == SKIN_SWITCH )
   {
      new 
iTeam get_user_teamid );
       
      
// For Counter-Strike or Condition Zero
      
if ( g_MOD == GAME_CSTRIKE || g_MOD == GAME_CZERO )
      {
         new 
iModelNum random_num0);
          
         
// Condition Zero has one more model!
         
if ( g_MOD == GAME_CZERO )
         {
            
iModelNum random_num0);
         }
          
         
// Save which skin we're going to use
         
if ( iTeam == TEAM_CT )
         {
            
addszSkin31SKIN_T[iModelNum] );
         }
         else
         {
            
addszSkin31SKIN_CT[iModelNum] );
         }
 
         
cs_set_user_modelidszSkin );
 
      }
 
      
// For Day of Defeat
      
else if ( g_MOD == GAME_DOD )
      {
         new 
iModelNum random_num0);
 
         if ( 
iTeam == ALLIES )
         {
            
addszSkin31SKIN_AXIS[iModelNum] );
         }
         else
         {
             
            
// Then we should use a British model
            
if ( dod_get_map_infoMI_ALLIES_TEAM ) == )
            {
               
addszSkin31SKIN_BRIT[0] );
            }
             
            
// Otherwise use American model
            
else
            {
               
addszSkin31SKIN_ALLIES[iModelNum] );
            }
         }
          
         
dod_set_modelidszSkin );
      }
 
      
p_data_b[id][PB_SKINSWITCHED] = true;
   }
 
   return;

MayroN is offline
Send a message via ICQ to MayroN Send a message via Skype™ to MayroN
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 09:15.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode