Raised This Month: $299 Target: $400
 74% 

[L4D2] Zombie pets (v1.0.1) [20-Jan-2021]


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Earendil
Member
Join Date: Jan 2020
Location: Spain
Plugin ID:
7927
Plugin Version:
1.0.1
Plugin Category:
All
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Survivors can have a zombie pet following them
    Old 01-20-2022 , 18:40   [L4D2] Zombie pets (v1.0.1) [20-Jan-2021]
    Reply With Quote #1

    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, they will break obstacles to follow him.
    • 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.

    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

    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
    • 1.0.1 (21-Jan-2021)
      - Pets now will attempt to break the door if they are far from their owners.
    • 1.0 (21-Jan-2021)
      - First release.
    Attached Files
    File Type: txt l4d2_pets.txt (3.7 KB, 89 views)
    File Type: sp Get Plugin or Get Source (l4d2_pets.sp - 44 views - 20.8 KB)
    File Type: smx l4d2_pets.smx (13.2 KB, 49 views)

    Last edited by Earendil; 03-09-2022 at 12:48. Reason: Updated to 1.0.1
    Earendil is offline
    L4D2Noob
    AlliedModders Donor
    Join Date: Mar 2020
    Location: Moscow
    Old 01-20-2022 , 19:10   Re: [L4D2] Zombie pets (v1.0) [20-Jan-2021]
    Reply With Quote #2

    They should learn to pass through doors...)

    https://www.youtube.com/watch?v=1CvV...=RYANCOOLROUND
    __________________
    L4D2Noob is offline
    Send a message via ICQ to L4D2Noob Send a message via Skype™ to L4D2Noob
    thewintersoldier97
    Senior Member
    Join Date: Aug 2021
    Location: Vietnam
    Old 01-21-2022 , 01:42   Re: [L4D2] Zombie pets (v1.0) [20-Jan-2021]
    Reply With Quote #3

    Great idea! May I suggest you reduce the size of the pet for better clarification and make it easy distinguishable with other special infected
    __________________

    Looking for some fun!

    Last edited by thewintersoldier97; 01-21-2022 at 01:43.
    thewintersoldier97 is offline
    Earendil
    Member
    Join Date: Jan 2020
    Location: Spain
    Old 01-21-2022 , 08:16   Re: [L4D2] Zombie pets (v1.0) [20-Jan-2021]
    Reply With Quote #4

    Quote:
    Originally Posted by L4D2Noob View Post
    They should learn to pass through doors...)

    https://www.youtube.com/watch?v=1CvV...=RYANCOOLROUND
    As I said, pets do nothing, only follow survivor. I blocked primary and secondary attacks to prevent charger pet to punch or charge their owner, I will try to find the game functions that tells zombie when to attack to check if its going to hit a door or a survivor, and block first case.
    __________________
    Earendil is offline
    Earendil
    Member
    Join Date: Jan 2020
    Location: Spain
    Old 01-21-2022 , 10:47   Re: [L4D2] Zombie pets (v1.0) [20-Jan-2021]
    Reply With Quote #5

    Quote:
    Originally Posted by thewintersoldier97 View Post
    Great idea! May I suggest you reduce the size of the pet for better clarification and make it easy distinguishable with other special infected
    I have been testing it, I can only resize jockeys, so I can add minijockeys as pets (less annoying than a big charger).

    Quote:
    Originally Posted by L4D2Noob View Post
    They should learn to pass through doors...)
    Done, now they will slowly attempt to break a door if they are not close to their owners but will not attack survivors, sometimes a survivor could be punched if its near of a pet attempting to break the door.
    __________________
    Earendil is offline
    L4D2Noob
    AlliedModders Donor
    Join Date: Mar 2020
    Location: Moscow
    Old 01-24-2022 , 03:46   Re: [L4D2] Zombie pets (v1.0) [20-Jan-2021]
    Reply With Quote #6

    Quote:
    Originally Posted by Earendil View Post
    Done, now they will slowly attempt to break a door if they are not close to their owners but will not attack survivors, sometimes a survivor could be punched if its near of a pet attempting to break the door.
    And it works great!
    https://www.youtube.com/watch?v=Yob4RisUwD8
    __________________
    L4D2Noob is offline
    Send a message via ICQ to L4D2Noob Send a message via Skype™ to L4D2Noob
    Reply


    Thread Tools
    Display Modes

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off

    Forum Jump


    All times are GMT -4. The time now is 22:11.


    Powered by vBulletin®
    Copyright ©2000 - 2022, vBulletin Solutions, Inc.
    Theme made by Freecode