Add throttling for blood and gib spawning.

Reduce effects of flying gibs.
Add a command to instantly clear queued effects.
This commit is contained in:
Mari the Deer 2021-11-30 18:13:53 +01:00
commit a91e73f51e
8 changed files with 52 additions and 24 deletions

View file

@ -187,6 +187,19 @@ extend Class SWWMHandler
Console.Printf("%d suckable actors trimmed.",n);
return;
}
else if ( e.Name ~== "swwmcleareffects" )
{
if ( multiplayer && (e.player != Net_Arbitrator) )
{
if ( e.player == consoleplayer )
Console.Printf("Only the net arbitrator can call this event.");
return;
}
int n = casings_cnt+chips_cnt+blods_cnt+meats_cnt;
CleanQueues();
Console.Printf("%d effects cleared.",n);
return;
}
else if ( e.Name ~== "swwmdebugdumprng" )
{
if ( multiplayer && (e.player != Net_Arbitrator) )