Page 1 of 1

Little weapon script

Posted: Sat Feb 25, 2006 3:09 pm
by D'Artagnan
Here a little weapon script that i just did to personalize the type of crosshair and sensitivity for each weapon, on my side i use mouse accel...but thats personnal preference.
seta m_accel "0.4"


just bind the key of youre choice like this;
bind "YOURE KEY" "vstr ua_Gaunlet"
bind "YOURE KEY" "vstr ua_MachineGun"
etc...

set ua_Gaunlet "doImpulse _impulse0;sensitivity 4.5;g_crosshairCustomFile gfx/guis/crosshairs/crosshair_q3_5.tga"
set ua_MachineGun "doImpulse _impulse1;sensitivity 3.8;g_crosshairCustomFile gfx/guis/crosshairs/crosshair_q3_5.tga"
set ua_ShotGun "doImpulse _impulse2;sensitivity 4;g_crosshairCustomFile gfx/guis/crosshairs/crosshair_q3_10.tga"
set ua_Hyperblaster "doImpulse _impulse3;sensitivity 4;g_crosshairCustomFile gfx/guis/crosshairs/crosshair_q3_3.tga"
set ua_GrenadeLauncher "doImpulse _impulse4;sensitivity 4.5;g_crosshairCustomFile gfx/guis/crosshairs/crosshair_q3_10.tga"
set ua_NailGun "doImpulse _impulse5;sensitivity 4.5;g_crosshairCustomFile gfx/guis/crosshairs/crosshair_q3_3.tga"
set ua_RocketLauncher "doImpulse _impulse6;sensitivity 4.3;g_crosshairCustomFile gfx/guis/crosshairs/crosshair_q3_3.tga"
set ua_RailGun "doImpulse _impulse7;sensitivity 3.8;g_crosshairCustomFile gfx/guis/crosshairs/crosshair_q3_6.tga"
set ua_LightningGun "doImpulse _impulse8;sensitivity 4.5;g_crosshairCustomFile gfx/guis/crosshairs/crosshair_q3_3.tga"
set ua_DarkMatterGenerator "doImpulse _impulse9;sensitivity 4.5;g_crosshairCustomFile gfx/guis/crosshairs/crosshair_q3_3.tga"

weapon _impulse commands:

0 - gaunlet
1 - machinegun
2 - shotgun
3 - hyperblaster
4 - grenade launcher
5 - nailgun
6 - rocket launcher
7 - railgun
8 - lightning gun
9 - dark matter generator

I find it easyer to reconise my weapon...

Posted: Sat Feb 25, 2006 4:38 pm
by Requ!em
Thanks dan1407 =)

Examples of multiple weapon scripts and sensitivity/FOV scripts can be found at http://ucguides.savagehelp.com/Quake4/scripts.htm

Posted: Sat Feb 25, 2006 11:04 pm
by Oeloe
Can you explain why you want a different ch for each weapon? I've been using the little dot in Q3 forever and in Q4 now too. Anything else is too obtrusive for me. How do different crosshairs help your aim? Does a big cross help you track targets better or smtg?

Posted: Sat Feb 25, 2006 11:06 pm
by xchaser
yea it does. Try it out and you will see.

Posted: Sat Feb 25, 2006 11:12 pm
by kleeks
I switched to default weapon crosshair when i started tio play q4.
always played q3 with weapon showing, and red dot for crosshair. Now in q4 without weapon, i like the crosshair to change so i know which weapon i am holding without looking :icon32: