MantisBT

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000440SoldatGameplaypublic2013-09-20 16:242014-04-19 11:07
ReporterRev 
Assigned To 
PrioritynormalSeverityminorReproducibilityalways
StatusconfirmedResolutionopen 
Platformx64OSWindowsOS Version7
Product Version 
Target VersionFixed in Version 
Summary0000440: Flag won't return to flag's spawn if player touches it with "OnFlagGrab kills" script.
DescriptionThe 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!
Steps To ReproduceSteal 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!
Additional Informationprocedure 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;
TagsNo tags attached.
Attached Files? file icon 2014-04-19_10-24-18_ctf_Ash.sdm [^] (520,441 bytes) 2014-04-19 10:36
? file icon rev.pas [^] (682 bytes) 2014-04-19 10:36

- Relationships

-  Notes
(0002202)
kicikici (reporter)
2014-04-19 10:37

I can confirm this. See attached demo and working script (not only piece like in Additional Information).

- Issue History
Date Modified Username Field Change
2013-09-20 16:24 Rev New Issue
2014-04-19 10:36 kicikici File Added: 2014-04-19_10-24-18_ctf_Ash.sdm
2014-04-19 10:36 kicikici File Added: rev.pas
2014-04-19 10:37 kicikici Note Added: 0002202
2014-04-19 11:03 homerofgods Status new => confirmed
2014-04-19 11:07 homerofgods Severity major => minor
2014-04-19 11:07 homerofgods Description Updated View Revisions


Copyright © 2000 - 2024 MantisBT Team
Powered by Mantis Bugtracker