Official Soldat Forums

Soldat Talk => Need Help? Report Bugs! => Topic started by: soldat-game on June 07, 2020, 08:12:42 am

Title: TActivePlayer --> TWeapon --> Ammo [ BUG ]
Post by: soldat-game on June 07, 2020, 08:12:42 am
While we have 1 bullet in the weapon and then hit (punch butt) the player with a weapon the variable will start to show 0, for about 4 seconds. Every few milliseconds it will also appear 255.
The effect can be refreshed by hitting the player again - for which time will be counted down again 4 seconds. The player sees the level of ammo on the right amount.
After a few seconds it will start to show the maximum value for the weapons they possess. Example player have ruger and 1 ammo he hit enemy and he variable will show 1..1..0..0..255..0..0..255..0..0..4
Example log (WriteLn(TActivePlayer --> TWeapon --> Ammo)) in TickThreshold =1:
Code: [Select]
20-06-06 18:00:06  4
20-06-06 18:00:06  4
..
20-06-06 18:00:07  3
20-06-06 18:00:07  3
20-06-06 18:00:07  2
20-06-06 18:00:07  2
...
20-06-06 18:00:08  2
20-06-06 18:00:08  2
20-06-06 18:00:08  1
20-06-06 18:00:08  1
..NOW PUNCH HIT BY WEAPON
20-06-06 18:00:26  1
20-06-06 18:00:26  1
20-06-06 18:00:26  1
20-06-06 18:00:26  0
20-06-06 18:00:26  0
20-06-06 18:00:26  255
20-06-06 18:00:26  0
20-06-06 18:00:26  0
20-06-06 18:00:26  0
20-06-06 18:00:26  0
20-06-06 18:00:26  0
20-06-06 18:00:26  0
20-06-06 18:00:26  0
20-06-06 18:00:26  0
20-06-06 18:00:26  0
20-06-06 18:00:26  0
20-06-06 18:00:26  0
20-06-06 18:00:26  0
20-06-06 18:00:26  0
20-06-06 18:00:26  0
20-06-06 18:00:26  0
20-06-06 18:00:26  0
20-06-06 18:00:26  0
20-06-06 18:00:26  0
20-06-06 18:00:26  0
20-06-06 18:00:26  0
20-06-06 18:00:26  255
20-06-06 18:00:26  0
20-06-06 18:00:26  0
20-06-06 18:00:26  0
20-06-06 18:00:26  0
20-06-06 18:00:26  0
20-06-06 18:00:26  0
20-06-06 18:00:26  0
20-06-06 18:00:26  0
20-06-06 18:00:26  0
20-06-06 18:00:26  0
20-06-06 18:00:26  0
20-06-06 18:00:26  0
20-06-06 18:00:26  0
20-06-06 18:00:26  0
20-06-06 18:00:26  0
20-06-06 18:00:26  0
20-06-06 18:00:26  0
20-06-06 18:00:26  0
20-06-06 18:00:26  0
20-06-06 18:00:26  0
20-06-06 18:00:26  255
20-06-06 18:00:26  0
20-06-06 18:00:26  0
20-06-06 18:00:26  0
20-06-06 18:00:26  0
20-06-06 18:00:26  0
20-06-06 18:00:26  0
20-06-06 18:00:26  0
20-06-06 18:00:26  0
20-06-06 18:00:26  0
20-06-06 18:00:26  0
20-06-06 18:00:26  0
20-06-06 18:00:26  0
20-06-06 18:00:27  0
20-06-06 18:00:27  0
20-06-06 18:00:27  0
20-06-06 18:00:27  0
20-06-06 18:00:27  0
20-06-06 18:00:27  0
20-06-06 18:00:27  0
20-06-06 18:00:27  0
20-06-06 18:00:27  0
20-06-06 18:00:27  0
20-06-06 18:00:27  0
20-06-06 18:00:27  0
20-06-06 18:00:27  0
20-06-06 18:00:27  0
20-06-06 18:00:27  0
20-06-06 18:00:27  0
20-06-06 18:00:27  0
20-06-06 18:00:27  0
20-06-06 18:00:27  0
20-06-06 18:00:27  0
20-06-06 18:00:27  0
20-06-06 18:00:27  0
20-06-06 18:00:27  0
20-06-06 18:00:27  0
20-06-06 18:00:27  0
20-06-06 18:00:27  0
20-06-06 18:00:27  0
20-06-06 18:00:27  0
20-06-06 18:00:27  0
20-06-06 18:00:27  0
20-06-06 18:00:27  0
20-06-06 18:00:27  0
20-06-06 18:00:27  0
20-06-06 18:00:27  0
20-06-06 18:00:27  0
20-06-06 18:00:27  0
20-06-06 18:00:27  0
20-06-06 18:00:27  0
20-06-06 18:00:27  0
20-06-06 18:00:27  0
20-06-06 18:00:27  0
20-06-06 18:00:27  0
20-06-06 18:00:27  0
20-06-06 18:00:27  0
20-06-06 18:00:27  0
20-06-06 18:00:27  0
20-06-06 18:00:27  0
20-06-06 18:00:27  0
20-06-06 18:00:27  0
20-06-06 18:00:27  0
20-06-06 18:00:27  0
20-06-06 18:00:27  0
20-06-06 18:00:27  0
20-06-06 18:00:27  0
20-06-06 18:00:27  0
20-06-06 18:00:27  0
20-06-06 18:00:27  0
20-06-06 18:00:27  0
20-06-06 18:00:27  0
20-06-06 18:00:27  0
20-06-06 18:00:28  0
20-06-06 18:00:28  0
20-06-06 18:00:28  0
20-06-06 18:00:28  0
20-06-06 18:00:28  0
20-06-06 18:00:28  0
20-06-06 18:00:28  0
20-06-06 18:00:28  0
20-06-06 18:00:28  0
20-06-06 18:00:28  0
20-06-06 18:00:28  0
20-06-06 18:00:28  0
20-06-06 18:00:28  0
20-06-06 18:00:28  4
20-06-06 18:00:28  4


In addition, I noticed that the weapon hit looks different in the attacker where the attacker sees one hit.  And the defender sees several strokes in a row. Sometimes leading to a dead player when players stand still with each other. Also the server can give a condition to the player for flood.