InCombat logout punishment

Shako95

New Member
Hello there,

i need help with the incombat punishment. I don't want the bots when a player logout in combat he spawns :/ I want when the player in combat is and he logout his inventory resettet OR the player killed.
How can i do this? I have searched in the files with is_dead or died but found nothing. I hope you can help me.

Sorry for my bad english :)
 
This is what we used on our server in onPlayerDisconnect.sqf combined with the combatlog message:
Code:
    _object setVariable["NORRN_unconscious",true, true];
    _object setVariable["unconsciousTime",300,true];
    diag_log format["SET UNCONCIOUSNESS: %1", _playerName];

If a player leaves the server while the combattimer is activated -> bam x seconds unconsciousness.
 
If this wirks this will be great :)
with x seconds you mean 5 mins? why i think 300 are in seconds :D 300/60=5 :>
 
Don't work:
if ((_timeout - time) > 0) then
{
diag_log format["COMBAT LOGGED: %1 (%2)", _playerName,_timeout];
_object setVariable["NORRN_unconscious",true, true];
_object setVariable["unconsciousTime",300,true];
diag_log format["SET UNCONCIOUSNESS: %1", _playerName];
};

Or i added it fail?
 
Don't work:


Or i added it fail?
IIRC we had it like this:
Code:
if ((_timeout - time) > 0) then {
    _timeout = _object getVariable["combattimeout",0];
    diag_log format["COMBAT LOGGED: %1 (%2)", _playerName,_timeout];
    _object setVariable["NORRN_unconscious",true, true];
    _object setVariable["unconsciousTime",300,true];
    diag_log format["SET UNCONCIOUSNESS: %1", _playerName];
};

Looks like the same, try to activate the combattimer, after that esc - alt+f4 out of the game.
Also check the rpt log if it says COMBAT LOGGED and SET UNCONCIOUSNESS.
 
how can i kill player when him disconnected in combat.

i did it, but didnt work.

if ((_timeout - time) > 0) then {
_timeout = _object getVariable["combattimeout",0];
diag_log format["COMBAT LOGGED: %1 (%2)", _playerName,_timeout];
//_object setVariable["NORRN_unconscious",true, true];
//_object setVariable["unconsciousTime",300,true];
_object setDamage 1;
diag_log format["SET UNCONCIOUSNESS: %1", _playerName];
};


any ideas?
 
I don't want them to be unconscious or kill them... I want them to suffer - Give them disease, break a leg, be cold, shaking and bleeding. Sure, they might recover from all of this with a bunch of supplies... But the suffering will be a decent one.
 
i trying to kill player, but cant do this. i dont uderstand how can i do this.
Code:
if ((_timeout - time) > 0) then {
_timeout = _object getVariable["combattimeout",0];
diag_log format["COMBAT LOGGED: %1 (%2)", _playerName,_timeout];
//_object setVariable["NORRN_unconscious",true, true];
//_object setVariable["unconsciousTime",300,true];
_object setDamage 1;
diag_log format["SET UNCONCIOUSNESS: %1", _playerName];
};
dont work(( can anyone help me and
Manatee Hunter?!
 
yeah, r_player_blood affect player's blood only ingame but not in database for database we use usec_bloodqty but
player body doesn't remain on the ground after alt+f4 only after player reconnect.
 
Anyone figure out how to TP combat loggers to a specific location w/ a specific loadout, and perhaps allow some room for chance...

I'd like to have combat loggers spawn in a prison... with the combat loggers having a chance to spawn in a variety of prison cells and fighting their way out with axes, crowbars and such.
 
You could use setPos to port the player to another location.
Code:
if ((_timeout - time) > 0) then {
    diag_log format["COMBAT LOGGED: %1 (%2)", _playerName,_timeout];
    _object setPos[12345.01,12345.01,0];
    diag_log format["COMBAT TELEPORT: %1", _playerName];
};

12345.01,12345.01,0 would be the coordinates of your prison, after they log back in they should spawn there.
 
Here is my version of this. Its somewhat harsh. I was trying to add a broken leg and gave up.

Code:
if ((_timeout - time) > 0) then {
    _timeout = _object getVariable["combattimeout",0];
    diag_log format["COMBAT LOGGED: %1 (%2)", _playerName,_timeout];
    _object setVariable["NORRN_unconscious",true, true];
    _object setVariable["unconsciousTime",300,true];
    _object setVariable["USEC_inPain",true];
    _object    setVariable["USEC_injured", true];
    _object setVariable["USEC_infected",true];
    diag_log format["SET UNCONCIOUSNESS: %1", _playerName];
};
 
You could use setPos to port the player to another location.
Code:
if ((_timeout - time) > 0) then {
    diag_log format["COMBAT LOGGED: %1 (%2)", _playerName,_timeout];
    _object setPos[12345.01,12345.01,0];
    diag_log format["COMBAT TELEPORT: %1", _playerName];
};

12345.01,12345.01,0 would be the coordinates of your prison, after they log back in they should spawn there.
Mhm, just tried this on my local testserver... didnt work, i was unconcious but at the exact same location as before... also tried player setpos, but still same location.

Someone has an idea how to port a player?
 
Back
Top