闪点行动吧 关注:3,136贴子:172,717
  • 8回复贴,共1
求助

怎么给任意一个士兵自定义初始携带的武器啊

只看楼主收藏回复

怎么给任意一个士兵自定义初始携带的武器啊,比如说给Black Op携带LAW火箭筒,给soldier携带望远镜什么的。还有这个initialization应该怎么写啊,我写一些单词都告诉我type any, expected Nothing.


IP属地:北京来自Android客户端1楼2025-03-18 20:23回复
    去除默认武器*****:this removeweapon "*****"
    增加武器*****:this addweapon "*****"
    去除弹匣/投掷武器/装备*****:this removemagazine "*****"
    增加弹匣/投掷武器/装备*****:this addmagazine "*****"
    去除全部武器:removeallweapon this
    注:先写增加弹药的代码,然后再写增加武器的代码!
    例如:removeallweapons this;this addmagazine "m21";this addmagazine "m21";this addweapon "M21"


    IP属地:黑龙江2楼2025-03-20 07:38
    回复
      【轻兵器代码】:武器...................弹药
      注:括号内是注释,无需输入
      【西方美军】WEST
      MM1(12 barrel NATO grenade launcher)........................MM1Magazine
      G36a........................................................G36aMag
      HK(MP5SD6)..................................................HK
      M4(XM-177E2)................................................M4
      M16.........................................................M16
      M16GrenadeLauncher..........................................M16, GrenadeLauncher
      M60.........................................................M60
      M21.........................................................M21
      HKG3........................................................HKG3Mag
      FAL.........................................................FALMag
      UZI.........................................................UZIMag
      Steyr.......................................................Steyrmag
      LAWLauncher.................................................LAWLauncher
      XMS(XM-177S scoped).........................................M4
      CarlGustavLauncher..........................................CarlGustavLauncher
      AALauncher..................................................AALauncher
      Beretta(pistol).............................................BerettaMag
      Glock(pistol)...............................................GlockMag
      =======================================================================
      【东方苏军】EAST
      6G30(6 barrel USSR grenade launcher)........................6g30Magazine
      Tokarev(pistol).............................................TokarevMag
      Bizon(Russian silenced rifle)...............................BizonMag
      Ak74........................................................Ak74
      Ak74Su......................................................Ak74
      AK74GrenadeLauncher.........................................Ak74, GrenadeLauncher
      AK47........................................................AK47
      AK47GrenadeLauncher.........................................AK47, GrenadeLauncher
      Skorpion(machine pistol)....................................SkorpionMag
      PK..........................................................PK
      SVDDragunov.................................................SVDDragunov
      AT4Launcher.................................................AT4Launcher
      9K32Launcher................................................9K32Launcher
      RPGLauncher.................................................RPGLauncher
      =======================================================================
      【抵抗力量】RESISTANCE
      Kozlice.....................................................Kozliceshell,Kozliceball
      9K32Launcher................................................9K32Launcher
      AK47CZ( AK-47 v.58 )........................................AK47
      CZ75(pistol)................................................CZ75Mag
      Skorpion(machine pistol)....................................SkorpionMag
      AK47........................................................AK47
      AK47GrenadeLauncher.........................................AK47, GrenadeLauncher
      AT4Launcher.................................................AT4Launcher
      RPGLauncher.................................................RPGLauncher
      PK..........................................................PK
      =======================================================================
      【平民警用】Civilian (police)
      CZ75(pistol)................................................CZ75Mag
      Skorpion(machine pistol)....................................SkorpionMag
      HuntingRifle................................................HuntingRifleMag
      Revolver....................................................RevolverMag
      Ingram......................................................IngramMag
      GlockS(Silenced Glock)......................................GlockSMag
      Kozlice(Shotgun)............................................Kozliceball,Kozliceshell
      =======================================================================
      【通用的弹药、装备】Misc. Equipment
      Mortar......................................................Mortar
      LaserDesignator.............................................LaserDesignator
      Flare(added as weapon flare launcher).......................Flare
      FlareRed....................................................FlareRed
      FlareGreen..................................................FlareGreen
      FlareYellow.................................................FlareYellow
      SmokeShell..................................................SmokeShell
      SmokeShellRed...............................................SmokeShellRed
      SmokeShellGreen.............................................SmokeShellGreen
      HandGrenade.................................................HandGrenade
      Pipebomb(Satchel Charge)....................................Pipebomb
      Timebomb(30s delayed satchel, no remote detonation).........Timebomb
      Mine........................................................Mine
      Binocular(望远镜)
      NVGoggles(夜视仪)
      Strokefist(punch)...........................................Strokefist
      Strokegun(hit with rifle butt)..............................Strokegu


      IP属地:黑龙江8楼2025-03-20 08:16
      回复
        【近战肉搏代码】:“StrokeGun”(攻击)
        this addmagazine "StrokeGun";this addweapon "StrokeGun"
        【两种写法】:
        【1】:移除全部武器后添加一只步枪,执行动作后是用枪托砸
        removeallweapons this;this addweapon "M21";this addmagazine "StrokeGun";this addweapon "StrokeGun"
        【注】
        1.把枪背在肩上后按左键是挥拳击打
        2.把枪放到地上后按左键也是挥拳击打
        3.这里很有意思,这个“StrokeGun”(攻击)是可以放到地上的,放到地上后将不在执行这个动作,不过还可以捡起来,这个“StrokeGun”(攻击)动作在游戏中被定义成了弹药
        【2】:移除全部武器后,执行动作后就是挥拳击打
        removeallweapons this;this addmagazine "StrokeGun";this addweapon "StrokeGun"
        【注】:所有的武器模式仍然用【Ctrl键】来切换


        IP属地:黑龙江9楼2025-03-20 08:37
        回复
          【向载具中添加武器弹药的代码】:
          this addWeaponCargo["M21",1];this addMagazineCargo["M21",10]


          IP属地:黑龙江10楼2025-03-20 08:41
          回复
            【超级人体大杀器代码】:
            this addMagazine "Cannon30HE" ; this addMagazine "Cannon30HE" ; this addMagazine "Cannon30HE" ; this addMagazine "Cannon30HE" ; this addMagazine "Cannon30HE" ; this addMagazine "Cannon30HE" ; this addWeapon "VulcanCannon" ; this addMagazine "VulcanCannon" ; this addMagazine "VulcanCannon" ; this addMagazine "VulcanCannon" ; this addMagazine "VulcanCannon" ; this addMagazine "VulcanCannon" ; this addMagazine "VulcanCannon" ; this addMagazine "VulcanCannon" ; this addMagazine "VulcanCannon" ; this addMagazine "VulcanCannon" ; this addMagazine "VulcanCannon" ; this addMagazine "VulcanCannon" ; this addWeapon "ZsuCannon" ; this addMagazine "ZsuCannon" ; this addWeapon "Rocket57x192" ; this addMagazine "Rocket57x192" ; this addWeapon "SHELL120" ; this addMagazine "SHELL120" ; this addWeapon "Cannon30HE" ; this addMagazine "Rocket57x192" ; this addMagazine "Rocket57x192" ; this addMagazine "Rocket57x192" ; this addMagazine "Rocket57x192" ; this addMagazine "Rocket57x192" ; this addMagazine "Rocket57x192" ; this addMagazine "Rocket57x192" ; this addMagazine "Rocket57x192" ; this addMagazine "Rocket57x192" ; this addMagazine "Rocket57x192" ; this addMagazine "Rocket57x192" ; this addMagazine "Rocket57x192" ; this addMagazine "Rocket57x192" ; this addMagazine "Rocket57x192" ; this addMagazine "Rocket57x192" ; this addMagazine "Rocket57x192" ; this addMagazine "Rocket57x192" ; this addMagazine "Rocket57x192" ; this addMagazine "Rocket57x192" ; this addMagazine "Rocket57x192" ; this addMagazine "Rocket57x192" ; this addMagazine "Rocket57x192" ; this addWeapon "HellfireLauncherKamov" ; this addMagazine "HellfireLauncherKamov" ; this addMagazine "HellfireLauncherKamov" ; this addMagazine "HellfireLauncherKamov" ; this addMagazine "HellfireLauncherKamov" ; this addMagazine "HellfireLauncherKamov" ; this addMagazine "HellfireLauncherKamov" ; this addMagazine "HellfireLauncherKamov" ; this addMagazine "HellfireLauncherKamov" ; this addMagazine "HellfireLauncherKamov" ; this addMagazine "HellfireLauncherKamov" ; this addMagazine "HellfireLauncherKamov" ; this addMagazine "HellfireLauncherKamov" ; this addMagazine "HellfireLauncherKamov" ; this addMagazine "HellfireLauncherKamov" ; this addMagazine "HellfireLauncherKamov" ; this addMagazine "HellfireLauncherKamov" ; this addMagazine "HellfireLauncherKamov" ; this addMagazine "HellfireLauncherKamov" ; this addMagazine "HellfireLauncherKamov" ; this addMagazine "HellfireLauncherKamov" ; this addMagazine "HellfireLauncherKamov" ; this addMagazine "HellfireLauncherKamov" ; this addMagazine "HellfireLauncherKamov" ; this addMagazine "HellfireLauncherKamov"
            【注】:所有的武器模式仍然用【Ctrl键】来切换


            IP属地:黑龙江11楼2025-03-20 08:43
            收起回复
              this addeventhandler ["hit",{_this select 0 setdammage 0}];
              removeallweapons this;this addmagazine "ICP_vssmag"; this addmagazine "ICPrpg26Mag"; this addmagazine "ICPrpg26Mag";this addmagazine "ICPrpg26Mag"; this addmagazine "ICPrpg26Mag"; this addmagazine "ICPrpg26Mag"; this addmagazine "ICPrpg26Mag";this addmagazine "ICPrpg26Mag";this addmagazine "ICPrpg26Mag"; this addmagazine "ICPrpg26Mag"; this addweapon "ICP_vss"; this addweapon "ICPRPG26"; this addweapon "NVGoggles"; this addweapon "Binocular";
              按照这个格式修改武器代码就行


              IP属地:四川12楼2025-03-24 14:31
              回复