I worked me to the code to make a bugifx for the "spawn bug" and got it by the way i found a outher little mistake.
File TeamCryticalHit.lua @ function TeamCryticalHit.Server:OnPlayerKilled(hit)
function TeamCryticalHit.Server:OnPlayerKilled(hit)
if (System.GetCVar("ssm_enable") == 1) then --missed
WarsExtended.Hits:OnKill(hit); --missed
end --missed
local target=hit.target;
target.RevivesNow = nil; -- Part of the spawn bug fix
--Log("Player Spectator allowed"); -- Part of the spawn bug fix
target.death_time=_time;
target.death_pos=target:GetWorldPos(target.death_pos);
local tk = self:IsTeamKill(hit.target, hit.shooter);
self.game:KillPlayer(hit.targetId, not tk, true, hit.shooterId, hit.weaponId, hit.damage, hit.materialId, hit.typeId, hit.dir);
self:ProcessScores(hit, tk);
end
Cheers
RevX
