AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugin/Gameplay Ideas and Requests (https://forums.alliedmods.net/forumdisplay.php?f=60)
-   -   [CS:GO] Chicken auto follows player (https://forums.alliedmods.net/showthread.php?t=308841)

Obyboby 07-05-2018 12:43

[CS:GO] Chicken auto follows player
 
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!

CowGod 07-05-2018 20:31

Re: [CS:GO] Chicken auto follows player
 
for sure, add me on steam so we can discuss it. :)

yash1441 07-08-2018 06:06

Re: [CS:GO] Chicken auto follows player
 
Quote:

Originally Posted by Obyboby (Post 2601171)
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.

Obyboby 07-08-2018 06:32

Re: [CS:GO] Chicken auto follows player
 
Quote:

Originally Posted by CowGod (Post 2601262)
for sure, add me on steam so we can discuss it. :)

Can't add you from your signature man :nono::cry:

Obyboby 11-12-2018 04:50

Re: [CS:GO] Chicken auto follows player
 
Someone willing to do this for me?

Franc1sco 11-12-2018 08:57

Re: [CS:GO] Chicken auto follows player
 
Quote:

Originally Posted by Obyboby (Post 2623666)
Someone willing to do this for me?

I did it. I upload it in a hour in home :)

Franc1sco 11-12-2018 10:05

Re: [CS:GO] Chicken auto follows player
 
1 Attachment(s)
Try this.

If it works, i will do it more customizable, optimized and with a more beautiful code :up:

HvG Community 11-12-2018 10:33

Re: [CS:GO] Chicken auto follows player
 
2 Attachment(s)
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.

Obyboby 11-12-2018 16:03

Re: [CS:GO] Chicken auto follows player
 
Quote:

Originally Posted by Franc1sco (Post 2623704)
Try this.

If it works, i will do it more customizable, optimized and with a more beautiful code :up:

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 (Post 2623713)
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 :(

HvG Community 11-12-2018 17:45

Re: [CS:GO] Chicken auto follows player
 
1 Attachment(s)
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:


All times are GMT -4. The time now is 21:10.

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