NOTICE: The wiki has undergone updates and everything is running smoothly. I am still working on the CSS so there are a few minor visual kinks.

Client CFG Scripts

From JAWiki

Jump to: navigation, search

Client CFG scripts are scripts that are useful to all players. This is as opposed to Admin CFG Scripts which are used to perform admin duties, and Server CFG Scripts which are used by the server itself. For information on making scripts or how they work, see the Console Scripting page.

Contents

[edit] Hide HUD and Gun

This script will hide the HUD and your gun from the screen, which comes in handy for screenshots and recording videos, among other things. A screenshot script is also available on this page which builds upon this.

// Toggle HUD and Gun - by Jah
seta hud_off 	"set hud_toggle vstr hud_on; 	seta cg_draw2d 0; cg_drawStatus 0; cg_drawgun 0"
seta hud_on 	"set hud_toggle vstr hud_off; 	seta cg_draw2d 1; cg_drawStatus 1; cg_drawgun 1"
seta hud_toggle "vstr hud_off"
bind X "vstr hud_toggle"

[edit] Screenshot

This script takes a screenshot without the HUD or your gun showing. It uses the HUD toggle script shown above.

// Screenshot - by Jah
seta camera "vstr hud_off; wait 4; screenshot; wait; vstr hud_on"
bind X "vstr camera"


[edit] Quick Saber Switch

This script will allow you with a single button to quickly switch between single saber, dual sabers, and a staff.

seta switchSaber  "vstr saber_1"
seta saber_1 "set switchSaber  vstr saber_2; saber single_9"
seta saber_2 "set switchSaber  vstr saber_3; saber dual_3"
seta saber_3 "set switchSaber  vstr saber_1; saber single_9 single_9;"
bind X "switchSaber"

[edit] Cinematic View

This simple script allows you to toggle cinematic view (thirdpersoncameradamp).

// Cinematic view -  by Jah
set view1 "set cinematicview vstr view2; cg_thirdpersoncameradamp 0.0; echo Cinematic View"
set view2 "set cinematicview vstr view1; cg_thirdpersoncameradamp 0.3; echo Default View"
set cinematicview "vstr view1"
bind X "vstr cinematicview"


[edit] Demo Recording

This script provides demo recording functionality with a single button and is helpful for making game videos. Press the button once to start recording to a new file in the /demos folder within whatever mod you're currently running (otherwise in base). Text will appear on your screen indicating that recording has begun, and the filename. Press the button again to stop recording. If you press the button to record again, a new file will be created automatically. Up to 9999 demos can be recorded before the filename will loop back to 0001 and overwrite your first demo, so just move the demo files somewhere else when/if you get that many.


Alternatively, you have the option of downloading this script as a file that is ready to go, just drop it in your base folder.

Download: JahDemoRecord.cfg

// Record Demo - by Jahandar
seta startRecord "play sound/misc/menu1; g_synchronousclients 1; record; g_synchronousclients 0; set toggleRecorder vstr stopRecord"
seta stopRecord  "play sound/misc/menu1; stoprecord; set toggleRecorder vstr startRecord"
set toggleRecorder "vstr startRecord"
bind X "vstr toggleRecorder"


[edit] Demo Playback

Coming Soon! This script provides better playback control for recorded game demos. --Jahandar 15:27, 12 January 2007 (PST)