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

[TF2 & L4D & L4D2] Actions


Post New Thread Reply   
 
Thread Tools Display Modes
objir
New Member
Join Date: Mar 2022
Old 03-30-2022 , 06:49   Re: [L4D2] Actions
Reply With Quote #21

@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.
Attached Files
File Type: zip actions.ext.2.l4d2.zip (202.4 KB, 152 views)

Last edited by objir; 03-30-2022 at 06:50.
objir is offline
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 04-13-2022 , 11:22   Re: [L4D2] Actions
Reply With Quote #22

Wow! Very very nice!
Thanks for making this !!!

Is it per-action specific value? :

Quote:
Originally Posted by BHaType View Post
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!
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
[My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]

Last edited by Dragokas; 04-13-2022 at 11:23.
Dragokas is offline
BHaType
Great Tester of Whatever
Join Date: Jun 2018
Old 04-15-2022 , 19:24   Re: [L4D2] Actions
Reply With Quote #23

Quote:
Originally Posted by Dragokas View Post
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 View Post
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.
__________________
cry

Last edited by BHaType; 04-15-2022 at 19:24.
BHaType is offline
Send a message via AIM to BHaType
BHaType
Great Tester of Whatever
Join Date: Jun 2018
Old 05-06-2022 , 23:07   Re: [L4D2] Actions
Reply With Quote #24

Updated
PHP Code:
Fully rewritten version (no backward supportsorry)
Added new natives
Added some debug commands
Added Left 4 Dead support 
__________________
cry

Last edited by BHaType; 05-06-2022 at 23:08.
BHaType is offline
Send a message via AIM to BHaType
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 05-07-2022 , 06:21   Re: [L4D2] Actions
Reply With Quote #25

Best!
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
[My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]
Dragokas is offline
BHaType
Great Tester of Whatever
Join Date: Jun 2018
Old 05-07-2022 , 09:55   Re: [L4D2] Actions
Reply With Quote #26

Updated
PHP Code:
Fixed issue where hooks called the wrong handler 
__________________
cry
BHaType is offline
Send a message via AIM to BHaType
HarryPotter
Veteran Member
Join Date: Sep 2017
Location: Taiwan, Asia
Old 05-10-2022 , 06:25   Re: [L4D2] Actions
Reply With Quote #27

Quote:
Originally Posted by BHaType View Post
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
__________________
HarryPotter is offline
Voevoda
Senior Member
Join Date: Aug 2016
Old 05-15-2022 , 15:33   Re: [L4D2] Actions
Reply With Quote #28

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.
Voevoda is offline
BHaType
Great Tester of Whatever
Join Date: Jun 2018
Old 05-15-2022 , 19:02   Re: [L4D2] Actions
Reply With Quote #29

Quote:
Originally Posted by Voevoda View Post
...
Error is quite clear. Read it
__________________
cry
BHaType is offline
Send a message via AIM to BHaType
Voevoda
Senior Member
Join Date: Aug 2016
Old 05-15-2022 , 19:07   Re: [L4D2] Actions
Reply With Quote #30

Quote:
Originally Posted by BHaType View Post
Error is quite clear. Read it
installed everything still error
Voevoda 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 07:25.


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