Jump to content

Home

ending an sp level


patchx

Recommended Posts

Well, you need to play closing credits to end the level (aka take you back to main menu). The closing credits text is in credits.sp under base/strip (I suggest you edit it and make it shorter :p )

 

In your map, create ref_tag entity, give it cam1end targetname and point it at info_notnull. (Pick a nice spot in your map for that). Then you can just run this script by target_scriptrunner or thru another script.

 

//Generated by BehavEd

camera ( /*@CAMERA_COMMANDS*/ FADE, < 0.000 0.000 0.000 >, 0.000, < 0.000 0.000 0.000 >, 1.000, 1000 );
wait ( 1200.000 );
camera ( /*@CAMERA_COMMANDS*/ ENABLE );
set ( "SET_HUD", "true" );
camera ( /*@CAMERA_COMMANDS*/ PAN, $tag( "cam1end", ANGLES)$, < 0.000 0.000 0.000 >, 0 );
camera ( /*@CAMERA_COMMANDS*/ MOVE, $tag( "cam1end", ORIGIN)$, 0 );
camera ( /*@CAMERA_COMMANDS*/ FADE, < 0.000 0.000 0.000 >, 1.000, < 0.000 0.000 0.000 >, 0.000, 1000 );
wait ( 1000.000 );
set ( "SET_END_SCREENDISSOLVE", "true" );
wait ( 1000.000 );
set ( "SET_CLOSINGCREDITS", "true" );

 

I made this one for my own purposes so you might wanna tweak it as you wish.

Link to comment
Share on other sites

yeah i made one similiar to that by just ripping bits out of the last raven cinematic script but the camera stays on the player it doesnt go to the star view starwarsy cliche thingo

 

i think i need to learn to manipulate camera things

 

 

-patch

Link to comment
Share on other sites

if ur not packing it into your level yet just put it in a folder called scripts in the base directory

 

when u refer to it with a scriptrunner you dont need any directory structure that way just type the name of your script

 

-patch

Link to comment
Share on other sites

Originally posted by patchx

yeah i made one similiar to that by just ripping bits out of the last raven cinematic script but the camera stays on the player it doesnt go to the star view starwarsy cliche thingo

 

The script I gave you works perfectly. I tested it. Don't forget, you need to make a ref_tag. You also need to ENABLE camera or it won't move.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...