View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000310Soldat Dedicated ServerScripting Corepublic2013-02-05 16:172015-01-21 12:45
Assigned ToExHunter 
Platformx86OSWindowsOS VersionXP SP3
Product Version2.7.3 
Target VersionFixed in Version2.7.9 
Summary0000310: ForceWeapon falsifies GetPlayerStat(Ammo)
DescriptionDescription of script:
When a player reloads his weapon, I detect that his ammunition is >0 and want to force his ammo to a specific value. I call ForceWeapon with that ammunition parameter and the player's weapon has now that number of bullets.

When I use GetPlayerStat('Ammo') anytime after this event, it will return that the player has full clip ammunition. This lasts until the player turns to the other direction, sits or lays down. I assume that in those cases a new packet is sent which contains the real ammunition value. Forcing the weapon with the ammo on the player again doesn't help, the ammo value on the server is still set as if the weapon was full. As note, when the player shoots a bullet, the value on the server is just subtracted by one. Example with numbers, player reloads an ussocom with 12 shots, I force 5 bullets, server returns 12 as Ammo value, player shoots a bullet (has now actually 4 bullets), server returns 11 as Ammo value.
TagsNo tags attached.
Attached Files

- Relationships

-  Notes
TheOne (reporter)
2013-02-05 16:18

Well, what I'd like you to do is correct the value serversided when I use ForceWeapon.
ExHunter (developer)
2015-01-21 12:45

done for 1.6.9

- Issue History
Date Modified Username Field Change
2013-02-05 16:17 TheOne New Issue
2013-02-05 16:18 TheOne Note Added: 0001706
2013-02-05 18:09 Falcon Priority urgent => low
2013-02-05 18:09 Falcon Severity major => minor
2013-02-05 18:09 Falcon Status new => acknowledged
2013-02-05 22:21 Falcon Project Soldat => Soldat Dedicated Server
2013-02-05 22:21 Falcon Category Multiplayer => General
2013-02-05 22:23 Falcon Category General => Scripting Core
2013-02-05 22:23 Falcon Product Version 1.6.3 =>
2013-02-05 22:24 Falcon Product Version => 2.7.3
2015-01-21 12:45 ExHunter Note Added: 0002391
2015-01-21 12:45 ExHunter Status acknowledged => resolved
2015-01-21 12:45 ExHunter Fixed in Version => 2.7.9
2015-01-21 12:45 ExHunter Resolution open => fixed
2015-01-21 12:45 ExHunter Assigned To => ExHunter

Copyright © 2000 - 2024 MantisBT Team
Powered by Mantis Bugtracker