[TF2]TauntCrits
3 Attachment(s)
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:
-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 |
Re: [TF2]TauntCrits
Quote:
I wanted something like this Oh, small-yet-recommended tip: Don't use ". , -" or any other non-letter/number character in a filename, it can cause a problem |
Re: [TF2]TauntCrits
Humm. Ok couple quick issues and suggestions before I head off...
- First. Trying to understand how its supposed to work but, you shouldnt need a repeating timer for this... AddCommandListener for taunt....Thats way more efficient than a repeat timer looping through all clients. Seems unnessesary. - Your global floats are screwed up. You cant get the convar values in OnPluginStart(). That needs to be in OnConfigsExecuted. All thats gonna do is get the default values of the original convars.... - I am not sure why you are filtering out sandvich, bonk, crita-cola, dalokohs bar. I dont think you can taunt with those anyways...... Maybe sandvich only. I dont see what the harm would be though of allowing those. |
Re: [TF2]TauntCrits
this is interesting.
|
Re: [TF2]TauntCrits
Updated.
Quote:
2)Thanks, fixed 3)All of them are taunts, think about crit-o-cola, valve made him earn mini-crits, but if ill add crits to him it will be unfair-his taunt too fast and he almost have no chance to get killed during him |
Re: [TF2]TauntCrits
Great idea! One suggestion... Can you add a cvar so we can enable or disable taunt crits all together?
|
Re: [TF2]TauntCrits
Mann-conomy update broke this plugin, and we need an enable/disable cvar
|
Re: [TF2]TauntCrits
Updated to 1.2
All what you need to fix errors caused by MANN-conomy update is to recompile plugin. Also added an enable/disable cvar, requested by PieOnEar |
Re: [TF2]TauntCrits
Code:
L 02/21/2011 - 17:58:05: Info (map "arena_nucleus") (file "errors_20110221.log") |
Re: [TF2]TauntCrits
Quote:
|
All times are GMT -4. The time now is 11:31. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.