Anonymous | Login | 2024-11-21 11:30 CET |
Main | My View | View Issues | Change Log | Roadmap | My Account |
View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
0000310 | Soldat Dedicated Server | Scripting Core | public | 2013-02-05 16:17 | 2015-01-21 12:45 | ||||
Reporter | TheOne | ||||||||
Assigned To | ExHunter | ||||||||
Priority | low | Severity | minor | Reproducibility | always | ||||
Status | resolved | Resolution | fixed | ||||||
Platform | x86 | OS | Windows | OS Version | XP SP3 | ||||
Product Version | 2.7.3 | ||||||||
Target Version | Fixed in Version | 2.7.9 | |||||||
Summary | 0000310: ForceWeapon falsifies GetPlayerStat(Ammo) | ||||||||
Description | Description 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. Problem: 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. | ||||||||
Tags | No tags attached. | ||||||||
John | |||||||||
Attached Files | |||||||||
Notes | |
(0001706) TheOne (reporter) 2013-02-05 16:18 |
Well, what I'd like you to do is correct the value serversided when I use ForceWeapon. |
(0002391) 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 |