(0002541)
|
Savage
|
2016-03-22 11:29
|
|
I couldn't find out how to modify description but it should be:
In survival mode when at least 1 alpha and bravo player are alive(there's no countdown for next fight) and rest of the players are dead then after map change these players aren't respawned until alive players from previous map are dead.
Also I've made small script to fix it:(RestartFIX.zip under description)
var
Resurrect: array[1..32] of Boolean;
function OnDamage(Shooter, Victim: TActivePlayer; Damage: Integer; BulletId: Byte): Integer;
begin
if Resurrect[Victim.ID] then
Result := 0
else
Result := Damage;
end;
procedure OnAfterMapChange(Next: string);
var
i: Byte;
begin
for i := 1 to 32 do
if (Players[i].Active) and (Players[i].Alive=false) and (Players[i].Team<>5) then begin
Resurrect[i] := true;
Players[i].Team := Players[i].Team;
Resurrect[i] := false;
end;
end;
procedure Init;
var
i: Byte;
begin
for i := 1 to 32 do
Players[i].OnDamage := @OnDamage;
Map.OnAfterMapChange := @OnAfterMapChange;
end;
begin
Init;
end. |
|