Home   Help Search Login Register  

Author Topic: How to stop abuse of respawns  (Read 1054 times)

0 Members and 1 Guest are viewing this topic.

Offline Zipper5

  • BIS Team
  • ****
How to stop abuse of respawns
« on: 17 Aug 2008, 14:23:07 »
Hey guys,

I currently have a friend who's working on a multiplayer mission where he's discovered that people have abused the fact that instead of waiting to respawn, they just go back to the lobby and join back in. Is there any way to stop this from happening?

Thanks.

Edit: This should really have gone into the multiplayer editing section... Sorry. Please move.
« Last Edit: 17 Aug 2008, 14:25:07 by Zipper5 »

Offline Spooner

  • Members
  • *
  • Mostly useless
    • Community Base Addons
Re: How to stop abuse of respawns
« Reply #1 on: 17 Aug 2008, 15:20:42 »
I think you might be able to use onPlayerDisconnected and record the time when a player leaves (using _id, so they can't just change name and reconnect). Then, check in onPlayerConnected to see if they are either new, or have disconnected more than 2 minutes ago. If too long, stop them doing anything, say by setPosing them in place until the time they would have respawned. They can still escape out of the game then (disableUserInput is always rude).

A simpler alternative would be to prevent anyone from doing anything when they start, so relogging wouldn't actually be faster. Even easier is to just kill them in init.sqf ;P I know this sounds draconian, but players can still use the map, plan and communicate when they are in this "dead" phase.

EDIT: Realised I suggested something that couldn't work. Provided an alternative.
« Last Edit: 17 Aug 2008, 15:27:16 by Spooner »
[Arma 2] CBA: Community Base Addons
[Arma 1] SPON Core (including links to my other scripts)