Raised This Month: $298 Target: $400
 74% 

[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, 53 views)
File Type: sp Get Plugin or Get Source (l4d2_survivor_bots_actions_test.sp - 56 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
aiyoaiui
Member
Join Date: Jun 2020
Old 12-18-2022 , 05:08   Re: [TF2 & L4D & L4D2] Actions
Reply With Quote #64

Quote:
L 12/18/2022 - 15:07:19: SourceMod error session started
L 12/18/2022 - 15:07:19: Info (map "c11m1_greenhouse") (file "E:\Steam\steamapps\common\Left 4 Dead 2\left4dead2\addons\sourcemod\logs\errors_202 21218.log")
L 12/18/2022 - 15:07:19: [Actions] Failed to find address for "SurvivorIntention::Reset" key. Check your gamedata...
L 12/18/2022 - 15:07:19: [Actions] Failed to find address for "HunterIntention::Reset" key. Check your gamedata...
L 12/18/2022 - 15:07:19: [Actions] Failed to find address for "BoomerIntention::Reset" key. Check your gamedata...
L 12/18/2022 - 15:07:19: [Actions] Failed to find address for "TankIntention::Reset" key. Check your gamedata...
L 12/18/2022 - 15:07:19: [Actions] Failed to find address for "InfectedIntention::Reset" key. Check your gamedata...
L 12/18/2022 - 15:07:19: [Actions] Failed to find address for "WitchIntention::Reset" key. Check your gamedata...
L 12/18/2022 - 15:07:19: [Actions] Failed to find address for "SmokerIntention::Reset" key. Check your gamedata...
L 12/18/2022 - 15:07:19: [Actions] Failed to find address for "ChargerIntention::Reset" key. Check your gamedata...
L 12/18/2022 - 15:07:19: [Actions] Failed to find address for "JockeyIntention::Reset" key. Check your gamedata...
L 12/18/2022 - 15:07:19: [Actions] Failed to find address for "SpitterIntention::Reset" key. Check your gamedata...
L 12/18/2022 - 15:17:06: Error log file session closed.
aiyoaiui is offline
Red Flame
Junior Member
Join Date: Jan 2012
Old 01-17-2023 , 09:55   Re: [TF2 & L4D & L4D2] Actions
Reply With Quote #65

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 #66

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
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:29.


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