[FIXED] Forgett WarsExtended.Hits:OnKill(hit);

Problems with CrysisWarsEX or have any feedback? Post it here.

[FIXED] Forgett WarsExtended.Hits:OnKill(hit);

Postby -NH-RevolutionX on Mon Nov 30, 2009 9:24 am

Hello,
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
-NH-RevolutionX
 
Posts: 27
Joined: Thu Nov 26, 2009 5:59 pm

Re: [LUA] Forgett WarsExtended.Hits:OnKill(hit);

Postby -NH-RevolutionX on Mon Nov 30, 2009 10:19 am

same here

function TeamInstantAction.Server:OnPlayerKilled(hit)
if (System.GetCVar("ssm_enable") == 1) then --missed
WarsExtended.Hits:OnKill(hit); --missed
end --missed

local target=hit.target;
hit.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
-NH-RevolutionX
 
Posts: 27
Joined: Thu Nov 26, 2009 5:59 pm

Re: [LUA] Forgett WarsExtended.Hits:OnKill(hit);

Postby TheBlackDead on Mon Nov 30, 2009 12:31 pm

Added the code for WarsExtended.Hits:OnKill(hit);

P.S. We however changed the main class name to ExServerOptions from the next patch
-- TheBlackDead, OMG! Leader
User avatar
TheBlackDead
OMG! Manager
 
Posts: 822
Joined: Wed Jun 24, 2009 11:57 pm
Location: RoMa (Italy)


Return to EX Support & Help

Who is online

Users browsing this forum: No registered users and 1 guest

cron