Skip to content

Commit da0a236

Browse files
authored
added quickfix cond to player (#3)
fixes being able to be pushed around during fbrounds
1 parent d06fb57 commit da0a236

File tree

3 files changed

+682
-1
lines changed

3 files changed

+682
-1
lines changed

feedback2.smx

59 Bytes
Binary file not shown.

scripting/feedback2.sp

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040

4141
/* Defines */
4242
#define PLUGIN_AUTHOR "PigPig"
43-
#define PLUGIN_VERSION "0.0.17"
43+
#define PLUGIN_VERSION "0.0.18c"
4444

4545

4646
#include <sourcemod>
@@ -146,6 +146,8 @@ ArrayList SpawnPointNames;
146146
ArrayList SpawnPointEntIDs;
147147

148148
TFCond AppliedUber = TFCond:51;
149+
TFCond AppliedQuickFix = TFCond:28;
150+
TFCond AppliedPiss = TFCond:24;
149151

150152
//-1 is default
151153
int MapTimeStorage = -1;
@@ -386,12 +388,17 @@ void SetPlayerFBMode(client, bool fbmode)
386388
if(fbmode)
387389
{
388390
TF2_AddCondition(client, AppliedUber, 10000000000.0);//Add uber for a long time
391+
TF2_AddCondition(client, AppliedQuickFix, 10000000000.0);//Add quickfix for a long time
392+
TF2_AddCondition(client, AppliedPiss, 10.0);//Add piss to get rid of uber overlays
389393
SetEntProp(client, Prop_Send, "m_CollisionGroup", COLLISION_GROUP_DEBRIS_TRIGGER);//Remove collisions
390394
SetEntProp(client, Prop_Data, "m_CollisionGroup", COLLISION_GROUP_DEBRIS_TRIGGER);
395+
TF2_RemoveCondition(client,AppliedPiss);
391396
}
392397
else
393398
{
394399
TF2_RemoveCondition(client,AppliedUber);
400+
TF2_RemoveCondition(client,AppliedQuickFix);
401+
TF2_RemoveCondition(client,AppliedPiss);
395402
SetEntProp(client, Prop_Send, "m_CollisionGroup", COLLISION_GROUP_PLAYER);//Add back collisions
396403
SetEntProp(client, Prop_Data, "m_CollisionGroup", COLLISION_GROUP_PLAYER);
397404
}

0 commit comments

Comments
 (0)