RSSy MYGO.pl Opublikowano Listopad 7, 2019 o 17:00 RSSy Udostępnij Opublikowano Listopad 7, 2019 o 17:00 Thanks: Dragokas for the idea and request, L4D1 saved spawn data and lots of help testing. About: Spawn single gifts or trees either temporary or saved to the map. Gifts can break and spawn an item or weapon. L4D is missing the L4D2 gift model and uses a crate. Aim at the Gnome to delete, edit position and angles. The tree is non-solid. Maximum of 2 trees per map. Gifts are limited to 32. Recompile to change limits. Trees (with default settings) use approx 45 entities (2 models + 6 gifts + 1 spark + 4 lights + 32 sprites). On explosion about 8 temporary entities. It's not a CPU intensive plugin for the server. Rainbow option will increase bandwidth slightly. Optionally adds dissolve effects to gifts when detecting l4d_dissolve_infected.txt gamedata. Can be disabled with l4d_tree_effects cvar. This plugin is large because of the effects stocks, spawning capability and all the options with that. Fully handles late loading, unloading, turning on/off and deletes unused items. Recommended additional plugins: Neon Beams for decorations. Weather Control or xMas for snow. Optional data config provided with trees saved to every Valve map. Thanks to "Dragokas" for the L4D1 data. Gifts Drop Chances: Weighted chance for item and weapon selection on gift breaking. L4D1 auto ignores chances for L4D2 items and weapons. Each value in the l4d_tree_items cvar represents the chance of each specific item or weapon dropping from 0 to 100%. The order is as follows, includes example cvars for no weapons: Spoiler PHP Code: // Default settings in L4D2 (without CSS weapons): l4d_tree_items "80,100,25,25,25,40,15,15,15,2,2,2,5,5,5,2,5,1,1,2,0,2,5,0,0,2,0,5,1" // Default settings in L4D1 (0 is what L4D1 ignores): l4d_tree_items "0,100,25,25,0,40,0,0,0,2,2,2,5,5,5" // Each values position matched to the classname (L4D2 in this example): // ITEMS 1. 80% = Adrenaline 2. 100% = Pain Pills 3. 25% = Molotov 4. 25% = Pipe Bomb 5. 25% = Vomitjar 6. 40% = First Aid Kit 7. 15% = Defibrillator 8. 15% = Explosive Ammo 9. 15% = Incendiary Ammo // WEAPONS // L4D1 + L4D2 weapons 10. 2% = Rifle 11. 2% = Auto Shotgun 12. 2% = Hunting Rifle 13. 5% = SMG 14. 5% = Pump Shotgun 15. 5% = Pistol // L4D2 only weapons 16. 2% = Shotgun Chrome 17. 5% = Rifle Desert 18. 1% = Grenade Launcher 19. 1% = Rifle M60 20. 2% = Rifle AK47 21. 0% = Rifle Sg552 22. 2% = Shotgun Spas 23. 5% = SMG Silenced 24. 0% = SMG MP5 25. 0% = Sniper AWP 26. 2% = Sniper Military 27. 0% = Sniper Scout 28. 5% = Pistol Magnum 29. 1% = Chainsaw // No Weapons: l4d_tree_items "80,100,25,25,25,40,15,15,15" // Only Weapons (without CSS weapons): l4d_tree_items "0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,0,1,1,0,0,1,0,1,1" // Only Weapons (with CSS weapons): l4d_tree_items "0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1" Admin Commands: (requires "z" flag) PHP Code: sm_tree_spawn // Spawns a temporary Gift/Tree at your crosshair. Usage: sm_tree_spawn [type: 0=Gift. 1=Tree.] sm_tree_save // Spawns a Gift/Tree at your crosshair and saves to config. Usage: sm_tree_save [type: 0=Gift. 1=Tree.] sm_tree_del // Removes the Gift/Tree you are pointing at and deletes from the config if saved. sm_tree_clear // Removes all Gifts/Trees spawned by this plugin from the current map. sm_tree_wipe // Removes all Gifts/Trees from the current map and deletes them from the config. sm_tree_reload // Resets the plugin and reloads the data config and saved spawns. sm_tree_glow // Toggle to enable glow on all Gifts/Trees to see where they are placed. sm_tree_list // Display a list Gift/Tree positions and the total number of. sm_tree_tele // Teleport to a Gift/Tree (Usage: sm_tree_tele <index: 1 to MAX_SPAWNS (32)>). sm_tree_ang // Displays a menu to adjust the Gift/Tree angles your crosshair is over. sm_tree_pos // Displays a menu to adjust the Gift/Tree origin your crosshair is over. CVars: Saved to l4d_christmas_tree.cfg in your servers \cfg\sourcemod\ folder. PHP Code: l4d_tree_allow "1" // 0=Plugin off, 1=Plugin on. l4d_tree_modes "" // Turn on the plugin in these game modes, separate by commas (no spaces). (Empty = all). l4d_tree_modes_off "" // Turn off the plugin in these game modes, separate by commas (no spaces). (Empty = none). l4d_tree_modes_tog "0" // Turn on the plugin in these game modes. 0=All, 1=Coop, 2=Survival, 4=Versus, 8=Scavenge. Add numbers together. l4d_tree_ball_count "8" // How many balls to display per column. l4d_tree_ball_columns "4" // How many columns of balls to display. l4d_tree_ball_radius "45.0" // Distance from the tree base to display balls l4d_tree_col_gift "255 0 0" // Gift color. 0=Off (default Gift color). Three values between 0-255 separated by spaces. RGB: Red Green Blue. l4d_tree_col_tree "0 255 0" // Tree color. 0=Off (default Tree color). Three values between 0-255 separated by spaces. RGB: Red Green Blue. l4d_tree_effects "15" // 0=Off. 1=Lights, 2=Balls, 4=Sparks, 8=Dissolver, 15=All. Add numbers together. l4d_tree_gifts "6" // How many packages to spawn under the tree. l4d_tree_items "80,100,25,25,25,40,15,15,15,2,2,2,5,5,5,2,5,1,1,2,0,2,5,0,0,2,0,5,1" // Item chance. See above for details. l4d_tree_glow "255 0 0" // 0=Off. L4D2 only: glow outline on gifts. Three values between 0-255 separated by spaces. RGB: Red Green Blue. l4d_tree_health "1" // 0=Does not break or drop items. Health of gifts before they can break and drop items. l4d_tree_rainbow "2" // 0=Off. 1=Gifts change color over time. 2=Trees change color over time. 3=Both l4d_tree_rate "10" // How fast the color changes when using rainbow option. l4d_tree_speed "0.2" // How often to update the colors per second. l4d_tree_version // Christmas Tree plugin version. Changes: Code: 1.0 (07-Nov-2019) - Initial release. Installation Click "Get Plugin" and put the .smx file into your servers \addons\sourcemod\plugins\ folder. Optionally download "l4d_christmas_tree.cfg" and save to your servers \addons\sourcemod\data\ folder. This has trees saved to every Valve map. Attached Files l4d_christmas_tree.cfg (13.0 KB) Get Plugin or Get Source (l4d_christmas_tree.sp - 61.0 KB) Wyświetl pełny artykuł Odnośnik do komentarza Udostępnij na innych stronach Więcej opcji udostępniania...
Rekomendowane odpowiedzi
Jeśli chcesz dodać odpowiedź, zaloguj się lub zarejestruj nowe konto
Jedynie zarejestrowani użytkownicy mogą komentować zawartość tej strony.
Zarejestruj nowe konto
Załóż nowe konto. To bardzo proste!
Zarejestruj sięZaloguj się
Posiadasz już konto? Zaloguj się poniżej.
Zaloguj się