Page 8 of 8

Posted: Wed May 26, 2010 2:43 pm
by minchiano
A question to you scripters out there. Is it possible to make an 'if' script depending on an echo?

If so, could someone with the skill and 15 minutes to kill make a script that drops the M4 and mp5 on pick-up and instead does a check among the rest of the guns.

Would make my day for sure.


For further info on how I'd like it to work, reply. Thanks.




uNF!

Posted: Tue Jun 01, 2010 9:04 am
by Juba
Sometimes when there are several frags in short time, it's hard to see the names of the players (who died or fragged someone) without looking at the console. This will make it easier to spot the names without looking at the console by coloring them like this. Credits to rOnZu for this.

Code: Select all

set cl_highlightnames "1"
set cl_highlightcolor "0"
set cl_highlightmsg ""
set cl_highlight "0"
This my modified sniperscript (original can be found here). The zooming goes like (1x) - 2x - 4x - 2x - 4x etc. If you're in tight situation where 2x zoom is needed (and you have 4x zoom at that moment), this will save your precious time as you can change the zoom immediately to 2x without resetting the zoom to 1x. There are sensitivity reset triggers for round start, both normal play and CTF. Your sensitivy will also be reset if someone kicks your sniper rifle from your hands.

Code: Select all

//Sniperscript

//Sensitivity values
//******************
set sens1x 6
set sens2x 5
set sens4x 2.5
set sens6x 1

sensitivity $sens1x$

//Prevent accidental sensitivity changes with other weapons
//*********************************************************
alias 2x "if sniper isin $cl_weaponmodel$ then 2xchecked"

//Script
//******
alias 2xchecked "lens 2;sensitivity $sens2x$; alias zoomin 4x;echo [2x]"
alias 4x "lens 4;sensitivity $sens4x$; alias zoomin 2xchecked;echo [4x]"
alias quick1x "lens 1;sensitivity $sens1x$;alias zoomin 2x;alias zoomout alrd1x"
alias alrd1x "lens 1;sensitivity $sens1x$;"

alias "quick1x" "lens 1;sensitivity $sens1x$;alias zoomin 2x"

alias zoomin 2x
alias zoomout quick1x

//Zooming buttons
//***************
bind mwheelup zoomin
bind mwheeldown zoomout

//Sensitivity reset triggers
//**************************
trigger "quick1x" "LIGHTS..."
trigger "quick1x" "Shield 2"
trigger "quick1x" "*kicked your weapon from your hands!*"
Enjoy. 8)