Jump to content
The Dark Mod Forums

A lute player that responds to player's actions


JackFarmer

Recommended Posts

There is no easy way to make a luteplayer react to player's actions.

Thus, an lute playing AI would be very helpful with the following properties:

- variable skins

- at a certain alarm level, lute player stops playing lute and so does the designated sound files...when alert level decreases, lute player, starts again playing the lute and the designated sound file start playing once again

- at a very high alarm level, lute player drops the lute (and sound file stops) and runs away

RealPlayer.jpg.5dffb8f84446639590d032da155748cd.jpg

 

 

 

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

Quote

- variable skins

 

Any AI can become a lute player by def_attaching the appropriate lute entity.  Someone even posted a skeleton lute player a while back.  So there are as many skins as you like.

Quote

at a certain alarm level, lute player stops playing lute and so does the designated sound files...when alert level decreases, lute player, starts again playing the lute and the designated sound file start playing once again

 

There is currently no easy way for a lute player to resume playing.  I assume it would take some significant scripting to make this work.

Quote

at a very high alarm level, lute player drops the lute (and sound file stops) and runs away

 

This is easy enough.  You can set a spawnarg on the lute entity that determines at what alert level the AI will drop it.  (I think default is 3)  To make the music stop, I would use an invisible objective "Do not alert AI X" and have it turn the lute speaker off.

Link to comment
Share on other sites

On 7/18/2019 at 3:59 PM, Springheel said:

This is easy enough.  You can set a spawnarg on the lute entity that determines at what alert level the AI will drop it.  (I think default is 3)  To make the music stop, I would use an invisible objective "Do not alert AI X" and have it turn the lute speaker off.

Yes, this is the only thing I could integrate into the mission. Turning the speaker off though does not work; the speaker needs to be teleported away. If I could teleport the speaker  back into place once alarm level decreases and lute players starts playing the lute again, then everything would be ok. However, that does not work.

Edited by JackFarmer
Link to comment
Share on other sites

If I wanted to have a 'reusable' lute player I think I'd build a script that periodically checks the alert state of the AI and performs various actions depending on how the state evolves (script load would be ok if it's just this 1 AI). But this seems like a lot of work when considering it's a small cosmetic feature that players may not encounter. I don't think anyone would count the stock lute behaviour against you.

Link to comment
Share on other sites

2 hours ago, JackFarmer said:

Yes, this is the only thing I could integrate into the mission. Turning the speaker off though does not work; the speaker needs to be teleported away.

 

Why can't you turn the speaker off?

Link to comment
Share on other sites

8 hours ago, Springheel said:

 

Why can't you turn the speaker off?

Check my post on April, 25th and the following discussion:

This was also the very first thing I tried, and I am sure that it dit not work which made me search for other options.

On the other hand, with different objectives types (grab item "xxx") it works perfectly - I had such a set up in my first mission.

Conclusion:

- you can silence a speaker with completion target when triggering this event through a "grab item" objective

- you cannot silence a speaker with completion target when triggering this event through a "high alarm" objective (and the other way round)

Edited by JackFarmer
Link to comment
Share on other sites

Quote

I tried to mute the belonging speaker via the objective editor with if item with name "lute" is in location "A", then trigger entity func_remove xxx to remove the speaker. Does not work.

 

Why use a func_remove, instead of just triggering the speaker to turn it off?

  • 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

    • Petike the Taffer  »  DeTeEff

      I've updated the articles for your FMs and your author category at the wiki. Your newer nickname (DeTeEff) now comes first, and the one in parentheses is your older nickname (Fieldmedic). Just to avoid confusing people who played your FMs years ago and remember your older nickname. I've added a wiki article for your latest FM, Who Watches the Watcher?, as part of my current updating efforts. Unless I overlooked something, you have five different FMs so far.
      · 0 replies
    • Petike the Taffer

      I've finally managed to log in to The Dark Mod Wiki. I'm back in the saddle and before the holidays start in full, I'll be adding a few new FM articles and doing other updates. Written in Stone is already done.
      · 4 replies
    • nbohr1more

      TDM 15th Anniversary Contest is now active! Please declare your participation: https://forums.thedarkmod.com/index.php?/topic/22413-the-dark-mod-15th-anniversary-contest-entry-thread/
       
      · 0 replies
    • JackFarmer

      @TheUnbeholden
      You cannot receive PMs. Could you please be so kind and check your mailbox if it is full (or maybe you switched off the function)?
      · 1 reply
    • OrbWeaver

      I like the new frob highlight but it would nice if it was less "flickery" while moving over objects (especially barred metal doors).
      · 4 replies
×
×
  • Create New...