collapse

Author Topic: Question for a stupid idea  (Read 338 times)

Offline Barabbah

  • Majestic madness maker
  • Antediluvian
  • *****
  • Posts: 1308
Question for a stupid idea
« on: November 20, 2018, 07:29:29 PM »
It's possible, just for fun, to add a button which plays a sound file? I'm feeling malky today, so I'd really love a button that plays this: https://youtu.be/oic-fk8Hnsw?t=16 to use when I jump on hunter's back and attack them on their secret base. I already have the soundclip on my computer. Someone have any ideas? Specially on the hotkeys menù so I can put 10 soundclips (I prefer flexible and multiuse mods)
"Some quotations," said Zellaby, "are greatly improved by lack of context."
― John Wyndham, The Midwich Cuckoos
"fuck the hole in the face"
― me

Offline deicide

  • Drug Fiend
  • Methuselah
  • ****
  • Posts: 439
Re: Question for a stupid idea
« Reply #1 on: November 21, 2018, 03:49:29 PM »
bind <key> "play <filename.wav>"?
The patient was a young lady whom I was loath to disfigure (c)

Offline Barabbah

  • Majestic madness maker
  • Antediluvian
  • *****
  • Posts: 1308
Re: Question for a stupid idea
« Reply #2 on: November 21, 2018, 05:15:40 PM »
I didn't know it was this easy :P thanky, I'll try it
"Some quotations," said Zellaby, "are greatly improved by lack of context."
― John Wyndham, The Midwich Cuckoos
"fuck the hole in the face"
― me

Offline deicide

  • Drug Fiend
  • Methuselah
  • ****
  • Posts: 439
Re: Question for a stupid idea
« Reply #3 on: November 21, 2018, 06:37:44 PM »
Np, had forgotten to add that, normally, the file name should be quoted, like that:
Code: [Select]
bind "x" "play \""example.wav\""But it seems that escape sequences aren't implemented in Half-life console, so there is no way to put a quote character inside quotes, at least not that I know of.

If feeling extra malky, I would recommend taking some samples from Britney Spears - I Did It Again, that will fit the situation as well, or, alternatively, from Children of Bodom cover.
« Last Edit: November 21, 2018, 06:46:36 PM by deicide »
The patient was a young lady whom I was loath to disfigure (c)

Offline Barabbah

  • Majestic madness maker
  • Antediluvian
  • *****
  • Posts: 1308
Re: Question for a stupid idea
« Reply #4 on: November 22, 2018, 09:11:54 PM »
It worked as planned <3 thanky :D
"Some quotations," said Zellaby, "are greatly improved by lack of context."
― John Wyndham, The Midwich Cuckoos
"fuck the hole in the face"
― me