Urban Terror Forums: Script Repository - Urban Terror Forums

Jump to content

 Login | Register 
Advertisement
  • (4 Pages)
  • +
  • 1
  • 2
  • 3
  • Last »
  • You cannot start a new topic
  • This topic is locked

Script Repository Rate Topic: ***** 1 Votes

#1 User is offline   nemesis Icon

  •   former FS member   
    Lead Tester
  • Account: nemesis
  • Country:
  • Joined: 30-April 09
  • Posts: 1,108

Posted 09 December 2010 - 03:02 AM

The Frozen Sands development team would like to get an idea of what sorts of scripts (vstr, gear selection scripts, etc.) are currently available and create a script database in this thread. We want to determine if we can fix useful scripts that may not be working properly and perhaps build a few general scripts into the game. We would request that you post a copy of the script(s) in their entirety and that a short description be included detailing its intended use. Please include all details i.e. is the script working or not?

FS|Nemesis

#2 User is offline   Beltaine Icon

  • Account: beltaine
  • Country:
  • Joined: 28-February 10
  • Posts: 71

Posted 09 December 2010 - 01:48 PM

// Crouch Toggle
set sit "+movedown; wait 15; set crouch vstr stand"
set stand "-movedown; wait 15; set crouch vstr sit"
set crouch "vstr stand" //set default
bind x "vstr crouch"


using x will let you stay in crouch untill its used again.


// Speed Toggle
set ms_00 "set ms_f vstr ms_01; -button8; +speed; ut_echo  WALKING"
set ms_01 "set ms_f vstr ms_02; -button8; -speed; ut_echo  RUNNING"
set ms_02 "set ms_f vstr ms_00; +button8; -speed; ut_echo  SPRINTING"
set ms_f "vstr ms_01" //sets run as default
bind x "vstr ms_f" //bind for changing speed

using x will change from walk to running and from running to sprinting

This post has been edited by Beltaine: 10 December 2010 - 11:08 AM


#3 User is offline   Solitary Icon

  • Account: solitary
  • Main tag: GlaD-
  • Country:
  • Joined: 28-February 10
  • Posts: 479

Posted 09 December 2010 - 03:34 PM

//fov script
set zoomin "cg_fov 90; set zoomtoggle vstr zoomout; ut_zoomin; sensitivity 4.5; echo Zoomed In..." 
set zoomout "cg_fov 100; set zoomtoggle vstr zoomin; ut_zoomin; sensitivity 5; echo Zoomed Out..." 
set zoomtoggle "vstr zoomin" 
bind mouse2 "vstr zoomtoggle"


#4 User is offline   Bodhisattva Icon

  • Account: bodhisattva
  • Joined: 28-February 10
  • Posts: 809

Posted 09 December 2010 - 10:02 PM

View PostBeltaine, on 09 December 2010 - 01:48 PM, said:

// Prim-Sec Toggle                                                             									
set weapch_00 "set sw_0 vstr weapch_01; bind x ut_weaptoggle primary secondary; ut_echo <PRIMARY/SECONDARY>"
set weapch_01 "set sw_0 vstr weapch_00; bind x ut_weaptoggle secondary primary; ut_echo <SECONDARY/PRIMARY>"
vstr weapch_00  // Default
bind x "vstr sw_0"  // Weap Toggle

bind x ut_weaptoggle primary secondary
works too and isn't even a script

This post has been edited by Bodhisattva: 09 December 2010 - 10:02 PM


#5 User is offline   Beltaine Icon

  • Account: beltaine
  • Country:
  • Joined: 28-February 10
  • Posts: 71

Posted 09 December 2010 - 10:46 PM

oh XD
<---noob at scripting hehe
ty for the hint

bullet_loaderAdvertisement

#6 User is offline   Runamok Icon

  • Account: runamok
  • Main tag: -WAR-
  • Country:
  • Joined: 01-March 10
  • Posts: 472

Posted 10 December 2010 - 06:48 AM

//crouch
set zx_move_c_on "+movedown; vstr zx_move_w_off; vstr zx_move_s_off"
set zx_move_c_off "-movedown"
set zx_move_c_stay "+movedown"
bind c "+vstr zx_move_c_on zx_move_c_stay"

//sprint
set zx_move_s_on "vstr zx_move_w_off; vstr zx_move_c_off; +button8"
set zx_move_s_off "-button8"
bind e "+vstr zx_move_s_on zx_move_s_off"

//walk
set zx_move_w_on "+speed; vstr zx_move_c_off; vstr zx_move_s_off"
set zx_move_w_off "-speed"
set zx_move_w_stay "+speed"
bind SHIFT "+vstr zx_move_w_on zx_move_w_stay"

//jump
set zx_move_j_on "vstr zx_move_c_off;+moveup"
set zx_move_j_off "-moveup"
bind SPACE "+vstr zx_move_j_on zx_move_j_off"


atm I don't use the jump one, but I do use the rest. ditched the jump one due to scripts getting stuck sometimes, I believe this had something to do with more than one trying to work at the same time.
I use them the way the binds are set, so the crouch and walk keys untoggle each other and pressing crouch twice won't uncrouch. I think that makes enough sense.

and my notation is just so everything I've put in starts with zx_ and then I simplify again so I can find things, lol

EDIT: what I meant by "stuck" was that the jump one wouldn't always go to the 'off' phase if I pressed jump while holding sprint :(

This post has been edited by Zzyzx.: 10 December 2010 - 08:02 AM

-WAR-Runamok`

cyrus: "Camping" is a non-issue for a player that uses his/her head.

#7 User is offline   ObScUrE Icon

  •   head moderator   
    Co-Chief Community Moderator
  • Account: obscure
  • Country:
  • Joined: 28-February 10
  • Posts: 2,192

Posted 10 December 2010 - 08:28 AM

^It was discovered and it's fixed in the optimized version from mitsubishi.
read more here [Bug] +vstr malfunctions if another +vstr bind is used at its duration [and possible fix]

-
beside of this flood protection is an problem for scripts and regular gameplay (fast: weapon dropping + item de-/activation).
The wait command to workaround flood protection blocks the user input and even with an wait time of 125 it works not all the time.
+vstr commands get dropped in case of flood protection. (on fast release)



bind F1                           "+vstr yes1 yes2"
set yes1                          "ut_radio 1 1                        ^7*^2Affirmative^7*"
set yes2                          "ut_echo ^0[^7Voted ^2Yes^0];        vote yes"

bind F2                           "+vstr no1 no2"
set no1                           "ut_radio 1 2                        ^7*^1Negative^7*"
set no2                           "ut_echo ^0[^7Voted ^1No^0];         vote no"




//MEDKIT-DROP//
set medkit_drop1                  "ut_itemdrop medkit; ut_echo ^0[^6medkit^0-^1drop^0]"
set medkit_drop2                  "tell_target ^7pick up the ^7[^1+^7]^2medkit ^7and ^6medic me!"
//bind KEY                        "+vstr medkit_drop1 medkit_drop2"


I use +vstr to avoid the wait command for flood protection but it seems not to work on all servers.


Suggestion script:
Source: http://forums.urbant...as-reload-time/

//Spas_Auto_Reload_Script//

//Reloading//
set R_Spas1                       "+button5; ut_echo ^0[^7Reload^0-^2ON^0] ; set R_Spas vstr R_Spas2"
set R_Spas2                       "-button5; ut_echo ^0[^7Reload^0-^1OFF^0]; set R_Spas vstr R_Spas1"
set R_SpasC                       "-button5; set R_Spas vstr R_Spas1"
set R_Spas                        "vstr R_Spas1"

//SpasModusON/OFF//
set SpasModus1                    "set Secondary vstr SecondarySpas; ut_echo ^0[^7SpasModus^0-^2ON^0] ; set SpasModus vstr SpasModus0"
set SpasModus0                    "set Secondary vstr SecondaryAuto; ut_echo ^0[^7SpasModus^0-^1OFF^0]; set SpasModus vstr SpasModus1"
set SpasModus                     "vstr SpasModus1"

//Weapons//
set Primary                       "ut_weaptoggle primary   ; vstr R_SpasC; vstr R_Default"
set SecondaryAuto                 "ut_weaptoggle secondary ; vstr R_SpasC; vstr R_Default"
set SecondarySpas                 "ut_weaptoggle secondary ; vstr R_SpasC; bind r vstr R_Spas"
set Secondary                     "set Secondary vstr SecondaryAuto" // Default Secondary Modus
set Sidearm                       "ut_weaptoggle sidearm   ; vstr R_SpasC; vstr R_Default"
set KnifeBomb                     "ut_weaptoggle knife bomb; vstr R_SpasC; vstr R_Default"
set HE_Nade                       "weapon 11  ;vstr R_SpasC; vstr R_Default" //HE-Nade
set SM_Nade                       "weapon 13  ;vstr R_SpasC; vstr R_Default" //Smoke
set weapdrop                      "vstr R_SpasC; vstr R_Default; ut_weapdrop"


//Set Your Keys Here!////////////////////////////////////////////
bind f                            "vstr SpasModus"             // Enable/Disable Spas Reload
set R_Default                     "bind r +button5"            // Change the letter after bind <r> for reloading
bind x                            "vstr weapdrop"              // weapdrop   + Cancel Spas Auto Reload
bind Mouse1                       "+attack; vstr R_SpasC"      // Attacking  + Cancel Spas Auto Reload
bind 1                            "vstr primary"               // primary    + Cancel Spas Auto Reload
bind 2                            "vstr Secondary"             // secondary  + Cancel Spas Auto Reload
bind 3                            "vstr Sidearm"               // sidearm    + Cancel Spas Auto Reload
bind 4                            "vstr KnifeBomb"             // Knife+Bomb + Cancel Spas Auto Reload
bind 5                            "vstr HE_Nade"               // HE-Nade    + Cancel Spas Auto Reload
bind 6                            "vstr SM_Nade"               // Smoke-Nade + Cancel Spas Auto Reload
/////////////////////////////////////////////////////////////////
vstr R_Default


Quote

BenQ-XL2420T|Filco-Ninja-TKL-MXRed|Logitech-G403|AKG-K70201000010 01101100 01110101 01110100 01010010 01100001 01110101 00100100 01100011 01101000~The quieter you become, the more you are able to hear.~

#8 User is offline   Runamok Icon

  • Account: runamok
  • Main tag: -WAR-
  • Country:
  • Joined: 01-March 10
  • Posts: 472

Posted 10 December 2010 - 10:19 AM

I kinda wish itemdrop and then a "say_team" weren't floodprotected, makes flag and med drop binds better, as then your team knows you've dropped them.. :)

but oh well, I can live without that, the +vstr fix would be awesome though, maybe it's time to try these optimised builds again.
-WAR-Runamok`

cyrus: "Camping" is a non-issue for a player that uses his/her head.

#9 User is offline   Bodhisattva Icon

  • Account: bodhisattva
  • Joined: 28-February 10
  • Posts: 809

Posted 10 December 2010 - 02:06 PM

View PostZzyzx., on 10 December 2010 - 10:19 AM, said:

I kinda wish itemdrop and then a "say_team" weren't floodprotected, makes flag and med drop binds better, as then your team knows you've dropped them.. :)

but oh well, I can live without that, the +vstr fix would be awesome though, maybe it's time to try these optimised builds again.

I never thought that was a bug; just a protective limit. I think there is potential for abuse if u can nest multiple +vstrs.

#10 User is offline   klabauterman Icon

  • Account: klabauterman
  • Main tag: aI|
  • Country:
  • Joined: 28-February 10
  • Posts: 241

Posted 15 December 2010 - 11:05 PM

Standard Gears on the Num keypad or the last ten used.
Or other userbinds on the keypad, maybe even configurable in the ui (bind <Key> +vstr script1 script2)


//custom gears ^1 red Kevlar ^2 green sidearm primary ^3 Items yellow^4 blue Nade 
//^5 cyan Laser ^6 magenta MedKit ^white empty
bind KP_HOME "gear GZAAWRT; ut_echo ^2G^2Z^7A^7A^3W^1R^6T" // KP 7
bind KP_UPARROW "gear GZAASVW; ut_echo ^2G^2Z^7A^7A^3W^3V^3S" // KP 8
bind KP_PGUP  "gear GKAAWRX; ut_echo ^2G^2K^7A^7A^3W^1R^3X" // KP 9
bind KP_LEFTARROW "gear GLAASRW; ut_echo ^2G^2L^7A^7A^3W^1R^3S" // KP 4
bind KP_5  "gear GZAOWVA; ut_echo ^2G^2Z^7A^4O^5V^3W^7A" // KP 5
bind KP_RIGHTARROW "gear GZAOWTA; ut_echo ^2G^2Z^7A^4O^3W^6T^7A" // KP 6
bind KP_END "gear GLAOWTA; ut_echo ^2G^2L^7A^4O^6T^3W^7A;" // KP 1
bind KP_DOWNARROW "gear GLAAWRV; ut_echo ^2G^2L^7A^7A^3W^1R^3V;" // KP 2
bind KP_PGDN "gear GMAAWRT; ut_echo ^2G^2M^7A^7A^3W^1R^6T;" // KP 3
bind KP_INS "gear GLAOWVA; ut_echo ^2G^2L^7A^4O^5V^3W^7A" // KP 0



I wish it would be possible to have keys to change only one slot in the gear setup - like sniper, auto, sub, shotgun, sidearm, grenade and up to 3 items


//+vstr opens up some nice possibilities
//One key near movement keys for team chat or radio depending on stiuation
bind 5 "vstr multitell" 
//Standard call
seta enemynear "set multitell say_team Enemy near ^2$crosshair"// or ut_radio 5 5 Incoming!
//Smoke Grenade warning
bind 3 "+vstr switchtosmoke m2crouch"//smokes
//Grenade warning 
bind 4 "+vstr switchtohe m2crouch"//HE
set switchtohe "weapon 11; weapon 7; vstr mwprimary; set multitell vstr warnnade "//11 -  HE und 7 - HK > HE
set switchtosmoke "weapon 13; vstr mwprimary; set multitell vstr warnsmoke"//13 - Smoke
set warnnade "say_team I'm nadin' @ $crosshair; vstr enemynear"
set warnsmoke "say_team Got a smoke nade for $crosshair; vstr enemynear"
//Medic
bind q "+vstr medicon medicoff"//enable radio while bandage 
seta medicon "+button6; set multitell ut_radio 3 3 I need a medic $health"//or ut_radio 2 5 Cover me!
seta medicoff "-button6; vstr enemynear; "
//Scoreboard - maybe clickable (?)
bind TAB "+vstr scoretabon scoretaboff" //clock while scoreboard, radio call
seta scoretaboff "vstr scoretaboffhud"
seta scoretabon "+scores; cl_drawclock 1;  cg_draw2d 1; set multitell ut_radio 2 7 Go for the objective!!!" // alt. ut_radio 4 1 Status?
set scoretaboffhud "-scores; cl_drawclock 0; vstr enemynear"
//Walking
bind z "+vstr walkon walkoff" // radio while walking, and or +speed/-speed
seta walkon "cl_run 0;  set multitell ut_radio 1 3 I'm on it"
seta walkoff "cl_run 1; vstr enemynear"
//Sprinting
bind e "+vstr sprinton sprintoff"//radio while sprinting
seta sprinton "+button8;  set multitell ut_radio 3 1 I'm noobing in"// radio while sprint
seta sprintoff "-button8; vstr enemynear"


»¿ʇᴉ əsnqɐ ʇ,uɐɔ noʎ ɟᴉ əpoɔᴉun sᴉ pooɓ ʇɐɥʍ«

  • (4 Pages)
  • +
  • 1
  • 2
  • 3
  • Last »
  • You cannot start a new topic
  • This topic is locked

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users

bullet_disabledSponsored link
https://www.urbanterror.info/members/donate/


Copyright © 1999-2019 Frozensand Games Limited  |  All rights reserved  |  Urban Terror™ and FrozenSand™ are trademarks of Frozensand Games Limited

Frozensand Games is a Limited company registered in England and Wales. Company Reg No: 10343942