Raised This Month: $ Target: $400
 0% 

Solved [L4D2] Make CI not chase a target player


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
eyal282
Veteran Member
Join Date: Aug 2011
Old 09-15-2024 , 11:06   [L4D2] Make CI not chase a target player
Reply With Quote #1

I'm adding Brawl Stars' Shadow Realm mechanic to my RPG, where a player can escape the "game", making himself invisible, invincible, and unheardable relative to the rest of the game, and the rest of the game (CI, SI, Tank) are also invisible, invincible, and unheardable relative to him.

I wish to prevent Common Infected from chasing a player in this state, but not sure how.
__________________
I am available to make plugins for pay.

Discord: Eyal282#1334

Last edited by eyal282; 10-01-2024 at 18:00.
eyal282 is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 09-16-2024 , 07:10   Re: [L4D2] Make CI not chase a target player
Reply With Quote #2

Probably with Actions extension.
__________________
Silvers is offline
eyal282
Veteran Member
Join Date: Aug 2011
Old 09-16-2024 , 11:33   Re: [L4D2] Make CI not chase a target player
Reply With Quote #3

Quote:
Originally Posted by Silvers View Post
Probably with Actions extension.
Thanks. I'm having trouble getting "ext_actions_dump" command to work ( does nothing in listen server, dumps nothing in dedicated )

Is there a workaround or does it dump to a file?

Code:
L 09/16/2024 - 16:46:48: [Actions] DUPMING ACTIONS START
L 09/16/2024 - 16:46:48: [Actions] /----------------------------------/
L 09/16/2024 - 16:46:48: [Actions] DUPMING ACTIONS END
__________________
I am available to make plugins for pay.

Discord: Eyal282#1334
eyal282 is offline
Skyy
AlliedModders Donor
Join Date: Jan 2010
Location: Toronto, Canada
Old 09-23-2024 , 07:33   Re: [L4D2] Make CI not chase a target player
Reply With Quote #4

You can't prevent a common from targeting a player unless you change that players team designation to 3 without taking them off survivor, but that has random buggy side-effects.

Your best bet is to "simulate" the zombies not being interested in the player by parenting chase entities to each living survivor. Infected will always go after players tied to chase entities before anyone else.
__________________
if you want it, you can do it, you can have it
Skyy is offline
eyal282
Veteran Member
Join Date: Aug 2011
Old 10-01-2024 , 18:00   Re: [L4D2] Make CI not chase a target player
Reply With Quote #5

Quote:
Originally Posted by Skyy View Post
You can't prevent a common from targeting a player unless you change that players team designation to 3 without taking them off survivor, but that has random buggy side-effects.

Your best bet is to "simulate" the zombies not being interested in the player by parenting chase entities to each living survivor. Infected will always go after players tied to chase entities before anyone else.
https://github.com/eyal282/l4d2-gun-...95C15-L2095C28
__________________
I am available to make plugins for pay.

Discord: Eyal282#1334
eyal282 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 00:28.


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