Jump to content
The Dark Mod Forums

Problem with frob box for more complex models


peter_spy

Recommended Posts

I created an iron grate that will be frobable, and just like Wiki says, the frob box shape is the shape of my model. The problem is that it will be pretty hard for the players to highlight it, because of the distance between the bars. Basically it looks like this:

 

https://www.dropbox.com/s/au0k3mcvs03jspf/GrateFrob.mp4

 

Adjusting frob box size doesn't help much in this case. I've tried other options like frob_peer, which works as intended, but the main problem is that even if I use a brush or model to propagate frob to my grate, it still needs to be solid for the frob raytrace to detect it. Materials like nodraw, clip or playerclip don't work, and that grate looks like it should let players shoot and throw stuff through it. I think I had similar problem while playing Biker's WIP, while with frobing an iron gate, so this is a common problem with more complex interactive models.

 

Am I missing something or it seems like we need some sort of special non-solid material like nodraw that will let everything through but collide with frob detection?

Link to comment
Share on other sites

What Obs did for me in my Elixir map using a nodraw brush worked just fine.

 

If you want to let stuff pass through that create a bunch of nodraw brushes in a rough shape of the grate and with gaps etc(see below). Then make that a single FS, bind that to the grate, make the FS frobable and the grate non-frobable and then peer_frob target the grate from the FS.

 

post-496-0-91200300-1515150991_thumb.jpg

Edited by Bikerdude
  • Like 2
Link to comment
Share on other sites

You mean nondrawsolid. That is sure a kind of workaround, although the main problem is lack of contact surface in the center, as that's how players will approach the grate. I might put a small cube there, but it will block any items or projectiles. I hope that's a minor thing, since it will be easier to just open the grate and throw or shoot. Ensuring consistent and error-free frobing is more important. Imagine player fleeing from a guard and having problems with opening this ;)

Link to comment
Share on other sites

Feel free to extract ws2_homeagain.map from ws2_homeagain.pk4, open it in DR, search for "MontfortWestGate" using the entity list, and see how I handled this very situation.

 

Make sure you don't have caulk filtered out in DR.

 

Look at the relationship between the gate and the caulk block.

  • Like 1
Link to comment
Share on other sites

To clarify, maybe this is a rare problem, only related to "see-through" models like iron gates, as I can't think of anything else right now. Anyway, frob detection needs surfaces that player can collide with. In this particular case it means stuff like arrows or other small stuff will be stopped by the collision model. Not sure if we can have a material that is non-solid and works with frob detection (right now we can't). Is there a point to write that kind of functionality, if only for cases like this one? I'm not sure. That is a question for our lovely coders out there :)

Link to comment
Share on other sites

To clarify, maybe this is a rare problem, only related to "see-through" models like iron gates, as I can't think of anything else right now. Anyway, frob detection needs surfaces that player can collide with. In this particular case it means stuff like arrows or other small stuff will be stopped by the collision model. Not sure if we can have a material that is non-solid and works with frob detection (right now we can't). Is there a point to write that kind of functionality, if only for cases like this one? I'm not sure. That is a question for our lovely coders out there :)

 

The code does test for solidity, but it also tests for frobability. Either condition stops the forward trace that looks for frobable items.

 

So, in theory, an object can be non-solid and frobable and still be frobbed.

 

I haven't tested this.

 

In the case of the example I gave, perhaps setting 'non-solid' on the frob peer caulk block bound to the gate would allow projectiles to pass through.

 

If that's the case, we don't need a new texture.

Link to comment
Share on other sites

I tried frob_peer with clip and player_clip, and it doesn't work. I assumed frob needs player collision to work properly and it looks like I was right. I just tried it with caulk block set to solid 0 and it doesn't work. It works with solid 1.

Edited by Judith
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...