I'm making a Minigame wad, and I've been having some issues with some minigames' ACS, or rather the way that the ACS is being activated.
The map is in Doom in Hexen Format.
In one minigame, an ACS Script is supposed to activate when shot at. The RailGun from Skulltag is being used as the weapon, the linedef that activates the script has both repeatable action and "Projectile Hits or Crosses" selected. In Singleplayer, the script activates all the time no problem, but in Multiplayer it fails occasionally. I've tried making the railgun shoot both a bullet along with the rail and a super fast, ripping projectile. Regardless, they both still have the failure issue.
In Another minigame, the player is teleported out of the Hub, is placed in an arena, and then teleported back into the hub once the minigame is complete. To accomplish this, I force a mapspot on the players' coords, teleport them using thing_move, then teleport them back with thing_move onto that mapspot. This works MOST of the time, but there are rare 1% chances which cause the player to not teleport back. Here's the teleportation code:
Code: Select all
// When the Game Starts, The Player's TID is set to be 1337+PlayerNumber()
//Before Round Starts in an activator based script
SpawnSpotForced("MapSpot",1337+PlayerNumber(),2337+PlayerNumber(),0);
//When the Round ends in a world-activated script which controls the minigames.
int i;
for (i=0;i<MAXPLAYERS;i++)
{
thing_move(1337+i,2337+i,false);
thing_remove(2337+i);
}
Again, these all work flawlessly in SinglePlayer. Could lag be a factor in this? Perhaps a known bug that'll be fixed in 3.0?
Thank you!