Raised This Month: $ Target: $400
 0% 

[Req][TF2] Addcond


Post New Thread Reply   
 
Thread Tools Display Modes
Tylerst
Veteran Member
Join Date: Oct 2010
Old 10-26-2010 , 01:18   Re: [Req][TF2] Addcond
Reply With Quote #11

I made this in about 5 minutes, and tested it succussfully for Uber and kritz.

Hope it works for you

TF2 Add Condition

sm_addcond "target" "conditon number" "duration" -- Requires Slay Flag

Example:

10 seconds of Uber on yourself -- sm_addcond @me 5 10

or 30 seconds of crits on the blue team -- sm_addcond @blue 11 30

Conditions courtesy of psychonic a few posts below:

Slowed = 0
Zoomed = 1
Disguising = 2
Disguised = 3
Cloaked = 4
Ubercharged = 5
Teleportglow = 6
Taunting = 7
Uberchargefade = 8
Unknown1 = 9
Teleporting = 10
Kritzkrieged = 11
Unknown2 = 12
Deadringered = 13
Bonked = 14
Dazed = 15
Buffed = 16
Charging = 17
Demobuff = 18
Critcola = 19
Healing = 20
Unknown3 = 21
OnFire = 22
Overhealed = 23
Jarated= 24
Bleeding = 25
Defensebuffed = 26
Milked = 27


Version 1.1:

Fixed a compiler warning

Condition 1(Scope) will now only trigger on snipers to prevent the crashing bug

Condition 4(Cloak) will now only trigger on spies

Condition 7(Taunting) will now make the target(s) taunt once

Condition 22(OnFire) will now make use of the TF2_IgnitePlayer to set them on fire(unfortunately that one doesn't allow duration so it will always be 10 seconds)

Condition 25(Bleeding) will now make use of TF2_Makebleed which works fully wtih duration(Version 1.3.5 of sourcemod needed)

For those with sourcemod 1.3.4 or lower, use 1.1b
Attached Files
File Type: sp Get Plugin or Get Source (TF2 Add Condition 1.1.sp - 1209 views - 2.5 KB)
File Type: sp Get Plugin or Get Source (TF2 Add Condition 1.1b.sp - 609 views - 2.4 KB)

Last edited by Tylerst; 10-27-2010 at 20:48.
Tylerst is offline
Snaggle
AlliedModders Donor
Join Date: Jul 2010
Location: England
Old 10-26-2010 , 11:09   Re: [Req][TF2] Addcond
Reply With Quote #12

I've given this a quick go on my servers and i'll post up the results.

0 = Slowed = Works fine
1 = Zoomed = Can be used on other players fine, but if you use it on yourself and you're not a Sniper you crash
2 = Disguising = Works fine
3 = Disguised = Disguises all classes as a Scout but retains their original weapons
4 = Cloaked = Works with Spy
5 = Ubercharged = Works fine
6 = TeleportedGlow = Works fine
7 = Taunting = Does nothing
8 = UberchargeFading = Works with addcond 5
9 = Unknown1 = Unknown
10 = Teleporting = Does nothing
11 = Kritzkrieged = Works fine
12 = Unknown2 = Unknown
13 = DeadRingered = Just cloaks you
14 = Bonked = Seems to take their weapons away
15 = Dazed = Does nothing
16 = Buffed = Works fine
17 = Charging = Works lol
18 = DemoBuff = Does nothing
19 = Healing = Seems to do kritz effect
20 = OnFire = Does nothing
21 = Overhealed = Does nothing
22 = Jarated = Makes the sound of being ignited but does nothing
Snaggle is offline
psychonic

BAFFLED
Join Date: May 2008
Old 10-26-2010 , 11:46   Re: [Req][TF2] Addcond
Reply With Quote #13

Quote:
Originally Posted by Snaggle View Post
I've given this a quick go on my servers and i'll post up the results.

0 = Slowed = Works fine
1 = Zoomed = Can be used on other players fine, but if you use it on yourself and you're not a Sniper you crash
2 = Disguising = Works fine
3 = Disguised = Disguises all classes as a Scout but retains their original weapons
4 = Cloaked = Works with Spy
5 = Ubercharged = Works fine
6 = TeleportedGlow = Works fine
7 = Taunting = Does nothing
8 = UberchargeFading = Works with addcond 5
9 = Unknown1 = Unknown
10 = Teleporting = Does nothing
11 = Kritzkrieged = Works fine
12 = Unknown2 = Unknown
13 = DeadRingered = Just cloaks you
14 = Bonked = Seems to take their weapons away
15 = Dazed = Does nothing
16 = Buffed = Works fine
17 = Charging = Works lol
18 = DemoBuff = Does nothing
19 = Healing = Seems to do kritz effect
20 = OnFire = Does nothing
21 = Overhealed = Does nothing
22 = Jarated = Makes the sound of being ignited but does nothing
The list you were given is outdated and many are known not to do anything from just adding the condition. For example the 'OnFire' one just does the sound and bleeding does nothing (even though the MakeBleed native works).

An updated list of the conditions can always be found in the latest tf2.inc or tf2_stocks.inc that comes with SM.

Code:
#define TF_CONDFLAG_NONE            0 #define TF_CONDFLAG_SLOWED          (1 << 0) #define TF_CONDFLAG_ZOOMED          (1 << 1) #define TF_CONDFLAG_DISGUISING      (1 << 2) #define TF_CONDFLAG_DISGUISED       (1 << 3) #define TF_CONDFLAG_CLOAKED         (1 << 4) #define TF_CONDFLAG_UBERCHARGED     (1 << 5) #define TF_CONDFLAG_TELEPORTGLOW    (1 << 6) #define TF_CONDFLAG_TAUNTING        (1 << 7) #define TF_CONDFLAG_UBERCHARGEFADE  (1 << 8) #define TF_CONDFLAG_TELEPORTING     (1 << 10) #define TF_CONDFLAG_KRITZKRIEGED    (1 << 11) #define TF_CONDFLAG_DEADRINGERED    (1 << 13) #define TF_CONDFLAG_BONKED          (1 << 14) #define TF_CONDFLAG_DAZED           (1 << 15) #define TF_CONDFLAG_BUFFED          (1 << 16) #define TF_CONDFLAG_CHARGING        (1 << 17) #define TF_CONDFLAG_DEMOBUFF        (1 << 18) #define TF_CONDFLAG_CRITCOLA        (1 << 19) #define TF_CONDFLAG_HEALING         (1 << 20) #define TF_CONDFLAG_ONFIRE          (1 << 22) #define TF_CONDFLAG_OVERHEALED      (1 << 23) #define TF_CONDFLAG_JARATED         (1 << 24) #define TF_CONDFLAG_BLEEDING        (1 << 25) #define TF_CONDFLAG_DEFENSEBUFFED   (1 << 26) #define TF_CONDFLAG_MILKED          (1 << 27)
psychonic is offline
Kytosai
Junior Member
Join Date: Oct 2010
Old 10-26-2010 , 17:23   Re: [Req][TF2] Addcond
Reply With Quote #14

Thanks! This is exactly what I was looking for!
Kytosai is offline
Tylerst
Veteran Member
Join Date: Oct 2010
Old 10-26-2010 , 21:08   Re: [Req][TF2] Addcond
Reply With Quote #15

Updated my first post.

Sorry about that, guess next time I'll look at the includes instead >.<
Tylerst is offline
Tylerst
Veteran Member
Join Date: Oct 2010
Old 10-27-2010 , 00:56   Re: [Req][TF2] Addcond
Reply With Quote #16

Sorry for the double post but..

I updated the plugin a bit

See my first post for v1.1

Last edited by Tylerst; 10-27-2010 at 01:04.
Tylerst is offline
Snaggle
AlliedModders Donor
Join Date: Jul 2010
Location: England
Old 10-27-2010 , 19:17   Re: [Req][TF2] Addcond
Reply With Quote #17

Thanks, i've uploaded it

Edit: I uploaded it and I get this error
Code:
00:21:07 [SM] Plugin addcond.smx failed to load: Native "TF2_MakeBleed" was not found.
I tried compiling it myself and same thing.

Last edited by Snaggle; 10-27-2010 at 19:21.
Snaggle is offline
Tylerst
Veteran Member
Join Date: Oct 2010
Old 10-27-2010 , 20:32   Re: [Req][TF2] Addcond
Reply With Quote #18

Quote:
Originally Posted by Snaggle View Post
Thanks, i've uploaded it

Edit: I uploaded it and I get this error
Code:
00:21:07 [SM] Plugin addcond.smx failed to load: Native "TF2_MakeBleed" was not found.
I tried compiling it myself and same thing.
Eh, I think the makebleed native was introduced in 1.3.5, you'll probably need to use at least that version of sourcemod.

Edit: Indeed it was - http://wiki.alliedmods.net/SourceMod..._Release_Notes

Until you feel like updating, I added a 1.1b without the makebleed coding to my first post

Last edited by Tylerst; 10-27-2010 at 20:46.
Tylerst is offline
Snaggle
AlliedModders Donor
Join Date: Jul 2010
Location: England
Old 10-28-2010 , 06:27   Re: [Req][TF2] Addcond
Reply With Quote #19

Right thanks, i'll update it tonight.
Snaggle is offline
eco3576
Senior Member
Join Date: Jul 2010
Old 05-13-2011 , 18:10   Re: [Req][TF2] Addcond
Reply With Quote #20

TF_CONDFLAG_HEALING doesn't seem to do anything for me. Only spawns the particle effect under me. I want it to heal as well.
eco3576 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 22:48.


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