AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [L4D2] Tank-on-fire Speed Booster (https://forums.alliedmods.net/showthread.php?t=116014)

DarkNoghri 01-18-2010 21:36

[L4D2] Tank-on-fire Speed Booster
 
1 Attachment(s)
This plugin is to help buff the tank in versus gameplay. In campaign mode (at least in L4D), the tank always got a speed buff when he was set on fire. It gave you a choice when playing against a tank. Do we light the tank on fire? He burns out in 30 seconds or so, but now he can catch us. This plugin is so that hopefully, this situation is no longer strictly win-win for the survivors in versus.

This is as requested over here.

Thanks to Downtown1 and AtomicStryker, who's code I heavily used for reference (and may have borrowed). Thanks also to Dirka_Dirka.

Cvars:
l4d2_tankfire_boost_enable: 1 by default, enables plugin.
l4d2_tankfire_boost_amount: 1.15 by default. This is a multiplier used on the default tank speed. So at 1.15, he should move 15% faster. Valid range is .5-2.0.
l4d2_tankfire_warning_enable- Defaults to 0. Setting this to 1 displays a warning message when the first tank per map/round gets set on fire.
l4d2_tankfire_damage_amount- Defaults to 0. Setting this to 1-15 sets the amount of extra damage the tank does while on fire. Setting it to 0 turns off the extra damage.

Changelog:
v1- Initial Release
v1.01- Tentative multi-tank support. Also, complete rewrite.
v1.02- Fixed round-end debug error (I think). Also, made disabling by cvar take effect immediately.
v1.02a- It works again?
v1.02b- Fixed minor error.
v1.03- Complete rewrite (with layout liberally borrowed from AtomicStryker's water brake), and hopefully performance increases.
v1.04a- Added coop enable, warnings, and extra fire damage. Lowered default speed boost to 15%.
v1.1- Thanks to Dirka_Dirka, code has gone through a thorough revamp, and (hopefully) should behave better if enabled/disabled. The plugin is now enabled in all gamemodes. If you want it disabled in some modes, see here.

Notes:
This should work in L4D, as all events exist there as well.
I'm rehooking player_hurt for the extra fire damage on tank punches. Please let me know if there are performance hits.

Downtown1 01-18-2010 22:36

Re: [L4D2] Tank-on-fire Speed Booster
 
Does zombie_ignited get fired every second?

DarkNoghri 01-18-2010 23:40

Re: [L4D2] Tank-on-fire Speed Booster
 
Multiple times per second, as far as I can tell.

Visual77 01-19-2010 03:29

Re: [L4D2] Tank-on-fire Speed Booster
 
Has this support for multi tanks? If 2 tanks would spawn at the same time, would both run faster on fire?

DarkNoghri 01-19-2010 04:03

Re: [L4D2] Tank-on-fire Speed Booster
 
The way this is currently set up, if one tank was set on fire, all tanks should run faster. All I'm doing is changing the z_tank_speed_vs cvar, or whatever it's called. But if you throw multiple tanks in there, it's quite possible things could get awkward, with tanks getting ignited and extinguished at different times.

There may be some way to do this on a per-tank basis, but I'm not sure how.

Visual77 01-19-2010 04:08

Re: [L4D2] Tank-on-fire Speed Booster
 
I see. Guess I'll have to wait for something more "per-tank basis" as you said.
Nice work on the plugin though.

DarkNoghri 01-19-2010 04:32

Re: [L4D2] Tank-on-fire Speed Booster
 
I'll see what I can do.

DarkNoghri 01-19-2010 21:22

Re: [L4D2] Tank-on-fire Speed Booster
 
I have tentatively implemented multi-tank support. Please let me know if there are issues, especially after teamswaps, disconnects, and tank frustration. Also, if people are getting slowed down properly after extinguishing themselves in water, that would be useful to know as well.

It appeared to be working with what limited testing I was able to do.

Big Myke 01-19-2010 21:57

Re: [L4D2] Tank-on-fire Speed Booster
 
I will load this plugin into my server. Thanks.

Visual77 01-20-2010 16:51

Re: [L4D2] Tank-on-fire Speed Booster
 
Quote:

Originally Posted by DarkNoghri (Post 1060692)
I have tentatively implemented multi-tank support. Please let me know if there are issues, especially after teamswaps, disconnects, and tank frustration. Also, if people are getting slowed down properly after extinguishing themselves in water, that would be useful to know as well.

It appeared to be working with what limited testing I was able to do.

Thanks, I'll test it first and report back :up:


All times are GMT -4. The time now is 23:48.

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