MantisBT

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000629SoldatGameplaypublic2015-11-13 22:072016-04-05 22:54
ReporterTheOne 
Assigned ToFalcon 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionwon't fix 
Platformx64OSWindowsOS Version8.1
Product Version1.6.9 
Target VersionFixed in Version1.7.0 
Summary0000629: ForceWeapon doesn't call OnWeaponChange
DescriptionWhen ID has fists as weapons and you call ForceWeapon(ID, x, FISTS) on him with any weapon x, then OnWeaponChange will not becalled
Steps To ReproduceDownload 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)
TagsNo tags attached.
Attached Files? file icon test.pas [^] (382 bytes) 2015-11-13 22:07

- Relationships

-  Notes
(0002521)
Falcon (administrator)
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 (administrator)
2015-12-28 02:36

Never mind, turns out i didn't actually fix the damn thing
(0002523)
TheOne (reporter)
2015-12-29 19:06

people are dieing out there, Falcon
(0002547)
Falcon (administrator)
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.

- Issue History
Date Modified Username Field Change
2015-11-13 22:07 TheOne New Issue
2015-11-13 22:07 TheOne File Added: test.pas
2015-12-27 22:22 Falcon Note Added: 0002521
2015-12-27 22:22 Falcon Status new => resolved
2015-12-27 22:22 Falcon Fixed in Version => 1.7.0
2015-12-27 22:22 Falcon Resolution open => won't fix
2015-12-27 22:22 Falcon Assigned To => Falcon
2015-12-28 02:36 Falcon Note Added: 0002522
2015-12-28 02:36 Falcon Status resolved => feedback
2015-12-28 02:36 Falcon Resolution won't fix => reopened
2015-12-28 02:36 Falcon Status feedback => assigned
2015-12-29 19:06 TheOne Note Added: 0002523
2016-04-05 22:54 Falcon Note Added: 0002547
2016-04-05 22:54 Falcon Status assigned => closed
2016-04-05 22:54 Falcon Resolution reopened => won't fix


Copyright © 2000 - 2024 MantisBT Team
Powered by Mantis Bugtracker