Jump to content

Why can't I get a headlight to work on gyrocopter?


Krougal

Recommended Posts

Modding (2 separate files of course)

<append xpath="/vehicles/vehicle[@name='vehicleGyrocopter']">
    <property class="headlight">
      <property name="class" value="Headlight" />
      <property name="transform" value="Origin/handlebars" />
      <property name="bright" value=".9" />
    </property>
</append>

<set xpath="/items/item[@name='vehicleGyrocopterPlaceable']/property[@name='Tags']/@value">vehicle,vengine,vfuel,vlight,canHaveCosmetic</set>

ConfigsDump:

Snipped from vehicles.xml
    <property class="headlight">
      <!--Element appended by: "Krougal_QuieterDurableVehicles"-->
      <property name="class" value="Headlight" />
      <property name="transform" value="Origin/handlebars" />
      <property name="bright" value=".9" />
    </property>
  </vehicle>
Snipped from items.xml
  <item name="vehicleGyrocopterPlaceable">
    <property name="Extends" value="vehicleMinibikePlaceable" />
    <property name="Tags" value="vehicle,vengine,vfuel,vlight,canHaveCosmetic">
      <!--Attribute "value" replaced by: "Krougal_QuieterDurableVehicles"-->
    </property>

Results ingame:

@%$# all.

 

Am I doing something wrong, is there another related config or is it because there is no headlight on the model? I mean it is @%$#ing stupid that there is no light, especially since the recipe takes 8. Supposedly this was on Fataal's todo list from like A18 but never got done. Do I need to learn to edit unity assets now? I expected this to be a simple thing, I've also played with various origin points to try to make it work, all no go.

Edited by Krougal (see edit history)
Link to comment
Share on other sites

  • Krougal changed the title to Why can't I get a headlight to work on gyrocopter?

I have not messed with vehicles very much, but I think you would be correct in  that the model not having a light source means that adding a headlight In  the xml will not do anything, as it generally just acts as a trigger for the light on the model.

Link to comment
Share on other sites

  • 1 month later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...