Help me Tommy

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
User avatar
small_sumo
Lieutenant General
Posts: 953
Joined: Mon Jul 01, 2002 4:17 pm
Contact:

Help me Tommy

Post 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
Image

www.smallsumo.tk

Yeah Truth above Honor Man ;)
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post 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 :?
Image
User avatar
small_sumo
Lieutenant General
Posts: 953
Joined: Mon Jul 01, 2002 4:17 pm
Contact:

Post by small_sumo »

Hmmmmm I might have to send it to Tom.
Image

www.smallsumo.tk

Yeah Truth above Honor Man ;)
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

lol poor Tom :roll:
Image
User avatar
small_sumo
Lieutenant General
Posts: 953
Joined: Mon Jul 01, 2002 4:17 pm
Contact:

Post by small_sumo »

True, your lucky to get a break from me, I will have to think up more problems lol.

:D
Image

www.smallsumo.tk

Yeah Truth above Honor Man ;)
User avatar
small_sumo
Lieutenant General
Posts: 953
Joined: Mon Jul 01, 2002 4:17 pm
Contact:

Post 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
Image

www.smallsumo.tk

Yeah Truth above Honor Man ;)
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

cut

Post 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.
Tom Trude,

Image
User avatar
small_sumo
Lieutenant General
Posts: 953
Joined: Mon Jul 01, 2002 4:17 pm
Contact:

Post by small_sumo »

Is that bomber line correct? I want to start a bomber at the same time.

??

Thanks guys.

:)
Image

www.smallsumo.tk

Yeah Truth above Honor Man ;)
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

yes

Post 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
Tom Trude,

Image
Post Reply