FANDOM


This page includes script files for Urban Terror.

Copy the script and paste it into a text editor. Then save it with a .cfg extension in your Game path. To execute, type /exec <script name> in Console.
For more information, see Installing Scripts.

See Category:Scripts & Configs for more information about scripts, scripting, and additional sample scripts.

File-script

by iynque Edit

Suicide script with safety lock. Hold ; down to turn the safety off, then apostrophe ' to kill yourself. Suicide only works while also holding down the safety. Easily change binds to any keys you want.

iy_suicide.cfg

  1. //Suicide! >:D
  2. //  Hold semicolon to toggle safety off.
  3. //  Push ' (single quote) while holding semicolon to kill yourself.
  4.  
  5. //////////////////////////////////////////////
  6. //Functions
  7. set iy_suicideAttempt   "vstr iy_suicideFail"                   //Success of your attempt depends on the state of the safety
  8.  
  9. set iy_suicideSuccess   "kill"                                  //What happens when you kill yourself
  10. set iy_suicideFail      "ut_echo ^7[^4Suicide safety is ^2ON^4. Hold semicolon to toggle.^7]"   //What happens when you try suicide but safety is on
  11.  
  12. //To use safety in toggle mode, uncomment the next line and bind the toggle safety key to "vstr iy_suicideSafetyToggle"
  13. //set iy_suicideSafetyToggle  "vstr iy_suicideSafetyOff"  //Toggle safety on or off
  14. set iy_suicideSafetyOff     "set iy_suicideAttempt vstr iy_suicideSuccess;  ut_echo ^7[^4Suicide safety is ^1OFF^4.^7]; set iy_suicideSafetyToggle vstr iy_suicideSafetyOn"     //What to do when turning safety off
  15. set iy_suicideSafetyOn      "set iy_suicideAttempt vstr iy_suicideFail;     ut_echo ^7[^4Suicide safety is ^2ON^4.^7];  set iy_suicideSafetyToggle vstr iy_suicideSafetyOff"    //What to do when turning safety on
  16.  
  17. //////////////////////////////////////////////
  18. //Keybinds
  19. bind SEMICOLON  "+vstr iy_suicideSafetyOff iy_suicideSafetyOn"  //Toggle safety
  20. bind 0x27       "vstr iy_suicideAttempt"                        //Suicide
  21.  
  22. //created by iynque
  23. ut_echo ^7[^4iy_suicide.cfg loaded^7];echo iy_suicide.cfg loaded

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.