Raised This Month: $51 Target: $400
 12% 

Help on adding a TF2_OnConditionAdded to a command.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
kfskilljoy
AlliedModders Donor
Join Date: Jul 2013
Old 07-21-2013 , 23:24   Help on adding a TF2_OnConditionAdded to a command.
Reply With Quote #1

Hello i'm kinda new to coding in pawn. But i was wandering if there is a way to add a condition to a command so when the command is fired it will fire the TF2_OnConditionAdded. I am trying to code a plugin that will allow players to force the thriller taunt on them selves.
kfskilljoy is offline
Taz532
Senior Member
Join Date: Jul 2011
Location: Michigan
Old 07-22-2013 , 08:22   Re: Help on adding a TF2_OnConditionAdded to a command.
Reply With Quote #2

Why do you need TF2_OnConditionAdded? It sounds to me like you want people to be able to use a command to do the thriller taunt, so why not just use TF2_AddCondition when people use the command? As for how to force a certain taunt, I'm not quite sure how to do that.
Taz532 is offline
kfskilljoy
AlliedModders Donor
Join Date: Jul 2013
Old 07-22-2013 , 09:08   Re: Help on adding a TF2_OnConditionAdded to a command.
Reply With Quote #3

Ok i guess your right but on that note is there a certain way to impliment the tf2_addcondition to the public Action: Command_thriller?
kfskilljoy is offline
psychonic

BAFFLED
Join Date: May 2008
Old 07-22-2013 , 09:54   Re: Help on adding a TF2_OnConditionAdded to a command.
Reply With Quote #4

Code:
#include <sourcemod> #include <tf2> public OnPluginStart() {     RegConCommand( "thrillme", thrillme ); } public Action:thrillme( client, argc ) {     if ( client == 0 || !IsClientInGame( client ) || !IsPlayerAlive( client ) )         return Plugin_Handled;     TF2_AddCondition( client, TFCond_HalloweenThriller, 2.0 );     return Plugin_Handled; }
psychonic is offline
kfskilljoy
AlliedModders Donor
Join Date: Jul 2013
Old 07-22-2013 , 09:56   Re: Help on adding a TF2_OnConditionAdded to a command.
Reply With Quote #5

thank you so much.
kfskilljoy is offline
Reply



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 10:53.


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