MantisBT

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000356Soldat Dedicated ServerScripting Corepublic2013-07-30 13:012014-08-17 18:52
ReporterMighty 
Assigned ToExHunter 
PrioritynormalSeverityminorReproducibilityalways
StatusresolvedResolutionfixed 
Platformx86OSWindowsOS VersionXP SP3
Product Version2.7.4 
Target VersionFixed in Version 
Summary0000356: Script Core 3 - TPLayer.OnKill - WeaponType is unpredictable
DescriptionTested offline with bots (Boogie Man)

WeaponType value is completely unpredictable. Most of the time its value equals 1, regardless of the weapon. It's also not consistant, when using Rambo Bow I encountered WeaponType with values of 1,2 and 7 IIRC
Steps To ReproduceUse this script

procedure OnKillID(Killer, Victim: TActivePlayer; WeaponType: Byte);
begin
  Killer.Tell('Kill --> ['+inttostr(WeaponType)+']');
  Victim.Tell('Kill --> ['+inttostr(WeaponType)+']');
end;

var
  i: Byte;
begin
  for i:=1 to 32 do
    Players[i].OnKill := @OnKillID;

end.
TagsNo tags attached.
John
Attached Files

- Relationships

-  Notes
(0001847)
Mighty (developer)
2013-08-09 12:42

Still present in 1.6.5
Same thing happens with TPlayer.OnDamage

I think OnDamage causes OnKill issues, since even though OnDamage is very inconsistant, the last OnDamage WeaponType (before death) is always equal to OnKill WeaponType.

Code here: http://pastebin.com/9EN4YmHi [^]
(0001849)
Falcon (administrator)
2013-08-10 01:08

Although in case of SC3 "it's not a bug, it's a feature", in SC2 it's indeed broken.
(0002260)
ExHunter (developer)
2014-05-09 14:06

Is it still present? Skoskav made some changes (fixes), which could be related to the issue.
(0002263)
ExHunter (developer)
2014-08-15 01:16

Anyone can still confirm this?
(0002269)
ExHunter (developer)
2014-08-17 18:52

fixed for next version

- Issue History
Date Modified Username Field Change
2013-07-30 13:01 Mighty New Issue
2013-07-31 02:33 Falcon Assigned To => Falcon
2013-07-31 02:33 Falcon Status new => acknowledged
2013-08-02 21:31 Falcon Status acknowledged => resolved
2013-08-02 21:31 Falcon Resolution open => fixed
2013-08-09 12:42 Mighty Note Added: 0001847
2013-08-09 12:42 Mighty Status resolved => feedback
2013-08-09 12:42 Mighty Resolution fixed => reopened
2013-08-10 01:08 Falcon Note Added: 0001849
2013-08-10 01:08 Falcon Status feedback => confirmed
2013-12-27 23:36 Falcon Assigned To Falcon =>
2014-05-09 14:06 ExHunter Note Added: 0002260
2014-08-15 01:16 ExHunter Note Added: 0002263
2014-08-15 01:16 ExHunter Assigned To => ExHunter
2014-08-15 01:16 ExHunter Status confirmed => feedback
2014-08-17 18:52 ExHunter Note Added: 0002269
2014-08-17 18:52 ExHunter Status feedback => resolved
2014-08-17 18:52 ExHunter Resolution reopened => fixed


Copyright © 2000 - 2024 MantisBT Team
Powered by Mantis Bugtracker