Raised This Month: $51 Target: $400
 12% 

[TF2 & L4D & L4D2] Actions


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
BHaType
Great Tester of Whatever
Join Date: Jun 2018
Old 02-15-2022 , 07:11   [TF2 & L4D & L4D2] Actions
Reply With Quote #1

ConVars
PHP Code:
// Logs every action transitions
// 1 - Enable debug, 0 - Disable debug
ext_actions_debug "0"

// Logs every action/behavior/component allocation or deallocation
// Used to track memory leaks
// 1 - Enable memory debug, 0 - Disable memory debug
ext_actions_debug_memory "0" 
Commands
PHP Code:
ext_actions_dump Dumps every nextbot actions to console
Guide Samples

Left 4 Dead 2 Usage Example


Source code
Attached Files
File Type: zip actions.ext.zip (5.22 MB, 26 views)

Last edited by BHaType; Yesterday at 21:06.
BHaType is offline
Send a message via AIM to BHaType
Gold Fish
Senior Member
Join Date: Mar 2020
Old 02-16-2022 , 08:45   Re: [L4D2] Actions
Reply With Quote #2

What are the "action" related to? Any actions of survivors and infected (players)?
__________________
-

PHP Code:
public OnClientConnect(int Client) {
    
KickClient(Client"sorry");

Gold Fish is offline
BHaType
Great Tester of Whatever
Join Date: Jun 2018
Old 02-16-2022 , 20:05   Re: [L4D2] Actions
Reply With Quote #3

Quote:
Originally Posted by Gold Fish View Post
What are the "action" related to? Any actions of survivors and infected (players)?
"Actions" are only related to nextbots. I can't give you full list of game actions since there are to many of them

https://developer.valvesoftware.com/...tBot_Behaviors

Updated
PHP Code:
Fixed InitialContainedAction handler for custom actions 
__________________
cry

Last edited by BHaType; 02-16-2022 at 20:11.
BHaType is offline
Send a message via AIM to BHaType
Gold Fish
Senior Member
Join Date: Mar 2020
Old 02-17-2022 , 03:05   Re: [L4D2] Actions
Reply With Quote #4

Quote:
Originally Posted by BHaType View Post
"Actions" are only related to nextbots. I can't give you full list of game actions since there are to many of them

https://developer.valvesoftware.com/...tBot_Behaviors

Updated
PHP Code:
Fixed InitialContainedAction handler for custom actions 
I understand that with the help of your extension, can force a tank to attack a certain player or make him just stand still or run away from players or even make zombie friends for a survivors, I understand that the extension gives full control over the intelligence of entities that is embedded in the game engine?)
__________________
-

PHP Code:
public OnClientConnect(int Client) {
    
KickClient(Client"sorry");

Gold Fish is offline
yongeni
New Member
Join Date: Feb 2023
Old 03-11-2024 , 09:10   Re: [L4D2] Actions
Reply With Quote #5

!It will lead to many three -way map fried

0 server_srv.so!PathFollower::LadderUpdate(INex tBot*) + 0x251
1 server_srv.so!PathFollower::Update(INextBot*) + 0x273
2 server_srv.so!ChaseVictim::Update(Infected*, float) + 0x546
3 actions.ext.2.l4d2.so!hexecution<[...]> ProcessHandlerImpl<[...]>(ProcessHandlerEx<[...]>(unsigned int, ActionProcessorShared*, ActionResult<[...]> (ActionProcessorShared::*&&)(CBaseEntity*, float), CBaseEntity*&, float&)::{lambda()#1}&, Action<[...]>*, unsigned int, ActionResult<[...]> (ActionProcessorShared::*&)(CBaseEntity*, float), CBaseEntity*&, float&) [invoke.h:73 + 0x1a]
4 actions.ext.2.l4d2.so!ActionProcessorShared:: Update(CBaseEntity*, float) [actions_processor_shared.h:178 + 0x10]
5 server_srv.so!Action<Infected>::InvokeUpdate( Infected*, Behavior<Infected>*, float) + 0xed
6 server_srv.so!Action<Infected>::InvokeUpdate( Infected*, Behavior<Infected>*, float) + 0x12a
7 server_srv.so!Action<Infected>::InvokeUpdate( Infected*, Behavior<Infected>*, float) + 0x12a
8 server_srv.so!Action<Infected>::InvokeUpdate( Infected*, Behavior<Infected>*, float) + 0x12a
9 server_srv.so!Behavior<Infected>::Update(Infe cted*, float) + 0x55
10 server_srv.so!InfectedIntention::Update() + 0xd4
11 server_srv.so!INextBot::Update() + 0x84
12 server_srv.so!Infected::Update() + 0xc5
13 server_srv.so!NextBotCombatCharacter:oThink () + 0x274
14 server_srv.so!CBaseEntity:hysicsDispatchThi nk(void (CBaseEntity::*)()) + 0xa9
15 server_srv.so!CBaseEntity:hysicsRunSpecific Think(int, void (CBaseEntity::*)()) + 0xc4
16 server_srv.so!_ZN11CBaseEntity15PhysicsRunThi nkENS_14thinkmethods_tE.part.150 + 0x32
17 server_srv.so!CBaseEntity:hysicsCustom() + 0xe7
18 server_srv.so!CBaseEntity:hysicsSimulate() + 0x9e0
19 server_srv.so!Physics_SimulateEntity(CBaseEnt ity*) + 0x152
20 server_srv.so!Physics_RunThinkFunctions(bool) + 0x2d1
21 server_srv.so!CServerGameDLL::GameFrame(bool) + 0x967
22 sourcemod.2.l4d2.so!__SourceHook_FHCls_IServe rGameDLLGameFramefalse::Func + 0x9b
23 engine_srv.so!SV_Think(bool) + 0x1c8
24 engine_srv.so!SV_Frame(bool) + 0x168
25 engine_srv.so!_Host_RunFrame_Server(bool) + 0x17c
26 engine_srv.so!_Host_RunFrame(float) + 0x470
27 engine_srv.so!CHostState::State_Run(float) + 0xf8
28 engine_srv.so!CHostState::FrameUpdate(float) + 0x166
29 engine_srv.so!HostState_Frame(float) + 0x1d
30 engine_srv.so!CEngine::Frame() + 0x54f
31 engine_srv.so!CDedicatedServerAPI::RunFrame() + 0x26
32 dedicated_srv.so!RunServerIteration(bool) + 0x3c
33 dedicated_srv.so!RunServer(bool) + 0x48
34 engine_srv.so!CModAppSystemGroup::Main() + 0x8d
35 engine_srv.so!CAppSystemGroup::Run() + 0x38
36 engine_srv.so!CDedicatedServerAPI::ModInit(Mo dInfo_t&) + 0x1af
37 dedicated_srv.so!CDedicatedAppSystemGroup::Ma in() + 0xb5
38 dedicated_srv.so!CAppSystemGroup::Run() + 0x38
39 dedicated_srv.so!CAppSystemGroup::Run() + 0x38
40 dedicated_srv.so!main + 0x217
41 srcds_linux!main + 0xf2
42 libc-2.27.so!__libc_start_main + 0xf1
43 srcds_linux + 0x885
44 srcds_linux + 0x630
45 srcds_linux + 0x950
46 srcds_linux + 0x9c0
yongeni is offline
Lux
Veteran Member
Join Date: Jan 2015
Location: Cat
Old 02-17-2022 , 04:01   Re: [L4D2] Actions
Reply With Quote #6

This is a blessing thanks for release
__________________
Connect
My Plugins: KlickME
[My GitHub]

Commission me for L4D
Lux is offline
HarryPotter
Veteran Member
Join Date: Sep 2017
Location: Taiwan, Asia
Old 02-19-2022 , 16:00   Re: [L4D2] Actions
Reply With Quote #7

If I write
PHP Code:
#pragma semicolon 1
#pragma newdecls required

#include <actions> 
then compiler will show error
Code:
//// l4d2_bile_out_nav_negate_action.sp
// 
// D:\Program Files (x86)\Steam\steamapps\common\Left 4 Dead 2 Dedicated Server\left4dead2\addons\sourcemod\scripting 1.10\include\actions.inc(37) : error 001: expected token: ";", but found "forward"
// D:\Program Files (x86)\Steam\steamapps\common\Left 4 Dead 2 Dedicated Server\left4dead2\addons\sourcemod\scripting 1.10\include\actions.inc(39) : error 001: expected token: ";", but found "methodmap"
// D:\Program Files (x86)\Steam\steamapps\common\Left 4 Dead 2 Dedicated Server\left4dead2\addons\sourcemod\scripting 1.10\include\actions.inc(89) : error 001: expected token: ";", but found "<newline>"
//
// 3 Errors.
sm 1.10
__________________
HarryPotter is offline
BHaType
Great Tester of Whatever
Join Date: Jun 2018
Old 03-02-2022 , 04:18   Re: [L4D2] Actions
Reply With Quote #8

Updated
PHP Code:
Fixed compilation errors for sm 1.10
Allowed to return NULL for InitialContainedAction
Added msvc 
__________________
cry

Last edited by BHaType; 03-02-2022 at 04:18.
BHaType is offline
Send a message via AIM to BHaType
NightlyRaine
New Member
Join Date: Jan 2020
Location: Kansas USA
Old 03-23-2022 , 23:39   Re: [L4D2] Actions
Reply With Quote #9

Using nb_move_to_cursor and nb_move_to_position seems to crash when a bot is spawned in when using this amazing extension.

And I for the life of me can not figure out how to use or what this is even supposed to do, Am somewhat new to messing with plugins at times. Any help on what it is supposed to do and how to use would be amazing!

PHP Code:
/* Used to iterate through all entity actions */
public static native void Actionsint entityActionsIteratorCallback callback ); 
And GetName() doesn't seem to work when getting the name of a result action like
PHP Code:
"result.action.GetName()" 
NightlyRaine is offline
BHaType
Great Tester of Whatever
Join Date: Jun 2018
Old 03-24-2022 , 03:09   Re: [L4D2] Actions
Reply With Quote #10

Quote:
Originally Posted by NightlyRaine View Post
Using nb_move_to_cursor and nb_move_to_position seems to crash when a bot is spawned in when using this amazing extension.
Thanks for report. Fixed

Quote:
Originally Posted by NightlyRaine View Post
And I for the life of me can not figure out how to use or what this is even supposed to do, Am somewhat new to messing with plugins at times. Any help on what it is supposed to do and how to use would be amazing!
It will give every action that passed entity contains. There is no way to legally create ArrayList via extension so that's the only way how can you pass multiple objects without creating your own handle type.
How to use

Quote:
Originally Posted by NightlyRaine View Post
And GetName() doesn't seem to work when getting the name of a result action like
Just tested and seems to be working fine. Make sure you are not trying to access null action or show code so i can replicate issue.
__________________
cry
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 19:08.


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