Skip to content

Commit 351d3f0

Browse files
committed
INC
1 parent 8a3f58b commit 351d3f0

1 file changed

Lines changed: 41 additions & 7 deletions

File tree

Lines changed: 41 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#if defined _l4d_tank_control_eq_included
2-
#endinput
2+
#endinput
33
#endif
44
#define _l4d_tank_control_eq_included
55

@@ -10,23 +10,57 @@
1010
*/
1111
native int GetTankSelection();
1212

13+
/**
14+
* @brief Gets the tank pass count for a specific player.
15+
*
16+
* @param client Client index to check.
17+
* @return Number of times the player has passed tank control, 0 if invalid client.
18+
*/
19+
native int GetTankPassedCount(int client);
20+
21+
/**
22+
* @brief Forces selection of the next tank in queue.
23+
*
24+
* @return Client index of selected tank, 0 if none available.
25+
*/
26+
native int ForceSelectNextTank();
27+
28+
/**
29+
* @brief Removes a player from the tank queue.
30+
*
31+
* @param client Client index to remove from queue.
32+
* @return 1 if removed successfully, 0 if not found or invalid client.
33+
*/
34+
native int RemoveFromTankQueue(int client);
35+
36+
/**
37+
* @brief Adds a player to the tank history (players who have played tank).
38+
*
39+
* @param client Client index to add to history.
40+
* @return 1 if added successfully, 0 if already in history or invalid client.
41+
*/
42+
native int AddToTankHistory(int client);
43+
1344
forward void TankControl_OnTryOfferingTankBot(char sQueuedTank[64]);
1445
forward void TankControl_OnTankSelection(char sQueuedTank[64]);
1546

1647
public SharedPlugin __pl_l4d_tank_control_eq =
1748
{
18-
name = "l4d_tank_control_eq",
19-
file = "l4d_tank_control_eq.smx",
49+
name = "l4d_tank_control_eq",
50+
file = "l4d_tank_control_eq.smx",
2051
#if defined REQUIRE_PLUGIN
21-
required = 1,
52+
required = 1,
2253
#else
23-
required = 0,
54+
required = 0,
2455
#endif
2556
};
2657

2758
#if !defined REQUIRE_PLUGIN
2859
public void __pl_l4d_tank_control_eq_SetNTVOptional()
2960
{
30-
MarkNativeAsOptional("GetTankSelection");
61+
MarkNativeAsOptional("GetTankSelection");
62+
MarkNativeAsOptional("GetTankPassedCount");
63+
MarkNativeAsOptional("ForceSelectNextTank");
64+
MarkNativeAsOptional("RemoveFromTankQueue");
3165
}
32-
#endif
66+
#endif

0 commit comments

Comments
 (0)