Raised This Month: $51 Target: $400
 12% 

[L4D2] Zombie pets (v1.1.2) [08-Dec-2022]


Post New Thread Reply   
 
Thread Tools Display Modes
Earendil
Senior Member
Join Date: Jan 2020
Location: Spain
Old 12-13-2022 , 06:21   Re: [L4D2] Zombie pets (v1.1.2) [08-Dec-2022]
Reply With Quote #21

I completely forgot to post the update here. Finally the sigs are fixed, Silvers used a method to easily get the offset of the sigs instead of using insanely large bytecodes that would crash on every update. None of us has tested it but it should work fine.

Code:
1.1.2 (08-Dec-2022)
- Changed detouring method & sig fixed (by Silvers). - Fix minor code erros.
__________________
>>My plugins<<
>>GitHub<<
Earendil is offline
eyal282
Veteran Member
Join Date: Aug 2011
Old 12-13-2022 , 08:45   Re: [L4D2] Zombie pets (v1.1.2) [08-Dec-2022]
Reply With Quote #22

A cvar that alters between the command working and a native working would be nice.
I want sm_pet to not work, but a native will let me spawn the pets for !buy system.
__________________
I am available to make plugins for pay.

Discord: Eyal282#1334
eyal282 is offline
Mr. Man
Veteran Member
Join Date: Mar 2011
Location: Huh?
Old 12-14-2022 , 02:54   Re: [L4D2] Zombie pets (v1.1.2) [08-Dec-2022]
Reply With Quote #23

Just tested it on my servers and saw pets attacking the owner lol
__________________
Mr. Man is offline
tabishshah139
Junior Member
Join Date: Feb 2023
Old 02-23-2023 , 14:32   Re: [L4D2] Zombie pets (v1.1.2) [08-Dec-2022]
Reply With Quote #24

I getting error every time i put left4Dhooks correctly everything is placed as guided kindly help me how to solve this issue i am new in this field

This is error

left4dhooks.smx ([L4D & L4D2] Left 4 DHooks Direct): Native "DHookParam.GetAddress" was not found
tabishshah139 is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 02-23-2023 , 15:44   Re: [L4D2] Zombie pets (v1.1.2) [08-Dec-2022]
Reply With Quote #25

You need SM 1.11 and to compile the plugins with SM 1.11.
__________________
Silvers is offline
BojioGaming
New Member
Join Date: Apr 2019
Old 05-12-2023 , 08:30   Re: [L4D2] Zombie pets (v1.1.2) [08-Dec-2022]
Reply With Quote #26

Hello, are there only Charger & Jockey? & Is it Possible to change cvars to make them attack CI too?
BojioGaming is offline
Earendil
Senior Member
Join Date: Jan 2020
Location: Spain
Old 05-12-2023 , 11:35   Re: [L4D2] Zombie pets (v1.1.2) [08-Dec-2022]
Reply With Quote #27

Quote:
Originally Posted by BojioGaming View Post
Hello, are there only Charger & Jockey? & Is it Possible to change cvars to make them attack CI too?
Yes, only charger and jockey. Other special infected bots will run away from survivors because they are programmed to hide and ambush survivors when ability is ready, but since they can't use the ability they will hide.

Also I tried to force specials to attack common infected but it caused a server crash.
__________________
>>My plugins<<
>>GitHub<<
Earendil is offline
eyal282
Veteran Member
Join Date: Aug 2011
Old 05-13-2023 , 21:39   Re: [L4D2] Zombie pets (v1.1.2) [08-Dec-2022]
Reply With Quote #28

Quote:
Originally Posted by Earendil View Post
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
I think you should add a fourth option: Dead survivor makes pet simply wander. Not attack anything.
__________________
I am available to make plugins for pay.

Discord: Eyal282#1334
eyal282 is offline
Reply



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 01:48.


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