Skip to content

Commit 1c000e8

Browse files
authored
0.0.15b
logic_relay's named TF2M_FeedbackRoundRelay will be triggered on FBRounds start.
1 parent 0f4b23e commit 1c000e8

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

scripting/feedback2.sp

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@
1212
fb2_timer : How long these rounds should be by default. (DEFAULT: 2 MINUTES)
1313
fb2_triggertime : How long till map end should we trigger last round fb round.
1414
fb2_mapcontrol : Can maps call FB rounds on last round?
15+
Map Ents:
16+
info_target named "TF2M_ForceLastRoundFeedback" : The maps last round will be a fb round regardless of hosts request
17+
logic_relay named "TF2M_FeedbackRoundRelay" : The relay we trigger on custom maps when a fb round is activated
18+
1519
1620
1721
@@ -41,7 +45,7 @@
4145

4246
/* Defines */
4347
#define PLUGIN_AUTHOR "PigPig"
44-
#define PLUGIN_VERSION "0.0.15"
48+
#define PLUGIN_VERSION "0.0.15b"
4549

4650

4751
#include <sourcemod>
@@ -833,6 +837,14 @@ public Action:Event_Round_Start(Event event, const char[] name, bool dontBroadca
833837
//We kill the capture zones insead of just disabling them incase the capture zone has an input to re-enable.
834838
AcceptEntityInput(ent,"Kill");
835839
}
840+
ent = -1;
841+
while ((ent = FindEntityByClassname(ent, "logic_relay")) != -1)
842+
{
843+
decl String:entName[50];
844+
GetEntPropString(ent, Prop_Data, "m_iName", entName, sizeof(entName));//Get ent name.
845+
if(StrEqual(entName, "TF2M_FeedbackRoundRelay",true))//true, we care about caps.
846+
AcceptEntityInput(ent,"Trigger");
847+
}
836848

837849

838850

0 commit comments

Comments
 (0)