Just a question for BF, is there a difference between spawn on mate and spawn on base ?
The server does not communicate where a player spawns. So we can, for example, not recognize a kill in the main base.
Generally, I would advise against this plugin on Battlefield 3/4 servers. When a player spawns in the squad and is killed immediately, then why punish the players who performed this kill? In Battlefield 4 I have seen many times that a sniper made a double-kill ??because the 2nd player is unhappily spawned.
vars.onlySquadLeaderSpawn is a better option
. Punish players not because of the bad netcode or because an opponent just had bad luck.
Fenix, i have just flown over the code. In my opinion, you can not detect a hit on BF 3/4 servers. Only a kill.
Anyway. I do not recommend this plugin for BF 3/4 server. It is wrong to punish players if there is no basis (In this case, kill position) for a reason/rule.