MantisBT

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000623Soldat Dedicated ServerScripting Corepublic2015-08-20 01:512015-10-07 16:19
Reporterdeguix 
Assigned ToShoozza 
PrioritynormalSeverityminorReproducibilityalways
StatusresolvedResolutionfixed 
Platformamd64OSDebian GNU/LinuxOS Version7.0
Product Version2.7.9b1 
Target VersionFixed in Version2.7.9 
Summary0000623: SC2 ForceWeapon still uses old weapon ids
DescriptionI tried a SC2 script in this beta version, and tried to fix its infinite knives throwing script, but it looks really weird when I have to force a different id than what I'm checking with GetPlayerStat.
Steps To ReproduceExample: Replaces any weapon that is not a knife (right), to a knife (wrong ID):

Function OnPlayerCommand(ID: Byte; Text: string): boolean;
Begin
  Case LowerCase(Text) Of
    '/test': If GetPlayerStat(ID, 'Primary') <> 11 Then ForceWeapon(ID, 14, 255, 0);
  Result:=false;
End;

Then type /test as player...
TagsNo tags attached.
Attached Files

- Relationships

-  Notes
(0002484)
deguix (reporter)
2015-08-20 03:39

Also happens with ForceWeaponEx.
(0002485)
deguix (reporter)
2015-08-20 03:54

Sry to keep spamming notes... OnWeaponChange on SC2 also has the old IDs too... it seems only SC3 stuff was updated?
(0002491)
Shoozza (administrator)
2015-10-07 16:19

GetPlayerStat with primary and secondary will return weapons ids compatible with forceweapon and forceweaponex in the future

- Issue History
Date Modified Username Field Change
2015-08-20 01:52 deguix New Issue
2015-08-20 03:39 deguix Note Added: 0002484
2015-08-20 03:54 deguix Note Added: 0002485
2015-10-07 16:19 Shoozza Note Added: 0002491
2015-10-07 16:19 Shoozza Status new => resolved
2015-10-07 16:19 Shoozza Fixed in Version => 2.7.9
2015-10-07 16:19 Shoozza Resolution open => fixed
2015-10-07 16:19 Shoozza Assigned To => Shoozza


Copyright © 2000 - 2019 MantisBT Team
Powered by Mantis Bugtracker