thevisad / DayZ-Private-master

Reality DayZ - replaced Bliss for DayZ servers
GNU General Public License v2.0
45 stars 86 forks source link

COMBAT LOGGED Messages? #283

Closed SpiderOfDeath closed 10 years ago

SpiderOfDeath commented 10 years ago

So, in server_onPlayerDisconnect.sqf, line 31 i see that we should get a entry in our rpt file when someone logs out before the timer is finished. I tried ALT+F4, kicking myself from the server and killing arma2oa.exe via taskmanager while beeing in combat. Nothing showed the expected result. It only gives me the report that is generated in line 28.

Any solution to this?

Skaronator commented 10 years ago

Debug the variables in the if selection with:

diag_log format["Last Damage: %1 playerDistance: %2",_lastDamage,(_playerObj distance (getMarkerpos "respawn_west"))];

to see what could be wrong

SpiderOfDeath commented 10 years ago

Not a coder, so forgive me my incompetence.I got this after replacing line 31 with your code: "Player UID# CID# as , logged off at " and if i put it on the end it errors out: http://pastebin.com/JfLx7MW2

thevisad commented 10 years ago

Best bet would be to use some form of Anti Disco Bot for this.

SpiderOfDeath commented 10 years ago

Well, all the disco bot's i saw are buggy and are a dupers paradise. Trying to figure this out and will send you the solution to this bug if i find it.

thevisad commented 10 years ago

That would be awesome.