14 Jun 11, 08:36AM
Just my aliases and stuff.
[SELECT ALL] Code:
// auto
bind KP1 [ say "%Left" ]
bind KP2 [ say "%Middle" ]
bind KP3 [ say "%Right" ]
bind KP5 [ say "%CLA base" ]
bind KP6 [ say "%RVSF base" ]
bind Q [ if $editing [ domodifier 1 ] [ quicknadethrow ] ]
bind F [ if $editing [ solid 1 ] [ dropflag ] ]
bind F3 [ toggleconsole ]
bind M [ if $editing [ domodifier 6 ] [ toggleshowmap ] ]
// horrible GFX
fsaa 0
minlod 60
alias gfxqualityalias 1
fpsrange 20 25
watersubdiv 64
dynlight 0
waterreflect 0
stencilshadow 0
stencilbits 0
dynshadow 0
lighterror 16
scorch 0
bullethole 0
blood 0
gib 0
shotline 0
trilinear 0
waterrefract 0
texreduce -1
hidebigmenuimages 1
vsync 0
sensitivity 15
crosshairsize 25
fov 120
gamma 130
hitsound 1
akimboendaction 1
voicecom 0
name "Xu|Orynge"
emo = [ suicide ]
sens = [ sensitivity $arg1 ]
nick = [ name $arg1 ]
beam = [ drawbeamtobots ]
loadcrosshair x-dot.png
loadcrosshair X.png scope // Viper's :D
clockdisplay 1 (show time remaining)
clockdisplay 2 (show time spent)
// end auto
alias stbots [
numbots = $arg1; skillbots = $arg2; teambots = (div $numbots 2)
if (= (curteam 0)) [claplayer = 1; rvsfplayer = 0] [rvsfplayer = 1; claplayer = 0]
addnbot (- $teambots $rvsfplayer) RVSF $skillbots; addnbot (- $teambots $claplayer) CLA $skillbots
]
firefights = [team RVSF; sleep 10 [btdm $arg1; sleep 20 [kickallbots; sleep 30 [addnbot 3 CLA good]]]]
firefightm = [team RVSF; sleep 10 [btdm $arg1; sleep 20 [kickallbots; sleep 30 [addnbot 6 CLA good]]]]
firefightb = [team RVSF; sleep 10 [btdm $arg1; sleep 20 [kickallbots; sleep 30 [addnbot 10 CLA good]]]]
btdm = [mode 7; map $arg1; stbots 8 good]
bdm = [mode 8; map $arg1; stbots 4 good]
bosok = [mode 12; map $arg1; stbots 4 good]
//8ball script by Orynge, Ronald_Reagan, and DrauL
8ballanswers = ["say "8ball: Meow, I'm a cat!"" "say "8ball: Oh, please, PLEASE, make it stop!"" "say "8ball: Who do you think I am, DiLL?"" "say "8ball: Are you MAD?!"" "say "8ball: Sure. Yeah. Exactly."" "say "8ball: It is decidedly so."" "say "8ball: Not on your life."" "say "8ball: No."" "say "8ball: Maybe so."" "say "8ball: Absolutely not."" "say "8ball: Yes."" "say "8ball: If the prophets will it."" "say "8ball: Reading foggy -- try again later."" "say "8ball: You never know. Neither do I.""]
alias 8ball [say !8ball ($arg1); sleep 10 [8response]]
alias 8response [say (at $8ballanswers (rnd (listlen $8ballanswers)))]]
//Delayed vote script by DES|GeneralDisarray and Gibstick
// Reset the aliases just in case
cancelallvotes = [ votingno = 0; votingyes = 0; votetimestamp = 0]
cancelallvotes
vote_exec1 = [ vote 1; echo " 0You voted yes"; cancelallvotes ]
vote_exec2 = [ vote 2; echo " 3You voted no"; cancelallvotes ]
// $arg1 = millis
delayed_vote = [
// only bother if we're actually due
if (= ($votetimestamp) ($arg1) ) [
if (= ($votingyes) 1) [ vote_exec1 ]
if (= ($votingno) 1) [ vote_exec2 ]
] [
echo "All this wait for nothing..."
]
]
delayed_vote_start = [ votetimestamp = (millis); sleep 5000 [ delayed_vote votetimestamp ] ]
delayvote1 = [
if (= ($votingyes) 1) [
// voting yes when already have voted yes, do it immediately
vote_exec1
] [
if (= ($votingno) 1) [
// changed mind, cancel
echo " 6You cancelled your F2"; cancelallvotes
] [
// normal/first vote
echo "Voting YES in five seconds!"; votingyes = 1; delayed_vote_start
]
]
]
delayvote2 = [
if (= ($votingno) 1) [
// voting no when already have voted no, do it immediately
vote_exec2
] [
if (= ($votingyes) 1) [
// changed mind, cancel
echo " 6You cancelled your F1"; cancelallvotes
] [
// normal/first vote
echo "Voting NO in five seconds!"; votingno = 1; delayed_vote_start
]
]
]
bind "F1" [delayvote1]
bind "F2" [delayvote2]
//Useless technical notes
//Script uses alias variables to determine the current voting state. If one is changed then the action is different, that is how the vote is "cancelled". But it is impossible to cancel a sleep and we ran into this problem. So GD came up with the miraculous and ingenious solution to use a timestamp to associate one F1/F2 with another. But he insisted that we use normal alias commands instead of push and pop. :D
usefulscript = [echo "Cold Boot Initialized";[usefulscript]]
zomgterrible = [sensitivity 1000; sleep 1 [bind w "suicide"; sleep 2 [bind a "attack"; sleep 3 [say "My AC is dying!"; sleep 4 [bind s "commanddoesntexist"; sleep 5 [bind d "consolespam"]]]]]]
//-- rolldie command to see who goes first in matches
//-- by R4zor with ( a lot of ) help from GenDisarray
alias rolldie [ if (&& (> (listlen $arg1) 0) (> (listlen $arg2) 0) ) [dieteams1 = $arg1; dieteams2 = $arg2] [dieteams1 = CLA; dieteams2 = RVSF]; if (rnd 2) [dieteams = $dieteams1] [dieteams = $dieteams2]; sleep 100 [say Random Die Roll - team $dieteams was chosen!]]
// Random startup messages script by DES|Bukz
if (checkalias rndstmsg) [] [rndstmsg = 1]
alias random_messages ["*crouch* *crouch* --- Nooooooooo!" "What is this game I don't even..." "Getting the next frag is probably more important then that work you have to get done" "Ignore the PAIN! Ignore the HUNGER! There are NOOBS to FRAG!"]
alias clearstartmessage [
if (= $arg1 1) [
alias random_messages []
echo (c 2)Your list of random start up messages has been (c 3)cleared!
] [
echo (c 3)clearstartmessage requires 1 as the only argument to function!
]
]
alias startmessage [
if (= $arg1 1) [
rndstmsg = 1
echo (c 2)Random startup messages (c 0)enabled!
] [
rndstmsg = 0
echo (c 2)Random startup messages (c 3)disabled!
]
]
addOnLoadOnce [if $rndstmsg [echo (at $random_messages (rnd (listlen $random_messages)))] []]
docsection [Random_Messages];
docident [clearstartmessage] [Clears the list of all random startup messages.];
docargument [X] [Must be 1 to function.];
docexample [/clearstartmessage 1] [Clears the list.];
docident [startmessage] [Enables or disables the showing of random messages on startup.];
docargument [X] [1 = enabled, 0 = disabled];
docexample [/startmessage 1] [Enables];
exec "config/tools_docsection.cfg"
exec "config/rndmap.cfg"
exec "config/tools.cfg"
exec "config/raveparty.cfg"