⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 auto change weapon.txt

📁 * first open client.cpp and search for that USER_MSG_INTERCEPT(TeamInfo) over it u add this
💻 TXT
字号:
in Client.cpp 

add 

Code: 
static bool bChangeWEAPON=false; 


find 

Code: 
void CL_CreateMove (float frametime, struct usercmd_s *usercmd, int active) 


add code: 
Code: 
// auto change weapon 
   if (!me.iClip && me.alive) 
   { 

      if (currentWeaponID == WEAPON_SCOUT || currentWeaponID == WEAPON_M3 || currentWeaponID == WEAPON_SG550 || currentWeaponID == WEAPON_AWP || currentWeaponID == WEAPON_G3SG1) 
      { 
         if (!bChangeWEAPON) 
         { 
         cmd.exec("#slot2"); 
         bChangeWEAPON = true; 
         } 
         else 
         { 
            usercmd->buttons &= (~IN_ATTACK); 
         } 
      } 
   } 

   //changed reload 
   if (me.iClip && me.alive) 
   { 

      if (currentWeaponID==WEAPON_SCOUT || currentWeaponID==WEAPON_M3 || currentWeaponID==WEAPON_SG550 || currentWeaponID== WEAPON_AWP || currentWeaponID == WEAPON_G3SG1) 
      { 
         if (bChangeWEAPON) 
         { 
         bChangeWEAPON = false; 
         } 
      } 
   } 

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -