Posted by rainbow_lazer on Thu Dec 29th at 9:11pm 2005
i'm wondering if it's possible to have a demo video play automatically after a certain period of idle time, as seen in many arcade games.
for example, if no one has played for 5 minutes, a pre-recorded demo will play itself, and when a user is enticed by the demo to move the mouse, the game starts back up again.
i read the tutorial on recording demo movies:
http://www.snarkpit.net/editing.php?page=tutorials&id=163&highlight=demo,mode
anyone with ideas for how to make them play automatically, please share! thanks a lot!
member
19 posts
2 snarkmarks
Registered: Oct 13th 2005
Location: USA

Occupation: busboy
Posted by Campaignjunkie on Thu Dec 29th at 10:31pm 2005
Campaignjunkie
member
1309 posts
291 snarkmarks
Registered: Feb 12th 2002
Location: West Coast, USA
Occupation: Student
Posted by Dark_Kilauea on Fri Dec 30th at 4:29am 2005
Hope this helps.
Dark_Kilauea
member
629 posts
93 snarkmarks
Registered: Apr 15th 2005
Location: USA

Occupation: Fast Food
Posted by rainbow_lazer on Fri Dec 30th at 7:01am 2005
member
19 posts
2 snarkmarks
Registered: Oct 13th 2005
Location: USA

Occupation: busboy
Posted by Crono on Fri Dec 30th at 8:22am 2005
If it turns out that the map gets closed and needs to be reloaded, I'd suggest, perhaps, make a map with bots and chase cams. But, if you're doing it for hl2dm, bots don't exist ... I think ...
Anyway, good luck. It's a nice idea.
Posted by rainbow_lazer on Wed Jan 4th at 4:33am 2006
i've tried this with one free video screen saver program, but for some reason it does not activate while the mod is running. i'm not really sure why, i suppose it has something to do with HL2 changing the display settings?
anyhow, thanks for the tips so far. i'm going to keep hacking my way thru it.
member
19 posts
2 snarkmarks
Registered: Oct 13th 2005
Location: USA

Occupation: busboy
Posted by Crono on Wed Jan 4th at 5:41am 2006
Posted by Campaignjunkie on Wed Jan 4th at 6:03am 2006
Campaignjunkie
member
1309 posts
291 snarkmarks
Registered: Feb 12th 2002
Location: West Coast, USA
Occupation: Student
Posted by DrGlass on Wed Jan 4th at 9:30am 2006
so the player can walk around your level, once he goes idle a trigger will teleport him to a spot where the idle PC (playable character) will stare at a trigger_look and activate the camera fly-by. once a person moves the PC it will break the connection to the trigger_look and give controle back to the PC.
I hope this helps/works
DrGlass
member
1825 posts
293 snarkmarks
Registered: Dec 12th 2004
Location: USA
Occupation: 2D/3D digital artist
Posted by wil5on on Wed Jan 4th at 1:13pm 2006
Actually, you could do that without teleporting, I think game_ui has an option to fire something if the players view angle moves by so many degrees.
In fact, you could possibly use a game_ui for the whole thing. It can trigger outputs whenever the player moves or shoots, and you could use these outputs to reset a timer to 5 minutes or whatever. Once the timer runs out, it activates a point_viewcontrol, parented to some sort of moving entity that is continuously flying around the map. I'm not sure if it would work, but its worth a try.
wil5on
member
1733 posts
323 snarkmarks
Registered: Dec 12th 2003
Location: Adelaide

Occupation: Mapper
- My yr11 Economics teacher
Posted by rainbow_lazer on Wed Jan 4th at 4:03pm 2006
one other thing that i've got to consider is that this mod will be running for several weeks in an exhibition setting, and the machine it's on will be powered on and off by an attendant every night and morning, respectively, and will be pretty much unattended by me.
so ideally i'd like things to run as automatically and simply as possible and not have to rely on the attendant beyond starting the machine to get it running.
for this reason i was leaning towards the screen saver; i could just put the bsp file in the startup folder, then it would run automatically [or at least load the main menu] when the machine is booted. if i did this along with the screen saver, all that would need to happen for it to run properly is to boot the machine, since the screen saver would run automatically.
if i use a method like wil5on's -- which is really smart and i actually know of a couple other uses i will put it towards
ps. i realize i'm being super-nitpicky. but what can i say? i've got too much spare time
member
19 posts
2 snarkmarks
Registered: Oct 13th 2005
Location: USA

Occupation: busboy
Posted by DrGlass on Thu Jan 5th at 1:23am 2006
"steam/email/game/hl2.exe -console -map mapname" (there may be more in the command line, just be sure to add -console -map mapname)
then place that in the start up menu. This will automaticaly open steam, run the mod, open the console, and run the map.
DrGlass
member
1825 posts
293 snarkmarks
Registered: Dec 12th 2004
Location: USA
Occupation: 2D/3D digital artist
Posted by wil5on on Thu Jan 5th at 1:26am 2006
You could set up some sort of script to start the game and load the map on startup. A batch file to start up Steam then open HL2 with the map should do it.
If you use a screen saver, it could get a bit messy... screen savers and games generally dont get along too well.
wil5on
member
1733 posts
323 snarkmarks
Registered: Dec 12th 2003
Location: Adelaide

Occupation: Mapper
- My yr11 Economics teacher
Posted by DrGlass on Thu Jan 5th at 4:04am 2006
DrGlass
member
1825 posts
293 snarkmarks
Registered: Dec 12th 2004
Location: USA
Occupation: 2D/3D digital artist
Posted by rainbow_lazer on Thu Jan 5th at 4:06am 2006
member
19 posts
2 snarkmarks
Registered: Oct 13th 2005
Location: USA

Occupation: busboy
Posted by rainbow_lazer on Thu Jan 5th at 9:27pm 2006
i've been playing around with the game_ui triggers, but i haven't been able to get it to work so far. i'd like to tie it in with a timer, so if the player is idle for a time, an event will take place [playing the demo]
i tried outputting to an explosion just to test and see how the PressedForward, Left, Right, XAxis, and YAxis behaved, but i couldn't get anything to activate!
my FOV was -1, and i tried it with and without the flags checked. any thoughts?
all the advice so far has been amazing! thanks again
member
19 posts
2 snarkmarks
Registered: Oct 13th 2005
Location: USA

Occupation: busboy
Posted by wil5on on Fri Jan 6th at 1:01am 2006
You have to trigger the game_ui first so it considers the player "on".
XAxis and YAxis can be used to output numbers corresponding to player movement keys, eg. theyll output -1 on XAxis if the player moves left. These will probably be easier than the Pressed* outputs, since youll have less outputs to put into your ui. I dont know about timers, but I'm sure theres an entity to give a delay. Look at the logic_ entities.
wil5on
member
1733 posts
323 snarkmarks
Registered: Dec 12th 2003
Location: Adelaide

Occupation: Mapper
- My yr11 Economics teacher
Posted by Campaignjunkie on Fri Jan 6th at 9:53pm 2006
Campaignjunkie
member
1309 posts
291 snarkmarks
Registered: Feb 12th 2002
Location: West Coast, USA
Occupation: Student
Posted by rainbow_lazer on Sat Jan 7th at 4:17am 2006
i started to switch it to reset a logic_timer, but it was acting strangely [constantly triggering an explosion] i didnt have enough time to mess around with it though.
member
19 posts
2 snarkmarks
Registered: Oct 13th 2005
Location: USA

Occupation: busboy
Posted by wil5on on Sat Jan 7th at 6:37am 2006
wil5on
member
1733 posts
323 snarkmarks
Registered: Dec 12th 2003
Location: Adelaide

Occupation: Mapper
- My yr11 Economics teacher
Snarkpit v6.1.0 created this page in 0.0164 seconds.

