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

    • 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.
      · 5 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...