MantisBT - Soldat
View Issue Details
0000440SoldatGameplaypublic2013-09-20 16:242014-04-19 11:07
Rev 
 
normalminoralways
confirmedopen 
x64Windows7
 
 
0000440: Flag won't return to flag's spawn if player touches it with "OnFlagGrab kills" script.
The following bug appeared: If i steal a flag and drop it elsewhere, it will blink and return - that's normal. If i throw it for example to my base, change to godmode then touch it(player gets killed OnFlagGrab), the flag keeps blinking(no flag refresh = good) and disappears - but its position XY remains which would be a problem for coop maps... When walking over this spot(without godmode) i can again grab/return the flag!
Steal flag - drop it - enter godmode(with kill OnFlagGrab) - touch flag (get killed) - flag will blink and disappear - change to team red/blue - go to old flag place -> player can grab/return flag!
procedure OnFlagGrab(ID, TeamFlag: byte; GrabbedInBase: boolean);
begin

  if (GetPlayerStat(ID, 'Alive') = true) and player[ID].godmode then
  begin
    player[ID].godmode := false;
    DoDamageBy(ID, ID, 8000);
    player[ID].godmode := true;
  end;
end;
No tags attached.
? 2014-04-19_10-24-18_ctf_Ash.sdm (520,441) 2014-04-19 10:36
https://bugs.soldat.pl/file_download.php?file_id=600&type=bug
? rev.pas (682) 2014-04-19 10:36
https://bugs.soldat.pl/file_download.php?file_id=601&type=bug
Issue History
2013-09-20 16:24RevNew Issue
2014-04-19 10:36kicikiciFile Added: 2014-04-19_10-24-18_ctf_Ash.sdm
2014-04-19 10:36kicikiciFile Added: rev.pas
2014-04-19 10:37kicikiciNote Added: 0002202
2014-04-19 11:03homerofgodsStatusnew => confirmed
2014-04-19 11:07homerofgodsSeveritymajor => minor
2014-04-19 11:07homerofgodsDescription Updatedbug_revision_view_page.php?rev_id=529#r529

Notes
(0002202)
kicikici   
2014-04-19 10:37   
I can confirm this. See attached demo and working script (not only piece like in Additional Information).