Raised This Month: $106 Target: $400
 26% 

[CS:GO] Chicken auto follows player


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Obyboby
Veteran Member
Join Date: Sep 2013
Old 07-05-2018 , 13:43   [CS:GO] Chicken auto follows player
Reply With Quote #1

I was reading this thread and was wondering if someone could write a plugin that would make chickens auto follow a player once they get close enough (perhaps with configurable distance?)

Thanks!
__________________
Obyboby is offline
CowGod
Senior Member
Join Date: Feb 2015
Old 07-05-2018 , 21:31   Re: [CS:GO] Chicken auto follows player
Reply With Quote #2

for sure, add me on steam so we can discuss it.
CowGod is offline
Send a message via Skype™ to CowGod
yash1441
Senior Member
Join Date: Feb 2015
Location: Illuminati HQ
Old 07-08-2018 , 07:06   Re: [CS:GO] Chicken auto follows player
Reply With Quote #3

Quote:
Originally Posted by Obyboby View Post
I was reading this thread and was wondering if someone could write a plugin that would make chickens auto follow a player once they get close enough (perhaps with configurable distance?)

Thanks!
Find entities ("chicken") in a loop and check distance corresponding to you. If less than x amount then set m_leader according to the code there.
__________________
yash1441 is offline
Send a message via Skype™ to yash1441
Obyboby
Veteran Member
Join Date: Sep 2013
Old 07-08-2018 , 07:32   Re: [CS:GO] Chicken auto follows player
Reply With Quote #4

Quote:
Originally Posted by CowGod View Post
for sure, add me on steam so we can discuss it.
Can't add you from your signature man
__________________
Obyboby is offline
Obyboby
Veteran Member
Join Date: Sep 2013
Old 11-12-2018 , 05:50   Re: [CS:GO] Chicken auto follows player
Reply With Quote #5

Someone willing to do this for me?
__________________
Obyboby is offline
Franc1sco
Veteran Member
Join Date: Oct 2010
Location: Spain (Madrid)
Old 11-12-2018 , 09:57   Re: [CS:GO] Chicken auto follows player
Reply With Quote #6

Quote:
Originally Posted by Obyboby View Post
Someone willing to do this for me?
I did it. I upload it in a hour in home
__________________
Veteran SourceMod Coder
Taking paid requests -> Add me in TELEGRAM or STEAM
You like my work? donate me


Last edited by Franc1sco; 11-12-2018 at 09:58.
Franc1sco is online now
Send a message via MSN to Franc1sco Send a message via Skype™ to Franc1sco
Franc1sco
Veteran Member
Join Date: Oct 2010
Location: Spain (Madrid)
Old 11-12-2018 , 11:05   Re: [CS:GO] Chicken auto follows player
Reply With Quote #7

Try this.

If it works, i will do it more customizable, optimized and with a more beautiful code
Attached Files
File Type: sp Get Plugin or Get Source (lord_of_the_chickens.sp - 30 views - 1.7 KB)
__________________
Veteran SourceMod Coder
Taking paid requests -> Add me in TELEGRAM or STEAM
You like my work? donate me


Last edited by Franc1sco; 11-12-2018 at 11:06.
Franc1sco is online now
Send a message via MSN to Franc1sco Send a message via Skype™ to Franc1sco
HvG Community
AlliedModders Donor
Join Date: Sep 2012
Old 11-12-2018 , 11:33   Re: [CS:GO] Chicken auto follows player
Reply With Quote #8

This is an edit of https://forums.alliedmods.net/showthread.php?t=260444

Chickens will follow you and when shot will explode.


If you want to spawn chickens yourself on locations where you want, download Eyal's Useful Commands.
Attached Files
File Type: sp Get Plugin or Get Source (sm_exploding_chickens.sp - 29 views - 5.7 KB)
File Type: smx sm_exploding_chickens.smx (7.8 KB, 8 views)
HvG Community is offline
Obyboby
Veteran Member
Join Date: Sep 2013
Old 11-12-2018 , 17:03   Re: [CS:GO] Chicken auto follows player
Reply With Quote #9

Quote:
Originally Posted by Franc1sco View Post
Try this.

If it works, i will do it more customizable, optimized and with a more beautiful code
Seems like it doesn't work.
I tried spawning some chickens with Advanced Admin Command's "sm_sc" but the chickens are not following me.

Quote:
Originally Posted by HvG Community View Post
This is an edit of https://forums.alliedmods.net/showthread.php?t=260444

Chickens will follow you and when shot will explode.


If you want to spawn chickens yourself on locations where you want, download Eyal's Useful Commands.

I'm currently using Advanced Admin commands by the same dev, I'm afraid it could cause some conflicts? Cause it already includes some commands for spawning chickens.
EDIT: tried and yes it kills the "sm_sc" command which is supposed to spawn a chicken.
Also I had some chickens already spawned but they didn't start following me. I have to say tho that at this time I have both your plugins enabled so I'm not sure if there's a conflict with those too.
EDIT2: ok tried unloading franc1sco's plugin, still no luck, spawned chicken doesn't follow me
__________________

Last edited by Obyboby; 11-12-2018 at 17:11.
Obyboby is offline
HvG Community
AlliedModders Donor
Join Date: Sep 2012
Old 11-12-2018 , 18:45   Re: [CS:GO] Chicken auto follows player
Reply With Quote #10

Only have one enabled.

And if there is command conflict then simply make the command something else in UsefulCommands and recompile.

This plugin works on my server.
You can go test if you want: 108.61.112.231:27015

So in order for above stuff to work, you need to download Eyals Useful Commands.
My version might be little bit different, so here you go:
Attached Files
File Type: sp Get Plugin or Get Source (UsefulCommands.sp - 16 views - 95.4 KB)
HvG Community is offline
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 18:15.


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