|
|
buildable debug
These scripts were designed to help debug buildables. None of it will work
unless you load a map using /devmap for developer mode. Using these scripts will
allow you to autobuild a buildable in order to find issues with it. These
scripts are currently set up to work with the generators, but can easily be used
for any buildable. All you have to do is change the targetnames to point to a
different buildable. This will only work with DeGeneration.
Related commands:
buildabledebug
buildabledebughealth
buildabledebuginc
buildabledebugtarget
This part allows you to use F7 to toggle between building +100 health or -100. You will see a text display in the upper left part of your screen to tell you what it's set to when you hit F7.
//changes from +100/-100 increments
set gdbug+ "BuildableDebugInc 100; echo ^2+100 enabled; set gdbug vstr gdbug-"
set gdbug- "BuildableDebugInc -100; echo ^2-100 enabled; set gdbug vstr gdbug+"
set gdbug "vstr gdbug+"
bind F7 "vstr gdbug"
This part allows you to use F8 to toggle between the Axis Generator or Allies Generator. If you want to use this for another buildable simply change where it says generator_axis and/or generator_allies to the targetname of your buildable.
//toggles axis-allies buildable
set gdbug_axis "BuildableDebugTarget generator_axis; echo ^2Axis generator selected; set gdbug_team vstr gdbug_allies;"
set gdbug_allies "BuildableDebugTarget generator_allies; echo ^2Allies generator selected; set gdbug_team vstr gdbug_axis;"
set gdbug_team "vstr gdbug_axis"
bind F8 "vstr gdbug_team"
This part allows you to set the exact health of a buildable. It's based on a buildable that has 10,000 health like the generators. If you hit F3 the health will go up and when you hit F4 the health will go down.
//raise-lower generator health
//bind f3 "vstr health30"
//bind f4 "vstr health70"
set health00 "BuildableDebugHealth 0;echo ^2Gen @ 0%;bind f4 vstr health10"
set health10 "BuildableDebugHealth 1000;echo ^2Gen @ 10%;bind f3 vstr health00;bind f4 vstr health20"
set health20 "BuildableDebugHealth 2000;echo ^2Gen @ 20%;bind f3 vstr health10;bind f4 vstr health30"
set health30 "BuildableDebugHealth 3000;echo ^2Gen @ 30%;bind f3 vstr health20;bind f4 vstr health40"
set health40 "BuildableDebugHealth 4000;echo ^2Gen @ 40%;bind f3 vstr health30;bind f4 vstr health50"
set health50 "BuildableDebugHealth 5000;echo ^2Gen @ 50%;bind f3 vstr health40;bind f4 vstr health60"
set health60 "BuildableDebugHealth 6000;echo ^2Gen @ 60%;bind f3 vstr health50;bind f4 vstr health70"
set health70 "BuildableDebugHealth 7000;echo ^2Gen @ 70%;bind f3 vstr health60;bind f4 vstr health80"
set health80 "BuildableDebugHealth 8000;echo ^2Gen @ 80%;bind f3 vstr health70;bind f4 vstr health90"
set health90 "BuildableDebugHealth 9000;echo ^2Gen @ 90%;bind f3 vstr health80;bind f4 vstr health100"
set health100 "BuildableDebugHealth 10000;echo ^2Gen @ 100%;bind f3 vstr health90"
This part allows you to start and stop debugging. In order to start debugging you will have use the two first parts above to set the increment and also set the buildable to use (F7 & F8). Simply start it by hitting F9 and the buildable will build automatically.
//start-stop debugging
set gd_start "BuildableDebug; set gd_state vstr gd_stop"
set gd_stop "BuildableDebug; set gd_state vstr gd_start"
set gd_state "vstr gd_start"
bind F9 "vstr gd_state"
class selection
This script allows you to easily select different classes. This is just a
simple sample that you can build on. This works for Vanilla Wolf as well as
DeGeneration.
// Player class selection
bind e "mp_playertype 2; mp_weapon 4; echo ^6E-1 You will respawn as a ^6Engineer with a ^3Thompson"
bind l "mp_playertype 3; mp_weapon 3; echo ^5L-3 You will respawn as a ^5Lieutenant with a ^3MP40"
bind m "mp_playertype 1; mp_weapon 4; echo ^1M-1 You will respawn as a ^1Medic with a ^3Thompson"
bind f "mp_playertype 0; mp_weapon 10; echo ^2S-1 respawn as a ^2Soldier with a ^3Flame ^3Thrower"
bind v "mp_playertype 0; mp_weapon 9; echo ^2S-2 respawn as a ^2Soldier with a ^3Venom ^3Gun"
bind p "mp_playertype 0; mp_weapon 8; echo ^2S-3 respawn as a ^2Soldier with a ^3Panzerfaust"
bind s "mp_playertype 0; mp_weapon 7; echo ^2S-4 respawn as a ^2Soldier with a ^3Mauser"
bind g "mp_playertype 0; mp_weapon 6; echo ^2S-4 respawn as a ^2Soldier with an ^3FG42"
bind d "mp_playertype 0; mp_weapon 14; echo ^2S-4 respawn as a ^2Soldier with a ^3Snooper"
bind t "mp_playertype 0; mp_weapon 15; echo ^2S-4 respawn as a ^2Soldier with a ^3Tesla"
NOTE: mp_weapon slots
3: MP40
4: THOMPSON
5: STEN
6: MAUSER
7: FG42
8: PANZERFAUST
9: VENOM
10: FLAMETHROWER
14: SNOOPER
15: TESLA
clean screenshot
This script allows you to get a clean screenshot without anything else on
the screen. You'll need to start a map using /devmap in order to make it work
perfectly. This works for Vanilla Wolf as well as DeGeneration.
// Gives you a clean screenshot
bind F10 "cg_lagometer 0; cg_drawgun 0; cg_drawTeamOverlay 0; cg_drawStatus 0; cg_drawcompass "0"; cg_DrawFPS "0"; cg_draw2d "0"; seta cg_noVoiceText "1"; clear; wait 5; screenshotJPEG; toggle cg_lagometer; toggle cg_drawgun; toggle cg_drawTeamOverlay; toggle cg_drawStatus; toggle drawcompass; toggle cg_DrawFPS; toggle cg_draw2d; toggle cg_noVoiceText"
demo record
This script allows you to toggle on and off demo recording. Simply hit D and
your demo will start. Hit D again and it will stop. This works for Vanilla Wolf
as well as DeGeneration.
//Demo Record
set startdrec "set g_synchronousclients 1; record; set g_synchronousclients 0; set drec vstr stopdrec"
set stopdrec "stoprecord; set drec vstr startdrec"
set drec "vstr startdrec"
bind d "vstr drec"
spawn selection
This script will allow you to toggle between spawn points in a Dual
Generator DeGeneration map. It will toggle between Allies Generator, Allies
Checkpoint, Dropzone, Axis Checkpoint and Axis Generator. This only works
in DeGeneration.
Related commands:
setspawnpt//toggles spawn default
set spawn_alliesg "setspawnpt spawn_allies_generator; echo ^2Spawning: Allies Generator; set spawnpoint vstr spawn_alliesc;"
set spawn_alliesc "setspawnpt spawn_allies_checkpoint; echo ^2Spawning: Allies Checkpoint; set spawnpoint vstr spawn_dropzone;"
set spawn_dropzone "setspawnpt spawn_drop_zone; echo ^2Spawning: Dropzone; set spawnpoint vstr spawn_axisc;"
set spawn_axisc "setspawnpt spawn_axis_checkpoint; echo ^2Spawning: Axis Checkpoint; set spawnpoint vstr spawn_axisg;"
set spawn_axisg "setspawnpt spawn_axis_generator; echo ^2Spawning: Axis Generator; set spawnpoint vstr spawn_alliesg;"
set spawnpoint "vstr spawn_dropzone"
bind f6 "vstr spawnpoint"
vsay commands
Here is an example of how to use the new Vsay commands in DeGeneration. This
only works in DeGeneration.
bind [ "vsay_team NeedParts"
bind o "vsay_team DefendGenerator"
bind i "vsay_team DefendCheckPoint"
bind u "vsay_team DefendDropZone"
bind l "vsay_team AttackingGenerator"
bind k "vsay_team GeneratorAttacked"
bind j "vsay_team AttackGenerator"
bind h "vsay_team BuildingGenerator"
bind , "vsay_team OnMyWay"
bind m "vsay_team OnMyWayParts"
bind n "vsay_team PickupParts"
bind b "vsay_team AtDropZone"
bind c "vsay_team SetupMachineGun"
bind x "vsay_team DisassembleMachineGun"
bind z "vsay_team MoveMachineGun"
weapon script switcher
This will allow you to use both the weapon selection
script and the weapon selection dm scripts.
In order for this to work you would save the weapon
selection script into it's own .cfg file naming it rtcw_weapons.cfg. Then
save the weapon selection dm script into it's
own .cfg file naming it deathmatch_weapons.cfg. When hitting "q" you will see a
text display in the upper left corner of your screen telling you which script is
enabled.
//changes between rtcw and dm weapons
set weapon+ "exec rtcw_weapons.cfg; echo ^2RTCW Weapons Enabled; set weapon vstr weapon-"
set weapon- "exec deathmatch_weapons.cfg; echo ^2Deathmatch Weapons Enabled; set weapon vstr weapon+"
set weapon "vstr weapon+"
bind q "vstr weapon"
weapon selection
This allows you to use your mouse wheel to toggle between all weapons and
items. This works for Vanilla Wolf as well as DeGeneration. See
weapon selection dm for DeGeneration Deathmatch/Team Deathmatch there is a need for another script since there are
more weapons.
// Switches between knife and pistol
set mup1 "clear; wait 5; weaponbank 2; set mup vstr mup2"
set mup2 "weaponbank 1; set mup vstr mup1"
set mup "vstr mup1"
bind MWHEELUP "vstr mup"
// Switches between main weapon and grenade
set ms31 "clear; wait 5; weaponbank 4; set ms3 vstr ms32"
set ms32 "weaponbank 3; set ms3 vstr ms31"
set ms3 "vstr ms31"
bind MOUSE3 "vstr ms3"
// Switches between pliers/flare/needle and dynamite/ammo/health
set mdn1 "clear; wait 5; weaponbank 5; set mdn vstr mdn2"
set mdn2 "weaponbank 6; set mdn vstr mdn1"
set mdn "vstr mdn1"
bind MWHEELDOWN "vstr mdn"
weapon selection dm
This allows you to use your mouse wheel to toggle between all weapons and
items. This works DeGeneration Deathmatch/Team Deathmatch, but not for other
modes. Use weapon selection for other modes.
// Switches between knife, pistol & grenade/dynomite
set mup1 "clear; wait 5; weaponbank 4; set mup vstr mup2"
set mup2 "clear; wait 5; weaponbank 4; set mup vstr mup3"
set mup3 "clear; wait 5; weaponbank 4; set mup vstr mup4"
set mup4 "clear; wait 5; weaponbank 2; set mup vstr mup5"
set mup5 "clear; wait 5; weaponbank 2; set mup vstr mup6"
set mup6 "weaponbank 1; set mup vstr mup1"
set mup "vstr mup1"
bind MWHEELUP "vstr mup"
// Switches between mg & heavy weapons
set ms31 "clear; wait 5; weaponbank 9; set ms3 vstr ms32"
set ms32 "clear; wait 5; weaponbank 3; set ms3 vstr ms33"
set ms33 "clear; wait 5; weaponbank 7; set ms3 vstr ms34"
set ms34 "clear; wait 5; weaponbank 8; set ms3 vstr ms35"
set ms35 "clear; wait 5; weaponbank 6; set ms3 vstr ms36"
set ms36 "clear; wait 5; weaponbank 3; set ms3 vstr ms37"
set ms37 "weaponbank 3; set ms3 vstr ms31"
set ms3 "vstr ms31"
bind MOUSE3 "vstr ms3"
// Switches between rifles
set mdn1 "clear; wait 5; weaponbank 5; set mdn vstr mdn2"
set mdn2 "clear; wait 5; weaponbank 5; set mdn vstr mdn3"
set mdn3 "weaponbank 5; set mdn vstr mdn1"
set mdn "vstr mdn1"
bind MWHEELDOWN "vstr mdn"
Notes: Deathmatch weapon bank loadout
BANK1 - KNIFE
BANK2 - LUGER, COLT
BANK3 - MP40, THOMPSON, STEN
BANK4 - GRENADES, DYNAMITE
BANK5 - MAUSER(SNIPER), GARAND(SNOOPER), FG42
BANK6 - PANZER
BANK7 - FLAMETHROWER
BANK8 - VENOM
BANK9 - TESLA
BANK10 - NONE
Copyright © Tram design - All Rights Reserved Legal Notices