[TF2] Addcond
PHP Code:
|
Re: [TF2] Addcond
Brilliant stocks :D
|
Re: [TF2] Addcond
Wow.
This is amazing. How did you find the commands? The possibilities are endless... just after a quick test I've found you can make any class disguise (if you also set the appropriate props). Great work. EDIT: From my quick testing: 0 = Civilian 1 = Sniper Scope (doesn't zoom in) 2 = Start of Disguise sequence 3 = Disguise (set m_nDisguiseTeam, etc. after applying to select the team/class/player/weapon) 4 = Cloak (only seems to work with Spy) 5 = Uber 6 = Glow from recently using a teleporter 7 = Useless (this is used for when you taunt) 8 = Unknown 9 = Unknown (probably useless since it doesn't alter your condition) 10 = Unknown 11 = Kritz (seems to disable when you kill someone) 12 = Unknown 13 = Unknown (probably useless since it doesn't alter your condition) 14 = Bonk'd (only lasts 5 seconds for Scout; interesting note: if you taunt you stay in third person even with sv_cheats 0) 15 = Useless (this is used for when you are slowed after drinking Bonk and when you're stunned) 16 = Unknown 17 = Useless (this is used for when you are ignited, makes you say fire voice response) 18 = Unknown 19 = Jarate Example code to disguise as your class on the enemy team (after adding condition 3): Code:
SetEntProp(client, Prop_Send, "m_nDisguiseClass", TF2_GetPlayerClass(client)); |
Re: [TF2] Addcond
Please share everything you have on this.
|
Re: [TF2] Addcond
/del
|
Re: [TF2] Addcond
I'm kind of confused as to how to use this, but that's probably just me.
|
Re: [TF2] Addcond
Quote:
|
Re: [TF2] Addcond
Code:
#define PLAYERCOND_SLOWED (1<<0) //1 |
Re: [TF2] Addcond
Thank you, was looking for that one
|
Re: [TF2] Addcond
My hero! +K for you!
|
Re: [TF2] Addcond
No, please remove all the sv_cheats handling. That is unnecessary once you have removed the FCVAR_CHEATS flag, and opens the server up to a number of security issues. I see many servers a day exploited because they had cheats on.. plugins should never toggle it to use various features.
|
Re: [TF2] Addcond
Can't get this working without blacking out my server. (Works, just induces darkness)
I've tried removing the cheat flags on addcond with no luck. Anybody get this working? |
Re: [TF2] Addcond
Quote:
|
Re: [TF2] Addcond
Try something like this:
PHP Code:
|
Re: [TF2] Addcond
Did not work blank. :( No fail states occurred.
I haven't had any success calling CTFPlayerShared::AddCond(int, float) either. Lots of server crashes. So I would be happy if someone got this working. :3 |
Re: [TF2] Addcond
The CTFPlayerShared::AddCond works fine from a MMS plugin. If your trying to do it with an SDKCall thats your problem, you cant make SDKCalls with CTFPlayerShared functions.
|
Re: [TF2] Addcond
Quote:
|
Re: [TF2] Addcond
and knowing is half the battle!
|
Re: [TF2] Addcond
Much to my surprise, I got it working via an MM:S plugin. :D The float value is the toggle between on and off. 0 is off and any thing greater turns on a condition.
A lot of neat stuff you can do with this. That said, I'm surprised a native for AddCond hasn't been introduced into the tf2 extension. I had to make my own. :mrgreen: |
Re: [TF2] Addcond
Care to post an extension providing the native for plugins? *anyone*
|
Re: [TF2] Addcond
Indeed, I'd be interested in seeing the extension as well, especially as an example how to do it.
Would be nice! |
Re: [TF2] Addcond
seems uber cond won't work on the losing team
*cry |
Re: [TF2] Addcond
All of em are conditional *shock*, like if you get healed by a medic, you loose uber aswell because they're ubermeter *usually* is lower then 100%.
|
Re: [TF2] Addcond
Just what I was looking for, many thanks MikeJS.
|
Re: [TF2] Addcond
Better cheats handling:
PHP Code:
|
Re: [TF2] Addcond
Quote:
|
Re: [TF2] Addcond
Quote:
Gonna try various methods to see what does work. |
Re: [TF2] Addcond
You will not be able to run this command with server side sv_cheats turned off since this is one of those commands that requires sv_cheats to be enabled serverside to work.
You can use this: http://forums.alliedmods.net/showthread.php?t=92289 to send sv_cheats 1 to a client and see for yourself. However there is a chance removing addcond's cheat flag would remove its dependency on server side sv_cheats. However this is unlikely since other commands like thirdperson do not lose their dependency. This is a better way to handle the sv_cheats, PHP Code:
|
Re: [TF2] Addcond
can someone make this like plugin?
|
Re: [TF2] Addcond
EHG: That didn't work the last time I tried it.
|
Re: [TF2] Addcond
Quote:
Code:
SetConVarFlags(cvar, flags^(FCVAR_NOTIFY|FCVAR_REPLICATED)); |
Re: [TF2] Addcond
Does anyone new the new conditions since the update? Number 19 Jarate is no longer working.
Old Conditions: 0 = Civilian 1 = Sniper Scope (doesn't zoom in) 2 = Start of Disguise sequence 3 = Disguise (set m_nDisguiseTeam, etc. after applying to select the team/class/player/weapon) 4 = Cloak (only seems to work with Spy) 5 = Uber 6 = Glow from recently using a teleporter 7 = Useless (this is used for when you taunt) 8 = Unknown 9 = Unknown (probably useless since it doesn't alter your condition) 10 = Unknown 11 = Kritz (seems to disable when you kill someone) 12 = Unknown 13 = Unknown (probably useless since it doesn't alter your condition) 14 = Bonk'd (only lasts 5 seconds for Scout; interesting note: if you taunt you stay in third person even with sv_cheats 0) 15 = Useless (this is used for when you are slowed after drinking Bonk and when you're stunned) 16 = Unknown 17 = Useless (this is used for when you are ignited, makes you say fire voice response) 18 = Unknown 19 = Jarate |
Re: [TF2] Addcond
I believe there are 2 new ones inserted at around 16 or 17. Hopefully the ones below 16 are the same and those above have just been pushed up by 2. If you can test this for me and get back to us that would be really good!
|
Re: [TF2] Addcond
I can confirm 21 did not give/ remove jarate.
Also when I tried stopping a player burning it failed. Looks like the conditions have changed quite alot...DAMMIT! |
Re: [TF2] Addcond
Yeah let's e-mail valve and force them to make pretty little generic functions for us :3
|
Re: [TF2] Addcond
2 Attachment(s)
Feel free to use this extension to watch conditions as they are added to players. The windows signatures will most likely need updating though; Linux symbols should be fine.
|
Re: [TF2] Addcond
How does the attached plugin work?
Does it print them to a log/ screen? Any commands? |
Re: [TF2] Addcond
The plugin will print chat messages when someone gains and looses a condition, so just add a bot to the server and test things out on them. There are also the sm_addcondition and sm_removecondition commands but you don't need to use them, you have the method given using sv_cheats/addcond.
I know someone is going to post saying "you don't need an extension to do that". Well, I don't care :) |
Re: [TF2] Addcond
Is the new bugle mini crit effect a condition? My guess is that it is but just wondering if anyone knows for sure or what number it is?
|
Re: [TF2] Addcond
sv_cheats/addcond is how i've been adding it and its been working well.
About to install you mod onto a test server to get the condition numbers. |
| All times are GMT -4. The time now is 18:44. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.