Page 1 of 1

Help me Tommy

Posted: Wed Jun 04, 2003 6:50 am
by small_sumo
I got the camera working great and it's so hot I'm really stoked. But I need script to get me of the camera and back into combat.
I dont care if the bots run off and fight it adds to the spectacle, so that bit is cool.
Also on another subject jv helped me get a tank into it and its way funny watching it blow them away...... hehehehe.

So here is what I have done.



level.camera_speed = 1.5
thread camera_mover

end

camera_mover:

$camera_trigger waittill trigger
local.player = parm.other


drawhud 0 // clear the screen

//stop the players

//$player nodamage
//$player hide
//freezeplayer

//setup our camera

$watch_camera fov 80 2
$watch_camera speed (level.camera_speed)
$watch_camera follow $camera_path $camera_target
forcemusic aux3 aux3 // plays music listed in music/camera_test.mus
wait 1

//Cue the movie

cuecamera $watch_camera
wait 20




end

Posted: Wed Jun 04, 2003 7:08 am
by jv_map
Add

cueplayer

(after wait 20) to switch back to regular view. To stop footstep sounds, I think you can type 'cinematic' when the 'movie' starts; 'noncinematic' when it ends.

I'm not sure how all this behaves when new players join :?

Posted: Wed Jun 04, 2003 7:20 am
by small_sumo
Hmmmmm I might have to send it to Tom.

Posted: Wed Jun 04, 2003 7:24 am
by jv_map
lol poor Tom :roll:

Posted: Wed Jun 04, 2003 8:52 am
by small_sumo
True, your lucky to get a break from me, I will have to think up more problems lol.

:D

Posted: Wed Jun 04, 2003 2:09 pm
by small_sumo
Ok I seamed to have worked it out, I looked at the get out of tank code in the tank battle maps and I noticed cuecamera in toms code and cueplayer in the get out of tank code. So I added cue player and now it works, though I havent checked it for errors or with more than one human player.

Thing is I want to start a bomber run at the same time, and what I have duznt seam to work.

camera_mover:

$camera_trigger waittill trigger
local.player = parm.other

thread global/bomber.scr::bomb 4
thread global/bomber.scr::bomb 5


drawhud 0 // clear the screen

//stop the players

//$player nodamage
//$player hide
//freezeplayer

//setup our camera

$watch_camera fov 80 2
$watch_camera speed (level.camera_speed)
$watch_camera follow $camera_path $camera_target
forcemusic aux3 aux3 // plays music listed in music/camera_test.mus
wait 1

//Cue the movie

cuecamera $watch_camera
wait 10

cueplayer


end

cut

Posted: Thu Jun 05, 2003 12:10 am
by tltrude
$watch_camera cut


The above line will also stop the camera view. There are some interesting camera things in the TOW mission scripts of Spearhead. Someone said there is a manual for cameras in the Spearhead sdk, but I haven't found it yet.

Posted: Thu Jun 05, 2003 2:30 am
by small_sumo
Is that bomber line correct? I want to start a bomber at the same time.

??

Thanks guys.

:)

yes

Posted: Thu Jun 05, 2003 7:19 am
by tltrude
Yes, the bombers will start ones second before the camera. I finally found the camera tutroial in the Spearhead docs. It was part of a general tutorial on scripting, so I extracted just the camera part. Here is the html page in a zip.

http://pages.sbcglobal.net/tltrude/Temp ... torial.zip