I am trying to make a script that will load a different crosshair and size for different weapons.
Here is what I have so far:
I'm not sure why, but it isn't working.
Any help would be greatly appreciated!
Here is what I have so far:
[SELECT ALL] Code:
//crosshairs
if (= curweapon 0) [crosshairsize 50; loadcrosshair c_2.png 0] //knife
if (= curweapon 1) [crosshairsize 25; loadcrosshair b_5.png 1] //pistol
if (= curweapon 2) [crosshairsize 20; loadcrosshair d_2.png 2] //shotgun
if (= curweapon 3) [crosshairsize 20; loadcrosshair d_3.png 3] //subgun
if (= curweapon 5) [crosshairsize 20; loadcrosshair d_4.png 5] //assaultrifle
if (= curweapon 6) [crosshairsize 50; loadcrosshair a_2.png 6] //grenades
I'm not sure why, but it isn't working.
Any help would be greatly appreciated!