Difference between revisions of "User:I-ghost/bin"
m (because why not) |
m (→gcf_defrag) |
||
Line 131: | Line 131: | ||
==Batch== | ==Batch== | ||
===gcf_defrag=== | ===gcf_defrag=== | ||
− | A small gcf/vpk defrag script. Contains unicode characters which won't paste here, so take this [http://pastebin.com/ | + | A small gcf/vpk defrag script. Contains unicode characters which won't paste here, so take this [http://pastebin.com/ZNEkWYc6 pastebin] link instead. |
===getpublicip=== | ===getpublicip=== |
Revision as of 19:04, 8 August 2011
Contents
TF2
Medic
A Medic autoheal script I cooked up for Ohyeahcrucz some time ago.
// Alternative Medicine script by i-ghost // /* ---------------------------------------------------------- // Configuration: // // * Options enableautoheal // Options: enableautoheal/disableautoheal - Enable or disable autoheal by default. switch_heal // Options: switch_heal - switch to Medi Gun and heal as soon as you switch to Medic; switch_noheal - Ditto but without healing. alias medigun_sheal "yes" // Options: yes - Heal as soon as you switch to Medi Gun. no - Opposite, also turns autoheal off when you switch to Medi Gun. alias sound "enable" // Options: enable - Play a sound when enabling autoheal. no - Opposite. // * Binds bind mouse1 +heal // Change 'mouse1' to whichever key you like to heal with. bind mouse2 "+attack2; dropitem; -attack2" // Change 'mouse2' to whichever key you uber with. bind 1 1_ // Change '1' to whichever key you want to pull out your Syringe Gun with. bind 2 2_ // Change '2' to whichever key you want to pull out your Medi Gun with. bind 3 3_ // Change '3' to whichever key you want to pull out you Melee with. bind shift "switcher;" // Change 'shift' to whichever key you want to toggle autoheal with. bind mouse4 "+reveal" // Change 'mouse4' to whichever key you want to use Medi-radar with. // ---------------------------------------------------------- */ // Auto heal alias enableautoheal "alias +heal -attack; alias -heal +attack; sound;" alias disableautoheal "alias +heal +attack; alias -heal -attack;" // Misc alias switch_heal "use tf_weapon_medigun; +attack;" alias switch_noheal "use tf_weapon_medigun;" alias enable "play HL1/fvox/boop.wav" // Medi Gun auto switch heal alias yes "s2; +attack;" alias no "echo " alias 1_ "use tf_weapon_syringegun_medic; s1" alias 2_ "use tf_weapon_medigun; s1; medigun_sheal" alias 3_ "use tf_weapon_bonesaw; s1;" // Toggle between autoheal and no autoheal alias switcher s1 alias s1 "alias switcher s2; -attack; disableautoheal" alias s2 "alias switcher s1; +attack; enableautoheal;" // Additional Medical tools hud_medicautocallers 1 // Teammates auto-call when on low health hud_medichealtargetmarker 1 // Little delta above current patient to indicate healing alias +reveal "hud_medicautocallersthreshold 150;" alias -reveal "hud_medicautocallersthreshold 50.9;" //Change this value if you want. echo echo ===== Alternative Medicine by i-ghost loaded. echo echo ===== Please read the script file for config options. echo ===== Latest version always at wiki.tf2.com/User:I-ghost/bin echo ===== Version 0.2
Practice
Airshots
Some script I wrote for practicing airshots on endif on mge_training_v4_fixed
. You need to be on RED team.
//endif spawner script by i-ghost //sv stuff mp_timelimit 0 mp_waitingforplayers_cancel 1 mp_disable_respawn_times 1 mp_teams_unbalance_limit 0 mp_autoteambalance 0 sv_password nope sv_cheats 1 sv_allow_wait_command 1 tf_damage_disablespread 1 tf_use_fixed_weaponspreads 1 tf_weapon_criticals 0 tf_damage_multiplier_blue 100000 setpos -1157.353760 -6398.587891 -2088.207275;setang -2.115082 90.938148 0.000000 bot_kick all; wait 50 //classes bot -class soldier -team blue -name Soldier1 bot -class soldier -team blue -name Soldier2 bot -class soldier -team blue -name Soldier3 bot -class soldier -team blue -name Soldier4 bot -class demoman -team blue -name Demo1 bot -class demoman -team blue -name Demo2 //Positions alias cycler_a ca_1 alias ca_1 "bot_teleport Soldier1 -1444.961182 -6076.198730 -649.313354 7.160005 -92.423828 0.000000; wait 50; alias cycler_a ca_2" alias ca_2 "bot_teleport Soldier2 -880.988586 -6265.024902 -265.276154 46.990776 178.775574 0.000000; wait 50; alias cycler_a ca_3" alias ca_3 "bot_teleport Soldier3 -1183.237061 -6389.466797 -727.254761 -1.978808 -92.014854 0.000000; wait 50; alias cycler_a ca_1" alias cycler_b cb_1 alias cb_1 "bot_teleport Demo1 -1184.971313 -6342.032227 218.140366 -0.069186 178.915939 0.000000; wait 50; alias cycler_b cb_2" alias cb_2 "bot_teleport Soldier4 -1437.915283 -6619.015625 -695.402405 10.843187 84.386520 0.000000; wait 50; alias cycler_b cb_3" alias cb_3 "bot_teleport Demo2 -916.175049 -6621.974609 -978.555725 14.252748 131.271576 0.000000; wait 50; alias cycler_b cb_1" //Begin alias loop loop1 alias loop1 "impulse 101; bot_refill; wait 1000; cycler_a; wait 1000; cycler_b; loop2;" alias loop2 "wait 1000; loop1;" loop
Tools
Batch
gcf_defrag
A small gcf/vpk defrag script. Contains unicode characters which won't paste here, so take this pastebin link instead.
getpublicip
A small batch file which will get your public IP via a JS object. Used to be part of a larger script with error and response checking and waiting etc, but this is all that's needed to get the job done.
@echo off >>%TEMP%\getip.js echo var gottam = new ActiveXObject("Msxml2.XMLHTTP"); >>%TEMP%\getip.js echo gottam.open( "GET", "http://automation.whatismyip.com/n09230945.asp", true ); for /F %%A in ('cscript //nologo %TEMP%\getip.js') do set ip=%%A del %TEMP%\getip.js echo %ip% | clip exit /b 0
getsteaminfo
A small tool for returning various Steam-related things. Used as part of the script I wrote on Template:Painted variants/Tutorial.
@echo off :: Variables: :: %_steamdir% = Steam path :: %_steamuser% = Steam username :: %_steamvanity% = Steam community name :: %_steampid% = Steam process ID :: %_steambin% = Steam binary path for /F "tokens=2* delims= " %%A in ('REG QUERY "HKCU\Software\Valve\Steam" /v SteamPath 2^>nul') do set _steamdir=%%B :: substitute forward slashes for back slashes set _steamdir=%_steamdir:/=\% for /f "tokens=2,3 delims= " %%a in ('findstr /C:AutoLoginUser "%_steamdir%\config\SteamAppData.vdf"') do set _steamuser=%%~a for /F "tokens=2* delims= " %%A in ('REG QUERY "HKCU\Software\Valve\Steam" /v LastGameNameUsed 2^>nul') do set _steamvanity=%%B for /F "tokens=1,2 delims= " %%A in ('tasklist /FI "imagename eq Steam.exe" /FI "Status eq running" /NH 2^>nul') do set _steampid=%%B for /F "tokens=2* delims= " %%A in ('REG QUERY "HKCU\Software\Valve\Steam" /v SteamExe 2^>nul') do set _steambin=%%B exit /b 0