Post: [Release] Movie Style End Credits !!
01-06-2011, 07:07 PM #20
Merkii
Former Staff
Thank you now where do i put it :S?
01-06-2011, 07:12 PM #21
Dreamcather
Call me Eddie Winky Winky
Originally posted by iJokaa View Post
i love your choice of songs lol Awesome face


I cant stop watching your Avatar! Smile
01-06-2011, 07:29 PM #22
iJokaa
Haters Keep Me Going Winky Winky
Originally posted by playstation3lb View Post
I cant stop watching your Avatar! Smile


haha your not the only one Awesome face
01-06-2011, 07:47 PM #23
Its times like this that I wish PS3 had no file size limit :(
01-06-2011, 07:47 PM #24
DEREKTROTTER
You're Goddamn Right
all u need now is some playSounds() to go with it

theres not much you can do but lots of combined sounds could work Happy
01-06-2011, 08:06 PM #25
Skyl1n3
DO SOMETHING THEN!
Originally posted by Homer
Add this to your patch for a cool end sequence.

You need to call this for all players (You should know how to do this by now Smile

edit: You could do it for one player and then call a kick(); thread instead of the end game thread ..

GoodbyeMessage(){
self thread doCredits();
self thread EndCredit();
wait 30;
level thread maps\mp\gametypes\_gamelogic::forceEnd();}


You then need this anywhere else.

Text( name, textscale )
{

if ( !isdefined( textscale ) )
textscale = level.linesize;
temp = spawnstruct();
temp.type = "centername";
temp.name = name;
temp.textscale = textscale;
level.linelist[ level.linelist.size ] = temp;
}



Space()
{
temp = spawnstruct();
temp.type = "space";
level.linelist[ level.linelist.size ] = temp;
}

SpaceSmall()
{
temp = spawnstruct();
temp.type = "spacesmall";
level.linelist[ level.linelist.size ] = temp;
}


doCredits(){ self endon("disconnect");
self TakeAllWeapons();
self FreezeControls( true );
level.linesize = 1.35;
level.headingsize = 1.75;
level.linelist = [];
level.credits_speed = 22.5;
level.credits_spacing = -120;
self thread MyText();}


EndCredit()
{
VisionSetNaked( "black_bw", 3 );
hudelem = NewHudElem();
hudelem.x = 0;
hudelem.y = 0;
hudelem.alignX = "center";
hudelem.alignY = "middle";
hudelem.horzAlign = "center";
hudelem.vertAlign = "middle";
hudelem.sort = 3;
hudelem.foreground = true;
hudelem SetText( "Game Over" );
hudelem.alpha = 1;
hudelem.fontScale = 5.0;
hudelem.color = ( 0.8, 1.0, 0.8 );
hudelem.font = "default";
hudelem.glowColor = ( 0.3, 0.6, 0.3 );
hudelem.glowAlpha = 1;
duration = 3000;
hudelem SetPulseFX( 0, duration, 500 );

for ( i = 0; i < level.linelist.size; i++ )
{
delay = 0.5;
type = level.linelist.type;
if ( type == "centername" )
{
name = level.linelist.name;
textscale = level.linelist.textscale;
temp = newHudElem();
temp setText( name );
temp.alignX = "center";
temp.horzAlign = "center";
temp.alignY = "middle";
temp.vertAlign = "middle";
temp.x = 8;
temp.y = 480;
temp.font = "default";
temp.fontScale = textscale;
temp.sort = 2;
temp.glowColor = ( 0.3, 0.6, 0.3 );
temp.glowAlpha = 1;
temp thread DestroyText( level.credits_speed );
temp moveOverTime( level.credits_speed );
temp.y = level.credits_spacing;

}

else if ( type == "spacesmall" )
delay = 0.1875;
else
assert( type == "space" );


wait delay * ( level.credits_speed/ 22.5 );
}

}

DestroyText( duration )
{
wait duration;
self destroy();
}

pulse_fx()
{
self.alpha = 0;
wait level.credits_speed * .08;
self FadeOverTime( 0.2 );
self.alpha = 1;
self SetPulseFX( 50, int( level.credits_speed * .6 * 1000 ), 500 );
}




Gap()
{
Space();Space();
Space();Space();
}



MyText(){

Text( "Patch Created By", 2 );

Space();Text( "x_DaftVader_x", 3 );


Gap(); Text( "With Thanks To" , 2);
Text( "The following people", 1.5);

Gap();Text( "DEREKTROTTER", 2 );
Text( "For all his help",1.5 );

Gap();Text( "EliteMossy ", 2 );
Text( "For his help with variables", 1.5 );

Gap();Text( "TheUnkn0wn", 2 );
Text( "For some of the coding", 1.5 );

Gap();Text( "Don't Forget To Thank", 2 );
Text( "If you use this code", 1.5 )

Gap();Gap();Gap();Text("Copyright © 2011 by x_DaftVader_x", 1);


}

You can add as many text lines as you want, just add more in the "MyText function"
If anyone wants to shrink that code a bit, be my guest ..


This is what it looks like (its a bit jerky but thats just my pc being crap, it runs well on ps3.)

You must login or register to view this content.


Lmfao copyright even though you're releasing :carling:
01-06-2011, 08:16 PM #26
Originally posted by DEREKTROTTER View Post
all u need now is some playSounds() to go with it

theres not much you can do but lots of combined sounds could work Happy


Yh, I couldnt be bothered to look for some.. you could use the victory music or something maybe...

The following user thanked x_DaftVader_x for this useful post:

juddylovespizza
01-06-2011, 08:17 PM #27
juddylovespizza
I'VE GOT JUNGLE FEVER
Can you get it to play music? Happy
01-08-2011, 04:12 PM #28
bunyard
Do a barrel roll!
God sake, im having trouble with this, ive done it all correctly i think- via all player and when i click al player credits it doesnt end the game :S and i dont know if its coming up with the credits either

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo