Little weapon script

Locked
D'Artagnan
Posts: 468
Joined: Sun May 14, 2000 7:00 am

Little weapon script

Post 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...
[url=http://powerquebec.forumpro.fr/][color=red][b]Fast and furious_[/b][/color]That's what it's all about...[/url][img]http://pages.infinit.net/oldman/rank14.gif[/img]
Requ!em
Posts: 62
Joined: Wed Mar 08, 2000 8:00 am

Post 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
Oeloe
Posts: 1529
Joined: Fri Mar 19, 2004 8:00 am

Post 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?
xchaser
Posts: 280
Joined: Sat Dec 04, 1999 8:00 am

Post by xchaser »

yea it does. Try it out and you will see.
|-----|
kleeks
Posts: 161
Joined: Sat Apr 14, 2001 7:00 am

Post 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:
Locked