mirror of
https://github.com/ChocoTaco1/TacoServer.git
synced 2026-01-20 00:24:49 +00:00
Dont use mis file asset nameTags
This commit is contained in:
parent
7e134b8d2d
commit
5a29c4deaf
|
|
@ -171,7 +171,27 @@ function DefaultGame::missionLoadDone(%game)
|
|||
%obj = MissionGroup.getObject(%i);
|
||||
if(%obj.getClassName() $= "WaterBlock")
|
||||
%obj.viscosity = $globalviscosity;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Temp Fix for Asset nameTag Strings
|
||||
function GameBaseData::onAdd(%data, %obj)
|
||||
{
|
||||
if(%data.targetTypeTag !$= "")
|
||||
{
|
||||
// use the name given to the object in the mission file
|
||||
//if(%obj.nameTag !$= "")
|
||||
//{
|
||||
//%obj.nameTag = addTaggedString(%obj.nameTag);
|
||||
//%nameTag = %obj.nameTag;
|
||||
//}
|
||||
//else
|
||||
%nameTag = %data.targetNameTag;
|
||||
|
||||
%obj.target = createTarget(%obj, %nameTag, "", "", %data.targetTypeTag, 0, 0);
|
||||
}
|
||||
else
|
||||
%obj.target = -1;
|
||||
}
|
||||
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue