[SELECT ALL] Code:
bind f [ if $editing [solid 1] [quicknadethrow]]
bind q [ if $editing [ domodifier 1 ] [melee; attack]]
bind MOUSE3 [if (= (curweapon) 7) [attack] [secondary; attack]]
bind MOUSE1 [primary; attack]
bind MOUSE2 [ if $editing [ showmenu editing ] [ altaction ] ]
Make the 2 key switch to Akimbo by default:
[SELECT ALL] Code:
bind 2 [ if $editing [ domodifier 7 ] [weapon 7; secondary] ]
[SELECT ALL] Code:
//Volume script, "cylvol radius height"
//By Gibstick
pi = 3.1415926535897932384626433832795028841971693993751058209
alias cylvol [
alias rsq (exp $arg1 $arg1);
alias carea (*f $rsq $pi);
alias volume (*f $carea $arg2);
echo $volume
echo Make sure you put the radius before the height.
]
//Exponent script "exp 5 2" = 5^2
alias powerloop [
(alias product (*f $base $product));
(alias power (+f $power 1));
(if (<f $power $pow) [powerloop] [result $product])]
alias exp [
(alias product 1);
(alias power 0);
(alias base $arg1);
(alias pow $arg2);
(powerloop base pow)]