Jump to content

NPC cannot switch weapons, such as rocket launchers

Closed 2.1.1

laodu
laodu

Posted

NPC无法切换武器,例如火箭发射器

laodu

Posted

 "Detect the target only in the NPC's viewing vision cone? [true/false]": false,

Another issue is that if you jump from the air, the NPC will not discover the player.

MG8YEESHJX3WOU%82PDDFPQ.png

KpucTaJl

Posted

Hi. Rocket launchers at the NPC is a weapon for raiding buildings, since this event takes place in the air, there are no buildings nearby and he will not take a rocket launcher in his hands. If you want them to shoot at players on a minicopter, then use a grenade launcher for this

KpucTaJl

Posted

regarding enemy detection for NPCs, show all NPC parameters

laodu

Posted

"NPCs setting": {
        "Name": "boss",
        "Health": 2000.0,
        "Attack Range Multiplier": 1.0,
        "Sense Range": 90.0,
        "Target Memory Duration [sec.]": 10.0,
        "Scale damage": 2.0,
        "Aim Cone Scale": 1.0,
        "Detect the target only in the NPC's viewing vision cone? [true/false]": false,
        "Vision Cone": 135.0,
        "Disable radio effects? [true/false]": true,
        "Remove a corpse after death? (it is recommended to use the true value to improve performance) [true/false]": true,
        "Wear items": [
          {
            "ShortName": "frankensteins.monster.02.head",
            "SkinID (0 - default)": 0
          },
          {
            "ShortName": "frankensteins.monster.02.torso",
            "SkinID (0 - default)": 0
          },
          {
            "ShortName": "frankensteins.monster.02.legs",
            "SkinID (0 - default)": 0
          }
        ],
        "Belt items": [
          {
            "ShortName": "lmg.m249",
            "Amount": 1,
            "SkinID (0 - default)": 0,
            "Mods": [
              "weapon.mod.flashlight",
              "weapon.mod.holosight"
            ],
            "Ammo": ""
          },
          {
            "ShortName": "rocket.launcher",
            "Amount": 1,
            "SkinID (0 - default)": 0,
            "Mods": [],
            "Ammo": "1"
          },
          {
            "ShortName": "syringe.medical",
            "Amount": 5,
            "SkinID (0 - default)": 0,
            "Mods": [],
            "Ammo": ""
          }
        ],
        "Kit (it is recommended to use the previous 2 settings to improve performance)": "boss6"
      },

laodu

Posted

"Belt items": [
          {
            "ShortName": "multiplegrenadelauncher",
            "Amount": 1,
            "SkinID (0 - default)": 0,
            "Mods": [
              "weapon.mod.flashlight",
              "weapon.mod.holosight"
            ],
            "Ammo": "1"
          },

You cannot add ammunition to the grenade launcher in the settings, the only way is to set it through KIT. Will KIT settings affect server performance?

KpucTaJl

Posted

no, kit on the contrary will not give you such an opportunity, you specified Ammo "1", which is an error, there are no ammo items with such a shortname

Jbird

Posted

          {
            "ShortName": "multiplegrenadelauncher",
            "Amount": 1,
            "SkinID (0 - default)": 0,
            "Mods": [
              "weapon.mod.flashlight",
              "weapon.mod.holosight"
            ],
            "Ammo": "ammo.grenadelauncher.he"
          },
          {
            "ShortName": "multiplegrenadelauncher",
            "Amount": 1,
            "SkinID (0 - default)": 0,
            "Mods": [
              "weapon.mod.flashlight",
              "weapon.mod.holosight"
            ],
            "Ammo": "ammo.grenadelauncher.buckshot"
          },

I did check and I do believe those attachments will work @laodu so you can give them ammo as above.

KpucTaJl

Posted

Changed Status from Pending to Closed

1.6m

Downloads

Total number of downloads.

7.7k

Customers

Total customers served.

115.5k

Files Sold

Total number of files sold.

2.4m

Payments Processed

Total payments processed.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.