MantisBT - Soldat
View Issue Details
0000629SoldatGameplaypublic2015-11-13 22:072016-04-05 22:54
TheOne 
Falcon 
normalminoralways
closedwon't fix 
x64Windows8.1
1.6.9 
1.7.0 
0000629: ForceWeapon doesn't call OnWeaponChange
When ID has fists as weapons and you call ForceWeapon(ID, x, FISTS) on him with any weapon x, then OnWeaponChange will not becalled
Download attached script, notice that when you change weapons it displays a message.
Then type /fists (OnWeaponChange will be called with 255,255), then type /knife (OnWeaponChange will not be called, though you changed primary weapon to knife)
No tags attached.
? test.pas (382) 2015-11-13 22:07
https://bugs.soldat.pl/file_download.php?file_id=653&type=bug
Issue History
2015-11-13 22:07TheOneNew Issue
2015-11-13 22:07TheOneFile Added: test.pas
2015-12-27 22:22FalconNote Added: 0002521
2015-12-27 22:22FalconStatusnew => resolved
2015-12-27 22:22FalconFixed in Version => 1.7.0
2015-12-27 22:22FalconResolutionopen => won't fix
2015-12-27 22:22FalconAssigned To => Falcon
2015-12-28 02:36FalconNote Added: 0002522
2015-12-28 02:36FalconStatusresolved => feedback
2015-12-28 02:36FalconResolutionwon't fix => reopened
2015-12-28 02:36FalconStatusfeedback => assigned
2015-12-29 19:06TheOneNote Added: 0002523
2016-04-05 22:54FalconNote Added: 0002547
2016-04-05 22:54FalconStatusassigned => closed
2016-04-05 22:54FalconResolutionreopened => won't fix

Notes
(0002521)
Falcon   
2015-12-27 22:22   
I've noticed ForceWeapon generally doesn't call OnWeaponChange at all for whatever reason. There was one inconsistency which is now fixed.
I've decided to leave it that way as usually when you use ForceWeapon you don't want it to go through OnWeaponChange logic, and if you do, you can just call it yourself.
(0002522)
Falcon   
2015-12-28 02:36   
Never mind, turns out i didn't actually fix the damn thing
(0002523)
TheOne   
2015-12-29 19:06   
people are dieing out there, Falcon
(0002547)
Falcon   
2016-04-05 22:54   
We had some discussion about it, in which we concluded this won't get fixed as it's usually what scripter wants. If he doesn't, he can always call OnWeaponChange after ForceWeapon himself.