Is it possible to play a number of demos at the end of a level/game etc - it would be right at the end, so nothing, parms etc, would need to be saved?
Thank you.
Me.
Demos at the end please!
Well, you can stuffcmd to the player "playdemo demoname", but after that it might be a fight to give control back to the player, since I don't think demos can initiate map changes, and once that demo is playing your current QC loses control.
Maybe you could do something like:
stuffcmd(player, "playdemo endingA; wait 330; map town");
which would presumably play the demo, wait 5 and a half minutes, and go to the town map.
Maybe you could do something like:
stuffcmd(player, "playdemo endingA; wait 330; map town");
which would presumably play the demo, wait 5 and a half minutes, and go to the town map.
When my computer inevitably explodes and kills me, my cat inherits everything I own. He may be the only one capable of continuing my work.
Re: Demos at the end please!
call stuffcmd at the end of the demo, that will write a svc_stuffcmd message into the demo which will do whatever you want, Nehahra used this to end its cutscenes and go back into the game (note: it stored all the parms off into cvars so they'd survive the cutscene, and restored them on entering the new level).ajay wrote:Is it possible to play a number of demos at the end of a level/game etc - it would be right at the end, so nothing, parms etc, would need to be saved?
Thank you.
Me.
Re: Demos at the end please!
So, if we use a alias like "demo_ended" and stuffcmd it, we can change it before the demo initiates, giving use a "reusable" demo? Nice!LordHavoc wrote:call stuffcmd at the end of the demo, that will write a svc_stuffcmd message into the demo which will do whatever you want, Nehahra used this to end its cutscenes and go back into the game (note: it stored all the parms off into cvars so they'd survive the cutscene, and restored them on entering the new level).ajay wrote:Is it possible to play a number of demos at the end of a level/game etc - it would be right at the end, so nothing, parms etc, would need to be saved?
Thank you.
Me.
#EOP
Thanks everyone, I've got it running one demo, but I can't get it to return back to a level, or play another demo.
This is really interesting:
Sorry and thanks
This is really interesting:
But although I partly get it, it's kind of outside of what I can freely write myself, could someone write an example?call stuffcmd at the end of the demo, that will write a svc_stuffcmd message into the demo
Sorry and thanks
I believe making a demo call a map back is done via one of the demo utilities that have been released by third parties... basically, a 'map level' stuff can be added at the end of the demo. I think that's also how they did successions of demos (other than startdemos)
F. A. Špork, an enlightened nobleman and a great patron of art, had a stately Baroque spa complex built on the banks of the River Labe.