AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Extensions (https://forums.alliedmods.net/forumdisplay.php?f=134)
-   -   [TF2 & L4D & L4D2] Actions (https://forums.alliedmods.net/showthread.php?t=336374)

objir 03-30-2022 06:49

Re: [L4D2] Actions
 
1 Attachment(s)
@BHaType Oh Shit... Completely Missed the new version. No more crashes after updating to the latest version. Sorry, my bad.

The old version I was using is last edited on March 2nd.

Dragokas 04-13-2022 11:22

Re: [L4D2] Actions
 
Wow! Very very nice!
Thanks for making this !!!

Is it per-action specific value? :

Quote:

Originally Posted by BHaType (Post 2771520)
Code:

public Action OnFriendAction( BehaviorAction action, float interval, ActionResult result )
{
...
        int target = action.Get(0x34) & 0xFFF;
...


Can we know more useful offsets?

PS. Surely, looking forward for l4d1 version.
Nice job!

BHaType 04-15-2022 19:24

Re: [L4D2] Actions
 
Quote:

Originally Posted by Dragokas (Post 2776681)
Is it per-action specific value? :

Yep, this is offset to member of action class so another action probably will have some another data rather than entity handle.

Quote:

Originally Posted by Dragokas (Post 2776681)
Can we know more useful offsets?

There is no way to find them except reverse engineering but there is "pattern" for same actions type. In other words if you find offset to some data then probably similiar actions will store same data for that offset.
For example TankAttack stores tank's target at 0x34 offset which means there is a high chance that other attack actions(SpitterAttack, SmokerAttack etc...) will also store target at 0x34.

BHaType 05-06-2022 23:07

Re: [L4D2] Actions
 
Updated
PHP Code:

Fully rewritten version (no backward supportsorry)
Added new natives
Added some debug commands
Added Left 4 Dead support 


Dragokas 05-07-2022 06:21

Re: [L4D2] Actions
 
Best!

BHaType 05-07-2022 09:55

Re: [L4D2] Actions
 
Updated
PHP Code:

Fixed issue where hooks called the wrong handler 


HarryPotter 05-10-2022 06:25

Re: [L4D2] Actions
 
Quote:

Originally Posted by BHaType (Post 2778819)
Updated
PHP Code:

Fully rewritten version (no backward supportsorry)
Added new natives
Added some debug commands
Added Left 4 Dead support 


nice, glad to see you support l4d1 :)

Voevoda 05-15-2022 15:33

Re: [L4D2] Actions
 
Quote:

L 05/15/2022 - 03:15:28: SourceMod error session started
L 05/15/2022 - 03:15:28: Info (map "c5m1_waterfront") (file "/home/l4d2server/serverfiles/left4dead2/addons/sourcemod/logs/errors_20220515.log")
L 05/15/2022 - 03:15:28: [SM] Unable to load extension "actions.ext": /home/l4d2server/serverfiles/left4dead2/addons/sourcemod/extensions/actions.ext.so: cannot open shared object file: No such file or directory
L 05/15/2022 - 03:150: [SM] Unable to load plugin "l4d2_shove_fix.smx": Native "BehaviorAction.OnShoved.set" was not found
L 05/15/2022 - 03:152: Error log file session closed.

BHaType 05-15-2022 19:02

Re: [L4D2] Actions
 
Quote:

Originally Posted by Voevoda (Post 2779500)
...

Error is quite clear. Read it

Voevoda 05-15-2022 19:07

Re: [L4D2] Actions
 
Quote:

Originally Posted by BHaType (Post 2779511)
Error is quite clear. Read it

installed everything still error


All times are GMT -4. The time now is 07:28.

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