mefy mod fix?

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
Tazz
Second Lieutenant
Posts: 155
Joined: Fri Feb 16, 2007 1:29 pm
Contact:

mefy mod fix?

Post by Tazz »

hey guys...i was helping a friend with some mods and he asked me if i could help him with the bombs planting error in FT mod....on southern france and in omaha maps when u set a bomb it says it was set by axis but was actually set by allies.....im guessing it does it on other maps too but those r the two he showed me.....i went thru the mefy script and saw the allies have and the axis have then chased that to another script then chased that to another script all in the global libmef folder but didnt see anything i could detect as an error or typo.....anyone here know how to fix it or already have?.....thx guys
$oldier Of Ra
Lieutenant Colonel
Posts: 404
Joined: Sun Oct 16, 2005 7:16 pm
Location: Belgium
Contact:

Post by $oldier Of Ra »

The problem's only a name change? I could fix that no prob.
Our official website: http://www.mohaairborne.co.cc
(Still accessible through http://mohaaclantb.tk and http://users.skynet.be/mohaaclantb/)

For all your bot needs!!!!

$oldier Of Ra.
Tazz
Second Lieutenant
Posts: 155
Joined: Fri Feb 16, 2007 1:29 pm
Contact:

Post by Tazz »

yeah thats all it is...on omaha and on sf and i guess wherever else u set bombs u konw the allies are the planting team and the axis is the defusing team btu it always says axis sets the bomb instead of allies...would love to know how to change it
User avatar
LilChefDeath
Corporal
Posts: 36
Joined: Sun Nov 26, 2006 7:48 am

Post by LilChefDeath »

Tazz check in your mefy pk3 in global/bomb.scr

Code: Select all

bomb_message local.bomb local.action local.player:
	local.name = waitthread global/libmef/util.scr::get_player_name local.player
	if (local.name != NIL)
	{
		local.str = level.mef_team[local.player.dmteam].desc + " player (" + local.name + ") "

		if (level.mef_settings["logevents"])
		{
			if (local.action == "planted")
			{
				local.logstring = "PLANT"
			} else
			{
				local.logstring = "DEFUSE"
			}
			
			println ("MEF " + local.logstring + " " + local.player.dmteam + " " + (waitthread global/libmef/util.scr::escape_string local.name " " "&"))
		}
	} else
	{
		if (local.team == "allies")
		{
			local.str = "The Allies have "
		} else
		{
			local.str = "The Axis have "
		}
	}

	local.str += (local.action + " a Bomb!")
	
	if (local.bomb.desc != NIL)
	{
		local.str += (" [" + local.bomb.desc + "]")
	}

	local iprintlnbold_noloc local.str
end
Maybe replace part of it with

Code: Select all

 } else
	{
		if (local.team == "allies")
		{
			local.str = "The Allies have "
		} else
                {
                if (local.team == "axis")
		{
			local.str = "The Axis have "
		}
	}
not really sure havent touched it and dont know alot about it x]
Image

Code: Select all

 local.player uhh_whatNow?" 
Post Reply