L4D2_Buy_Store
Folders and files
Name | Name | Last commit date | ||
---|---|---|---|---|
parent directory.. | ||||
L4D2 Human and Zombie Shop by HarryPoter (Survivor) Killing zombies and infected to earn credits + (Infected) Doing Damage to survivors to earn credits -Require- 1. Sm 1.10 or above 2. To unlock all melee weapons in all campaigns, you MUST use the [Mission and Weapons - Info Editor]("https://forums.alliedmods.net/showthread.php?t=310586") plugin which supersedes the extension. 3. Left 4 DHooks Direct: https://forums.alliedmods.net/showthread.php?p=2684862 4. [INC] Multi Colors: https://forums.alliedmods.net/showthread.php?t=247770 -ChangeLog- v4.1 -Remke code -Translation Support -Add The last stand two melee -Unlock All weapons including M60, Grenade_Launcher, and CSS weapons -Unlock All items including cola, gnome and fireworkcrate -Add Infected Shop -Add Survivor/Infected Special items -You can earn credits by doing damage to survivors as an infected. -You can earn credits by helping each other as a survivor. -Save player's money with Cookies, it means that money can be saved to database across client connections, map changes and even server restarts. -Add short buy commands, directly buy item. -Repeat purchase item you bought last time. -Choose location and spawn Witch. -Buy time cooldown, can't buy quickly. v1.0 -original Post: https://forums.alliedmods.net/showthread.php?t=322108 -ConVar- cfg\sourcemod\L4D2_Buy_Store.cfg // If 1, use CookiesCached to save player money. Otherwise, the moeny will not be saved if player leaves the server. sm_shop_CookiesCached_enable "1" // Giving money for killing a boomer sm_shop_boomkilled "10" // Giving money for killing a charger sm_shop_chargerkilled "30" // Can not buy cola in these maps, separate by commas (no spaces). (0=All maps, Empty = none). sm_shop_cola_map_off "c1m2_streets" // Giving money for saving people with defibrillator sm_shop_defi_save "200" // Giving money to each alive survivor for mission accomplished award (final). sm_shop_final_mission_complete "3000" // Giving money to each infected player for wiping out survivors. sm_shop_final_mission_lost "300" // Can not buy gas can in these maps, separate by commas (no spaces). (0=All maps, Empty = none). sm_shop_gascan_map_off "c1m4_atrium,c6m3_port,c14m2_lighthouse" // Giving money for healing people with kit sm_shop_heal_teammate "100" // Giving money for saving incapacitated people. (No Hanging from legde) sm_shop_help_teammate_save "30" // Giving money for killing a hunter sm_shop_hunterkilled "20" // Cold Down Time in seconds an infected player can not buy again after player buys item. (0=off). sm_shop_infected_cooltime_block "30.0" // If 1, Enable shop for infected. sm_shop_infected_enable "1" // Giving money for incapacitating a survivor. (No Hanging from legde) sm_shop_infected_survivor_incap "30" // Giving money for killing a survivor. sm_shop_infected_survivor_killed "100" // Tank limit on the field before infected can buy a tank. (0=Can't buy Tank) sm_shop_infected_tank_limit "1" // Amount of seconds before a witch is kicked. (only remove witches bought by player in this plugin) sm_shop_infected_witch_lifespan "250" // Witch limit on the field before infected can buy a witch. (0=Can't buy Witch) sm_shop_infected_witch_limit "4" // How far away from survivors an infected can buy and spawn witch. sm_shop_infected_witch_spawn_safety_range "1150" // Giving money for killing a jockey sm_shop_jockeykilled "25" // Changes how 'You got credits by killing infected' Message displays. (0: Disable, 1:In chat, 2: In Hint Box, 3: In center text) sm_shop_kill_infected_announce_type "1" // Maximum money limit. (Money saved when map change/leaving server) sm_shop_max_moeny_limit "32000" // Numbers of real survivor and infected player require to active this plugin. sm_shop_player_require "4" // Giving money for killing a smoker sm_shop_smokerkilled "20" // How long could Dead-Eyes state last for survivor special item. sm_shop_special_dead_eyes_time "60" // How long could Freeze-Infected state last for survivor special item. sm_shop_special_freeze_time "6" // How long could Immune Everything last for infected special item. sm_shop_special_immune_everything_time "8" // How long could infinite ammo state last for survivor special item. sm_shop_special_infinite_ammo_time "15" // Max Air Jump Limit for survivor special item. sm_shop_special_max_jump_limit "3" // Giving money for killing a spitter sm_shop_spitterkilled "10" // Giving money to each alive survivor for mission accomplished award (non-final). sm_shop_stage_complete "400" // If 1, decrease money if survivor friendly fire each other. (1 hp = 1 dollar) sm_shop_survivor_TK_enable "1" // Cold Down Time in seconds a survivor player can not buy again after player buys item. (0=off). sm_shop_survivor_cooltime_block "5.0" // Giving one dollar money for hurting tank per X hp sm_shop_tank_hurt "40" // Giving money for killing a witch sm_shop_witchkilled "80" // Giving money for killing a zombie sm_shop_zombiekilled "1" -Command- **shop and buy (Short name available) say "buy [item_name]" say "b [item_name]" say "shop [item_name]" say "item [item_name]" "sm_shop [item_name]" "sm_buy [item_name]" "sm_b [item_name]" "sm_money [item_name]" "sm_purchase [item_name]" "sm_market [item_name]" "sm_item [item_name]" "sm_items [item_name]" "sm_credit [item_name]" "sm_credits [item_name]" For example: say "!buy" or "b" to open shop menu say "!buy rifle_ak47" or "b rifle_ak47" to directly buy Ak47 weapon ****short command list I won't add more short names to list, don't ask. Weapon { "!buy pistol" -> Pistol "!buy pistol_magnum" -> Magnum "!buy pumpshotgun" -> Pumpshotgun "!buy shotgun_chrome" -> Chrome Shotgun "!buy smg" -> Smg "!buy smg_silenced" -> Silenced Smg "!buy smg_mp5" -> MP5 "!buy rifle" -> Rifle "!buy rifle_ak47" -> AK47 "!buy rifle_desert" -> Desert Rifle "!buy rifle_sg552" -> SG552 "!buy shotgun_spas" -> Spas Shotgun "!buy autoshotgun" -> Autoshotgun "!buy hunting_rifle" -> Hunting Rifle "!buy sniper_military" -> Military Sniper "!buy sniper_scout" -> SCOUT "!buy sniper_awp" -> AWP "!buy rifle_m60" -> M60 Machine Gun "!buy grenade_launcher" -> Grenade Launcher } Melee { "!buy chainsaw" -> Chainsaw "!buy baseball_bat" -> Baseball Bat "!buy cricket_bat" -> Cricket Bat "!buy crowbar" -> Crowbar "!buy electric_guitar" -> Electric Guitar "!buy fireaxe" -> Fire Axe "!buy frying_pan" -> Frying Pan "!buy katana" -> Katana "!buy machete" -> Machete "!buy tonfa" -> Tonfa "!buy golfclub" -> Golf Club "!buy knife" -> Knife "!buy pitchfork" -> Pitchfork "!buy shovel" -> Shovel } Medic and Throwable { "!buy health_100" -> Health+100 "!buy defibrillator" -> Defibrillator "!buy first_aid_kit" -> First Aid Kit "!buy pain_pills" -> Pain Pill "!buy adrenaline" -> Adrenaline "!buy pipe_bomb" -> Pipe Bomb "!buy molotov" -> Molotov "!buy vomitjar" -> Vomitjar } Other { "!buy ammo" -> Ammo "!buy laser_sight" -> Laser Sight "!buy incendiary_ammo" -> Incendiary Ammo "!buy explosive_ammo" -> Explosive Ammo "!buy weapon_upgradepack_incendiary" -> Incendiary Pack "!buy weapon_upgradepack_explosive" -> Explosive Pack "!buy propanetank" -> Propane Tank "!buy oxygentank" -> Oxygen Tank "!buy fireworkcrate" -> Firework Crate "!buy gascan" -> Gascan "!buy cola_bottles" -> Cola Bottles "!buy gnome" -> Gnome } Survivor Special { "!buy Fire" -> Fire Yourself "!buy Fire_Infeceted" -> All Infected Gets On Fire "!buy Teleport" -> Teleport to teammate "!buy Infinite_Ammo" -> Infinite Ammo "!buy Dead_Eyes" -> Dead-Eyes "!buy Kill_Commons" -> Kill Commons "!buy Kill_Witches" -> Kill Witches "!buy Jump+1" -> Jump+1 "!buy Heal_Survivors" -> Heal Survivors "!buy No_FF" -> No Friendly Fire "!buy Slay_Infected" -> Slay Infected Attacker "!buy Respawn" -> Respawn Alive "!buy Freeze_Infected" -> Freeze-Infected } Infected Spawn { "!buy Suicide" -> Suicide "!buy Smoker" -> Smoker "!buy Boomer" -> Boomer "!buy Hunter" -> Hunter "!buy Spitter" -> Spitter "!buy Jockey" -> Jockey "!buy Charger" -> Charger "!buy Tank" -> Tank } Infected Special { "!buy Health" -> Full Health "!buy Teleport" -> Teleport to survivor "!buy Immune" -> Immune Everything "!buy Horde" -> Zombie Horde "!buy Witch" -> Witch } **repeat purchase item you bought last time "sm_repeatbuy" "sm_lastbuy" **donate money to another player (Or use "Credits Transfer" in shop menu ) "sm_pay <name> <money>" "sm_donate <name> <money>" **See all players' or specific player's deposit "sm_inspectbank [name]" "sm_checkbank [name]" "sm_lookbank [name]" "sm_allbank [name]" **Adm gives/reduces money (ADMFLAG_BAN) "sm_givemoney <name> <+-money>" "sm_givecredit <name> <+-money>" **Adm removes player's all money (ADMFLAG_BAN) "sm_clearmoney <name>" "sm_deductmoney <name>" -How to modify the item price- in scripting\L4D2_Buy_Store.sp line 161~266 [code] static char weaponsMenu[][][] = { {"pistol", "Pistol", "50"}, {"pistol_magnum", "Magnum", "100"}, {"pumpshotgun", "Pumpshotgun", "180"}, {"shotgun_chrome", "Chrome Shotgun", "200"}, {"smg", "Smg", "180"}, {"smg_silenced", "Silenced Smg", "200"}, {"smg_mp5", "MP5", "250"}, {"rifle", "Rifle", "280"}, {"rifle_ak47", "AK47", "300"}, {"rifle_desert", "Desert Rifle", "320"}, {"rifle_sg552", "SG552", "350"}, {"shotgun_spas", "Spas Shotgun", "330"}, {"autoshotgun", "Autoshotgun", "330"}, {"hunting_rifle", "Hunting Rifle", "300"}, {"sniper_military", "Military Sniper", "350"}, {"sniper_scout", "SCOUT", "400"}, {"sniper_awp", "AWP", "500"}, {"rifle_m60", "M60 Machine Gun", "1000"}, {"grenade_launcher","Grenade Launcher", "1250"} }; static char meleeMenu[][][] = { {"chainsaw", "Chainsaw", "300"}, {"baseball_bat", "Baseball Bat", "250"}, {"cricket_bat", "Cricket Bat", "250"}, {"crowbar", "Crowbar", "250"}, {"electric_guitar", "Electric Guitar", "250"}, {"fireaxe", "Fire Axe", "250"}, {"frying_pan", "Frying Pan", "250"}, {"katana", "Katana", "250"}, {"machete", "Machete", "250"}, {"tonfa", "Tonfa", "250"}, {"golfclub", "Golf Club", "250"}, {"knife", "Knife", "250"}, {"pitchfork", "Pitchfork", "250"}, {"shovel", "Shovel", "250"} }; static char medicThrowableMenu[][][] = { {"health_100", "Health+100", "350"}, {"defibrillator", "Defibrillator", "250"}, {"first_aid_kit", "First Aid Kit", "250"}, {"pain_pills", "Pain Pill", "100"}, {"adrenaline", "Adrenaline", "125"}, {"pipe_bomb", "Pipe Bomb", "150"}, {"molotov", "Molotov", "200"}, {"vomitjar", "Vomitjar", "225"} }; static char otherMenu[][][] = { {"ammo", "Ammo", "250"}, {"laser_sight", "Laser Sight", "50"}, {"incendiary_ammo", "Incendiary Ammo", "75"}, {"explosive_ammo", "Explosive Ammo", "100"}, {"weapon_upgradepack_incendiary", "Incendiary Pack", "200"}, {"weapon_upgradepack_explosive", "Explosive Pack", "200"}, {"propanetank", "Propane Tank", "80"}, {"oxygentank", "Oxygen Tank", "80"}, {"fireworkcrate", "Firework Crate", "300"}, {"gascan", "Gascan", "1000"}, {"cola_bottles", "Cola Bottles", "1500"}, {"gnome", "Gnome", "2000"}, }; static char survivorSpecialMenu[][][] = { {"Fire", "Fire Yourself", "200"}, {"Fire_Infeceted", "All Infected Gets On Fire", "500"}, {"Teleport", "Teleport to teammate", "750"}, {"Infinite_Ammo", "Infinite Ammo", "1000"}, {"No_FF", "No Friendly Fire", "1250"}, {"Dead_Eyes", "Dead-Eyes", "1500"}, {"Kill_Commons", "Kill Commons", "1750"}, {"Heal_Survivors", "Heal Survivors", "2000"}, {"Jump+1", "Jump+1", "2250"}, {"Slay_Infected", "Slay Infected Attacker", "2500"}, {"Kill_Witches", "Kill Witches", "2750"}, {"Respawn", "Respawn Alive", "3000"}, {"Freeze_Infected", "Freeze-Infected", "3250"}, }; static char infectedSpawnMenu[][][] = { {"Suicide", "Suicide", "0"}, {"Smoker", "Smoker", "350"}, {"Boomer", "Boomer", "250"}, {"Hunter", "Hunter", "200"}, {"Spitter", "Spitter", "400"}, {"Jockey", "Jockey", "300"}, {"Charger", "Charger", "350"}, {"Tank", "Tank", "2500"} }; static char infectedSpecialMenu[][][] = { {"Health", "Full Health", "350"}, {"Horde", "Zombie Horde", "750"}, {"Witch", "Witch", "1000"}, {"Teleport", "Teleport to survivor", "1250"}, {"Immune", "Immune Everything", "1500"}, }; [/code] -Special item list- ***Survivor Shop*** 1. Fire Do you feel annoying that you are surrounded by common infecteds? No need to throw molotov or use melee, create fire around you!! 2. Fire Infeceted Tank throws a rock on the roof and smoker uses his tongue from nowhere, buy this item to burn them all!! 3. Teleport Are you always alone and behind your team? Don't worry, buy this item to teleport back to your team. 4. Infinite Ammo Just shoot the enemy and no need to reload your gun. Enjoy the fun 5. Dead Eyes (see Dead_Eyes.jpg) Special Infecteds always hide and seek, buy this item to see them all!! 6. No Friendly Fire Are you tired of stupid friendly fire ? You are gonna love this item. 7. Kill Commons Hate zombies, hate horde? Kill them all 8. Kill Witches No longer you hear witch crying 9. Heal Survivors Your teammates are all down, buy this item to bring your team back to fight again.. No Surrender !!! 10. Jump+1 Now you are super mario, jump and skip the path quickly. 11. Slay Infected Attacker Smoker drags you, Hunter pounces you, Jockey rides on you, charger charges you, and you can't do anything. Now buy this item to slay the infected and be free again. 12. Respawn Alive Dead person isn't a good survivor, activate spell card: Dead Reborn 13. Ice World (see Ice_World.jpg) Freeze All Infected, they can't move and attack. The most powerful item ***Infected Shop*** 1. Full Health You can have second chance. 2. Zombie Horde Mob Incoming !!! Keep survivors busy. 3. Spawn Witch (see Spawn_Witch.jpg) Choose your location wisely and spawn a witch, survivors will feel very hard to complete the mission. 4. Teleport Do you want to attack immediately? Give survivors a surprise ! 5. God Mode (see God_Mode.jpg) Being immune every damage from survivors, they can't stumble you, they can't shove you. No one can stop you, You are THE GOD! -Updating translation- * English by HarryPotter * Traditional Chinese by HarryPotter * Simplified Chinese by Target * Spanish by gamer_kanelita * Russian by maclarens * Portuguese by Mi.Cura