View Single Post
Author Message
Earendil
Senior Member
Join Date: Jan 2020
Location: Spain
Old 01-20-2022 , 18:40   [L4D2] Zombie pets (v1.1.2) [08-Dec-2022]
Reply With Quote #1

Description:
  • Allows survivors to have 1 or more pets following them.
  • Pets are chargers and jockeys, no damage between pets and survivors will happen.
  • Pets will follow their owner and can protect him against other special infected.
  • 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 <jockey|charger|(null)>: Spawns a zombie pet that will follow the survivor. If argument is empty, a random class will be spawned as pet.
  • sm_pet remove: Removes all pets associated to their survivor.

Source Code:
  • You can watch or download plugin sourcecode via this repository.
  • You may find some developement branches to test new features, but plugin errors may be expected and plugin functionallity may not work on Windows servers.

Possible issues
  • Bots 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:
ConVars
Spoiler


Special thanks
  • Silvers, for helping with some strange signatures and for 1.1.2 update.

To do
  • More 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..

Changelog
Spoiler
Attached Files
File Type: smx l4d2_pets.smx (16.8 KB, 419 views)
File Type: txt l4d2_pets.txt (5.3 KB, 419 views)
File Type: sp Get Plugin or Get Source (l4d2_pets.sp - 448 views - 31.6 KB)

Last edited by Earendil; 12-13-2022 at 06:18. Reason: Update to 1.1.2
Earendil is offline