Aiming down sights doesn't remove crosshair

Discuss all aspects related to modding Zandronum here.
Post Reply
User avatar
Fabysk
Forum Regular
Posts: 469
Joined: Sat Sep 22, 2012 8:17 pm
Location: In a house...duhh

Aiming down sights doesn't remove crosshair

#1

Post by Fabysk » Sun Feb 23, 2014 2:58 am

Not sure why the crosshairs don't go away. It uses a HudMessage to make the crosshairs appear and disappear...
Take a look at the scripts:
http://pastebin.com/6v1DYPUL
Last edited by Fabysk on Sun Feb 23, 2014 2:58 am, edited 1 time in total.
Image Image Image

User avatar
-Jes-
Frequent Poster Miles card holder
Posts: 975
Joined: Fri Aug 03, 2012 9:55 am
Location: Void Zone

RE: Aiming down sights doesn't remove crosshair

#2

Post by -Jes- » Sun Feb 23, 2014 10:19 am

1. OH GOD THE VOLTCODE MY EYES
2. Open is only run by the server - and acs_terminate is basically not useful for this
3. Rather than waste scripts like that, you should make your weapons give/take an Aiming inventory item through decorate, then have
A) a ENTER clientside script check for it with an ELSE condition
B) an SBARINFO tree check for it with an ELSE condition
Last edited by -Jes- on Sun Feb 23, 2014 10:19 am, edited 1 time in total.

Lollipop
Zandrone
Posts: 1124
Joined: Tue Jul 24, 2012 10:34 am
Location: Denmark

RE: Aiming down sights doesn't remove crosshair

#3

Post by Lollipop » Sun Feb 23, 2014 5:33 pm

also, why... just why do you repeat the same code all the time instead of either throwing it into a function or just putting a bunch of "or"s into you code to ask for all items at the same time? (not sure if ACS supports or, it just popped up in my head)
Combinebobnt wrote:i can see the forum league is taking off much better than the ctf ones
GalactusToday at 1:07 PM
are you getting uncomfortable jap
feeling something happen down there

Post Reply