A3Armory / A3A_A3Wasteland.Altis

A3Wasteland is a survival sandbox mission for Arma 3 where two teams and independent players fight for survival. Built in collaboration between GoT, TPG, KoS, 404Games, and others.
http://a3wasteland.com
GNU Affero General Public License v3.0
9 stars 6 forks source link

Help with teleport logger #17

Closed Gigatek1 closed 7 years ago

Gigatek1 commented 7 years ago

With help from Dscha on the BIS discord I was able to get a teleport logger working.

> {
>   while{true}do
>   {
>       player setVariable ["Pos",(getPosWorld player)];
>       uiSleep 2;
>       if( (getPosWorld player) distance (player getVariable "Pos") > 200) exitWith {player setVariable ["tp_log", true, true];};
>   };
> } forEach allPlayers - entities "HeadlessClient_F";

I'm looking for the best place to put it with out false positives. playerSpawn.sqf only works for fresh spawns. I have been putting it here. Where's the best place I can put this with out triggering it with legit spawns? I'm really getting sick of dealing with teleporting script kiddies.

Gigatek1 commented 7 years ago

I got it. The problem was EntityRespawned doesn't work. The only reason it worked at all is playerSpawning is set elsewhere. Either it's setVariable, _unit, or the handler itself. That took a lot of testing to figure out and where else to put the initial variables. https://github.com/A3Armory/A3A_A3Wasteland.Altis/commit/c47af080feeaa51bfd5e3acade855d39b8577264

I'll work on KickOnJoin next. Then try to prevent players loading on spawn island if saved there.

Gigatek1 commented 7 years ago

Small update https://github.com/A3Armory/A3A_A3Wasteland.Altis/commit/06f2bba11a01640ce2788decb120ccefa49f7104

Gigatek1 commented 7 years ago

New update. I just reverted and started over. This should run better plus fix any false positives... hopefully. https://github.com/A3Armory/A3A_A3Wasteland.Altis/commit/c736564d47df3e44f78a0284288d1e828aeef454

Gigatek1 commented 7 years ago

https://github.com/A3Armory/A3A_A3Wasteland.Altis/commit/f7c0d1b9a75b787db7483a9e4107e2aa2e902ca3