Jump to content
System downtime for updates - Sunday 13 July 2025 ×
The Dark Mod Forums

Recommended Posts

Posted
On 9/13/2024 at 9:16 PM, MirceaKitsune said:

How do I keep AI from becoming alerted by seeing a ragdoll that spawns at the start and they're supposed to be used to?

What if you disable AIUSE spawnarg?

Posted

I keep forgetting: If when editing a patch you accidentally put a green or pink vertice over the other, how do you separate them again? Clicking on the spot where two vertices are located always selects both and drags them together.

On 9/18/2024 at 12:25 PM, datiswous said:

What if you disable AIUSE spawnarg?

I believe I tried that and it didn't fix it, the armature falling over sometimes still alerts everyone around it.

Posted

I have two questions about lights. For the first I know the answer will likely be no but asking to make sure: Do parallel lights support volumetric lighting for sun god rays, and if not are there ever any plans to fix it? I tried but volumetric_light and volumetric_dust don't seem to mix with parallel and parallelsky. At the most this should be documented on the wiki page so everyone knows they don't work together yet.

And something else since I can't seem to find an answer on that page: What are the spawnargs to make a light slowly fade in and out when triggered? I think most flame lights and some lamps that can be frob toggled use this, but I can't tell what settings they use to make the light slowly transition on or off rather than changing instantly.

Posted
On 9/13/2024 at 5:20 PM, MirceaKitsune said:

Edit: Doesn't work. I set the ragdoll team to 5 and AI team to 2, the wiki page indicates they are neutral. The ragdoll still makes AI alert when the map starts.

Could you make the ragdoll a friend instead of a neutral? Maybe that would work.

Posted
On 9/17/2024 at 8:55 PM, ERH+ said:

What this script error means?:
"...EnterFunction: locals stack overflow"

In general in programming, it often indicates you've called a function from within itself (e.g., recursively), and didn't provide any way to stop the recursion. Sometimes more than 1 function is involved in the endless call chain.

  • 2 weeks later...
Posted

How do I get a particle effect, specifically the magical explosion, to be able to be triggered multiple times? In my mission I'm working on I have a wizard who can teleport around, disappearing and reappearing in a cloud of magical smoke and with a teleport noise. Unfortunately, I can only get the teleporting and noise to work repeatedly. The magical explosion particle effect only works the first time he teleports. How can get it to play every time?

My missions:           Stand-alone                                                      Duncan Lynch series                              

                                      Down and Out on Newford Road              the Factory Heist

                                The Wizard's Treasure                             A House Call

                                                                                                  The House of deLisle                                                                                                  

                              

Posted
5 minutes ago, thebigh said:

How do I get a particle effect, specifically the magical explosion, to be able to be triggered multiple times? In my mission I'm working on I have a wizard who can teleport around, disappearing and reappearing in a cloud of magical smoke and with a teleport noise. Unfortunately, I can only get the teleporting and noise to work repeatedly. The magical explosion particle effect only works the first time he teleports. How can get it to play every time?

Instead of firing the particle directly, try this:

1. Create a a trigger sequencer and give it the property "loop - 1"

2. Create two entities of the desired particle

3. Target both particle effects from the trigger

4. ...then target the sequencer instead of the particle

 

 

Posted
30 minutes ago, JackFarmer said:

Instead of firing the particle directly, try this:

1. Create a a trigger sequencer and give it the property "loop - 1"

2. Create two entities of the desired particle

3. Target both particle effects from the trigger

4. ...then target the sequencer instead of the particle

 

 

 

My original setup had the wizard trigger a callscript when he reached a particular path_corner. This used setOrigin to teleport him, and trigger a trigger_relay that in turn targets the smoke puffs and speakers at his origin and destination. That worked fine for the speakers and the first time the smoke puffs went off.

Placing two smoke puffs at both origin and destination and trying to hit them alternately with a pair of trigger_sequencers didn't help. The two duplicates go off once each and then never again.

Is there a way to make a particle effect triggerable multiple times?

My missions:           Stand-alone                                                      Duncan Lynch series                              

                                      Down and Out on Newford Road              the Factory Heist

                                The Wizard's Treasure                             A House Call

                                                                                                  The House of deLisle                                                                                                  

                              

Posted
1 hour ago, thebigh said:

 

My original setup had the wizard trigger a callscript when he reached a particular path_corner. This used setOrigin to teleport him, and trigger a trigger_relay that in turn targets the smoke puffs and speakers at his origin and destination. That worked fine for the speakers and the first time the smoke puffs went off.

Placing two smoke puffs at both origin and destination and trying to hit them alternately with a pair of trigger_sequencers didn't help. The two duplicates go off once each and then never again.

Is there a way to make a particle effect triggerable multiple times?

Have you tried

image.png.6719b58e2b2d1d594f6b97992ddac012.png

on the particle?

 

  • Like 1
Posted

Yep, that seems to have done the trick. Now I just gotta find a way to make him reliably patrol after teleporting, sometimes he just stops and I can't figure out why. No combination of stopPatrol, restartPatrol, and target_changetarget manipulation seems to help XD.

My missions:           Stand-alone                                                      Duncan Lynch series                              

                                      Down and Out on Newford Road              the Factory Heist

                                The Wizard's Treasure                             A House Call

                                                                                                  The House of deLisle                                                                                                  

                              

Posted
22 hours ago, thebigh said:

Yep, that seems to have done the trick. Now I just gotta find a way to make him reliably patrol after teleporting, sometimes he just stops and I can't figure out why. No combination of stopPatrol, restartPatrol, and target_changetarget manipulation seems to help XD.

I had the same problem with teleporting and patrolling. Sometimes works, sometimes the AI would just stand there or even lie down on the path! It seemed random each time I ran it. It drove me crazy. As far as I can tell it is bugged.

  • Like 1
Posted
On 10/4/2024 at 12:58 PM, thebigh said:

Yep, that seems to have done the trick. Now I just gotta find a way to make him reliably patrol after teleporting, sometimes he just stops and I can't figure out why. No combination of stopPatrol, restartPatrol, and target_changetarget manipulation seems to help XD.

You still have problems with the patrols?

  • Like 1
Posted

Yeah, still having issues getting the wizard to patrol. I've got him on two disconnected patrol routes that he's supposed to teleport between and I'm trying to get him to go to his next patrol point with a target_changetarget entity. Sometimes it works, but often he just stands idling after teleporting. Or he'll go to his first path_corner and then stop. I've also seen him sit down in midair and warm his hands on nothing, which are animations that are supposed to play elsewhere on his route. I think you're right @grodenglaive, I think it's just plain bugged and I might have to forget the whole thing. Would've been really cool. Oh well.

My missions:           Stand-alone                                                      Duncan Lynch series                              

                                      Down and Out on Newford Road              the Factory Heist

                                The Wizard's Treasure                             A House Call

                                                                                                  The House of deLisle                                                                                                  

                              

Posted (edited)
40 minutes ago, thebigh said:

Yeah, still having issues getting the wizard to patrol. I've got him on two disconnected patrol routes that he's supposed to teleport between and I'm trying to get him to go to his next patrol point with a target_changetarget entity. Sometimes it works, but often he just stands idling after teleporting. Or he'll go to his first path_corner and then stop. I've also seen him sit down in midair and warm his hands on nothing, which are animations that are supposed to play elsewhere on his route. I think you're right @grodenglaive, I think it's just plain bugged and I might have to forget the whole thing. Would've been really cool. Oh well.

I know exactly what you mean. I already had these problems with TBM and most recently again with HHBAM. Can drive you crazy.

Perhaps the problem also has to do with the fact that the targets are added too quickly when using changetarget_entities...maybe this can be solved with a scripted alternative like below...?

sys.trigger($teleporter_x");
sys.wait(2);
$wizard_ai.addTarget($path_corner_x);


Thing is, you have to make sure that an already existing target has to be removed before you add a new target.

Edited by JackFarmer
  • Like 1
Posted

That shouldn't be a problem. The last path_corner of each segment targets a callscript rather than another path_corner which IIUC should remove the last target of the wizard's current route automatically. I'll experiment with addTarget / changetarget combinations later and see how I go

My missions:           Stand-alone                                                      Duncan Lynch series                              

                                      Down and Out on Newford Road              the Factory Heist

                                The Wizard's Treasure                             A House Call

                                                                                                  The House of deLisle                                                                                                  

                              

Posted

You might consider setting the 3 following CVars.

tdm_ai_debug_blocked
tdm_ai_showdest
tdm_ai_showtasks

They give visual indications as to what an AI is actually trying to do. Compare what happens when it works against when it doesn't. I've seen AI stop patrolling from time to time (but they're not using teleport) and think there's a bug somewhere.

  • Like 2
  • Thanks 1
Posted
9 hours ago, thebigh said:

That shouldn't be a problem. The last path_corner of each segment targets a callscript rather than another path_corner which IIUC should remove the last target of the wizard's current route automatically. I'll experiment with addTarget / changetarget combinations later and see how I go

Last night I had another idea, though, this one is so crazy that I almost do not even dare to mention it:

What happens if you give the AI just one target for a path entity (X) and then you teleport X to different locations?

I am not sure if I have tried this in the past.

  • Like 3
Posted
On 10/4/2024 at 12:58 PM, thebigh said:

Now I just gotta find a way to make him reliably patrol after teleporting, sometimes he just stops and I can't figure out why. No combination of stopPatrol, restartPatrol, and target_changetarget manipulation seems to help XD.

I think I heard @Dragofer was working on a specific script for (something like) this a while back. I could be completelly wrong though.

  • Like 1
Posted
On 10/6/2024 at 2:57 AM, JackFarmer said:

Last night I had another idea, though, this one is so crazy that I almost do not even dare to mention it:

What happens if you give the AI just one target for a path entity (X) and then you teleport X to different locations?

I am not sure if I have tried this in the past.

I just tried it, this actually works😄. You just need to have the AI hit a trigger brush that triggers the teleport before they can reach the path corner. You can also teleport the AI at the same time (if desired to reach an inaccessible area for example) and they will continue walking to the path entity afterwords.
  

  • Like 1
  • Thanks 1
  • Haha 1
Posted
2 hours ago, grodenglaive said:

I just tried it, this actually works😄. You just need to have the AI hit a trigger brush that triggers the teleport before they can reach the path corner. You can also teleport the AI at the same time (if desired to reach an inaccessible area for example) and they will continue walking to the path entity afterwords.
  

@thebigh

:)

 

 

 

 

  • Thanks 1
Posted

Cool, let me try it now...

My missions:           Stand-alone                                                      Duncan Lynch series                              

                                      Down and Out on Newford Road              the Factory Heist

                                The Wizard's Treasure                             A House Call

                                                                                                  The House of deLisle                                                                                                  

                              

Posted

WOOHOO

That works really well! The wizard is now teleporting multiple times without getting stuck and without getting confused about which pathcorner to go next.

  • Like 2

My missions:           Stand-alone                                                      Duncan Lynch series                              

                                      Down and Out on Newford Road              the Factory Heist

                                The Wizard's Treasure                             A House Call

                                                                                                  The House of deLisle                                                                                                  

                              

Posted
8 hours ago, thebigh said:

WOOHOO

That works really well! The wizard is now teleporting multiple times without getting stuck and without getting confused about which pathcorner to go next.

At this point, I think we all just have to say once again that I am brilliant. Man, I almost fear my superbrain to explode!

  • Like 2
  • Haha 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...