I don't feel like taking time to test this, but it looks like some of these variables would be relevant in getting that data (without tracking it manually):
https://github.com/ProdigySim/l4d2_s..._player.h#L944
m_checkpointPZTankPunches
m_checkpointPZTankThrows ?
m_checkpointPZTankDamage
Does "props" refer to props used in damaging survivors? or just props that have been moved out of place by a tank?
You could spawn yourself as a tank and see if these are the relevant variables by using a test plugin.
Spoiler
PHP Code:
#include <sourcemod>
#pragma semicolon 1
#pragma newdecls required
// https://github.com/ProdigySim/l4d2_structs/blob/master/terror_player.h#L944
public void OnPluginStart()
{
RegConsoleCmd("sm_testprintout", Command_TestPrintout);
}
public Action Command_TestPrintout(int client, int args)
{
if (client)
{
PrintToChat(client, "[SM] See console");
PrintToConsole(client, "--------------------------------------------");
PrintToConsole(client, "m_checkpointPZTankPunches: %i", GetEntProp(client, Prop_Send, "m_checkpointPZTankPunches"));
PrintToConsole(client, "m_checkpointPZTankThrows: %i", GetEntProp(client, Prop_Send, "m_checkpointPZTankThrows"));
PrintToConsole(client, "m_checkpointPZTankDamage: %i", GetEntProp(client, Prop_Send, "m_checkpointPZTankDamage"));
}
else
{
PrintToChat(client, "[SM] In-game use only");
}
return Plugin_Handled;
}
Would recommend also testing for false positives (example - does "m_checkpointPZTankPunches" increment only when you hit a survivor, or for every punch? If for every punch - is that what you want? if not, we'll have to track that manually).
If you find the relevant variables I can edit it into the spechud if you need help with that.