Jump to content
The Dark Mod Forums

Attach entities to tdm ropes how?


AluminumHaste

Recommended Posts

You won't believe this but I've now combined this with a pendulum so it permanently has a slight swing. I placed the patch cylinder rope func_pendulum I described earlier just above the entity rope. I then bound the entity rope to the pendulum rope. It starts of with big swings as normal but then settles down to the pendulum swing. This is so cool.

 

Sounds promising! It would be cool if we could replace all the chains on our hanging lights with AF chains like this, so the lanterns would react properly to being hit. Street signs would be another candidate.

Link to comment
Share on other sites

Unfortunately, you can't start it swinging by hitting the thing bound to the rope but the other way round. Unless someone can up with a way, maybe a script or something. Is it possible for a special rope to have a special collision model that outlines the rope the bulges out at the bottom to surround an object like a lantern? Is that possible? So one would hit the collisison box of the rope while it looks like one is hitting the light or whatever. I agree chains acting like these ropes would be good.

Link to comment
Share on other sites

Unfortunately, you can't start it swinging by hitting the thing bound to the rope but the other way round. Unless someone can up with a way, maybe a script or something. Is it possible for a special rope to have a special collision model that outlines the rope the bulges out at the bottom to surround an object like a lantern? Is that possible? So one would hit the collisison box of the rope while it looks like one is hitting the light or whatever. I agree chains acting like these ropes would be good.

 

Well the only thing separating a chain from a rope is textures/model/joints. Shouldn't be to hard, just take out the rope texture from the rope model and change it for a chain texture, and voila and they'll work the same way.

I always assumed I'd taste like boot leather.

 

Link to comment
Share on other sites

Well, maybe, but a rope is a solid cylinder whereas a chain is a series of links alternating in orientation. I don't think it would look good close up to have a chain texture on the rope model. OK from a difference. I was thinking earlier that the chains on the model chandelier I was testing with look incredibly good close up.

Link to comment
Share on other sites

Unfortunately, you can't start it swinging by hitting the thing bound to the rope but the other way round.

 

Oh really? Hmm, that's not so great then. Maybe there's a way around that.

Link to comment
Share on other sites

Fidcal's idea of a special rope object with an invisible blob bone on the end would work well for a general use I think. Attach something to it, when the player (or flying barrels or anything else in the world) hits the blob it looks like it's hitting the object and it will swing on the rope :)

shadowdark50.gif keep50.gif
Link to comment
Share on other sites

Well, that would work in a hacky sort of way if nothing else will work (assuming it's possible, which I don't know)--but it wouldn't be great, since the size wouldn't match up, and you wouldn't be able to shoot an arrow into a wooden sign, for example.

 

Is the problem just that the attached object becomes nonsolid? I wonder if it's related to the problem we had of md5meshes becoming nonsolid?

Link to comment
Share on other sites

Well, that would work in a hacky sort of way if nothing else will work (assuming it's possible, which I don't know)--but it wouldn't be great, since the size wouldn't match up, and you wouldn't be able to shoot an arrow into a wooden sign, for example.

 

Is the problem just that the attached object becomes nonsolid? I wonder if it's related to the problem we had of md5meshes becoming nonsolid?

 

How about we make any object to attach to it have a bone? Are they simple to do?

I always assumed I'd taste like boot leather.

 

Link to comment
Share on other sites

Oh really? Hmm, that's not so great then. Maybe there's a way around that.

 

My hunch is that this is the general problem of "hit object A bound to object B and it doesn't move". The "bind" stuff is really only implemented halfway and there are many cases not really working.

"The reasonable man adapts himself to the world; the unreasonable one persists in trying to adapt the world to himself. Therefore, all progress depends on the unreasonable man." -- George Bernard Shaw (1856 - 1950)

 

"Remember: If the game lets you do it, it's not cheating." -- Xarax

Link to comment
Share on other sites

  • 3 weeks later...

Fidcal, have you read this thread? Was the crate you attached a moveable?

 

http://forums.thedarkmod.com/index.php?showtopic=7637

Link to comment
Share on other sites

  • 2 weeks later...
Sorry AluminiumHaste. I don't know but suspect the answer is no - which isn't very helpful! :laugh: As far as I know the bones (joints) are defined in the model and not spawned in-game.

 

I did notice that on all the ropes, the last two bones are bone 91 and bone92, are these autogenerated?

I always assumed I'd taste like boot leather.

 

Link to comment
Share on other sites

I did notice that on all the ropes, the last two bones are bone 91 and bone92, are these autogenerated?

 

I don't think so, they were in the .md5 files last time I looked. I got the impression this was copy&paste by whoever created the ropes.

"The reasonable man adapts himself to the world; the unreasonable one persists in trying to adapt the world to himself. Therefore, all progress depends on the unreasonable man." -- George Bernard Shaw (1856 - 1950)

 

"Remember: If the game lets you do it, it's not cheating." -- Xarax

Link to comment
Share on other sites

Mmm.. I don't see a rope model as such - maybe you're right and they're generated by script or in the code somehow. It's beyond me I'm afraid. :)

 

Look here:

 

af/env_rope.af

 

:D

"The reasonable man adapts himself to the world; the unreasonable one persists in trying to adapt the world to himself. Therefore, all progress depends on the unreasonable man." -- George Bernard Shaw (1856 - 1950)

 

"Remember: If the game lets you do it, it's not cheating." -- Xarax

Link to comment
Share on other sites

AF bodies can be created on the fly, but currently you can only do this from the SDK, there is no userfriendly way to add to an AF ingame in realtime. You could however use the ingame AF editor which is described here: http://www.iddevnet.com/doom3/editor_af.php , and then reload whatever you're working on every time you make changes to the AF, with the console command "reloaddecls", or maybe there is a separate "reloadafs" or "reloadragdolls", I'm not sure.

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.

  • Recent Status Updates

    • OrbWeaver

      Does anyone actually use the Normalise button in the Surface inspector? Even after looking at the code I'm not quite sure what it's for.
      · 2 replies
    • Ansome

      Turns out my 15th anniversary mission idea has already been done once or twice before! I've been beaten to the punch once again, but I suppose that's to be expected when there's over 170 FMs out there, eh? I'm not complaining though, I love learning new tricks and taking inspiration from past FMs. Best of luck on your own fan missions!
      · 4 replies
    • The Black Arrow

      I wanna play Doom 3, but fhDoom has much better features than dhewm3, yet fhDoom is old, outdated and probably not supported. Damn!
      Makes me think that TDM engine for Doom 3 itself would actually be perfect.
      · 6 replies
    • Petike the Taffer

      Maybe a bit of advice ? In the FM series I'm preparing, the two main characters have the given names Toby and Agnes (it's the protagonist and deuteragonist, respectively), I've been toying with the idea of giving them family names as well, since many of the FM series have named protagonists who have surnames. Toby's from a family who were usually farriers, though he eventually wound up working as a cobbler (this serves as a daylight "front" for his night time thieving). Would it make sense if the man's popularly accepted family name was Farrier ? It's an existing, though less common English surname, and it directly refers to the profession practiced by his relatives. Your suggestions ?
      · 9 replies
    • nbohr1more

      Looks like the "Reverse April Fools" releases were too well hidden. Darkfate still hasn't acknowledge all the new releases. Did you play any of the new April Fools missions?
      · 5 replies
×
×
  • Create New...