Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- zpn = zpn or {}
- zpn.f = zpn.f or {}
- zpn.config = zpn.config or {}
- /////////////////////////// Zeros PumpkinNight /////////////////////////////
- // Developed by ZeroChain:
- // http://steamcommunity.com/id/zerochain/
- // https://www.gmodstore.com/users/view/76561198013322242
- // If you wish to contact me:
- // clemensproduction@gmail.com
- /////////////////////////////////////////////////////////////////////////////
- // Console Commands:
- /*
- zpn_ghost_removeall - Remove all Ghosts on the map.
- zpn_data_purge - Removes all the candy points and score data for all players on the server and purges all the save files.
- zpn_cl_draw_antighost - Displays the radius for AntiGhost signs
- */
- // Chat Commands:
- /*
- !zpn_save - Saves all the NPC´s, Scoreboards and AntiGhostSign´s on the Map.
- !candy - Tells you your current CandyPoints.
- !dropcandy NUMBER - Drops the defined amount of candy
- */
- // Switches between FastDl and Workshop
- zpn.config.FastDl = false
- // This enables the Debug Mode
- zpn.config.Debug = false
- // The language , en , de , fr , es , ru , pl
- zpn.config.SelectedLanguage = "en"
- // These Ranks are admins, if one of the following scripts is installed then you can ignore this table
- // If xAdmin is installed then this table can be ignored
- zpn.config.AdminRanks = {
- ["superadmin"] = true,
- ["owner"] = true,
- }
- // Since certain weapons like the stunstick inflict a shit ton of damage to entities we clamp the damage to this value
- zpn.config.DamageClamp = {
- ["stunstick"] = 0,
- }
- // Can be smashed and spawns candy
- zpn.config.Pumpkin = {
- // How much damage needs to be inflicted in order for the pumpkin to be destroyed.
- Health = {
- min = 5,
- max = 10,
- },
- // How much candy entities can a Pumpkin drop?
- Candy = {
- min = 1,
- max = 3,
- },
- // How long till the Pumpkin gets removed? -1 will disable the Despawn
- DespawnTime = 100, // seconds
- Models = {
- "models/zerochain/props_pumpkinnight/zpn_pumpkin01.mdl",
- "models/zerochain/props_pumpkinnight/zpn_pumpkin02.mdl",
- "models/zerochain/props_pumpkinnight/zpn_pumpkin03.mdl",
- "models/zerochain/props_pumpkinnight/zpn_pumpkin04.mdl",
- }
- }
- // The System for randomly spawning Pumpkins around the map
- zpn.config.PumpkinSpawner = {
- // Should we spawn Pumpkins randomly arround the Map?
- Enabled = true,
- // How often should we try to spawn a new Pumpkin?
- Interval = 60, // seconds
- // Whats the Chance that a pumpkin will spawn?
- Chance = 50, //1-100%
- // How many pumpkins are allowed to exist at the same time?
- Count = 15,
- // Should we only spawn pumpkins on predefind positions created by the Pumpkin Spawner Toolgun?
- UseCustomSpawns = false,
- /*
- if UseCustomSpawns is set to false then we get the spawn position from Players who are:
- Valid
- Alive
- Not In Vehicle
- On the Ground
- Not near a Anti GhostSign
- Not near another Pumpkin
- */
- }
- // The Pumpkin Boss
- zpn.config.PumpkinBoss = {
- Notify = {
- // Should we notify all Players on the Server when a Pumpkin Boss spawns or dies?
- Enabled = true,
- // The Message we send each player when the Boss spawns
- notify_spawn = "A Pumpkin Boss just appeared!",
- // The Message we send each player when the Boss got defeated
- notify_death = "The Pumpkin Boss got defeated!",
- },
- // What Music should play while the Boss is alive?
- // This needs to be the path to the music file like inside the sound folder.
- // In order for players to hear the music you need to include it to your FastDL or Workshop contentpack
- // Battle music like this fits very well https://www.youtube.com/watch?v=4XNCS-VqP8U
- MusicPath = nil, // "path/to/the/file.mp3"
- // How much damage needs to be inflicted in order for the pumpkinmonster to be killed.
- Health = 1000,
- // How much damage needs to be inflicted in order to stop the Boss from healing
- HealShield = 100,
- // How long afer the Boss has healed can he heal himself again
- HealCooldown = 60, // seconds
- // Should the Boss spawn with a Tornado Effect?
- LeafTornado = true,
- // Should we shine a spotlight on the Boss for better lightning?
- Spotlight = true,
- // The Distance at which the player causes more damage to the Boss
- // Being to far away will decrease the inflicted damage by 90%
- AttackDistance = 1500,
- // How long should the npc be idle/NotAttacking before he starts his next attack
- NoAttack = {
- time_min = 2,
- time_max = 5
- },
- // Close Range attacks include the aimed Smash at close Players or the Circular Smash
- CloseRangeAttack = {
- // How much damage do the CloseRange attacks inflict on the Players?
- Damage = 50,
- // Close Range Cooldown in seconds
- Cooldown = 10
- },
- // Far Range attacks include the Meteor and PumpkinBomb attacks
- FarRangeAttack = {
- // Far Range Cooldown in seconds
- Cooldown = 5
- },
- // The FireRain Attack shoots Meteors from the sky and at players
- FireRain = {
- // How many meteors should shoot at random positions arrond the boss
- Count = 3,
- // Should we spawn some extra meteors aiming at the players?
- AimedMeteors = true,
- // Should the meteors create firepits on impact?
- FirepitOnDeath = true,
- // How long should the firepit exist?
- Firepit_Duration = 5,
- },
- // The Pumpkinbomb attack shoots bombs at the Player
- PumpkinBombs = {
- // How many Pumpkin Bombs should be spawned per PumpkinBomb Attack?
- Count = 3,
- // How much damage does a PumpkinBomb inflict on the Player?
- Damage = 5,
- // How long till the bombs explode?
- ExploDelay = 4,
- },
- // The Minion attack summons Pumpkin monsters
- Minions = {
- // How often can the Boss spawn minions?
- Interval = 20, //seconds
- // How many Pumpkin Minions can the boss have?
- Count = 3,
- // How much damage needs to be inflicted in order for the pumpkinmonster to be killed.
- Health = 100,
- Shoot = {
- // How much damage does the minion inflict on the player?
- Damage = 5,
- // How often can the minion shoot a fireball?
- Interval = 3
- },
- // Should the minions circle arround the boss? This does impact the performance because of physics.
- CircleBoss = false,
- // How many candy entities should the Monster drop on death?
- CandyDropOnDeath = {
- max = 3,
- min = 1,
- },
- // What models should the Minions use?
- Models = {
- "models/zerochain/props_pumpkinnight/zpn_minion_pumpkin01.mdl",
- "models/zerochain/props_pumpkinnight/zpn_minion_pumpkin02.mdl",
- "models/zerochain/props_pumpkinnight/zpn_minion_pumpkin03.mdl",
- "models/zerochain/props_pumpkinnight/zpn_minion_pumpkin04.mdl",
- }
- },
- // Should we spawn a little firework once the boss is defeated?
- FireworkOnDeath = true,
- // What loot should the pumpkin boss drop on death?
- Loot = {
- ["zpn_pumpkin"] = 5,
- ["zpn_candy"] = 10,
- ["zpn_partypopper"] = 3,
- }
- }
- zpn.config.Candy = {
- // What models should the candy use and how much candy does it give?
- Candytypes = {
- ["models/zerochain/props_pumpkinnight/zpn_candy_corn.mdl"] = 3,
- ["models/zerochain/props_pumpkinnight/zpn_candy_lolipop.mdl"] = 10,
- ["models/zerochain/props_pumpkinnight/zpn_candy_puff.mdl"] = 5,
- ["models/zerochain/props_pumpkinnight/zpn_candy_pumpkin.mdl"] = 7,
- ["models/zerochain/props_pumpkinnight/zpn_candy_bonbon.mdl"] = 5,
- ["models/zerochain/props_pumpkinnight/zpn_candy_skull.mdl"] = 7,
- ["models/zerochain/props_pumpkinnight/zpn_candy_smartie.mdl"] = 2,
- ["models/zerochain/props_pumpkinnight/zpn_candy_snake.mdl"] = 4,
- ["models/zerochain/props_pumpkinnight/zpn_candy_coco.mdl"] = 6,
- ["models/zerochain/props_pumpkinnight/zpn_candy_spiral02.mdl"] = 7,
- ["models/zerochain/props_pumpkinnight/zpn_candy_string.mdl"] = 4,
- ["models/zerochain/props_pumpkinnight/zpn_candy_fruit.mdl"] = 6,
- },
- // How long does it take for the Candy to despawn? -1 will disable the Despawn
- DespawnTime = 60, // seconds
- }
- zpn.config.Data = {
- // Should the CandyPoints and SmashedPumpkin Count be saved on the server?
- Save = true,
- // How often should we auto save the data of players. Set to -1 to disable the autosave.
- // The data will also get saved when the player disconnects from the Server so the autosave is just a safety measure.
- Save_Interval = 120,
- // If specified then only data for Players with these Ranks get saved. Leave empty to save the data for every player.
- Whitelist = {
- //["superadmin"] = true
- }
- }
- zpn.config.Scoreboard = {
- // How often should we update the scoreboard if the score has changed?
- UpdateInterval = 10, // seconds
- // Players with these ranks will not be displayed on the scoreboard
- RankBlackList = {
- ["owner"] = true,
- }
- }
- // The Ghost sometimes appears and steals candy from pumpkins and players
- zpn.config.Ghost = {
- // How much damage needs to be inflicted in order for the Ghost to be killed.
- Health = 500,
- // How much Health should the Ghost gain/recover on successfully stealing candy or smashing a pumpkin?
- Health_OnSuccess = 0.1, // 10%
- // This position will be used when the ghost is hiding
- HidingPos = Vector(0,0,0),
- // How much candy can the ghost steal from the Player
- Steal = {
- max = 10,
- min = 5
- },
- // How often should the ghost try to steal candy or smash a pumpkin
- Action_Interval = 60, // seconds,
- // How long should the Ghost be paralized when damaged before hiding again?
- ParalizeTime = 3,
- // How long has the ghost to wait before he can attack each player again?
- PlayerAttack_Cooldown = 300, // seconds
- // The ghost wont steal candy from players with these ranks
- BlackList = {
- ["superadmin"] = true,
- },
- // Should we spawn another Ghost everytime a Ghost dies?
- Rebirth = false,
- }
- // The Anti Ghost sign prevents the Ghost stealing candy from Players near the sign.
- // It also prevents pumpkins spawning near it.
- // Its usally used in areas like the Player Spawn
- zpn.config.AntiGhostSign = {
- // How close does the player needs to be near the sign to be save from the Ghosts?
- Distance = 500
- }
- // The PartyPopper Swep can be bought by the Shop NPC
- // There is a non lethal version which shoots confetty and a lethal version which shoots a projectile.
- zpn.config.PartyPopper = {
- // How much damage does the Projectile of the PumpkinSlayer inflict upon explosion?
- Damage = {
- // Destroy them bombs
- ["zpn_pumpkin_bomb"] = 10000,
- // Insta kill the Pumpkins
- ["zpn_pumpkin"] = 10000,
- // Inflict a lot of damage against the Ghost
- ["zpn_ghost"] = 300,
- // Inflict some damage against the Minion
- ["zpn_pumpkin_minion"] = 100,
- // Do some damage against the Boss
- ["zpn_pumpkin_boss"] = 200,
- }
- }
- zpn.config.NPC = {
- // Name of the NPC
- Name = "Señor Calabaza",
- // Setting this to false will improve network performance but disables the npc reactions for the player
- Capabilities = true,
- // Model of the NPC
- Model = "models/zerochain/props_pumpkinnight/zpn_shopnpc.mdl",
- }
- /*
- //////////////////////
- //Shop Item Exambles//
- //////////////////////
- SH Accessory HatID https://www.gmodstore.com/market/view/3781
- [x] = {
- type = 5,
- class = "pumpkinhat",
- name = "Pumpkin Hat",
- desc = "A nice hat!",
- model = "models/props/pumpkin_z.mdl",
- icon = nil,
- price = 25,
- amount = 1
- },
- Pointshop01 Points https://github.com/adamdburton/pointshop
- [x] = {
- type = 6,
- class = nil,
- name = "PS1 Points",
- desc = "Some Pointshop points!",
- model = nil,
- icon = Material("materials/zerochain/zpn/ui/zpn_p01_icon.png", "smooth"),
- price = 10,
- amount = 5
- },
- Pointshop02 StandardPoints https://github.com/Kamshak/Pointshop2
- [x] = {
- type = 7,
- class = nil,
- name = "PS2 StandardPoints",
- desc = "Some Pointshop2 points!",
- model = nil,
- icon = Material("materials/zerochain/zpn/ui/zpn_p02_icon.png", "smooth"),
- price = 10,
- amount = 5
- },
- Pointshop02 PremiumPoints https://github.com/Kamshak/Pointshop2
- [x] = {
- type = 8,
- class = nil,
- name = "PS2 PremiumPoints",
- desc = "Some Pointshop2 PremiumPoints!",
- model = nil,
- icon = Material("materials/zerochain/zpn/ui/zpn_p02+_icon.png", "smooth"),
- price = 50,
- amount = 5
- },
- //////////////////////
- //////////////////////
- */
- zpn.config.Shop = {
- [1] = {
- /*
- 1 = Entity
- 2 = Weapon
- 3 = Health
- 4 = Armor
- 5 = SH Accessory HatID https://www.gmodstore.com/market/view/3781
- 6 = Pointshop01 Points https://github.com/adamdburton/pointshop
- 7 = Pointshop02 StandardPoints https://github.com/Kamshak/Pointshop2
- 8 = Pointshop02 PremiumPoints https://github.com/Kamshak/Pointshop2
- */
- // What kind of item is this?
- type = 1,
- // The Entity / Weapon Class or HatID
- class = "item_ammo_pistol",
- // The Item name
- name = "Pistol Ammo",
- // Some info about this item
- desc = "Holds some pistol ammo!",
- // The path to Model
- model = "models/Items/BoxSRounds.mdl",
- // The Field of view for displaying the model (Usefull if the model is very small)
- model_fov = 25,
- // The Skin for the Model
- model_skin = 0,
- // The path to the png icon, set to nil to use the model instead
- icon = nil,
- // The Price
- price = 15,
- // How much should we give the player? (Used for stuff like Health, Armor, Points)
- amount = 1,
- // What color should the item have in the shop?
- color = Color(39,32,65),
- // What ranks are allowed to buy this item? Leave empty to allowe everyone to buy it.
- ranks = {}
- },
- [2] = {
- type = 3,
- class = nil,
- name = "Health",
- desc = "+25 Health.",
- model = nil,
- model_skin = nil,
- model_fov = nil,
- icon = Material("materials/zerochain/zpn/ui/zpn_health_icon.png", "smooth"),
- price = 50,
- amount = 25,
- color = Color(39,32,65),
- ranks = {},
- },
- [3] = {
- type = 4,
- class = nil,
- name = "Armor",
- desc = "+25 Armor.",
- model = nil,
- model_skin = nil,
- model_fov = nil,
- icon = Material("materials/zerochain/zpn/ui/zpn_armor_icon.png", "smooth"),
- price = 50,
- amount = 25,
- color = Color(39,32,65),
- ranks = {},
- },
- [4] = {
- type = 2,
- class = "weapon_ak472",
- name = "AK 47",
- desc = "Awesome gun!",
- model = "models/weapons/w_rif_ak47.mdl",
- model_skin = 0,
- model_fov = 25,
- icon = nil,
- price = 100,
- amount = 1,
- color = Color(39,32,65),
- ranks = {
- ["superadmin"] = true,
- ["VIP"] = true,
- },
- },
- [5] = {
- type = 2,
- class = "zpn_partypopper",
- name = "Pumpkin Popper",
- desc = "Perfect for celebrating Halloween!",
- model = "models/zerochain/props_pumpkinnight/zpn_partypopper.mdl",
- model_skin = 0,
- model_fov = 13,
- icon = nil,
- price = 50,
- amount = 1,
- color = Color(39,32,65),
- ranks = {
- ["superadmin"] = true,
- ["VIP"] = true,
- },
- },
- [6] = {
- type = 2,
- class = "zpn_partypopper01",
- name = "Pumpkin Slayer",
- desc = "A powerfull weapon against pumpkins!",
- model = "models/zerochain/props_pumpkinnight/zpn_partypopper.mdl",
- model_skin = 1,
- model_fov = 13,
- icon = nil,
- price = 200,
- amount = 1,
- color = Color(39,32,65),
- ranks = {
- ["superadmin"] = true,
- ["VIP"] = true,
- },
- },
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement