RSSy MYGO.pl Opublikowano Styczeń 20, 2022 o 23:40 RSSy Udostępnij Opublikowano Styczeń 20, 2022 o 23:40 Description:Allows survivors to have 1 or more pets following them. Pets are chargers (for now), no damage between pets and survivors will happen. Pets do nothing (for now), only follow their owner. When a survivor dies, its pet can be automatically deleted, transfer to another survivor or go wild and become a normal zombie. Commands:sm_pet: Spawns a zombie pet that will follow the survivor. sm_pet remove: Removes all pets associated to their survivor. Possible issuesBots sometimes could not aim correctly other zombies. This plugin detours some bot behaviour functions to force survivor bots to ignore the infected pets, but it makes that survivor bots sometimes take more time than usual until they detect a zombie to attack. Pets are true zombies, so they will be recognized by the director like that, consider using a zombie spawn plugin to prevent blocking natural zombies from spawning, like ZSpawn . Installation:Place l4d2_perks.sp in addons/sourcemod/plugins folder. Place l4d2_pets.txt in addons/sourcemod/gamedata folder. Dependences:Left 4 DHooks Direct by Silvers. Dynamic Hooks with Detour Support by Peace-Maker or SM 1.11. ConVars Spoiler PHP Code: // 1 = Plugin On. 0 = Plugin Off. // - // Default: "1" // Minimum: "0.000000" // Maximum: "1.000000" l4d2_pets_enable "1" // Flags required for a player to create a pet, empty to allow everyone. // - // Default: "" l4d2_pets_flags "" // Enable plugin in these gamemodes, separated by commas, no spaces. // - // Default: "" l4d2_pets_gamemodes "" // Maximum amount of pets allowed in game. // - // Default: "4" // Minimum: "0.000000" // Maximum: "16.000000" l4d2_pets_global_limit "4" // Opacity of the pet. // - // Default: "235" // Minimum: "0.000000" // Maximum: "255.000000" l4d2_pets_opacity "235" // What will happen to the pet if its owner dies? // 0 = Kill pet. // 1 = Transfer to random survivor. // 2 = Make it wild. // - // Default: "0" // Minimum: "0.000000" // Maximum: "2.000000" l4d2_pets_ownerdeath_action "0" // Maximum amount of pets each player can have. // - // Default: "1" // Minimum: "0.000000" // Maximum: "16.000000" l4d2_pets_player_limit "1" Special thanksSilvers, for helping with some strange signatures To doMore special infected types as pets More effects on pets. Prevent signature break on game update (just watch the signatures...). L4D1 Support if signatures available. More functionallity, I accept suggestions.. Changelog1.0 (21-Jan-2021)- First release. Attached Files l4d2_pets.smx (12.9 KB) Get Plugin or Get Source (l4d2_pets.sp - 19.9 KB) l4d2_pets.txt (3.7 KB) Wyświetl pełny artykuł Odnośnik do komentarza Udostępnij na innych stronach Więcej opcji udostępniania...
Rekomendowane odpowiedzi