RSSy MYGO.pl Opublikowano Czerwiec 13, 2022 o 22:31 RSSy Udostępnij Opublikowano Czerwiec 13, 2022 o 22:31 Loot Boxes v1.0 About: I love the chaos, for me one of the funniest things of this game is to join a server full of shots, zombies, explosions and screams, the more confusing and chaotic the game, the better. I wanted to create a server of this caracteristics, so a lot of my plugins are focused on this, more zombies, more weapons, harder game... This was the first plugin that I started to make, even before publishing anything public on this forum. However it was buggy and crashed sometimes the server, so I created it again from scratch preventing all code errors and server crashes and I added a lot of optimizations.[/INDENT] Description:Special infected can drop a Loot Box when killed. Tanks and Witches can spawn multiple Loot Boxes. When a Loot Box is opened it can trigger a good or a bad event. Up to 34 different events. Boosts and nerfs for survivors who open the box. Global events that affect the whole game. Good events (L4D2 only):Tier 1: Spawn any smg/pumpshotgun. Tier 2: Spawn rifles, snipers or autoshotguns. Tier 3: Spawn a grenade launcher or M60. Drugs: Spawn pain pills or adrenaline. Medical items: Spawn first aid kit or defibrillators. Secondary weapon: Spawn pistols, magnums or melee. Throwables: Spawn any throwable. Explosive/flammable items: Spawn gascans, propane tanks... Upgrade packs: Fire and explosive rounds. Laser Box: Spawn a laser box. Speed boost: Survivor will get movement speed and attack speed bost. Invulnerability: Survivor won't receive damage from zombies or survivors. Health regeneration: Survivor will recover health over time and reset incapacitation count. Fire power: Survivor will burn any attacker or victim if its a zombie. Infinite ammo: Survivor will have unlimited bullets in its magazine. Explosive shots: When bullets hits obstacles or zombies will cause a big explosion that stuns zombies. Infinity Gauntlet: Kills the 50 % of all alive zombies, special infected and witches, tanks will have this current health halved. Bad events (L4D2 only):Some zombies: A group of infected will be spawned and attack survivors. Panic event: More zombies and also a panic event. Vomit trap: The box will explode, covering near survivors in vomit. Spit trap: Multiple acid spit will be shot covering the area in acid. Witch: A witch will spawn where the box has been opened. Tank: A tank will spawn somewhere, if plugin fails to spawn it randomly, the tank will spawn at the box position. Toxic Cloud: The box contains a toxic gas that will hurt any survivor around, there is a small chance to get intoxicated. Jockey: A jockey will spawn at the survivor head and will attempt to ride him instantly. Explosive Barrel: An explosive barrel will spawn and explode. Black and white: Survivor will get black and white effect (getting incapacitation will kill the survivor). Freeze trap: The box will explode and nearby survivors will be frozen. Reverse controls: Basic controls (forward-back-left-right) will be reversed. Fragility: Survivor will get extra damage from all sources. Bear trap: A trap will hurt the survivor and cause a bleeding effect. Random angles: Survivor view angles will be completely randomized over time. Firework party: Multiple fireworks will spawn and explode. Full SI team: Spawn 1 of each special infected at once. ConVars:Left 4 Dead: Spoiler PHP Code: // Amount of bleed hits that survivors will get after opening a bear trap. // - // Default: "30" // Minimum: "1.000000" l4d2_lootbox_bleedhits "30" // Duration of good Box boosts in seconds. // 6 values, separated by commas, no spaces. // <Speed,Invulnerability,Regeneration,FireDamage,InfiniteAmmo,ExplosiveShots>. // - // Default: "30.0,25.0,20.0,30.0,25.0,15.0" l4d2_lootbox_boost_durations "30.0,25.0,20.0,30.0,25.0,15.0" // 1 = Plugin On. 0 = Plugin Off. // - // Default: "1" // Minimum: "0.000000" // Maximum: "1.000000" l4d2_lootbox_enable "1" // Amount of time in seconds that survivors will be frozen with the freeze trap. // - // Default: "10.0" // Minimum: "1.000000" l4d2_lootbox_freezetime "10.0" // Enable plugin in these gamemodes, separated by commas, no spaces. // Empty to allow all. // - // Default: "" l4d2_lootbox_gamemodes "" // Chance for a survivor to get intoxicated when receiving toxic cloud damage. // - // Default: "15.0" // Minimum: "0.000000" // Maximum: "100.000000" l4d2_lootbox_intoxication_chance "15.0" // Lifetime of the Loot Boxes in seconds. // - // Default: "30.0" // Minimum: "10.000000" // Maximum: "60.000000" l4d2_lootbox_lifetime "30.0" // Size of megamob obtained from LootBox // - // Default: "140" // Minimum: "30.000000" l4d2_lootbox_megamob_size "140" // Size of mob obtained from LootBox. // - // Default: "80" // Minimum: "20.000000" l4d2_lootbox_mob_size "80" // Weight of bad Loot Box results. // 17 values, separated by commas, no spaces. // <Mob,Panic,VomitTrap,Witch,Tank,ToxicCloud,Barrel,BlackAndWhite,FreezeTrap,ReverseControls,Fragility,BearTrap,RandomAngles,FullSITeam> // - // Default: "100,60,100,50,20,15,40,15,50,60,15,25,40,85" l4d2_lootbox_negative_weights "100,60,100,50,20,15,40,15,50,60,15,25,40,85" // Duration of bad Box nerfs in seconds. // 13| values, separated by commmas, no spaces. // <ReverseControls,Fragility,RandomAngles> // If one value is placed, it will be set for all the durations. // - // Default: "60.0,25.0,50.0" l4d2_lootbox_nerf_durations "60.0,25.0,50.0" // Chance in % to have a good Loot Box opening. // - // Default: "50.0" // Minimum: "0.000000" // Maximum: "100.000000" l4d2_lootbox_positive_chance "50.0" // Weight of good Loot Box results. // 17 values, separated by commas, no spaces. // <T1,T2,Secondary,Drugs,Medical,Throwables,Items,Speed,Invulnerability,Regeneration,Fire,InfiniteAmmo,ExplosiveShots,InfinityGaunlet> // - // Default: "35,100,30,60,10,45,65,5,5,5,5,5,5,5" l4d2_lootbox_positive_weights "35,100,30,60,10,45,65,5,5,5,5,5,5,5" // Chance to drop a LootBox when a Special infected dies. // 1|3 values, separated by commas, no spaces, values from 0.0 to 100.0 // Order:<smoker,boomer,hunter> // // If one value is placed, it will be set for all SI. // - // Default: "8.0,8.0,8.0,8.0,8.0,8.0" l4d2_lootbox_special_drop_chance "8.0,8.0,8.0,8.0,8.0,8.0" // Min and max amount of lootboxes dropped when a tank dies. // 1|2 values, separated by commas, no spaces. // If 1 value is placed, max and min values will be the same. // - // Default: "1,3" l4d2_lootbox_tank_drops "1,3" // Amount of toxic hits that an intoxicated survivor will receive after intoxication. // - // Default: "50" // Minimum: "1.000000" l4d2_lootbox_toxichits "50" // Lifetime of the toxic cloud in seconds. // - // Default: "40" // Minimum: "10.000000" // Maximum: "240.000000" l4d2_lootbox_toxicloud_lifetime "40" // Lifetime of the weapons/items in boxes, in seconds. // - // Default: "20.0" // Minimum: "15.000000" // Maximum: "60.000000" l4d2_lootbox_weapon_lifetime "20.0" // Prevent bots to steal weapons/items this amount of time (0.0 to disable). // - // Default: "5.0" // Minimum: "0.000000" // Maximum: "15.000000" l4d2_lootbox_weapon_lock "5.0" // Min and max amount of lootboxes dropped when a witch dies. // 1|2 values, separated by commas, no spaces. // If 1 value is placed, max and min values will be the same. // - // Default: "1,2" l4d2_lootbox_witch_drops "1,2" Left 4 Dead 2: Spoiler PHP Code: // Amount of bleed hits that survivors will get after opening a bear trap. // - // Default: "30" // Minimum: "1.000000" l4d2_lootbox_bleedhits "30" // Duration of good Box boosts in seconds. // 6 values, separated by commas, no spaces. // <Speed,Invulnerability,Regeneration,FireDamage,InfiniteAmmo,ExplosiveShots> // If one value is placed, it will be set for all the durations. // Invalid number of params will appl // - // Default: "30.0,25.0,20.0,30.0,25.0,15.0" l4d2_lootbox_boost_durations "30.0,25.0,20.0,30.0,25.0,15.0" // 1 = Plugin On. 0 = Plugin Off. // - // Default: "1" // Minimum: "0.000000" // Maximum: "1.000000" l4d2_lootbox_enable "1" // Amount of time in seconds that survivors will be frozen with the freeze trap. // - // Default: "10.0" // Minimum: "1.000000" l4d2_lootbox_freezetime "10.0" // Enable plugin in these gamemodes, separated by commas, no spaces. // Empty to allow all. // - // Default: "" l4d2_lootbox_gamemodes "" // Chance for a survivor to get intoxicated when receiving toxic cloud damage. // - // Default: "15.0" // Minimum: "0.000000" // Maximum: "100.000000" l4d2_lootbox_intoxication_chance "15.0" // Lifetime of the Loot Boxes in seconds. // - // Default: "30.0" // Minimum: "10.000000" // Maximum: "60.000000" l4d2_lootbox_lifetime "30.0" // Size of megamob obtained from LootBox // - // Default: "140" // Minimum: "30.000000" l4d2_lootbox_megamob_size "140" // Size of mob obtained from LootBox. // - // Default: "80" // Minimum: "20.000000" l4d2_lootbox_mob_size "80" // Weight of bad Loot Box results. // 17 values, separated by commas, no spaces. // <Mob,Panic,VomitTrap,SpitTrap,Witch,Tank,ToxicCloud,JockeyRide,Barrel,BlackAndWhite,FreezeTrap,ReverseControls,Fragility,BearTrap,RandomAngles,FireWorks,FullSITeam> // Invalid values // - // Default: "100,60,100,50,50,20,15,85,40,15,50,60,15,25,40,55,85" l4d2_lootbox_negative_weights "100,60,100,50,50,20,15,85,40,15,50,60,15,25,40,55,85" // Duration of bad Box nerfs in seconds. // 2 values, separated by commmas, no spaces. // <ReverseControls,Fragility> // If one value is placed, it will be set for all the durations. // Invalid number of params will apply default ConVar. // - // Default: "60.0,25.0,50.0" l4d2_lootbox_nerf_durations "60.0,25.0,50.0" // Chance in % to have a good Loot Box opening. // - // Default: "50.0" // Minimum: "0.000000" // Maximum: "100.000000" l4d2_lootbox_positive_chance "50.0" // Weight of good Loot Box results. // 17 values, separated by commas, no spaces. // <T1,T2,T3,Secondary,Drugs,Medical,Throwables,Items,Ammoupgrade,LaserBox,Speed,Invulnerability,Regeneration,Fire,InfiniteAmmo,ExplosiveShots,InfinityGaunlet> // Invalid values or num // - // Default: "35,100,15,30,60,10,45,65,35,10,5,5,5,5,5,5,5" l4d2_lootbox_positive_weights "35,100,15,30,60,10,45,65,35,10,5,5,5,5,5,5,5" // Chance to drop a LootBox when a Special infected dies. // 1|6 values, separated by commas, no spaces, values from 0.0 to 100.0 // Order:<smoker,boomer,hunter,spitter,jockey,charger> // // If one value is placed, it will be set for all SI. // Invalid number of params wil // - // Default: "8.0,8.0,8.0,8.0,8.0,8.0" l4d2_lootbox_special_drop_chance "8.0,8.0,8.0,8.0,8.0,8.0" // Min and max amount of lootboxes dropped when a tank dies. // 2 values, separated by commas, no spaces. // If 1 value is placed, max and min values will be the same. // - // Default: "1,3" l4d2_lootbox_tank_drops "1,3" // Amount of toxic hits that an intoxicated survivor will receive after intoxication. // - // Default: "50" // Minimum: "1.000000" l4d2_lootbox_toxichits "50" // Lifetime of the toxic cloud in seconds. // - // Default: "40" // Minimum: "10.000000" // Maximum: "240.000000" l4d2_lootbox_toxicloud_lifetime "40" // Lifetime of the weapons/items in boxes, in seconds. // - // Default: "20.0" // Minimum: "15.000000" // Maximum: "60.000000" l4d2_lootbox_weapon_lifetime "20.0" // Prevent bots to steal weapons/items this amount of time (0.0 to disable). // - // Default: "5.0" // Minimum: "0.000000" // Maximum: "15.000000" l4d2_lootbox_weapon_lock "5.0" // Min and max amount of lootboxes dropped when a witch dies. // 2 values, separated by commas, no spaces. // If 1 value is placed, max and min values will be the same. // - // Default: "1,2" l4d2_lootbox_witch_drops "1,2" Dependences:Left 4 DHooks Direct by Silvers Weapon Handling by Lux Survivor Utilities by Eärendil. Attached Files lootboxes.zip (105.0 KB) Wyświetl pełny artykuł Odnośnik do komentarza Udostępnij na innych stronach Więcej opcji udostępniania...
Rekomendowane odpowiedzi