AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting (https://forums.alliedmods.net/forumdisplay.php?f=107)
-   -   L4D Tank Speed Change (https://forums.alliedmods.net/showthread.php?t=321671)

Alexmy 02-23-2020 01:06

L4D Tank Speed Change
 
Hello. When a minigun shoots at a tank, its speed changes to a slower one. Anyone have any ideas how to change this?

Dragokas 02-24-2020 06:55

Re: L4D Tank Speed Change
 
What if you try to change damagetype, weapon in SDKHook_OnTakeDamage?

Alexmy 02-24-2020 08:34

Re: L4D Tank Speed Change
 
Quote:

Originally Posted by Dragokas (Post 2684887)
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.

Dragokas 02-24-2020 10:23

Re: L4D Tank Speed Change
 
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.

Marttt 02-24-2020 13:25

Re: L4D Tank Speed Change
 
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.

Alexmy 02-25-2020 06:39

Re: L4D Tank Speed Change
 
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"


All times are GMT -4. The time now is 16:45.

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