Raised This Month: $7 Target: $400
 1% 

[L4D2] Tank Skill - Roar


Post New Thread Reply   
 
Thread Tools Display Modes
Author
אKarma
Junior Member
Join Date: May 2010
Plugin ID:
1667
Plugin Version:
1.2.2
Plugin Category:
Fun Stuff
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
    16 
    Plugin Description:
    The tank is given a special roar ability to knockback players.
    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, 3647 views)
    File Type: txt tankroar.phrases.txt (106 Bytes, 3622 views)
    File Type: sp Get Plugin or Get Source (tankroar1.2.2.sp - 6570 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
    IronWarrior
    Veteran Member
    Join Date: Jan 2010
    Old 05-15-2010 , 08:26   Re: [L4D2] Tank Skill - Roar
    Reply With Quote #2

    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.

    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?

    Last edited by IronWarrior; 05-15-2010 at 09:04.
    IronWarrior is offline
    alexip121093
    Senior Member
    Join Date: Dec 2009
    Location: Hong Kong
    Old 05-15-2010 , 08:29   Re: [L4D2] Tank Skill - Roar
    Reply With Quote #3

    it is possible to add support to BOT Tank? I think it is OK
    alexip121093 is offline
    Send a message via MSN to alexip121093
    alexip121093
    Senior Member
    Join Date: Dec 2009
    Location: Hong Kong
    Old 05-15-2010 , 08:57   Re: [L4D2] Tank Skill - Roar
    Reply With Quote #4

    add a instuctor hint to tell Tank player to use it and add l4d1 support
    alexip121093 is offline
    Send a message via MSN to alexip121093
    IronWarrior
    Veteran Member
    Join Date: Jan 2010
    Old 05-15-2010 , 09:01   Re: [L4D2] Tank Skill - Roar
    Reply With Quote #5

    Quote:
    Originally Posted by alexip121093 View Post
    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.
    IronWarrior is offline
    אKarma
    Junior Member
    Join Date: May 2010
    Old 05-15-2010 , 11:19   Re: [L4D2] Tank Skill - Roar
    Reply With Quote #6

    Quote:
    Originally Posted by IronWarrior View Post
    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.

    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 View Post
    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.

    Last edited by אKarma; 05-15-2010 at 11:24.
    אKarma is offline
    CosmicD
    Senior Member
    Join Date: Dec 2009
    Location: Hasselt, Belgium
    Old 05-15-2010 , 11:40   Re: [L4D2] Tank Skill - Roar
    Reply With Quote #7

    Just what the doctor ordered. Trying this.
    __________________
    CosmicD is offline
    AtomicStryker
    Veteran Member
    Join Date: Apr 2009
    Location: Teutonia!!
    Old 05-15-2010 , 13:32   Re: [L4D2] Tank Skill - Roar
    Reply With Quote #8

    You should add a ton of checks before pushing Survivors around, such as being pounced/smokered/ridden
    AtomicStryker is offline
    dirka_dirka
    Veteran Member
    Join Date: Nov 2009
    Old 05-15-2010 , 20:08   Re: [L4D2] Tank Skill - Roar
    Reply With Quote #9

    Quote:
    Originally Posted by AtomicStryker View Post
    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.
    dirka_dirka is offline
    Elektramode
    Senior Member
    Join Date: Mar 2010
    Old 05-16-2010 , 11:16   Re: [L4D2] Tank Skill - Roar
    Reply With Quote #10

    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.
    Elektramode 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 07:13.


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