Request: Fade Script
Fabolous0
Join Date: 2005-02-17 Member: 41525Members
<div class="IPBDescription">Mouse1: Swipe || Mouse2: Blink</div> Is there a way to create a script so if I'm an alien fade and push Mouse1 it would do my main ability selected (Like swipeor metabolize .etc) and if I push Mouse2 it would do Blink? So I could push Mouse1 to swipe and Mouse2 to blink and do em both at the same time, or close to it.
I found the weapon names.
<!--emo&::fade::--><img src='http://www.unknownworlds.com/forums/html/emoticons/fade.gif' border='0' style='vertical-align:middle' alt='fade.gif' /><!--endemo--> Fade <!--emo&::fade::--><img src='http://www.unknownworlds.com/forums/html/emoticons/fade.gif' border='0' style='vertical-align:middle' alt='fade.gif' /><!--endemo-->
Swipe - weapon_swipe
Blink - weapon_blink
Metabolize - weapon_metabolize
Acid rocket - weapon_acidrocketgun
I found the weapon names.
<!--emo&::fade::--><img src='http://www.unknownworlds.com/forums/html/emoticons/fade.gif' border='0' style='vertical-align:middle' alt='fade.gif' /><!--endemo--> Fade <!--emo&::fade::--><img src='http://www.unknownworlds.com/forums/html/emoticons/fade.gif' border='0' style='vertical-align:middle' alt='fade.gif' /><!--endemo-->
Swipe - weapon_swipe
Blink - weapon_blink
Metabolize - weapon_metabolize
Acid rocket - weapon_acidrocketgun
Comments
Press your "c" key to toggle the function ON and off. Sound queues let you know when it's on or off. Invalid sound means off, text posting sound means on
the <span style='color:green'>green portion</span> is what mouse1 defaults to, and the <span style='color:orange'>orange portion</span> is what mouse2 defaults to when the script is toggled "off"
<span style='font-size:9pt;line-height:100%'><b>bind c "toggle.slotattack"
//
alias +slot1.attack "slot1;wait;+attack"
alias -slot1.attack "-attack"
alias +slot2.attack "slot2;wait;+attack"
alias -slot2.attack "-attack"
//
alias tsnd.1 "play misc/talk.wav"
alias tsnd.2 "play misc/invalid.wav"
alias toggle.slotattack "slots.1"
alias slots.1 "bind mouse1 +slot1.attack;bind mouse2 +slot2.attack;tsnd.1;alias toggle.slotattack slots.2"
alias slots.2 "<span style='color:green'>bind mouse1 +attack</span>;<span style='color:orange'>bind mouse2 +popupmenu</span>;tsnd.2;alias toggle.slotattack slots.1"</b></span>
<!--c1--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>CODE</b> </td></tr><tr><td id='CODE'><!--ec1-->alias +blink "slot2; +attack"
alias -blink "-attack; slot1"
bind mouse2 +blink<!--c2--></td></tr></table><div class='postcolor'><!--ec2-->
as to check whether or not your fade, I suggest including this code into a "fade.cfg" then creating the following line in your userconfig.cfg:
<!--c1--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>CODE</b> </td></tr><tr><td id='CODE'><!--ec1-->bind <key> "impulse 116; exec fade.cfg"<!--c2--></td></tr></table><div class='postcolor'><!--ec2-->
<!--c1--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>CODE</b> </td></tr><tr><td id='CODE'><!--ec1-->alias +blink "slot2; +attack"
alias -blink "-attack; slot1"
bind mouse2 +blink<!--c2--></td></tr></table><div class='postcolor'><!--ec2-->
as to check whether or not your fade, I suggest including this code into a "fade.cfg" then creating the following line in your userconfig.cfg:
<!--c1--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>CODE</b> </td></tr><tr><td id='CODE'><!--ec1-->bind <key> "impulse 116; exec fade.cfg"<!--c2--></td></tr></table><div class='postcolor'><!--ec2--> <!--QuoteEnd--> </td></tr></table><div class='postcolor'> <!--QuoteEEnd-->
I use something very similar to that, but it's adaptive, so will also work for leaping, knifing, sporing, etc.
i use:
<!--c1--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>CODE</b> </td></tr><tr><td id='CODE'><!--ec1-->//Quick Guns;
alias +healgun "weapon_divinewind; weapon_healingspray; weapon_umbra; weapon_metabolize; weapon_devour; weapon_welder"
alias +hurtgun "weapon_parasite; weapon_bilebombgun; weapon_spore; weapon_acidrocketgun; weapon_stomp; weapon_pistol"
alias +movegun "weapon_leap; weapon_webspinner; weapon_primalscream; weapon_blink; weapon_charge; weapon_knife"
alias -healgun "weapon_bitegun; weapon_spit; weapon_bite2gun; weapon_swipe; weapon_claws; weapon_grenade; weapon_machinegun; weapon_shotgun; weapon_heavymachinegun; weapon_grenadegun"
alias -hurtgun -healgun
alias -movegun -healgun
<!--c2--></td></tr></table><div class='postcolor'><!--ec2-->
<!--c1--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>CODE</b> </td></tr><tr><td id='CODE'><!--ec1-->bind "MOUSE1" "+attack"
bind "MOUSE4" "+hurtgun"
bind "MOUSE5" "+movegun"
bind "SHIFT" "+healgun"
<!--c2--></td></tr></table><div class='postcolor'><!--ec2-->
press the 'gun key then mouse1 to trigger it. release the 'gun key and you go back to the default attack
it has things sorted more by what they do as opposed to what slot they're in it functions flawlesslessly regardless of ingame-FPS or server-side mp_blockscript settings.
Due to my script n00bieness, plz can u replace some of the slots to a different binding that I can use for skulk with bite and leap / slot1 ; slot3
my replacement characters didnt seem to help, even though I know how to basic script <!--emo&:p--><img src='http://www.unknownworlds.com/forums/html/emoticons/tounge.gif' border='0' style='vertical-align:middle' alt='tounge.gif' /><!--endemo-->
alias "fadeattacks" "bind mouse1 +fadeslot1;wait;bind mouse2 +fadeslot2"
bind "whichever key you feel like" "fadeattacks"
alias "+fadeslot1" "slot1;wait;+attack"
alias "-fadeslot1" "-attack"
alias "+fadeslot2" "slot2;wait;+attack"
alias "-fadeslot2" "-attack"
alias "normalattacks" "bind mouse1 +normalattack;wait;bind mouse2 +popupmenu"
alias "+normalattack" "+attack"
alias "-normalattack" "-attack"
However, IMO a more useful script would be this:
First, rebind +popupmenu to whatever you feel like. Then, simply bind this:
bind "whichever key you feel like" "fadelerkattacks"
alias "fadelerkattacks" "bind mouse2 +fadelerkattck"
alias "+fadelerkattck" "slot2;wait;+attack"
alias "-fadelerkattck" "-attack;wait;lastinv"
At hive 1, you're set to jet. You simply use mouse2 to blink with, then mouse1 to slash the marines mid-blink.
At hive 2 and 3, unless you plan on using just 2 attacks (with blink always being there) then you will have to use the keyboard with switching attacks..
Then this:
bind "whichever key you feel like" "skulkonoslerkattacks"
alias "skulkonoslerkattacks" "bind mouse2 +skulkleap"
alias "+skulkleap" "slot3;wait;+attack"
alias "-skulkleap" "-attack;lastinv"
This works for every alien, just to a lesser effect with gorge (it doesn't matter how fast you switch weapons with a gorge...).
Finally, here's another good one:
Bind "1" "+slot1attacks"
alias "+slot1attacks" "slot1;wait;+attack"
alias "-slot1attacks" "-attack"
Bind "2" "+slot2attacks"
alias "+slot2attacks" "slot2;wait;+attack"
alias "-slot2attacks" "-attack"
and do that for all the slots, making attacking easier (and leaving your mouse open).
Well, I'm done here...I have no idea if these scripts will work, I'm just assuming that they will, since I have made similar scripts.
//
alias +slot1.attack "slot1;wait;+attack"
alias -slot1.attack "-attack"
alias +slot2.attack "slot2;wait;+attack"
alias -slot2.attack "-attack"
//
alias tsnd.1 "play misc/talk.wav"
alias tsnd.2 "play misc/invalid.wav"
alias toggle.slotattack "slots.1"
alias slots.1 "bind mouse1 +slot1.attack;bind mouse2 +slot2.attack;tsnd.1;alias toggle.slotattack slots.2"
alias slots.2 "bind mouse1 +attack;bind mouse2 +popupmenu;tsnd.2;alias toggle.slotattack slots.1"<!--c2--></td></tr></table><div class='postcolor'><!--ec2-->
but it dosen't work
my autoexec.cfg contains: "exec "fade.cfg""
my fade.cfg contains the script
Whats wrong?, i dont have much experiance with scripting so i have no idea whats wrong, please help <!--emo&???--><img src='http://www.unknownworlds.com/forums/html/emoticons/confused-fix.gif' border='0' style='vertical-align:middle' alt='confused-fix.gif' /><!--endemo-->
When you toggle that particular script off and on; do you hear the sounds being played?
Update: still wont work i hear sounds just it will not attack
// FADE SCRIPT
bind mouse1 +angriff
bind mouse2 +blinken
bind mouse4 +heilen
bind mouse5 +fernkampf
alias +angriff "Slot1; wait; +attack"
alias -angriff "wait; -attack"
alias +blinken "slot2; wait; +attack"
alias -blinken "wait; -attack"
alias +heilen "Slot3; wait; +attack"
alias +fernkampf "Slot4; wait; +attack"
alias -fernkampf "wait; -attack"
<!--QuoteEnd--></td></tr></table><div class='postcolor'><!--QuoteEEnd-->
thats the script i use. Just create a file called "fade.cfg" and paste the text into it. write "exec fade.cfg" to the console if you need it ingame. If you dont need it any longer write "exec userconfig.cfg"
(i have F2 bound to fadeconfig and F3 bound to normal config)
<!--emo&:D--><img src='http://www.unknownworlds.com/forums/html/emoticons/biggrin-fix.gif' border='0' style='vertical-align:middle' alt='biggrin-fix.gif' /><!--endemo-->
I rarely use it tho...as I never fade.
<!--emo&::gorge::--><img src='http://www.unknownworlds.com/forums/html/emoticons/pudgy.gif' border='0' style='vertical-align:middle' alt='pudgy.gif' /><!--endemo--> > <!--emo&::fade::--><img src='http://www.unknownworlds.com/forums/html/emoticons/fade.gif' border='0' style='vertical-align:middle' alt='fade.gif' /><!--endemo-->
Press your "c" key to toggle the function ON and off. Sound queues let you know when it's on or off. Invalid sound means off, text posting sound means on
the <span style='color:green'>green portion</span> is what mouse1 defaults to, and the <span style='color:orange'>orange portion</span> is what mouse2 defaults to when the script is toggled "off"
<span style='font-size:9pt;line-height:100%'><b>bind c "toggle.slotattack"
//
alias +slot1.attack "slot1;wait;+attack"
alias -slot1.attack "-attack"
alias +slot2.attack "slot2;wait;+attack"
alias -slot2.attack "-attack"
//
alias tsnd.1 "play misc/talk.wav"
alias tsnd.2 "play misc/invalid.wav"
alias toggle.slotattack "slots.1"
alias slots.1 "bind mouse1 +slot1.attack;bind mouse2 +slot2.attack;tsnd.1;alias toggle.slotattack slots.2"
alias slots.2 "<span style='color:green'>bind mouse1 +attack</span>;<span style='color:orange'>bind mouse2 +popupmenu</span>;tsnd.2;alias toggle.slotattack slots.1"</b></span> <!--QuoteEnd--> </td></tr></table><div class='postcolor'> <!--QuoteEEnd-->
I'd like to use this script as a leap script as well. How would I go about changing it so toggling changes the Mouse2 bind between slot2/slot3 + attack?