Selected CarGen using popGroup for vehicle model set

This commit is contained in:
dexyfex
2017-10-01 18:52:50 +11:00
Unverified
parent 3e46c2e60a
commit 81e24ef86f
2 changed files with 24 additions and 1 deletions
+10
View File
@@ -1358,6 +1358,16 @@ namespace CodeWalker.GameFiles
BBMax = new Vector3(hlen);
}
public string NameString()
{
MetaHash mh = _CCarGen.carModel;
if ((mh == 0) && (_CCarGen.popGroup != 0))
{
mh = _CCarGen.popGroup;
}
return mh.ToString();
}
public override string ToString()
{
return _CCarGen.carModel.ToString() + ", " + Position.ToString() + ", " + _CCarGen.popGroup.ToString() + ", " + _CCarGen.livery.ToString();