View Single Post
Author Message
אKarma
Junior Member
Join Date: May 2010
Old 05-15-2010 , 07:29   [L4D2] Tank Skill - Roar
Reply With Quote #1

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
Attached Files
File Type: txt l4d2tankroar.txt (366 Bytes, 3651 views)
File Type: txt tankroar.phrases.txt (106 Bytes, 3625 views)
File Type: sp Get Plugin or Get Source (tankroar1.2.2.sp - 6583 views - 17.4 KB)

Last edited by Matthias Vance; 08-21-2010 at 08:33. Reason: You forgot to add to set the public cvar in the thread.
אKarma is offline