Raised This Month: $ Target: $400
 0% 

[L4D1 & 2] Stucked Tank Teleport [v1.4.4 - 26/Nov/2024]


Post New Thread Reply   
 
Thread Tools Display Modes
Author
blueblur
Junior Member
Join Date: Nov 2022
Location: 23℃
Plugin ID:
8797
Plugin Version:
1.44
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
Servers with this Plugin:
 
Plugin Description:
This plugins stops tank from death when gets stucked or loses its target for too long, and finally teleport them to somewhere near survivors.
Old 10-02-2024 , 03:20   [L4D1 & 2] Stucked Tank Teleport [v1.4.4 - 26/Nov/2024]
Reply With Quote #1

Descriptions

- This plugins stops tank from death when gets stucked or loses its target for too long, and finally teleport them to somewhere near survivors. The teleportation is compeletly depending on game itself when to decide the tank's death.

- Credits to:
  • Scag, for MidHook extension.
  • 东, for his algorithms of choosing a spawn point to teleport a tank.
  • 夜羽真白, for various methods used in teleportation.

- Github Link

Requirements
  • MidHook Extention
  • SourceScramble Extention (L4D1 Only, But I dont want to split this into another version so L4D2 also require it but dose nothing with it.)
  • Dhook
  • Left4DHooks

ConVars
Spoiler


API
PHP Code:
/**
 * Called when a bot tank tried to suicide for stucking or losing its target for too long.
 * 
 * @note This is a hook using MidHook to hook the middle of the function call: TankAttack::Update.
 * @note Called when passing the aruguments to CTakeDamageInfo::CTakeDamageInfo,
 * @note Specifically, when the damage value has been moved into register xmm0 and this plugin has set the damage to some value.
 * 
 * @param tank      client index of the tank.
 * 
 * @noreturn  
*/
forward void MidHook_OnTankSuicide(int tank); 
ChangeLog
Spoiler


Some Thoughts
Spoiler
Attached Files
File Type: inc colors.inc (26.2 KB, 59 views)
File Type: inc gamedata_wrapper.inc (9.1 KB, 16 views)
File Type: inc l4d_stucked_tank_teleport.inc (867 Bytes, 17 views)
File Type: zip l4d_stucked_tank_teleport.zip (32.9 KB, 16 views)

Last edited by blueblur; 11-25-2024 at 12:11.
blueblur is offline
replay_84
Senior Member
Join Date: Jun 2021
Old 10-02-2024 , 12:39   Re: [L4D2] Stucked Tank Teleport [v1.3 - 2/Oct/2024]
Reply With Quote #2

sounds good, thank you for sharing.
replay_84 is offline
blueblur
Junior Member
Join Date: Nov 2022
Location: 23℃
Old 10-02-2024 , 13:40   Re: [L4D2] Stucked Tank Teleport [v1.3.1 - 3/Oct/2024]
Reply With Quote #3

Updated v1.3.1.
Spoiler
blueblur is offline
replay_84
Senior Member
Join Date: Jun 2021
Old 10-04-2024 , 12:36   Re: [L4D2] Stucked Tank Teleport [v1.3.1 - 3/Oct/2024]
Reply With Quote #4

someone tried this on l4d1?
replay_84 is offline
blueblur
Junior Member
Join Date: Nov 2022
Location: 23℃
Old 10-05-2024 , 02:45   Re: [L4D2] Stucked Tank Teleport [v1.3.1 - 3/Oct/2024]
Reply With Quote #5

Quote:
Originally Posted by replay_84 View Post
someone tried this on l4d1?
For plugin itself all signature and address is prepared.
Only one thing: L4D2_CommandABot from left4dhooks is l4d2 only. I have not yet found any sub solution for this.
If we cant figure this out, Tank will stand still after teleporting.

If you have any interest you can see the work so far I have done here:
blueblur is offline
replay_84
Senior Member
Join Date: Jun 2021
Old 10-05-2024 , 11:21   Re: [L4D2] Stucked Tank Teleport [v1.3.1 - 3/Oct/2024]
Reply With Quote #6

thanks, maybe someone knows a fix and is willing to share.
replay_84 is offline
blueblur
Junior Member
Join Date: Nov 2022
Location: 23℃
Old 10-07-2024 , 05:48   Re: [L4D2] Stucked Tank Teleport [v1.3.1 - 3/Oct/2024]
Reply With Quote #7

Quote:
Originally Posted by blueblur View Post
For plugin itself all signature and address is prepared.
Only one thing: L4D2_CommandABot from left4dhooks is l4d2 only. I have not yet found any sub solution for this.
If we cant figure this out, Tank will stand still after teleporting.

If you have any interest you can see the work so far I have done here:
May call the TankAttack::OnCommandAttack function, an assumption.
blueblur is offline
ZBzibing
Senior Member
Join Date: Dec 2012
Old 11-05-2024 , 08:36   Re: [L4D2] Stucked Tank Teleport [v1.3.1 - 3/Oct/2024]
Reply With Quote #8

I also look forward to using it on L4D1
__________________
Please forgive, If I'm not describing it accurately. I use google translate
Functional tests are all from L4D1, and are only keen to solve and fix various bugs of L4D1:
ZBzibing is offline
blueblur
Junior Member
Join Date: Nov 2022
Location: 23℃
Old 11-22-2024 , 13:12   Re: [L4D1 & 2] Stucked Tank Teleport [v1.4.2 - 23/Nov/2024]
Reply With Quote #9

Updated for L4D1, Not tested. Any detailed report is welcome.
blueblur is offline
blueblur
Junior Member
Join Date: Nov 2022
Location: 23℃
Old 11-23-2024 , 06:48   Re: [L4D1 & 2] Stucked Tank Teleport [v1.4.3 - 23/Nov/2024]
Reply With Quote #10

Updated v1.4.3
Spoiler
blueblur 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 19:54.


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