Raised This Month: $32 Target: $400
 8% 

[TF2 & L4D & L4D2] Actions


Post New Thread Reply   
 
Thread Tools Display Modes
Edison1318
Senior Member
Join Date: Nov 2015
Location: Peaceful place of the in
Old 11-22-2022 , 07:01   Re: [TF2 & L4D & L4D2] Actions
Reply With Quote #61

I have a question, is it possible to perform Action like SurvivorLegsRegroup on SurvivorBot to specific survivor rather than hooking action event?
__________________
EdisonGar
Edison1318 is offline
Send a message via Skype™ to Edison1318
BHaType
Great Tester of Whatever
Join Date: Jun 2018
Old 11-23-2022 , 01:11   Re: [TF2 & L4D & L4D2] Actions
Reply With Quote #62

Quote:
Originally Posted by Edison1318 View Post
I have a question, is it possible to perform Action like SurvivorLegsRegroup on SurvivorBot to specific survivor rather than hooking action event?
It's possible but it really depends on what you want to achieve.

sm_approach_crosshair - Makes every survivor bot go to crosshair position
sm_approach_me - Makes every survivor bot go to approach you
sm_regroup_to_target - Makes every bot to regroup to your crosshair target (target could be literally any entity)
Attached Files
File Type: txt l4d2_t.txt (1.1 KB, 119 views)
File Type: sp Get Plugin or Get Source (l4d2_survivor_bots_actions_test.sp - 155 views - 5.6 KB)
__________________
cry
BHaType is offline
Send a message via AIM to BHaType
Edison1318
Senior Member
Join Date: Nov 2015
Location: Peaceful place of the in
Old 11-23-2022 , 02:14   Re: [TF2 & L4D & L4D2] Actions
Reply With Quote #63

Quote:
Originally Posted by BHaType View Post
It's possible but it really depends on what you want to achieve.

sm_approach_crosshair - Makes every survivor bot go to crosshair position
sm_approach_me - Makes every survivor bot go to approach you
sm_regroup_to_target - Makes every bot to regroup to your crosshair target (target could be literally any entity)
Ah I see, looks complicated in the code but thanks

Edited: Yeah, to perform a specific function for SurvivorBots looks like I need to get the signatures for that
__________________
EdisonGar

Last edited by Edison1318; 11-23-2022 at 02:26.
Edison1318 is offline
Send a message via Skype™ to Edison1318
Red Flame
Junior Member
Join Date: Jan 2012
Old 01-17-2023 , 09:55   Re: [TF2 & L4D & L4D2] Actions
Reply With Quote #64

This extension makes it impossible to use quit, exit or _restart cmds.
Server just not responding after using these commands unless you handle it manually.
OS: Ubuntu 22.04.1
Game: L4D2
Sourcemod version: 1.11.0.6927
Metamod version: 1.11.0-dev+1148

Update:
Tested it on clean windows and linux servers
Windows: had no problems with that;
Linux: the same problem that I described.

Last edited by Red Flame; 01-17-2023 at 10:21.
Red Flame is offline
morzlee
Junior Member
Join Date: Jan 2022
Old 02-03-2023 , 01:58   Re: [TF2 & L4D & L4D2] Actions
Reply With Quote #65

This entensions seems will cause performance issue.
If my server use this extension, server frames will huge shake while si spawn(like 6 si spawn very quickly)
morzlee is offline
HarryPotter
Veteran Member
Join Date: Sep 2017
Location: Taiwan, Asia
Old 05-18-2023 , 14:36   Re: [TF2 & L4D & L4D2] Actions
Reply With Quote #66

after l4d2 update

PHP Code:
L 05/19/2023 02:32:16: [ActionsFailed respond to the request "HunterIntention::Reset"
L 05/19/2023 02:32:16: [ActionsFailed to find address for "HunterIntention::Reset" keyCheck your gamedata...
L 05/19/2023 02:32:16: [ActionsFailed respond to the request "BoomerIntention::Reset"
L 05/19/2023 02:32:16: [ActionsFailed to find address for "BoomerIntention::Reset" keyCheck your gamedata...
L 05/19/2023 02:32:16: [ActionsFailed respond to the request "TankIntention::Reset"
L 05/19/2023 02:32:16: [ActionsFailed to find address for "TankIntention::Reset" keyCheck your gamedata...
L 05/19/2023 02:32:16: [ActionsFailed respond to the request "SmokerIntention::Reset"
L 05/19/2023 02:32:16: [ActionsFailed to find address for "SmokerIntention::Reset" keyCheck your gamedata...
L 05/19/2023 02:32:16: [ActionsFailed respond to the request "ChargerIntention::Reset"
L 05/19/2023 02:32:16: [ActionsFailed to find address for "ChargerIntention::Reset" keyCheck your gamedata...
L 05/19/2023 02:32:16: [ActionsFailed respond to the request "JockeyIntention::Reset"
L 05/19/2023 02:32:16: [ActionsFailed to find address for "JockeyIntention::Reset" keyCheck your gamedata...
L 05/19/2023 02:32:16: [ActionsFailed respond to the request "SpitterIntention::Reset"
L 05/19/2023 02:32:16: [ActionsFailed to find address for "SpitterIntention::Reset" keyCheck your gamedata... 
__________________
HarryPotter is offline
BHaType
Great Tester of Whatever
Join Date: Jun 2018
Old 05-19-2023 , 04:24   Re: [TF2 & L4D & L4D2] Actions
Reply With Quote #67

Quote:
Originally Posted by Red Flame View Post
This extension makes it impossible to use quit, exit or _restart cmds.
Server just not responding after using these commands unless you handle it manually.
OS: Ubuntu 22.04.1
Game: L4D2
Sourcemod version: 1.11.0.6927
Metamod version: 1.11.0-dev+1148

Update:
Tested it on clean windows and linux servers
Windows: had no problems with that;
Linux: the same problem that I described.
Fixed with latest update i guess. This specific bug is not related only to this extension specifically.
I had same issue without extension and even managed to find the cause of it but I was not able to find any valuable reproduce steps for it so i gave up.
Look at this.

Quote:
Originally Posted by morzlee View Post
This entensions seems will cause performance issue.
If my server use this extension, server frames will huge shake while si spawn(like 6 si spawn very quickly)
Unrelated I think? Need more info.

_______
Updated L4D2
PHP Code:
Version bumped to 3.0
Fixed for latest update 
Added support for custom components 
StorePendingEventResult is now deprecated
Added user data natives
Event handlers have separate file
Switched to ambuild 
Almost all old version plugins will work. This update is backwards compatible.
__________________
cry

Last edited by BHaType; 05-19-2023 at 05:33.
BHaType is offline
Send a message via AIM to BHaType
HarryPotter
Veteran Member
Join Date: Sep 2017
Location: Taiwan, Asia
Old 05-19-2023 , 05:29   Re: [TF2 & L4D & L4D2] Actions
Reply With Quote #68

Test l4d2 winodws server.
No errors for now, good work
__________________
HarryPotter is offline
KadabraZz
Senior Member
Join Date: May 2020
Old 05-20-2023 , 01:49   Re: [TF2 & L4D & L4D2] Actions
Reply With Quote #69

Can someone please provide me an example of how to change the behavior? I would like the witch as soon as it was spawned to change from the witchidle state to witchangry
KadabraZz is offline
BHaType
Great Tester of Whatever
Join Date: Jun 2018
Old 05-20-2023 , 03:42   Re: [TF2 & L4D & L4D2] Actions
Reply With Quote #70

Quote:
Originally Posted by KadabraZz View Post
Can someone please provide me an example of how to change the behavior? I would like the witch as soon as it was spawned to change from the witchidle state to witchangry
Well, here is simple example to make her always be at 100% rage.

Spoiler
__________________
cry

Last edited by BHaType; 05-20-2023 at 03:48.
BHaType is offline
Send a message via AIM to BHaType
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 11:16.


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