Jump to content
The Dark Mod Forums

Newbie DarkRadiant Questions


demagogue

Recommended Posts

Well, normally there should also be an arrow from the trigger to the speaker in this case, right? In one map, there is no arrow, in the other the arrow points from the speaker to somewhere in infinity. I tried with various sounds, none of which works.

Setting these cvars might help you work it out:

g_debugTriggers 1

s_drawSounds 1

con_noprint 0

 

The last one makes console text appear on your screen without you having to open the console, so you can see the text when a trigger fires

 

EDIT: ninja'd

Edited by SteveL
  • Like 1
Link to comment
Share on other sites

trigger_hurt has spawnargs "on" and "delay", but it doesn't look like they'll let you do this.

 

You could use a pair of triggers: give the trigger_hurt "on" "0" and then target it from a trigger_entityName set to activate by player1 only, and with "delay" "5" for a 5-second delay, for example. You'd also need to set "wait" "0" on the trigger_entityName so that it removes itself from the game the first time it's fired.

Link to comment
Share on other sites

Seems to work quite nicely, thanks. :) I did however set the trigger_hurt's delay to an incredibly high number, otherwise the player would just get hurt over and over, but I only wanted a one time hurt event.

Link to comment
Share on other sites

Is there an easy way to make cylindrical brushes? I want to make a cylindrical swimmable water entity, but that doesn't seem to work with patches.

Link to comment
Share on other sites

I'd use the clip tool for that job. Take a regular brush and cut off chunks to get a many-equal-sided polygon cylinder.

  • Like 1

What do you see when you turn out the light? I can't tell you but I know that it's mine.

Link to comment
Share on other sites

I haven't tested it, but I recall, and just reconfirmed on the shortcut key sheet, that cntl+n (n being a number) when you make a brush makes an n-sided brush. Try that and see what happens.

  • Like 2

What do you see when you turn out the light? I can't tell you but I know that it's mine.

Link to comment
Share on other sites

just reconfirmed on the shortcut key sheet, that cntl+n (n being a number) when you make a brush makes an n-sided brush.

 

 

Wow, I never knew about that.

 

did however set the trigger_hurt's delay to an incredibly high number, otherwise the player would just get hurt over and over, but I only wanted a one time hurt event.

 

 

Is it still not possible to just have a single-fire hurt event? I remember wanting something like that in A Score to Settle years ago.

Link to comment
Share on other sites

Brush->prism gets you a cylinder dialogue through the menus; there are also cone and sphere dialogues. The ctrl+num method is faster, though.

 

If Springheel's talking about http://forums.thedarkmod.com/topic/12438-damaging-traps/ then the idea is that a damage trap is triggerable multiple times and hurts the player once when triggered, or at least not continuously. (http://bugs.thedarkmod.com/view.php?id=2689 is still open.) Presumably that's not a problem for Nico A.'s case, though.

Edited by VanishedOne
  • Like 1

Some things I'm repeatedly thinking about...

 

- louder scream when you're dying

Link to comment
Share on other sites

Another problem... if something grabable, i.e. a key, lies high on a brush functioning as a shelf, I can grab it when I'm far away. So it seems I'm reaching through that shelf brush.

 

How can the brush actually block my grabbing?

Edited by Nico A.
Link to comment
Share on other sites

Usually brushes and func_statics should block frobbing. I believe, that in the case of keys the frobbox (i.e. the radius in which they can be frobbed) is very high. If I remember correctly, this is to make pickpocketing easier. Look for the spawnarg "frobbox_size" and use a lower value. Apart from that, you could use a "clip" or "player_clip" brush to block the player.

Link to comment
Share on other sites

I haven't tested it, but I recall, and just reconfirmed on the shortcut key sheet, that cntl+n (n being a number) when you make a brush makes an n-sided brush. Try that and see what happens.

That's amazing! Wow, that will come in handy. B)

Come the time of peril, did the ground gape, and did the dead rest unquiet 'gainst us. Our bands of iron and hammers of stone prevailed not, and some did doubt the Builder's plan. But the seals held strong, and the few did triumph, and the doubters were lain into the foundations of the new sanctum. -- Collected letters of the Smith-in-Exile, Civitas Approved

Link to comment
Share on other sites

Look for the spawnarg "frobbox_size" and use a lower value.

Frobbox size is now 0.2 (before it was 1 with no noticable difference), but still I can grab the key from below.

The picture illustrates the problem, with an AI to scale; it just doesn't seem right that you can grab the key from all the way down.

 

...at this point I'd really like to show a picture, but I just keep getting

 

You are not allowed to use that image extension on this community.

It would be nice to know which image extensions are allowed. I tried several.

 

The playerclip didn't change anything also.

Edited by Nico A.
Link to comment
Share on other sites

I recommend anybody that builds should at some point browse the DR Command sheet just to see what sorts of hidden shortcuts it has. http://wiki.thedarkmod.com/index.php?title=Dark_Radiant_Controls,_Keys_%26_Mouse

What do you see when you turn out the light? I can't tell you but I know that it's mine.

Link to comment
Share on other sites

The easiest way to prevent player frobbing through surfaces is to create a nodraw brush and make it frobable. I've used it in the Builder Roads FM in the tavern to preven the player from frobbing loot through some gaps (The gaps were there so the player could see the loot).

FM's: Builder Roads, Old Habits, Old Habits Rebuild

Mapping and Scripting: Apples and Peaches

Sculptris Models and Tutorials: Obsttortes Models

My wiki articles: Obstipedia

Texture Blending in DR: DR ASE Blend Exporter

Link to comment
Share on other sites

The post I linked above says it needs to be nodrawsolid; if you had plain nodraw working in the gaps then we have inconsistent results emerging somehow.

 

Now, the odd thing is that if you use a "nodraw" texture on the frob blocker, the trace doesn't see it, and the switch is frobable. If you use a "nodraw_solid" texture, the trace sees it, and the blocker is frobbed. The code says that if the trace hits something that's frobable, the trace should see it, but apparently that doesn't work if the thing is non-solid.

This doesn't jive with the "nodraw" frob blockers you see on the sides and surfaces of the prefab writing cabinet. I wouldn't expect them to work. But since I've got a solution to my problem, I'll leave that for another day.

Since the frob_blocker is now solid to the player, it's best to make it thin. The sample map shows I gave it a thickness of 1 unit, so when the player presses up against the wall, it's not noticeable. And using a nodraw that matches the wall material, I can have consistent results if I fire a broadhead at it.

Some things I'm repeatedly thinking about...

 

- louder scream when you're dying

Link to comment
Share on other sites

Thanks for your answers on this grab-from-far-away-problem. I didn't check it out thoroughly yet, but hopefully it works. :)

 

Another (hopefully simple) question: You can I make a switch starting in an off position instead of on?

 

The easiest way to prevent player frobbing through surfaces is to create a nodraw brush and make it frobable. I've used it in the Builder Roads FM in the tavern to preven the player from frobbing loot through some gaps (The gaps were there so the player could see the loot).

Well that didn't work. Would have been to easy I presume ;)

Edited by Nico A.
Link to comment
Share on other sites

Levers work somewhat like doors, so I imagine http://wiki.thedarkmod.com/index.php?title=Doors#Open.2C_Partially_Open.2C_or_Closed_Door_at_Game_Start might work on them.

 

If you're just toggling a target (e.g. a light) then moving the switch in DR and changing its rotate/translate spawnargs would work, since the on/off state will be handled by the target.

Edited by VanishedOne

Some things I'm repeatedly thinking about...

 

- louder scream when you're dying

Link to comment
Share on other sites

QS2pPjN.gif

 

So I have this gigantic scorpion, it is made out of pendulums bound together. I had an idea about dragging whole thing through a piled up crates (pretending to be stone blocks in a wall), but it looks like movable crate physics override pendulum/bobbing impulses, and animation is interrupted at impact. Any ideas how to make it smash through wall, using realtime physics?

 

 

Any chance this is available for download somewhere?

  • Like 1
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

    • nbohr1more

      Was checking out old translation packs and decided to fire up TDM 1.07. Rightful Property with sub-20 FPS areas yay! ( same areas run at 180FPS with cranked eye candy on 2.12 )
      · 0 replies
    • taffernicus

      i am so euphoric to see new FMs keep coming out and I am keen to try it out in my leisure time, then suddenly my PC is spouting a couple of S.M.A.R.T errors...
      tbf i cannot afford myself to miss my network emulator image file&progress, important ebooks, hyper-v checkpoint & hyper-v export and the precious thief & TDM gamesaves. Don't fall yourself into & lay your hands on crappy SSD
       
      · 3 replies
    • 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.
      · 7 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
×
×
  • Create New...