Jump to content
The Dark Mod Forums

Recommended Posts

Posted

As mentioned in this post:

https://wiki.thedarkmod.com/index.php?title=Combined_light_entities#Example_entities

Quote

Setting a spawnarg on the attached entity is simply done by setting the spawnarg set SPAWNARGNAME on ATTACHMENTNAME on the base entity. SPAWNARGNAME is the name of the spawnarg, while the attachment name can be looked up in the entityDef for the base entity, e.g. in DR by checking the "Show inherited" in the entity inspector.

The ATTACHMENTNAME is defined as name_attach spawnarg on either the base entity or one of its attached entities.

In the entity atdm:sconce_2candles_rigid there's no name_attach . I think the name_attach should be present inside the def file?

Maybe there are more def files where no name_attach is present. For example:

atdm_ship_lamp_lit
atdm_standing_chandelier_3_candles
atdm_lamp_hanging02

Posted (edited)

The entities you mention don't have a def_attach for the light so they don't need a name_attach.  If you want to change the light properties you can do it directly on the entity instead of using 'set key on name_attach' like you would on other 'combined' light entities.

I don't know what these types of entities are called or how they are put together (I haven't looked into it), but that's the difference in how you customise them.  Maybe they inherit from some parent that combines lights and models instead of using attachments.

I think in that newbie question thread the sconce object was just an entity that someone forgot to add the name_attach spawnargs on.

Edited by Frost_Salamander
Posted (edited)
2 hours ago, Frost_Salamander said:

The entities you mention don't have a def_attach for the light so they don't need a name_attach.

atdm:sconce_2candles_rigid  and  atdm_standing_chandelier_3_candles  do have a def_attach.

Yeah ok the other two work differently.

2 hours ago, Frost_Salamander said:

I think in that newbie question thread the sconce object was just an entity that someone forgot to add the name_attach spawnargs on.

I think it would be more useful if the name_attach is already in the def file.

Edited by datiswous
Posted
22 minutes ago, datiswous said:

I think it would be more useful if the name_attach is already in the def file.

Agreed! Why not file a bug report?

  • Like 1

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.

  • Recent Status Updates

    • JackFarmer

      "The Year of the Rat." 
      😄

      Al Stewart must be proud of you!
      Happy testing!
      @MirceaKitsune
      · 1 reply
    • datiswous

      I posted about it before, but I think the default tdm logo video looks outdated. For a (i.m.o.) better looking version, you can download the pk4 attached to this post and plonk it in your tdm root folder. Every mission that starts with the tdm logo then starts with the better looking one. Try for example mission COS1 Pearls and Swine.
      tdm_logo_video.pk4
      · 2 replies
    • JackFarmer

      Kill the bots! (see the "Who is online" bar)
      · 3 replies
    • STiFU

      I finished DOOM - The Dark Ages the other day. It is a decent shooter, but not as great as its predecessors, especially because of the soundtrack.
      · 5 replies
    • JackFarmer

      What do you know about a 40 degree day?
      @demagogue
      · 4 replies
×
×
  • Create New...