Added a check to see if player has recently lit a fuse
This will prevent cheat detection from wrongly triggering if the player uses a fused explosive and quickly switches to another weapon before the explosive detonates. I also commented out a block where we force explosives server-side, this would usually cause dynamite to explode in the wrong position when it bounced around too much.
This commit is contained in:
parent
6e29a3b0ca
commit
584950bc6f
3 changed files with 19 additions and 8 deletions
|
|
@ -57,6 +57,11 @@ namespace TShockAPI
|
|||
/// The number of projectiles created by the player in the last second.
|
||||
/// </summary>
|
||||
public int ProjectileThreshold { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// A timer to keep track of whether or not the player has recently thrown an explosive
|
||||
// </summary>
|
||||
public int RecentFuse = 0;
|
||||
|
||||
/// <summary>
|
||||
/// A queue of tiles destroyed by the player for reverting.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue