Alien Weapon Select Script

GreyFlcnGreyFlcn Join Date: 2006-12-19 Member: 59134Posts: 648Members, Constellation
Usage:
Holding down the Right, Backward, Forwards key on the mouse selects slot2, slot3, slot4 respectively for aliens.
Releasing the key goes back to slot 1.

It does this silently.

CODE
alias sa1 "weapon_bitegun; weapon_spit; weapon_bite2gun; weapon_swipe; weapon_claws"
alias sa2 "weapon_parasite; weapon_healingspray; weapon_spore; weapon_blink; weapon_devour"
alias sa3 "weapon_leap; weapon_bilebombgun; weapon_umbra; weapon_metabolize; weapon_stomp"
alias sa4 "weapon_divinewind; weapon_webspinner; weapon_primalscream; weapon_acidrocketgun; weapon_charge"

alias +slot2 "sa2"
alias -slot2 "sa1"

alias +slot3 "sa3"
alias -slot3 "sa1"

alias +slot4 "sa4"
alias -slot4 "sa1"

bind mouse1 +attack
bind mouse2 +slot2
bind mouse4 +slot3
bind mouse5 +slot4


Also offers up the potential of mixing and matching.
Which should be an advantage when 3.2 final rolls around.
Since with the exception of Lerk and Gorge, the other aliens will have a key free'd up due to +Movement
CODE
alias +moveit "weapon_leap; weapon_healingspray; weapon_spore; weapon_blink; weapon_charge"
alias -moveit "weapon_bitegun; weapon_spit; weapon_bite2gun; weapon_swipe; weapon_claws"

bind mouse1 +attack
bind mouse2 +moveit
IPB Image

Comments

  • GreyFlcnGreyFlcn Join Date: 2006-12-19 Member: 59134Posts: 648Members, Constellation
    Speaking of customization
    After some play testing, I arrived at my ideal mix.

    Leap and Parasite are switched.
    That way Leap is on Right Mouse, just like Fade Blink.

    And a couple of the slot3's and slot4's do not revert back to clawing/spitting
    Mouse2 always does though, so it works out.

    So far it rocks for Skulk, Gorge, Fade, Onos
    Lerk, I just don't play lerk enough ;D

    CODE
    alias +slot2 "weapon_leap; weapon_healingspray; weapon_spore; weapon_blink; weapon_devour"
    alias -slot2 "weapon_bitegun; weapon_spit; weapon_bite2gun; weapon_swipe; weapon_claws"

    alias +slot3 "weapon_parasite; weapon_bilebombgun; weapon_umbra; weapon_metabolize; weapon_stomp"
    alias -slot3 "weapon_bitegun; weapon_bite2gun"

    alias +slot4 "weapon_divinewind; weapon_webspinner; weapon_primalscream; weapon_acidrocketgun; weapon_charge"
    alias -slot4 "weapon_bitegun; weapon_spit; weapon_bite2gun"

    bind mouse1 +attack
    bind mouse2 +slot2
    bind mouse4 +slot3
    bind mouse5 +slot4
    IPB Image
  • ReKReK Join Date: 2004-08-30 Member: 31058Posts: 708Members, Constellation, Reinforced - Shadow, WC 2013 - Silver
    *cough* tounge.gif

    CODE
    //ReK_'s Alien Lastinv
    //Modelled after Romano's Lastinv
    //Flood-guard code for binding
    //Non-flood code for calling in configs

    alias slot.l "slot1"

    alias +slot1.1 "slot1.s"
    alias +slot1.2 "slot1.s; bind q +slot2.1"
    alias +slot1.3 "slot1.s; bind q +slot3.1"
    alias +slot1.4 "slot1.s; bind q +slot4.1"
    alias -slot1.1 ""
    alias -slot1.2 ""
    alias -slot1.3 ""
    alias -slot1.4 ""
    alias slot1.1 "slot1.s"
    alias slot1.2 "slot1.s; bind q +slot2.1"
    alias slot1.3 "slot1.s; bind q +slot3.1"
    alias slot1.4 "slot1.s; bind q +slot4.1"
    alias slot1.s "slot1; bind 1 +slot1.1; bind 2 +slot2.1; bind 3 +slot3.1; bind 4 +slot4.1; alias slot.l slot1"

    alias +slot2.1 "slot2.s; bind q +slot1.2"
    alias +slot2.2 "slot2.s"
    alias +slot2.3 "slot2.s; bind q +slot3.2"
    alias +slot2.4 "slot2.s; bind q +slot4.2"
    alias -slot2.1 ""
    alias -slot2.2 ""
    alias -slot2.3 ""
    alias -slot2.4 ""
    alias slot2.1 "slot2.s; bind q +slot1.2"
    alias slot2.2 "slot2.s"
    alias slot2.3 "slot2.s; bind q +slot3.2"
    alias slot2.4 "slot2.s; bind q +slot4.2"
    alias slot2.s "slot2; bind 1 +slot1.2; bind 2 +slot2.2; bind 3 +slot3.2; bind 4 +slot4.2; alias slot.l slot2"

    alias +slot3.1 "slot3.s; bind q +slot1.3"
    alias +slot3.2 "slot3.s; bind q +slot2.3"
    alias +slot3.3 "slot3.s"
    alias +slot3.4 "slot3.s; bind q +slot4.3"
    alias -slot3.1 ""
    alias -slot3.2 ""
    alias -slot3.3 ""
    alias -slot3.4 ""
    alias slot3.1 "slot3.s; bind q +slot1.3"
    alias slot3.2 "slot3.s; bind q +slot2.3"
    alias slot3.3 "slot3.s"
    alias slot3.4 "slot3.s; bind q +slot4.3"
    alias slot3.s "slot3; bind 1 +slot1.3; bind 2 +slot2.3; bind 3 +slot3.3; bind 4 +slot4.3; alias slot.l slot3"

    alias +slot4.1 "slot4.s; bind q +slot1.4"
    alias +slot4.2 "slot4.s; bind q +slot2.4"
    alias +slot4.3 "slot4.s; bind q +slot3.4"
    alias +slot4.4 "slot4.s"
    alias -slot4.1 ""
    alias -slot4.2 ""
    alias -slot4.3 ""
    alias -slot4.4 ""
    alias slot4.1 "slot4.s; bind q +slot1.4"
    alias slot4.2 "slot4.s; bind q +slot2.4"
    alias slot4.3 "slot4.s; bind q +slot3.4"
    alias slot4.4 "slot4.s"
    alias slot4.s "slot4; bind 1 +slot1.4; bind 2 +slot2.4; bind 3 +slot3.4; bind 4 +slot4.4; alias slot.l slot4"

    //ReK_'s Alien Quick-attack script
    //Click or hold mouse2 to switch to and attack with the set quick-attack weapon
    //Use V and B to cycle through the slots for your quick-attack weapon
    //Letting go of mouse2 will switch you back to your previous weapon, without disturbing the quickswitch
    alias +qs1 "slot1; wait; +attack"
    alias -qs1 "-attack; wait; slot.l"
    alias qs1 "bind mouse2 +qs1; alias qsf qs2; alias qsb qs4; speak one"
    alias +qs2 "slot2; wait; +attack"
    alias -qs2 "-attack; wait; slot.l"
    alias qs2 "bind mouse2 +qs2; alias qsf qs3; alias qsb qs1; speak two"
    alias +qs3 "slot3; wait; +attack"
    alias -qs3 "-attack; wait; slot.l"
    alias qs3 "bind mouse2 +qs3; alias qsf qs4; alias qsb qs2; speak three"
    alias +qs4 "slot4; wait; +attack"
    alias -qs4 "-attack; wait; slot.l"
    alias qs4 "bind mouse2 +qs4; alias qsf qs1; alias qsb qs3; speak four"
    alias qsf "qs3"
    alias qsb "qs1"
    bind "v" "qsb"
    bind "b" "qsf"

    bind mouse1 +attack


    The quick attack will not work on BS 1 servers, but you can just not include it and the lastinv will work fine.

    Full pack should still be avaliable on my old filefront account: http://hosted.filefront.com/ReKKeR/1369462
    The marine version in the 3.1 pack can deal with the multiple weapons in slot 4, but I left the community around then, so it was kind of slap-dash and I honestly don't know how buggy it is, though it seemed to be fine the few times I tested it.

    The full version uses evolve scripts as well, and will set a default quick-attack as well as lastinv for each lifeform. To use it, F6 joins the alien team, then F7-F11 are the lifeforms, in the order of Skulk, Lerk, Fade, Onos, Gorge. Pressing them will evolve you and reconfigure the scripts for it. They all have different sensitivity settings, etc. For example, the skulk has leap on the quickattack (which is now obsoleted by +movement, but whatever) and parasite on lastinv. Pressing F7 will set these, so you don't actually have to switch to parasite then back to get it on your lastinv. The quick attack does not interfere, either, so using the quick-leap will still leave your lastinv as parasite. If you ever change something or it breaks due to lag and you can't figure it out, just flick the mousewheel up, it resets everything to the current configuration. (mousewheeldown is a 180-degree spin script, though it depends on your fps and last time I checked it was broken. You could tweak the yaw values to fix it if you wanted). When using it I got into the habit of just automatically flicking the mousehweel up everytime I died, to make sure things were good when I spawned in.

    Also, if you ever want some help with console scripting or writing small (it's called pawn now, isn't it?) for server plugins, you should be able to find me in IRC in #dystopia (irc://irc.gamesurge.net/dystopia if you have a decent client installed)
    Jumping send out a big hank cyclone, it will eddy original location in gallinaceous body, and pinch three times, opponent
Sign In or Register to comment.