Misc === Color codes --- | Name | Code | Example | |------------|------|---------| | Black | ^0 | ^0Foo | | Red | ^1 | ^1Foo | | Green | ^2 | ^2Foo | | Yellow | ^3 | ^3Foo | | Dark Blue | ^4 | ^4Foo | | Light Blue | ^5 | ^5Foo | | Pink | ^6 | ^6Foo | | White | ^7 | ^7Foo | | Grey | ^8 | ^8Foo | | Brown | ^9 | ^9Foo | '^8' and '^9' can be set to any RGB value using the following dvars: | Code | Dvar | Example | |------|--------------------|------------------------------------| | ^8 | g_teamcolor_Allies | set g_teamcolor_Allies 0.4 0.2 0 1 | | ^9 | g_teamcolor_Axis | set g_teamcolor_Axis 0 0.5 0 1 | Format is 'R G B A' where 'R', 'G', and 'B' are values between 0 and 1. Note: 'A' is ignored (always forced to '1'). Buttons --- | Name | Bind | |------------------|---------------| | R3 | BUTTON_RSTICK | | L3 | BUTTON_LSTICK | | Select | BUTTON_BACK | | Start | BUTTON_START | | R1 | BUTTON_RSHLDR | | L1 | BUTTON_LSHLDR | | R2 | BUTTON_RTRIG | | L2 | BUTTON_LTRIG | | X | BUTTON_A | | Circle | BUTTON_B | | Triangle | BUTTON_Y | | Square | BUTTON_X | | Dpad up | DPAD_UP | | Dpad down | DPAD_DOWN | | Dpad left | DPAD_LEFT | | Dpad right | DPAD_RIGHT | Sounds --- Plays the sound when you open the menu: togglemenu; togglemenu These are the same as above, but louder: togglemenu; openmenu popup_leavegame; togglemenu togglemenu; openmenu ingame_controls; togglemenu You can also use the 'snd_playLocal' command to play sound effects. See 'SOUNDS.txt' for all the sound effects. Memory reset --- Useful if you want to clear the memory without restarting the game. snd_playlocal mp_level_up; wait 10; map_restart This causes a memory overflow, and it makes 'default_mp.self' the primary process. (if TMAPI detaches, make sure 'default_mp.self' is a debug SELF too.) Modding classes --- To mod a class, you use the following command: setPlayerData "customClasses" [index] [key] [value] * index is the class you want to change, starting at 0. So to mod the first class, you'd set index to 0. * key is the actual class value you want to change * value is the value of what the key should be set to, this can sometimes be in a different format. Class name --- To set a class name, you use "name" as key and the value being the name you want to set the class to. This name can include colours and the bytes that show controller buttons, joysticks, etc. Example: setPlayerData "customClasses" 0 "name" "^1Special ^2Class ^3Name" Class weapon --- To set the class weapons, you use "weaponSetups" as key. The value is in the format of [type] "weapon" [weapon] * 'type' is to change primary or secondary weapons: * 0 for primary * 1 for secondary * 'weapon' (not the first one) is the weapon name you want to set Example: setPlayerData "customClasses" 0 "weaponSetups" 0 "weapon" "cheytac_fmj_xmags" Finalizing --- As with everything that uses 'setPlayerData', stats have to be finalized. You can do this using the 'uploadStats' command: uploadStats Example --- setPlayerData "customClasses" 0 "name" "^1Modded Class 1" setPlayerData "customClasses" 1 "name" "^2Modded Class 2" setPlayerData "customClasses" 2 "name" "^3Modded Class 3" setPlayerData "customClasses" 0 "weaponSetups" 0 "cheytac_fmj_xmags" setPlayerData "customClasses" 1 "weaponSetups" 1 "deserteaglegold" setPlayerData "customClasses" 2 "weaponSetups" 1 "deserteaglegold" uploadStats