Credits

by ChickenMobile · Uploaded Apr 02, 2012

Credits

Downloads: 87

Rating: (0 votes)

Description

A Credit script that works with an instance to display your credits

Comments

Sign in to comment.

ChickenMobile • Apr 02, 2012 • #43943
2,460 posts

A Credit script that works with an instance to display your credits

File Name: portal 2.7z
File Size: 2.43 KiB
Click here to download Credits

josepezdj • Apr 02, 2012 • #43944
2,386 posts

This looks very useful chicken! I'll look into it this evening!

Thank you!

Jimo • Apr 02, 2012 • #43945
29 posts

Awesome, I'll give this a try.

protoborg • Apr 08, 2012 • #43946
288 posts

How exactly do you implement these things?

ChickenMobile • Apr 09, 2012 • #43947
2,460 posts

protoborg wrote:
How exactly do you implement these things?

I gave you an instance with the download so all you need to do is put in the instance and trigger it the way you would usually do through any instance.

  1. Create a func_instance and in the name value put anything you like. Set the VMF filename to: chicken_instances/credits.vmf
  2. Create your trigger/button/something that will activate your credits
  3. Connect an output from your trigger/button/something by clicking on the arrow for a list of outputs (Target Input / Via this Input) given kindly by the func_instance_io. It goes something like this: OnPressed -> NameOfTheInstance -> instance:DisplayCredits;Trigger

In your script you need to put the relevant credits in with all the correct delays you need. If you don't want the game to end once the credits finish rolling, you will need to edit the script and remove or comment out the:

   // Credits are finished. Disconnect the player
   if(currentLine > CREDITS.len())
   {
      EntFire( "@clientcommand", "Command", "Disconnect", 2.0)   
   }

at the end of the script and then probably make the fade 'unfade' or 'reverse fade'.

Advertisement
Registered users don’t see ads! Register now!