AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [L4D2] Tank Skill - Roar (https://forums.alliedmods.net/showthread.php?t=126919)

אKarma 05-15-2010 07:29

[L4D2] Tank Skill - Roar
 
3 Attachment(s)
Description
This plugin creates a 'roar' skill for the tank. Players just click on the middle mouse button to use this ability. When used, survivors around a certain radius from the tank will be knockbacked. Depending on the server, the knockback can be towards the tank or away from the tank. This opens up some interesting strategies.


Features
  • Adjustable area of effect (radius from tank).
  • Adjustable damage done to survivors.
  • Adjustable cooldown.
  • Adjustable force of knockback.
  • Adjustable direction of knockback. (towards or away from tank)
  • Many other adjustable aspects of the roar.
Installation


-Scroll to the bottom of this post and click on 'Get Plugin' to download the .smx version of this plugin. Put this file in your left 4 dead 2 "addons\sourcemod\plugins" directory.
-Download tankroar.phrases and put this file in "addons\sourcemod\translations" directory.
-Download l4d2tankroar.txt and put this file in "addons\sourcemod\gamedata" directory.


Cvars
  • sm_tankroar_version - Check version of plugin.
  • sm_tankroar - Sets the dimensional plane the roar affects. 0 - Disable plugin, 1 - Roar only affect survivors on the (relatively) same plane as tank, 2 - Roar affects survivor as long as survivor is 400 distance away from tank.
  • sm_tankroar_power - Sets the force of the roar. Default 300.
  • sm_tankroar_radius - Sets the radius of effect from the tank when it uses roar. Default 400.
  • sm_tankroar_cooldown - Sets how long before the tank can use this ability again. Default 7 seconds.
  • sm_tankroar_damage - Sets the damage done to survivor if caught in the roar. Default 0.
  • sm_tankroar_direction - Sets the direction which the survivor is knockbacked into. Enter 0 for knockback towards tank, 1 for knockback away from tank.
  • sm_tankroar_hint - Sets the displaying hint type. 0 - Disable. 1 - Chat. 2 - Instructor Hint. 3 - Both.
  • sm_tankroar_knockback_type - Sets the type of knockback. 0 - Jumplike knockback. 1 - Tank punch knockback.
  • sm_tankroar_req_hp - Sets the health the tank must be below before it can use roar.
  • sm_tankoar_stun - Sets how long the tank cannot move/attack after roaring. Input 0 for no stun. Maximum stun time can only be as long as roar's cooldown.
Changelogs


Quote:


1.2.2
-Added a cvar to control tank's stun time after using roar.
-Removed a part of possibly redundant code.

1.2.1
-Fixed a bug where Tank Roar becomes spammable in cases 5v5 or above.
-Fixed minor coding bug.
-sm_tankroar cvar can now set whether survivor needs to be on the same plane as tank for roar to affect them.

1.2
-Survivors now cannot be roared away if they are pinned by other SI.
-Damage done by the roar is now added into the infected points.
-Added a cvar option to choose the knockback type. (Tank punch knockback)
-Added a cvar option to change the required hp before tank can use roar.
-Added a cvar option to choose the type of hint.
-Added some comments to the code.


1.1.1
-Fixed some minor bugs.
-Added a seperate cvar for version checking instead of using sm_tankroar.

1.1
-Added instructor hint to the tank so that players are informed of its roar ability.
-Survivors now can get incapped by the roar if damage is set.
-Rewritten some parts of the code.
-Fixed Tank's roar ability getting bugged after one round.

1.0 - Initial Release


IronWarrior 05-15-2010 08:26

Re: [L4D2] Tank Skill - Roar
 
Awesome!!!

This is the same idea I wanted, expect that I wanted the tank to like stamp/stomp his feet around him which would knock Survivors back.

Will test soon. :D

Some questions please.

  1. Does this include a sound when the skill is used? If not, can you add one please? :)
  2. Also what is the power of the knockback, is it the same as being knocked back from a Boomer exploding?
  3. The tankroar_damage, how is damaged worked out? If I set 5, does that cause 5 points of HP damage?

alexip121093 05-15-2010 08:29

Re: [L4D2] Tank Skill - Roar
 
it is possible to add support to BOT Tank? I think it is OK

alexip121093 05-15-2010 08:57

Re: [L4D2] Tank Skill - Roar
 
add a instuctor hint to tell Tank player to use it and add l4d1 support

IronWarrior 05-15-2010 09:01

Re: [L4D2] Tank Skill - Roar
 
Quote:

Originally Posted by alexip121093 (Post 1180783)
add a instuctor hint to tell Tank player to use it and add l4d1 support

That is a good suggestion, I recommend the system that DJ WEST uses on his plugins which is like...

Quote:

0 - disable
1 - chat
2 - hint
3 - instructor hint
This would be good. :)

אKarma 05-15-2010 11:19

Re: [L4D2] Tank Skill - Roar
 
Quote:

Originally Posted by IronWarrior (Post 1180770)
Awesome!!!

This is the same idea I wanted, expect that I wanted the tank to like stamp/stomp his feet around him which would knock Survivors back.

Will test soon. :D

Some questions please.

  1. Does this include a sound when the skill is used? If not, can you add one please? :)
  2. Also what is the power of the knockback, is it the same as being knocked back from a Boomer exploding?
  3. The tankroar_damage, how is damaged worked out? If I set 5, does that cause 5 points of HP damage?

1. Yes, it does include a sound.
2. its not the same as boomer knockback. the roar will cause survivors to fly backwards.
3. yea. if u set to 5 it'll do 5 dmg.

Quote:

Originally Posted by alexip121093 (Post 1180783)
add a instuctor hint to tell Tank player to use it and add l4d1 support


Regarding the instructor hint i'll add to my to do list but for the other one, i dont have l4d1, testing it would be difficult.

CosmicD 05-15-2010 11:40

Re: [L4D2] Tank Skill - Roar
 
Just what the doctor ordered. Trying this.

AtomicStryker 05-15-2010 13:32

Re: [L4D2] Tank Skill - Roar
 
You should add a ton of checks before pushing Survivors around, such as being pounced/smokered/ridden

dirka_dirka 05-15-2010 20:08

Re: [L4D2] Tank Skill - Roar
 
Quote:

Originally Posted by AtomicStryker (Post 1181071)
You should add a ton of checks before pushing Survivors around, such as being pounced/smokered/ridden

and it would be interesting if they had different effects..
a pounced survivor stays where he is, and can get up.. while the hunter goes flying
a jockeyed survivor goes flying with the jockey and when they land, the jockey falls off.
etc.

Elektramode 05-16-2010 11:16

Re: [L4D2] Tank Skill - Roar
 
hey i ask of a favour... my middle mouse button does not exactly work as it is configured to work on my desktop n stuff... and it doznt work on most of my friends comps either.... can i ask for a CVAR or somthing or bind to change the key to do a tank roar.


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

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