[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:
|
Re: [TF2]TauntCrits
I just uninstalled this mod until those errors are fixed.
|
Re: [TF2]TauntCrits
Anyone think they can fix this if original creator not around? :):bacon!:
|
Re: [TF2]TauntCrits
Seriously...Hate getting the error spam.
Code:
L 05/01/2011 - 10:41:34: [SM] Native "GetEntProp" reported: Entity -1 (-1) is invalid |
Re: [TF2]TauntCrits
http://forums.alliedmods.net/showpos...&postcount=998
Keep this plugin updated on it's thread. Credits to Nineteeneleven. :3 |
Re: [TF2]TauntCrits
http://i149.photobucket.com/albums/s...readrevive.jpg
finally updated this plugin. Sorry for being too lazy. Now its easier to modify, and adding/removing "no award" weapons soon i will be away for a week, but when ill be bak ill try to fix all found bugs so please post bug reports |
Re: [TF2]TauntCrits
Quote:
|
Re: [TF2]TauntCrits
Hi there,
In my server, running Saxton Hale mod, people donot get critcs when they taunt, especially pyro, why? Thanks, GhaRe |
Re: [TF2]TauntCrits
okay, trying to fix it.
|
Re: [TF2]TauntCrits
I think only the secondary weap can have critcs when we taunt D:. I want all of them to give critcs.
My server uses VS Saxton Hale mode. |
Re: [TF2]TauntCrits
Alright, uploaded update. It works perfectly on Random Fortress server, but I cant get error logs so i dont know if it spams with errors.
Sorry if theres lot of this spam. |
Re: [TF2]TauntCrits
Yes, now its working perfectly ;D!
Thank you! |
Re: [TF2]TauntCrits
When compiling:
Code:
tauntcrits.sp(670) : warning 234: symbol "TF2_GetPlayerConditionFlags" is marked as deprecated: Use TF2_IsPlayerInCondition instead. |
Re: [TF2]TauntCrits
Fixed.
|
Re: [TF2]TauntCrits
Code:
L 07/13/2011 - 06:37:07: [SM] Native "GetEntProp" reported: Entity -1 (-1) is invalid |
Re: [TF2]TauntCrits
Im not sure, but it seems you are using different version, so I cant find whats going on on Line 962.
In last version Line 962 is "return bool:false;" also my .sp file is called "tauntcrits.sp". Could you upload this .sp file so i can check whats wrong? |
Re: [TF2]TauntCrits
I usually edit the plugins i download and change around a few things for my servers but don't release them. I could try getting the latest version you have up and seeing if it works for me. :shock:
|
Re: [TF2]TauntCrits
if (!(client > 0 && IsValidEdict(client) && IsClientInGame(client) && IsPlayerAlive(client)))
return bool:false; client is target entity for new weaponind=GetEntProp(GetEntPropEnt(client, Prop_Send, "m_hActiveWeapon"), Prop_Send, "m_iItemDefinitionIndex"); so theres no way it can display this error i think Quote:
|
Re: [TF2]TauntCrits
So, does downloading latest version helped?
|
Re: [TF2]TauntCrits
I just installed the new version and it works fully but this error popped up ONCE in the console after 24 hours and the rest of the errors was from another plugin.
Code:
L 07/21/2011 - 18:03:54: [SM] Native "GetEntProp" reported: Entity -1 (-1) is invalidMistaken, there's another error. Code:
L 07/21/2011 - 17:48:53: [SM] Plugin encountered error 15: Array index is out of bounds |
Re: [TF2]TauntCrits
oh sorry, ive fixed thoose bugs week ago and forgot to update this thread. Now its updated.
|
Re: [TF2]TauntCrits
Installed the new version and i have yet to see an error. Good Job. ^_^
|
Re: [TF2]TauntCrits
Code:
L 08/11/2011 - 03:09:30: [SM] Native "GetEntProp" reported: Property "m_iItemDefinitionIndex" not found (entity 319/instanced_scripted_scene) |
Re: [TF2]TauntCrits
Seems like your still underdevelopment so approval will wait a bit.
Quote:
|
Re: [TF2]TauntCrits
Same error as i posted above. -_-
I'm getting them once in a blue moon now. #32 |
Re: [TF2]TauntCrits
r3dw3r3w0lf, have you modified anything but name? because theres no such error in logs of RandomFortress. I even have no ideas how could this possible for player to have weapon entity "(entity 319/instanced_scripted_scene)" because theres no error in "new weaponent=GetEntPropEnt(client, Prop_Send, "m_hActiveWeapon");" line
but there is in "new weaponind=GetEntProp(weaponent, Prop_Send, "m_iItemDefinitionIndex");" Code:
if (!(client > 0 && IsValidEdict(client) && IsClientInGame(client) && IsPlayerAlive(client))) |
Re: [TF2]TauntCrits
Eh, probably a mod i have installed on my server to make the error pop up.
|
Re: [TF2]TauntCrits
1 Attachment(s)
Quote:
Valve actually IMPLEMENTED a fix for this in TF2, you just haven't used it. Change TFCond_Kritzkrieged to TFCond_HalloweenCritCandy (or any other new tf2.inc crit defines except TFCond_CritHype). Tada. I've also included a possible fix for redwerewolf's error. It checks in ValidWeapon to make sure that the client's weapon is one of their 6 weapons. You will need to compile it yourself using the new tf2.inc here |
Re: [TF2]TauntCrits
The only problem is: how to compile? I have no idea :shock:
|
Re: [TF2]TauntCrits
Updated tf2.inc file you gave and tried to compile the plugin and it says...
Code:
// C:\Users\Administrator\Desktop\Script\include\tf2.inc(94) : error 010: invali |
Re: [TF2]TauntCrits
2 Attachment(s)
Compiled plugin attached.
It's the same source code as what FlaminSarge linked (I didn't have that problem, werewolf) but I figured you gotta provide source and such with everything so why not.... |
| All times are GMT -4. The time now is 14:18. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.