Flag Objects [Solved]
Posted: Wed Mar 24, 2010 1:55 am
I'm trying to create a custom flag object. Trouble is that I can't seem to get it to work. I've tried several variations on the ODF as well as putting it in the world1's odf folder AND the side's odf folder (and of course the respective msh files in their proper places). I've also tried placing it as an object in ZE and having it a dropable item from dead units. In all cases, the game either couldn't build the flag object (when placed in ze) or couldn't find the entity (when done any other way). To be clear, I triple-checked the name of the odf and the source that calls it (LUA/Unit's ODF). I don't get it. Is there some special addition to the LUA I need to make in order for the game to recognize a flag object? Here's the ODF for my flag:
[GameObjectClass]
ClassLabel = "flag"
GeometryName = "all_weap_inf_sniperrifle.msh"
[Properties]
ClothODF = ""
ClothODF = ""
Lighting = "Dynamic"
IconTexture = ""
MapTexture = ""
MapScale = ""
GeometryName = "all_weap_inf_sniperrifle"
CarriedGeometryName = "all_weap_inf_sniperrifle"
CarriedOffset = "0.0 0.0 0.0"
CarriedColorize = 1
DroppedColorize = 1
PickupSound = "com_weap_inf_reload_med"
DropSound = ""
AmbientSound = ""
LifeSpan = 15.0
LightODF = "flaglight"
[InstanceProperties]
Let me know if I should post anything else. I suppose I could work around this, but I'd like to be less n00bish about Flag objects. There really isn't any documentation on them either here or in the modtools documentation.
[GameObjectClass]
ClassLabel = "flag"
GeometryName = "all_weap_inf_sniperrifle.msh"
[Properties]
ClothODF = ""
ClothODF = ""
Lighting = "Dynamic"
IconTexture = ""
MapTexture = ""
MapScale = ""
GeometryName = "all_weap_inf_sniperrifle"
CarriedGeometryName = "all_weap_inf_sniperrifle"
CarriedOffset = "0.0 0.0 0.0"
CarriedColorize = 1
DroppedColorize = 1
PickupSound = "com_weap_inf_reload_med"
DropSound = ""
AmbientSound = ""
LifeSpan = 15.0
LightODF = "flaglight"
[InstanceProperties]
Let me know if I should post anything else. I suppose I could work around this, but I'd like to be less n00bish about Flag objects. There really isn't any documentation on them either here or in the modtools documentation.