Fix for spawning clientsided-only actors in ACS scripts
Actors with the CLIENTSIDEONLY
flag aren't supposed to exist on the server's end, but when the server spawned such an actor in a serversided ACS script, it didn't destroy it after telling the clients to spawn it (and sending any other information about the actor). Likewise, if a client spawned an actor in a clientsided ACS script, it wouldn't enable the CLIENTSIDEONLY
flag on the actor if they didn't have it already, unlike in DECORATE where spawning an actor on the client's end always does.
I added a new helper function for destroying clientsided-only actors on the server's end, as the summon
CCMD(s) use the same code too. Note that this now calls actor->ClearCounters( )
, which it didn't before. Not that I expect any actors with the CLIENTSIDEONLY
flag to be added to the game counters, but it's a good idea to do this anyways.