Jump to content

Recommended Posts

Posted

How do we get rid of these messages in the game? I feel it takes away from the realism a bit, and eliminates the need for us to see if our target is destroyed and stuff.

 

I'm not very savvy with all of the lua stuff, but figured someone here was decent with them.

 

Thanks!

Posted

I hate that crap too. Commenting out (adding two minuses/dashes, this: -- ) lines 167 and 169 of Scripts/net/events.lua ought to do it. Specifically, make it look like this code:

function on_kill(id, weapon, victim)
local victimName = bot_info(victim) 
if victimName == "" then victimName = _("Building") end

if weapon ~= "" then
	--report(_("%s killed %s with %s."), player_info(id), victimName, weapon_info(weapon))
else
	--report(_("%s killed %s."), player_info(id), victimName)
end
end

 

See the double hyphens/dashes/minuses/whatever in front of the two "report" functions? That tells the compiler to not run those two lines. They are comments.

 

Additionally, if you want clients to be unable to see these messages either, you may have to change line 53 of Scripts/net/default.cfg from

   disable_events = false, -- disable game events callbacks on clients

to

   disable_events = true, -- disable game events callbacks on clients

 

It's been a while since I messed around with this (Beta), so I don't remember the exact details. I honestly don't know why I didn't re-enable them. Anyway, I do know that WH Boomer (Boomer from the War Hawks virtual squad) has it enabled on his hosting machine and it does in fact block clients from seeing these realism-killing messages, so he should be able to tell you whether the info I provide above is correct, especially in regards to clients. I remember there was something buggy about it when I tried it in beta... something like, even with disable_events = true, clients were still seeing the messages. Could be my memory is faulty or there was a bug that was fixed, or there is something else you need to do to disable these messages as well.

Intelligent discourse can only begin with the honest admission of your own fallibility.

Member of the Virtual Tactical Air Group: http://vtacticalairgroup.com/

Lua scripts and mods:

MIssion Scripting Tools (Mist): http://forums.eagle.ru/showthread.php?t=98616

Slmod version 7.0 for DCS: World: http://forums.eagle.ru/showthread.php?t=80979

Now includes remote server administration tools for kicking, banning, loading missions, etc.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...