Raised This Month: $32 Target: $400
 8% 

L4D Tank Speed Change


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Alexmy
Senior Member
Join Date: Oct 2014
Location: Russian Federation
Old 02-23-2020 , 01:06   L4D Tank Speed Change
Reply With Quote #1

Hello. When a minigun shoots at a tank, its speed changes to a slower one. Anyone have any ideas how to change this?
Alexmy is offline
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 02-24-2020 , 06:55   Re: L4D Tank Speed Change
Reply With Quote #2

What if you try to change damagetype, weapon in SDKHook_OnTakeDamage?
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
[My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]
Dragokas is offline
Alexmy
Senior Member
Join Date: Oct 2014
Location: Russian Federation
Old 02-24-2020 , 08:34   Re: L4D Tank Speed Change
Reply With Quote #3

Quote:
Originally Posted by Dragokas View Post
What if you try to change damagetype, weapon in SDKHook_OnTakeDamage?
What can it give? I tried to watch the change in the offset m_flLaggedMovementValue, m_flMaxspeed, but they all showed no change.
Alexmy is offline
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 02-24-2020 , 10:23   Re: L4D Tank Speed Change
Reply With Quote #4

If game recognizes hurt as a sign for decreasing speed, it may help.

Try block damage at all in SDKHook_OnTakeDamage and SDKHook_TraceAttack and see is something changed.
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
[My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]
Dragokas is offline
Marttt
Veteran Member
Join Date: Jan 2019
Location: Brazil
Old 02-24-2020 , 13:25   Re: L4D Tank Speed Change
Reply With Quote #5

Maybe these cvars are related to this:

z_tank_damage_slow_max_range : 400 : , "sv", "cheat" : Range at which Tank is slowed by gunfire
z_tank_damage_slow_min_range : 200 : , "sv", "cheat" : Range at which Tank is slowed by gunfire

Try to do as Dragokas said, as another suggestion, I would try to change the damage type in the SDKHook_OnTakeDamage event aswell.
__________________
Marttt is offline
Alexmy
Senior Member
Join Date: Oct 2014
Location: Russian Federation
Old 02-25-2020 , 06:39   Re: L4D Tank Speed Change
Reply With Quote #6

Thanks for the tips. I think I found what I need, although I’m not so sure about this ...

"z_minigun_rate_of_fire","1500 ",,,"GAMEDLL","CHEAT",,,,,,,,,,,,,,,,"Min igun rate of fire, in bullets/minute"
Alexmy 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 06:57.


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