Jump to content
The Dark Mod Forums

DR game settings - light_radius question


Recommended Posts

There is the following line in the game settings file:

 

<property match="light_radius" category="Light" type="vector3" />

 

I assume when light is created, it gets "light_radius" spawnarg with "X Y Z" value.

 

I need to change that, so that when light is created, it gets spawnarg "radius" and "X" value only. Following the example above, I am thinking it should be:

 

<property match="radius" category="Light" type=???? />, although I wonder what type should I give it.

 

Would that work? What type do I give it if I only need one value vs vector type ?

 

Thanks!

Link to comment
Share on other sites

I've never seen that property file and don't know what it does. The data type would be "float", if it works at all.

 

TDM code (yours too hopefuly), will accept either of "light_radius" or "light" spawnarg to set the radius. If you set "light" without setting "light_radius", then the single float you give it will be used for every direction, which is what you want.

Link to comment
Share on other sites

Since DR now supports Quake 3, I am trying to setup entityDefs for Quake 3 entities. Light entity in Quake 3 has different spawnargs than Doom 3, so instead of "light_radius" it has to be "radius" and instead of 3 components, it has to be only one (lights are spherical in Quake 3). So ideally, I'd still want to be able to see the box for light in DR, but have spawnarg to be "radius" "100" (for example) (I'd just keep box to be cubical in DR to have proper value reflecting the size of the light).

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recent Status Updates

    • jaxa

      Embracer Group is Buying Square Enix Montréal, Eidos, and Crystal Dynamics for “Only” 300 Million USD: https://wccftech.com/embracer-group-square-enix-montreal-eidos-crystal-dynamics/
      · 1 reply
    • duzenko

      Do we want fur in TDM? Like https://duzenko.github.io/webgl/
      · 6 replies
    • Epifire

      Sometimes life throws a curveball - other times it straight up tries to take you outta the game. Been one thing after another lately but I ain't goin without a fight!
      · 2 replies
    • duzenko

      My Uber rating (as a passenger) is 4.71. Is there still hope or should I just kill myself? What's yours?
      · 3 replies
    • kano

      Did I mention how absolutely grateful I am that TDM didn't get (and can never be) assimilated by a huge company like Microsoft, as is what happened to Minecraft?
      · 3 replies
×
×
  • Create New...