superlube
Member
Hey everyone.
During the 1.7.4.4 days, there was the anti combat logging tool available that spawned a bot in replacement of a person who combat logged. The bot would last about 40 secs and have all the players gear. The bot would also sync to the database and mark the player as dead if the bot died. https://github.com/Torndeco/discobot/tree/master/compile
Has anyone had a go implementing this in 1.7.6.1? I've personally given it a go but failed.
All I really did was:
server_playerLogin
server_onPlayerDisconnect.sqf
And copied all the bot files to compile folder.
During the 1.7.4.4 days, there was the anti combat logging tool available that spawned a bot in replacement of a person who combat logged. The bot would last about 40 secs and have all the players gear. The bot would also sync to the database and mark the player as dead if the bot died. https://github.com/Torndeco/discobot/tree/master/compile
Has anyone had a go implementing this in 1.7.6.1? I've personally given it a go but failed.
All I really did was:
server_playerLogin
Code:
if (_playerID in botPlayers) then {
botPlayers = botPlayers - [_playerID];
};
server_onPlayerDisconnect.sqf
Code:
if ((_timeout - time) > 0) then {
diag_log format["COMBAT LOGGED: %1 (%2)", _playerName,_timeout];
if (alive _object) then {
[_playerID, _characterID, typeof _object, _object] spawn server_botSetup;
}
};
And copied all the bot files to compile folder.