Jump to content

Pumpkin Head 1.2.1

$8.50
   (2 reviews)

5 Screenshots

  • 46.2k
  • 349
  • 36.96 kB

About Pumpkin Head

When picking up wild pumpkins [PumpkinHead] or his twin [CornHead] from picking up corn can appear

Features :

  • Set configurable chance of [PumpkinHead] spawning after a wild pumpkin is picked up (not from harvesting pumpkins from planters)
  • Set configurable chance of [CornHead] spawning after a wild Corn is picked up (not from harvesting Corn from planters)
  • Set npc to be triggered during Nighttime (or during the set values in cfg)
  • Configurable NPC (HP, Damage scaling, spawn amount and more)
  • Support for Kits.
  • Will yield corn and plant fibers on harvesting the PumpkinHead's corpse
  • Will yield pumpkins and plant fibers on harvesting the Corn Head's corpse
  • [PumpkinHead] and [CornHead] can drop a backpack (internal lootprofile through configuration)
  • The npc can only spawn on the surface (no support for tunnel/caves)
  • npc has 1 starter outfit and changes weapon each time it spawns out of the box (or when assigned kit(s) is not found)
  • npc has various spawn and death effects (sound and visual)

Permissions :

pumpkinhead.use  : Assign to players/groups to trigger the mini event

Commands :

/phinfo  : Replies plugin info and version to chat

Configuration :

  • To make a item spawn as a blueprint add .bp behind the shortname (for example  ammo.pistol.bp)
  • Different prefabs can be used for visual and sound FX on the spawn and kills of Pumpkinhead (not every prefab works)

If you do not want to change the Deathsound (murderer) or use any effect just remove the line between the " " as shown in the example
 

      "Sound and visual FX": {
        "FX used when npc spawns (at npc position)": "",
        "Spawn soundeffect (at player position)": "",
        "FX used when npc dies (at npc position)": "",
      }
  • Probability from value 0 to 1 is the spawn chance of any item
  • Usage of custom naming is now possible (> v1.1.7)
  • Example of custom items like the ExtendedRecycler plugins recycler item.
      {
        "probability": 1.0,
        "shortname": "pickaxe",
        "name": "",
        "Skin list": [// When putting more then 1 skin it randomises the skin to be applied
          3163818649,
          1962043729
        ],
        "amountMin": 1,
        "amount": 1
      },

 

{
  "Use Debug": true,
  "Only Trigger at Night Time": false,
  "Night start": 20,
  "Night end": 8,
  "Inject Corpse": false,
  "Disable scientist sounds": true,
  "PumpkinHead triggers": {
    "Wild Pumpkins": {
      "Can spawn from wild Pumpkins": true,
      "Npc Name": "PumpkinHead",
      "Spawn chance (1-100%)": 100.0,
      "Sound and visual FX": {
        "FX used when npc spawns (at npc position)": "assets/bundled/prefabs/fx/explosions/water_bomb.prefab",
        "Spawn soundeffect (at player position)": "assets/bundled/prefabs/fx/player/howl.prefab",
        "FX used when npc dies (at npc position)": "assets/bundled/prefabs/fx/explosions/water_bomb.prefab"
      }
    },
    "Wild Corn": {
      "Can spawn from wild Corn": true,
      "Use SnowmanMask": false,
      "Npc Name": "CornHead",
      "Spawn chance (1-100%)": 100.0,
      "Sound and visual FX": {
        "FX used when npc spawns (at npc position)": "assets/bundled/prefabs/fx/explosions/water_bomb.prefab",
        "Spawn soundeffect (at player position)": "assets/bundled/prefabs/fx/player/howl.prefab",
        "FX used when npc dies (at npc position)": "assets/bundled/prefabs/fx/explosions/water_bomb.prefab"
      }
    }
  },
  "NPC Settings": {
    "Spawn Amount": 1,
    "Health": 250,
    "Max Roam Distance": 20,
    "Damage multiplier": 0.6,
    "Lifetime (minutes)": 10.0,
    "Use kit (clothing)": false,
    "Kit ID PumpkinHead": [],
    "Kit ID CornHead": [],
    "Show messages": true,
    "NPC drop a Backpack with loot": false,
    "Spawn Min Amount Items": 2,
    "Spawn Max Amount Items": 6,
    "Loot Table": [
      {
        "probability": 1.0,
        "shortname": "ammo.pistol",
        "name": "",
        "Skin list": [],
        "amountMin": 128,
        "amount": 256
      },
      {
        "probability": 1.0,
        "shortname": "ammo.pistol.fire",
        "name": "",
        "Skin list": [],
        "amountMin": 128,
        "amount": 256
      },
      {
        "probability": 1.0,
        "shortname": "ammo.rifle.explosive",
        "name": "",
        "Skin list": [
          0
        ],
        "amountMin": 128,
        "amount": 256
      },
      {
        "probability": 1.0,
        "shortname": "ammo.rifle.hv",
        "name": "",
        "Skin list": [],
        "amountMin": 128,
        "amount": 256
      },
      {
        "probability": 1.0,
        "shortname": "ammo.rifle.incendiary",
        "name": "",
        "Skin list": [],
        "amountMin": 128,
        "amount": 256
      },
      {
        "probability": 1.0,
        "shortname": "ammo.shotgun",
        "name": "",
        "Skin list": [],
        "amountMin": 128,
        "amount": 256
      },
      {
        "probability": 1.0,
        "shortname": "ammo.shotgun",
        "name": "",
        "Skin list": [],
        "amountMin": 128,
        "amount": 256
      },
      {
        "probability": 1.0,
        "shortname": "explosive.timed",
        "name": "",
        "Skin list": [],
        "amountMin": 1,
        "amount": 5
      },
      {
        "probability": 1.0,
        "shortname": "explosives",
        "name": "",
        "Skin list": [],
        "amountMin": 200,
        "amount": 200
      },
      {
        "probability": 1.0,
        "shortname": "pistol.m92",
        "name": "",
        "Skin list": [],
        "amountMin": 1,
        "amount": 1
      },
      {
        "probability": 1.0,
        "shortname": "shotgun.spas12",
        "name": "",
        "Skin list": [],
        "amountMin": 1,
        "amount": 1
      },
      {
        "probability": 1.0,
        "shortname": "pickaxe",
        "name": "",
        "Skin list": [
          3163818649,
          1962043729
        ],
        "amountMin": 1,
        "amount": 1
      },
      {
        "probability": 1.0,
        "shortname": "hatchet",
        "name": "",
        "Skin list": [],
        "amountMin": 1,
        "amount": 1
      },
      {
        "probability": 1.0,
        "shortname": "can.beans",
        "name": "",
        "Skin list": [],
        "amountMin": 3,
        "amount": 5
      },
      {
        "probability": 1.0,
        "shortname": "can.tuna",
        "name": "",
        "Skin list": [],
        "amountMin": 3,
        "amount": 5
      },
      {
        "probability": 1.0,
        "shortname": "black.raspberries",
        "name": "",
        "Skin list": [],
        "amountMin": 3,
        "amount": 5
      },
      {
        "probability": 0.0,
        "shortname": "box.repair.bench",
        "name": "Recycler",
        "Skin list": [
          1594245394
        ],
        "amountMin": 1,
        "amount": 1
      },
      {
        "probability": 0.6,
        "shortname": "hmlmg",
        "name": "",
        "Skin list": [],
        "amountMin": 1,
        "amount": 1
      },
      {
        "probability": 0.6,
        "shortname": "supply.signal",
        "name": "",
        "Skin list": [],
        "amountMin": 1,
        "amount": 1
      }
    ]
  }
}

Localisation  :
English language file included to use a different language just make a new file in the language folder.

{
  "PumpkinHead_Spawn": "My Pumpkiiiin",
  "PumpkinHead_Spawn_Backpack": "A Backpack dropped!",
  "Prefix": "[<color=green>PumpkinHead</color>] : ",
  "info": "\nGathering the wild pumpkins outside you could be jumped by PumpkinHead.",
  "CornHead_Spawn": "My Coooorn",
  "CornHead_Spawn_Backpack": "A Backpack dropped!"
}

API :

    public bool IsPumpkinHeadNPC(BasePlayer npc)

API Example :

        [PluginReference]
        Plugin PumpkinHead; // Reference

        void OnEntityDeath(BasePlayer player, HitInfo info)
        {
            // Example: Check if the killed entity is a PumpkinHead NPC
            if (player != null && PumpkinHead != null)
            {
                // Call the IsPumpkinHeadNPC API method
                bool isPumpkinHead = (bool)PumpkinHead.Call("IsPumpkinHeadNPC", player);

                if (isPumpkinHead)
                {
                    Puts($"A PumpkinHead NPC was killed: {player.displayName}");
                    // Do something specific for PumpkinHead NPCs
                }
            }
        }

1997472344_discordbanner.png.a420428b0e99570e8fa9252aba8af1fd.png

  • Love 1

User Feedback

1.9m

Downloads

Total number of downloads.

8.8k

Customers

Total customers served.

131k

Files Sold

Total number of files sold.

2.7m

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.