MGTDB 956 Report post Posted November 1, 2017 (edited) Worked with @StokesMagee to bring combat logging punishment to Exile. This will kick in and kill the combat logger if they leave the game whilst in combat, either through alt+f4 or end mission, leaving their lifeless corpse there to loot. Players cannot logout normally whilst in combat as the option is blocked in escape menuCLIENT Pull ExileClient_gui_hud_toggleCombatIcon.sqf from client files into your mission file and change it to the following:- private["_display", "_icon"]; disableSerialization; _display = uiNamespace getVariable "RscExileHUD"; _icon = _display displayCtrl 1008; if (_this && {!(player getVariable ["ExileIsInCombat", false])}) then { player setVariable ["ExileIsInCombat", true, true]; } else { if (!(_this) && {player getVariable["ExileIsInCombat", false]}) then { player setVariable ["ExileIsInCombat", nil, true]; }; }; _icon ctrlShow _this; true What this does is set a variable on the player that can be read from the server Don't forget to add it into config.cpp in class CfgExileCustomCode { ExileClient_gui_hud_toggleCombatIcon = "ExileClient_gui_hud_toggleCombatIcon.sqf";//assuming changed file is in mission root }; SERVER Next, replace ExileServer_system_network_event_onHandleDisconnect.sqf with https://pastebin.com/gv0QhFD8 Note: Uncomment the lines marked for logging if you have infiSTAR Then repack exile_server and your mission file and you're done. Updated: Added Toast request 7/11/17 Updated: Check if server is about to restart and not punish the player 28/05/18 Battleye edit required thanks to @MonkeynutzBattleye restrictions will need !="exileisincombat" added to setVariable.txt Edited May 30, 2018 by MGTDB 15 1 Share this post Link to post Share on other sites
StokesMagee 871 Report post Posted November 2, 2017 (edited) 16 hours ago, MGTDB said: Worked with @StokesMagee I totally wasn't the one to write all the code. oh wait, you wrote infiSTAR logging, it was also your idea. thanks for giving me credits for it, other people would have been like "I MADE ALL DIS, ALL MINE, MINE, MINE, MINE" Edited November 2, 2017 by StokesMagee 3 Share this post Link to post Share on other sites
Monkeynutz 230 Report post Posted November 2, 2017 !ds? REEEEE 1 Share this post Link to post Share on other sites
MGTDB 956 Report post Posted November 2, 2017 9 minutes ago, StokesMagee said: I totally wasn't the one to write all the code. Nearly all (don't forget logging), after I mentioned piggybacking it to handcuffing 2 Share this post Link to post Share on other sites
StokesMagee 871 Report post Posted November 2, 2017 6 minutes ago, MGTDB said: Nearly all (don't forget logging), after I mentioned piggybacking it to handcuffing I was saying where to put it before you told me where to put it Share this post Link to post Share on other sites
StokesMagee 871 Report post Posted November 2, 2017 #bump Kappa Share this post Link to post Share on other sites
StokesMagee 871 Report post Posted November 2, 2017 11 minutes ago, GamingAtDeathsDoor said: !ds? REEEEE REEE 3 Share this post Link to post Share on other sites
MGTDB 956 Report post Posted November 7, 2017 Updated OP to include an Exile toast notification on the log 1 Share this post Link to post Share on other sites
cybermiliko 3 Report post Posted January 31, 2018 (edited) sorry worng post Edited January 31, 2018 by cybermiliko wrong post Share this post Link to post Share on other sites
MGTDB 956 Report post Posted May 29, 2018 Updated May 28th 2018, to check if server is about to restart and not punish the player 1 Share this post Link to post Share on other sites