• Do not use Works in Progress as a way of avoiding the releases system! Works in Progress can be used for sharing early betas and for getting suggestions for improvement. Releases of finished content are not allowed in this forum! If you would like to submit a finished addon, click here for instructions on how to do so.

ControlPanel.txt (Version 1.7)

Do you find this useful?

  • Yeah, I think I'll use it quite often.

    Votes: 0 0.0%
  • Meh, a little. I can easily make all this myself, but thanks for eliminating the trouble of me havin

    Votes: 0 0.0%
  • No, not really. I don't think I'll actually use any of these commands.

    Votes: 0 0.0%
  • Ugh, please. I don't think anyone's going to want to use this at all. The commands are pointless, so

    Votes: 0 0.0%
  • OMG HOW DO U AD TXT FIELS O.O

    Votes: 0 0.0%

  • Total voters
    1
Status
Not open for further replies.

clairebun

Community Noise Maker
Sonic Team Junior
What is this, you ask? It's a multisource text script used solely for the purpose of convenience in netgames. Technically, I just use it for myself, but since I'm already making it, I may as well show it to the public. This is currently used for:

-Switching characters in a mere second. (Also includes a "Sonic Heroes" script, for those using SRB2JTE. ;) )
-Saying commonly used messages (but too long to type) in CTF with the press of a button.
-Switching between third and first person view, as well as mouse aim.
-Analog Toggling (I doubt any of you would use this. :roll: )
-Already loaded bind-key snapshot.
-A help button, for your convenience. ^_^
-More crap.

Currently working on:
-Sonic R replay-type camera. Works, but very buggy. If anyone can help, go ahead and speak up.
-Fixing Single Player's Sonic Heroes script.

Will do in the future (or someone else, if they feel like it):

-Add new character switch buttons when SRB2 JTE has those characters added.
-Make a batch file for the final release; will execute the code automatically, and some other files. Probably a music pack or something.
-Organize the buttons in a less complex way. Already did so, but maybe I can try and organize it more sometime.
-Improvise some of the commands. Done so, but again, see if I can do it more.
-Add "Devmode" to the character switch buttons; this way it'll work in single player.

Copy this code (and edit as you feel necessary) into a text document and use the "exec" command in console:
Code:
//Introduction Text
// ---------------------------------------------------------
echo Control Panel script (V 1.7) organized by Blue Warrior. Press Q for help.

// Aliases - don't touch unless you know what you're doing.
// ---------------------------------------------------------

// Switch View aliases.
alias camerachange "chasecam 1; chasecam2 1; bind j camerachange2"
alias camerachange2 "chasecam 0; chasecam2 0; bind j camerachange;"

// Analog aliases.
alias analogon "analog on; bind home analogoff"
alias analogoff "analog off; bind home analogon"

// Advanced Camera (This is still being constructed; use sparingly.)
alias SonicR "bind del SonicR2; camera; wait 90; camera2; wait 90; camera3; wait 90; SonicR"
alias SonicR2 "cam_still off; cam_height 20; cam_dist 50; cam_rotate 0; cam_speed 0.25; bind del SonicR"
alias camera "cam_still off; cam_speed 1; cam_height 500; cam_dist 600; cam_rotate 140; wait 5; cam_speed 0"
alias camera2 "cam_still on; cam_speed 0.25; cam_height 50; cam_dist 300; cam_rotate 0"
alias camera3 "cam_still off; cam_speed 1; cam_height 50; cam_dist 0; cam_rotate 0"

//Character Switch Aliases (Hoo, boy, this is gonna take up a lot of lines O_o)
// ------------------------

//Switch Modes
alias charswitch "maxbots 3; bind 1 sonicteam1A; bind 2 mechateam1A; bind 3 otherteam1A; bind 0 charswitch2; bind 4 echo Slot is empty.; echo Switched to Sonic Heroes single player. (Broken - do not use.)" 
alias charswitch2 "bind 1 sonicteam1B; bind 2 mechateam1B; bind 3 otherteam1B; bind 0 charswitch3; echo Switched to Sonic Heroes multiplayer."
alias charswitch3 "bind 1 skin Sonic; bind 2 skin Tails; bind 3 skin Knuckles; bind 4 skin Amy; bind 5 skin Shadow; bind 6 skin MetalSonic; bind 7 echo Slot is empty; bind 0 charswitch; echo Switched to normal character mode."
//Team Command Base
alias sonicteam1 "color blue; skin Sonic; kick allbots; wait 2; addbot tails; wait 4; addbot knuckles"
alias sonicteam2 "skin Tails; color orange; kick allbots; wait 2; addbot Sonic; wait 4; addbot Knuckles"
alias sonicteam3 "skin Knuckles; color red; kick allbots; wait 2; addbot Sonic; wait 4; addbot Tails"
alias mechateam1 "skin MetalSonic; color dark_blue; kick allbots; wait 2; addbot TailsDoll; wait 4; addbot MechaKnux"
alias mechateam2 "skin TailsDoll; color orange; kick allbots; wait 2; addbot MetalSonic; wait 4; addbot MechaKnux"
alias mechateam3 "skin MechaKnux; color red; kick allbots; wait 2; addbot TailsDoll; wait 4; addbot MetalSonic"
alias otherteam1 "skin Amy; color red; kick allbots; wait 2; addbot Shadow; wait 4; addbot Shirobon"
alias otherteam2 "skin Shadow; color red; kick allbots; wait 2; addbot Amy; wait 4; addbot Shirobon"
alias otherteam3 "skin Shirobon; color blue; kick allbots; wait 2; addbot Amy; wait 4; addbot Shadow"
//Single Player Teams
alias sonicteam1A "splitscreen on; sonicteam1; bind 1 sonicteam2A; splitscreen off"
alias sonicteam2A "splitscreen on; sonicteam2; bind 1 sonicteam3A; splitscreen off"
alias sonicteam3A "splitscreen on; sonicteam3; bind 1 sonicteam1A; splitscreen off"
alias mechateam1A "splitscreen on; mechateam1; bind 2 mechateam2A; splitscreen off"
alias mechateam2A "splitscreen on; mechateam1; bind 2 mechateam3A; splitscreen off"
alias mechateam3A "splitscreen on; mechateam1; bind 2 mechateam1A; splitscreen off"
alias otherteam1A "splitscreen on; otherteam1; bind 3 otherteam2A; splitscreen off"
alias otherteam2A "splitscreen on; otherteam2; bind 3 otherteam3A; splitscreen off"
alias otherteam3A "splitscreen on; otherteam3; bind 3 otherteam1A; splitscreen off"
//Multiplayer Teams
alias sonicteam1B "sonicteam1; bind 1 sonicteam2B"
alias sonicteam2B "sonicteam2; bind 1 sonicteam3B"
alias sonicteam3B "sonicteam3; bind 1 sonicteam1B"
alias mechateam1B "mechateam1; bind 2 mechateam2B"
alias mechateam2B "mechateam2; bind 2 mechateam3B"
alias mechateam3B "mechateam3; bind 2 mechateam1B"
alias otherteam1B "otherteam1; bind 3 otherteam2B"
alias otherteam2B "otherteam2; bind 3 otherteam3B"
alias otherteam3B "otherteam3; bind 3 otherteam1B"
//Bind Commands.
// ---------------------------------------------------------

//Help Command (Oh, god, more large amounts of text)
bind q "echo Commands added from control panel:; echo - -- Victory phrase (edit before using); echo ] -- CTF, ask for Tails; echo / -- CTF, say you will fly others; echo ] -- CTF, request for backup; echo p -- Tell others to quit flooding the message box (srsly); echo ; echo 1 through 6 -- Character Change; echo 0 -- Switch to Sonic Heroes Character Change mode; echo ; echo Ins -- Screenshot of Game; echo Del -- SonicR Camera (Not fully functional); echo Home -- Analog; echo End -- Exit Current Game; echo J -- Chasecam and Mouse aim; echo; echo Any and all questions related to this mod should be answered at the appropriate place and time."

// Quick messages for ctf.
bind - "say I am the Blue Warrior!"
bind ] "sayteam I need air support"
bind \ "sayteam I'll provide air support"
bind [ "sayteam I need backup!"
bind p "say Quit flooding the message box."

// Character changes.

bind 1 "skin Sonic"
bind 2 "skin Tails"
bind 3 "skin Knuckles"
bind 4 "skin Amy"
bind 5 "skin Shadow"
bind 6 "skin MetalSonic"
bind 7 "echo Slot open. Insert your own! :)"
bind 0 charswitch

// Change View and Mouselook

bind j camerachange

// Various Commands

bind ins screenshot
bind end exitgame
bind home "analogon"

// Advanced Cameras
bind del "echo This addition is technically flawed. Press DELETE again to initialize anyway.; bind del SonicR" 



//Credits
//Blue Warrior (Obviously, I'm the one who made it. :\ )
//Flame_the_hedgehog (Improving the "Change View" command - I also used his "Sonic Heroes" txt as a reference.)

I'm also up for new ideas, critique, and help. If anyone wants to contribute to this and/or help out on existing commands (Sonic R cam, mouselook, etc.), go ahead, and I'll add that code and your name to the credits.

And if you see bugs, don't hesitate to tell me. Unless I already knew about it, your bug finding will help improve it greatly.


Now for the feedback.
 
I think this a great idea...

Cept I have a Diffrent camera options... instead of having 2 buttons... you can have 1 button changing the mode

Blue warrior said:
// Change View and Mouselook

bind j "chasecam 0"
bind k "chasecam 1"

my Autoexec.cfg said:
//Camera options: pressing the # 2 button makes the camera go into 3rd person, and then pressing again will make you go into 1st person great in Match mode (they work with both the first player and second player (chasecam = 1st player, chasecam2 = 2nd player))
alias camerachange "chasecam 1; chasecam2 1; bind 2 camerachange2"
alias camerachange2 "chasecam 0; chasecam2 0; bind 2 camerachange;"
bind 2 camerachange

you can configure the Bind button
(hey, i think we know alot about this stuff, i could help you out...)
 
Code:
// Advanced Cameras (Currently doesn't work. Any help would be appreciated.)
bind del "chasecam 1"
bind del "cam_height 600"
bind del "cam_dist 600"
bind del "cam_rotate 135"
bind del "cam_speed 0"
bind del "wait 30" "cam_speed 0.25"
bind del "wait 30" "cam_rotate 90"
bind del "wait 30" "cam_height 20"
bind del "wait 30" "cam_dist 300"
bind del "wait 30" "cam_still on"
bind del "wait 90" "chasecam 0"
}
bind home "chasecam 0"
Should be:
Code:
// Advanced Cameras (Currently doesn't work. Any help would be appreciated.)
bind del "chasecam 1"
bind del "cam_height 600"
bind del "cam_dist 600"
bind del "cam_rotate 135"
bind del "cam_speed 0"
bind del "wait 30; cam_speed 0.25"
bind del "wait 30; cam_rotate 90"
bind del "wait 30; cam_height 20"
bind del "wait 30; cam_dist 300"
bind del "wait 30; cam_still on"
bind del "wait 90; chasecam 0"
bind home "chasecam 0"
No problem. Just remember to put semicolons after each command in a bind or alias.
 
Heh, thanks. I already found out a few moments ago, though. ;)

Anyway, the script has been minorly updated. I've made use of the alias command (now you only have to press J to switch views), and the Sonic R camera is in production, but not ready to be used. The "wait" command apparently seems to be screwing with other console commands, including talking. >_> I think I know the problem, so that'll be fixed soon.

EDIT: Yikes, only sent a third of it. O_o
 
Blue Warrior said:
Heh, thanks. I already found out a few moments ago, though. ;)

Anyway, the script has been minorly updated. I've made use of the alias command (now you only have to press J to switch views), and the Sonic R camera is in production, but not ready to be used. The "wait" command apparently seems to be screwing with other console commands, including talking. >_> I think I know the problem, so that'll be fixed soon.

EDIT: Yikes, only sent a third of it. O_o

well... i have an idea...
you can use Cam_still in the console, to hold your camera angle... and then every 5 seconds or so... it would switch... like for example:

cam_rotate <#>; wait .5; Cam_height <#>; wait .5; cam_dist; wait .5; Cam_still on
 
Flame_the_hedgehog said:
Blue Warrior said:
Heh, thanks. I already found out a few moments ago, though. ;)

Anyway, the script has been minorly updated. I've made use of the alias command (now you only have to press J to switch views), and the Sonic R camera is in production, but not ready to be used. The "wait" command apparently seems to be screwing with other console commands, including talking. >_> I think I know the problem, so that'll be fixed soon.

EDIT: Yikes, only sent a third of it. O_o

well... i have an idea...
you can use Cam_still in the console, to hold your camera angle... and then every 5 seconds or so... it would switch... like for example:

cam_rotate <#>; wait .5; Cam_height <#>; wait .5; cam_dist; wait .5; Cam_still on

Well, I mean, it does what it's supposed to do perfectly fine. But if you try to use talk, it delays and adds the name of the next alias at the end of the message you typed. It also makes it difficult to execute any other console commands outside the SonicR function. >_>
 
Alright, thanks.

The script has been updated! I've rearranged some buttons and added a whole bunch of new stuff.

New Thingies:

-More organized
-Help button (Q)
-Echo comments
-Mouselook and chasecam in one button! Wow! o.o
-Sonic Heroes character script (SRB2JTE exclusive)

Known Bugs:

-First and third button Character switch modes show the entire bind table before executing the command.
-SonicR bug still exists. (I didn't bother to work on it at all. XP )
-"Unknown command" message at beginning of execution of the txt file.

EDIT: Oh, and in case you didn't notice, I put in the "Other Team" Shirobon. That's the skin for my Bomberman wad. No, it isn't finished... yet... ;)
 
Oh sure, reply to his script, but when I give out a useful server cp don't reply at all :|



Could be useful Blue. But I prefer console commands really =3
 
Blue Warrior said:
-Sonic Heroes character script (SRB2JTE exclusive)

I was looking at this... and Said, "Cool, you added a Robot team script"
But there was one notable thing I might consider a Bug :/

I dont seem to see the Tailspickup command after the last bot added...
( wait 6; Tailspickup )

For the speed and power type characters, like if you are switching to sonic or knuckles, you might want to have it off
and for the Flight, you'll need to have it on because you are obviously going to pick up Sonic and knuckles

--------------------------------------------------
EDIT!: IGNORE THE REST OF THE POST! I FAIL AT READING!
(I realized his script said echo, not cecho), Feel free to use the infromation I stated Below

Also, in that Help Command part of the script
Are these, supposed to mean a new line?: --
if they are, you got it all wrong

My FlameServ_special.wad said:
cechoduration 15; cecho "welcome to\*** Flames Public Netgame! ***\make sure to have fun, and follow the rules\\*That Flame makes up rules in each Match*\\Visit the site too!\*LINK REMOVED BY FLAME*\-More stuff soon to come-"

the cechoduration command tells the game how many seconds the message stays (NOT GAME-TICS), If it was Running by Game-tics, it would be a much higher number... So my cecho duration is 15, It would last for 15 seconds
And from the quote above, the "\" is what is used to separate the lines in a cecho script...

Phew... thats enough writing for me now... XD
 
cueball61 said:
Oh sure, reply to his script, but when I give out a useful server cp don't reply at all :|
Think of it this way: I didn't get many replies. =P I think it just needed a more descriptive thread title, as otherwise, threads at first glance won't seem like anything important.
Flame_the_hedgehog said:
Blue Warrior said:
-Sonic Heroes character script (SRB2JTE exclusive)

I was looking at this... and Said, "Cool, you added a Robot team script"
But there was one notable thing I might consider a Bug :/

I dont seem to see the Tailspickup command after the last bot added...
( wait 6; Tailspickup )

For the speed and power type characters, like if you are switching to sonic or knuckles, you might want to have it off
and for the Flight, you'll need to have it on because you are obviously going to pick up Sonic and knuckles

Yeah, I left that out purposefully. Really, I don't prefer bots that are unpassable like gargoyle blocks. =P Besides, bots carrying other people are determined by "botcanflyme," right? ;)
 
Status
Not open for further replies.

Who is viewing this thread (Total: 1, Members: 0, Guests: 1)

Back
Top