MantisBT - Soldat Dedicated Server
View Issue Details
0000582Soldat Dedicated ServerScripting Corepublic2014-10-05 09:042014-10-06 02:28
Mighty 
ExHunter 
lowminoralways
resolvedfixed 
x86WindowsXP SP3
2.7.8b1 
 
0000582: TOnWeaponChangeEvent - Primary's or Secondary's properties other than WType do not hold valuable data.
When calling OnWeaponChange and trying to display information about Primary or Secondary, the only thing that ever changes is WType property.
Ammo = 0
Name = ''
BulletStyle = 0
Use the attached script, join and change weapons.
No tags attached.
rar OnWeaponChangeTest.rar (477) 2014-10-05 09:04
https://bugs.soldat.pl/file_download.php?file_id=621&type=bug
Issue History
2014-10-05 09:04MightyNew Issue
2014-10-05 09:04MightyFile Added: OnWeaponChangeTest.rar
2014-10-06 00:04ExHunterNote Added: 0002321
2014-10-06 00:04ExHunterAssigned To => ExHunter
2014-10-06 00:04ExHunterStatusnew => confirmed
2014-10-06 02:28ExHunterNote Added: 0002322
2014-10-06 02:28ExHunterStatusconfirmed => resolved
2014-10-06 02:28ExHunterResolutionopen => fixed

Notes
(0002321)
ExHunter   
2014-10-06 00:03   
Fixed everything, except:

Ammo returns always maximum ammo of the weapon, not the actual ammo.
Currently server recieves only PrimaryAmmo, but not SecondaryAmmo.

Need to check what I have to alter.
(0002322)
ExHunter   
2014-10-06 02:28   
fixed