Raised This Month: $ Target: $400
 0% 

[TF2]TauntCrits


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author
HeMe3iC
Member
Join Date: Sep 2008
Location: Яussia
Plugin ID:
1931
Plugin Version:
2.1
Plugin Category:
Fun Stuff
Plugin Game:
Team Fortress 2
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Award for taunting
    Old 09-03-2010 , 14:05   [TF2]TauntCrits
    Reply With Quote #1

    Discription:
    Be or not to be. Taunt on battlefield and die or humiliate everyone with aftertaunt award.
    This plugin provides you with such choice. Theres 3 types of award:crits, mini-crits and ubercharge. Award type is defined by cvar and can be changed by admins at any time. Its also possible to set different award durations for each class, so it can be well-balanced or not.
    Type tauntcrits_info or tauntcrits_help in console to get plugin info and cvar list.


    ConVars:
    tauntcrits_[classname][0.0-360.0]- Award durations (after finishing the taunt). (example: tauntcrits_demoman 20, full classes list could be found in tauntcrits_help)
    tauntcrits_award[1.0-4.0](default 1.0) - Award for taunting. 1=crits 2=mini-crits 3=ubercharge 4=upgradable buff(minicrits to crits by default)
    tauntcrits_switch[0.0-1.0](default 1.0) - 0 disables plugin. Any other value will enable plugin
    tauntcrits_notify[0.0-2048.0](default 600.0) - Delay between notifications in chat. Setting it to 0.0 will disable notifications
    tauntcrits_hpcheck[0.0-1.0](default 1.0) - Whether to check target hp or not. If the targets hp is above 500 then there will be no award for target. Useful for plugins like VS Saxton Hale.
    tauntcrits_buffupgr[string](default "0") - Two condition numbers with '-' between them, first condition will be upgraded to the second on taunt if tauntcrits_award==4; If is equal to 0 it will upgrade from minicrits to full crits(16-33).

    Change Log:
    v1.0
    -initial release

    v1.1
    -fixed bug with failng taunt and getting crit
    -now you will get crits in end of taunt, not at its start
    -added new award-ubercharge
    -optimized code
    -changed pyro default crits duration(decreased)

    v1.2
    -New cvar; tc_switch[0.0-1.0](default 1.0) 0 disables plugin. Any other value will enable plugin

    v1.3
    -partly changed code. Now its easier to understand and does not contains unused stuff
    -tc_mode is now tauntcrits_award
    -tc_ prefix changed to tauntcrits_
    -2 new cvars: tauntcrits_notify and tauntcrits_hpcheck
    -tauntcrits_help and tauntcrits_info commands will print plugin info in your console. Both of them have the same result.
    -changed plugin filename to "tauntcrits" dont forget to remove old version.

    v1.4
    -added "players" list. Actually its just an array with 32 cells and players id's in it. Added to fix "client number random changes" bug.
    -added tauntcrits_debug cvar. I dont think you may need to use it.
    a)
    -fixed all compilation warnings, minor changes.

    v1.5
    -Replaced self-made condcheck with TF2_IsPlayerInCondition
    -replaced "9001" and "8999" with #define NULL_VALUE

    v1.6
    -Fixed "Array index is out of bounds" and "Entity -1 (-1) is invalid" errors.

    v2.0
    -plugin is now using TF2_OnConditionAdded and TF2_OnConditionRemoved instead of timers
    -no award if airblasted or damaged while taunting
    -added "upgadeble buff" mode (tauntcrits_award 4)-requested by Eggman
    which allows to upgrade current buff to another one, defined by server admin(by default its mini-crits, upgradable to full crits)
    -added tauntcrits_buffupgr cvar, which cotrols conditions, given by tauntcrits_award 4. default-0, else it should be something like "16-33"(thoose values are equal to the default value) i.e. "cond A-cond B". On taunt: Cond A upgraded to cond B, Cond B extended if already in cond B or awarded with Cond A, if not in Cond A or Cond B. Be careful using this function, theres no fool-protection, so use it on your own risk, it may crash client if he awarded with invalid cond.
    v2.1
    -tauntcrits_switch cvar is now working.

    Known issues:
    -If you start taunting while under invalid cond(dazed or bonked) and end taunt while in valid cond you will be awarded
    -Cond A and Cond be could be found in tf2.inc . You shoud use integer values(for example 0 for slowed, 33 for TFCond_HalloweenCritCandy) instead of TFCond vars.
    I wont remove old version of plugin for a while, if you want to use 2.0 you should remove tauntcrits.smx from plugins folder first. tauntcrits.smx is 1.6 and tauntcrits2.smx is 2.0 versions of plugins


    Quote:
    Originally Posted by tf2.inc
    enum TFCond
    {
    TFCond_Slowed = 0,
    TFCond_Zoomed,
    TFCond_Disguising,
    TFCond_Disguised,
    TFCond_Cloaked,
    TFCond_Ubercharged,
    TFCond_TeleportedGlow,
    TFCond_Taunting,
    TFCond_UberchargeFading,
    TFCond_Unknown1, //9
    TFCond_CloakFlicker = 9,
    TFCond_Teleporting,
    TFCond_Kritzkrieged,
    TFCond_Unknown2, //12
    TFCond_TmpDamageBonus = 12,
    TFCond_DeadRingered,
    TFCond_Bonked,
    TFCond_Dazed,
    TFCond_Buffed,
    TFCond_Charging,
    TFCond_DemoBuff,
    TFCond_CritCola,
    TFCond_InHealRadius,
    TFCond_Healing,
    TFCond_OnFire,
    TFCond_Overhealed,
    TFCond_Jarated,
    TFCond_Bleeding,
    TFCond_DefenseBuffed,
    TFCond_Milked,
    TFCond_MegaHeal,
    TFCond_RegenBuffed,
    TFCond_MarkedForDeath,
    TFCond_NoHealingDamageBuff,
    TFCond_SpeedBuffAlly,
    TFCond_HalloweenCritCandy,

    TFCond_CritHype = 36,
    TFCond_CritOnFirstBlood,
    TFCond_CritOnWin,
    TFCond_CritOnFlagCapture,
    TFCond_CritOnKill,
    TFCond_RestrictToMelee
    };
    What to do:
    -need some more award types.
    -test it more after release
    -fool-proof cvar tauntcrits_buffupgr (do i really need this?)

    Thanks to:
    Eggman - for lot of help
    Glubbable - for grammar help
    Attached Files
    File Type: sp Get Plugin or Get Source (tauntcrits.sp - 6166 views - 19.9 KB)
    File Type: sp Get Plugin or Get Source (tauntcrits2.sp - 7655 views - 14.0 KB)

    Last edited by HeMe3iC; 07-06-2012 at 01:30. Reason: updated description
    HeMe3iC is offline
    Send a message via ICQ to HeMe3iC
     



    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 00:32.


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