Forum

need scripting help

Created 15th March 2012 @ 04:09

Add A Reply Pages: 1

kawaii

So I have this crosshair color changing script when I execute a command, like when I +attack, it changes to blue. I customized stabbystabby’s script.
I need help on so that for example:
I press crouch and continue to hold it down, the crosshair changes to magenta. I +jump and the crosshair changes to cyan but it does not change back to magenta (I’m still holding crouch and stopped holding jump).
I want it so that as long as I’m executing a command (e.g. +jump) it will continue to stay that color after I stop executing another command (e.g. +crouch).
Thanks in advance :)

BTW, my script


Last edited by kawaii,

Hey Sokair
I don’t realy see why such a script should be useful, but that’s not the point of this topic. =).

I made a little script for you. I wasn’t able to test it because I’m at work. But I think it will do the job.

Also I wasn’t able to view your cfg cause dropbox is blocked here :(.

alias "default" "YOUR DEFAULT COLORS HERE"
alias "magenta" "cl_crosshair_red 255; cl_crosshair_green 0; cl_crosshair_blue 255"
alias "cyan" "cl_crosshair_red 0; cl_crosshair_green 0; cl_crosshair_blue 255"
alias "blue" "cl_crosshair_red 60; cl_crosshair_green 158; cl_crosshair_blue 255"

alias "color2" "default"

alias "+colorcrouch" "+duck;magenta; alias color2 magenta"
alias "-colorcrouch" "-duck;default; alias color2 default"

alias "+colorjump" "+jump;cyan"
alias "-colorjump" "-jump;color2"

alias "+colorattack" "+attack;blue"
alias "-colorattack" "+attack;color2"

bind "CTRL" "+colorcrouch"
bind "SPACE" "+colorjump"
bind "MOUSE1" "+colorattack"

I hope this helps.

Cheers

SiriusA

EDIT 12:51: added +colorattack


Last edited by SiriusA,

kawaii

Quoted from SiriusA

Hey Sokair
I don’t realy see why such a script should be useful, but that’s not the point of this topic. =).

I made a little script for you. I wasn’t able to test it because I’m at work. But I think it will do the job.

Also I wasn’t able to view your cfg cause dropbox is blocked here :(.

[…]
I hope this helps.

Cheers

SiriusA

EDIT 12:51: added +colorattack

Wow…thank you very much!

EDIT: I’m not sure if it matters, but here is my config.
Thanks for the help again


Last edited by kawaii,

Add A Reply Pages: 1