Author Topic: Looping video / flash files. And how to add keys?  (Read 3510 times)

Henzo

  • Posts: 37
  • Turrets: +0/-0
Looping video / flash files. And how to add keys?
« on: May 14, 2011, 02:20:35 pm »
Ok, I'm planning for new map, and I want to know (don't tell google, I allrdy tried) how you can add looping video (.wmv or .swf or .avi + .wav) file in the map. How to import it, how to do scripts for it, and how to get it loopin'?
I can say, that will be secret nobuild room, where is that secret.  ;)


And btw, how I add keys to entities?
« Last Edit: May 14, 2011, 02:53:25 pm by Henzo »
I'm pretty sure that is only happening to you.
^^Yeah.
I need Tremulous when there are games like Portal 2.

A Spork

  • Spam Killer
  • *
  • Posts: 1010
  • Turrets: +37/-230
    • Spork - Unvanquished.net
Re: Looping video / flash files. And how to add keys?
« Reply #1 on: May 14, 2011, 09:23:31 pm »
You cant.
closest you can get is making a shader that flips between every frame as a still image every x seconds, then having a speaker.
Don't shoot friend :basilisk:! Friend :basilisk: only wants to give you hugz and to be your hat

Proud Member of the S.O.B.F.O.B.S.A.D: The Society Of Basilisks For Other Basilisks Safety and Dominance
:basilisk:    :basilisk:    :basilisk:

UniqPhoeniX

  • Spam Killer
  • *
  • Posts: 1376
  • Turrets: +66/-32
Re: Looping video / flash files. And how to add keys?
« Reply #2 on: May 14, 2011, 11:22:47 pm »
I think Trem can handle .roq video files, http://q3map2.everyonelookbusy.net/shader_manual/ch6.htm#map Ctrl+F 'videomap'.
If you don't know how to add keys to entities, then read some guides.

Ingar

  • Tremulous Developers
  • *
  • Posts: 554
  • Turrets: +302/-7
    • Ingar's projects on the Web
Re: Looping video / flash files. And how to add keys?
« Reply #3 on: May 15, 2011, 12:56:55 pm »
If it is like more an 'animated gif' than a video (only 8 frames and low fps) than you can use an animated shader.

Henzo

  • Posts: 37
  • Turrets: +0/-0
Re: Looping video / flash files. And how to add keys?
« Reply #4 on: May 15, 2011, 03:19:26 pm »
If it is like more an 'animated gif' than a video (only 8 frames and low fps) than you can use an animated shader.

Ok, I didn't understand a shit from that webpage (I'm not good coder). Btw, I got the key adding thing...
^^What I did understand, that is .shader file in .pk3 file. So, can someone try to explain me how i do it, or is there any good tutorial for noobs?
And, how to add it into map?

And I think I want to make it with trigger, like someone walks near it, and it starts to play... I gonna learn that myself, maybe looking example from Paint10 (or was it 9?)
« Last Edit: May 15, 2011, 03:22:21 pm by Henzo »
I'm pretty sure that is only happening to you.
^^Yeah.
I need Tremulous when there are games like Portal 2.