MantisBT

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000649SoldatGameplaypublic2016-03-22 00:172016-03-22 11:29
ReporterSavage 
Assigned To 
PriorityhighSeveritymajorReproducibilityalways
StatusnewResolutionopen 
PlatformOSOS Version
Product Version1.7.0 
Target VersionFixed in Version 
Summary0000649: Survival - Dead Players After Restart/Map Change
DescriptionIn 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 (restart command, votemap etc. But when map is changed due to score limit reached everything is ok - not tested other events) these players aren't respawned until alive players from previous map are dead.
TagsNo tags attached.
Attached Fileszip file icon RestartFIX.zip [^] (1,838 bytes) 2016-03-22 11:22

- Relationships

-  Notes
(0002541)
Savage (reporter)
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.

- Issue History
Date Modified Username Field Change
2016-03-22 00:17 Savage New Issue
2016-03-22 11:22 Savage File Added: RestartFIX.zip
2016-03-22 11:29 Savage Note Added: 0002541


Copyright © 2000 - 2019 MantisBT Team
Powered by Mantis Bugtracker