Jump to content
The Dark Mod Forums

Need scripting help: want to poison a barrel


Bikerdude

Recommended Posts

I thought I could use a method that I saw in another mission, but it wont work. Essentially what I want to do is as follows -

  1. I have a bear/wine barrel
  2. I have a poison vial with is in my inventory and can be dropped.
  3. I want to poison said barrel with the contents of the vial.

Any pointers and a simple script would be appreciated.

Link to comment
Share on other sites

Is there a reason you want a script instead of using the Objective system which does that directly? Also, what results from the poisoning?

 

This wiki article is more elaborate than what you need: http://wiki.thedarkmod.com/index.php?title=Objectives#Having_the_player_place_multiple_interchangeable_items_in_varied_places.

 

In your case, just one objective using "item is in location" will do.

 

At the poison barrel have a info_tdm_objective_location item where the poison needs to be placed by the player, it needs the spawnarg "objective_group" set to whatever you specify below, such as barrel_objective_location.

 

Set the objective: "let the target entity poison_name be at location 0 of barrel_objective_location"

 

If you want anything more to happen than just the objective completing when they place the poison there, use the target of the objective to trigger whatever (like func_remove the poison object).

"The measure of a man's character is what he would do if he knew he never would be found out."

- Baron Thomas Babington Macauley

Link to comment
Share on other sites

This was done in an FM already, there was a cauldron that you had to put an ingredient in. I think it was the one where you shoot a canon into a door to blast it open, is that Lich Queens' Demise?

I always assumed I'd taste like boot leather.

 

Link to comment
Share on other sites

This was done in an FM already, there was a cauldron that you had to put an ingredient in. I think it was the one where you shoot a canon into a door to blast it open, is that Lich Queens' Demise?

 

Yep you're right Lich Queens Demise was the FM that had that.

Link to comment
Share on other sites

Yep. Check LQD.

 

It was done with stim response system. There was a brush with a stim or response (and remember which way it was around). Then the object emitted complementary response or stim. Then, when the objects met, I triggered scripts that did stuff.

 

Multi-ingredient systems were done by simply having overlapping stim/response brushes.

Clipper

-The mapper's best friend.

Link to comment
Share on other sites

No. The LQD method is

1) drop item to hands (frobber)

2) touch the location of interest with the item.

 

For a poison vial, it might look like you toss the whole bottle into the barrel. ;)

 

Why not use a solid poison item, like a cube of crystalline poison. something you quickly drop into the to-be-poisoned container.

Clipper

-The mapper's best friend.

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

    • The Black Arrow

      Hey @nbohr1morehow come the zombies in The Dark Mod don't have a "resurrection" mechanic to it, similar to how Thief has it?
      They're quite a weak creature as of right now, it's merely a walking corpse that slashes you, making attacking them to kill them an actual strategy.
      Would be better if they had some cool mechanism to it that truly makes them a danger, such as the resurrection idea itself.
      · 2 replies
    • Ansome

      Query: when was the last time a zombie in a video game was unnerving or scary to you? I'm chipping away at my anniversary submission and I've been trying to gather opinions on the subject. I'm perfectly capable of lighting them well, changing their sfx, and creating effective ambience, but I'm worried that zombies at their core are just too overdone to be an effective payoff to the tension I'm creating.
      · 4 replies
    • nbohr1more

      The Lieutenant 3 is out! Congrats Frost_Salamander! ( raising awareness )
      · 2 replies
    • OrbWeaver

      Has anyone had any luck with textures from Polyhaven? Their OpenEXR normal maps seem too washed out and give incorrect shading in the engine.
      · 5 replies
    • datiswous

      I tried to upscale the TDM logo video. First try:

      briefing_video.mp4 You can test it ingame by making a copy of the core tdm_gui.mtr and place it in your-tdm-root/materials/ , then edit line 249 of that file into the location where you placed the new briefing.mp4 file.
      What I did was I extracted all the image files, then used Upscayl to upscale the images using General photo (Real-Esrgan) upscale setting and then turn it back into a video.
      I might have to crop it a bit, the logo looks smaller on screen (or maybe it's actually better this way?). My video editor turned it into a 16:9 video, which I think overal looks better than 1:1 video of original.
      · 1 reply
×
×
  • Create New...