Gaming Zone > Killing Floor Mod

Cross hair for KFMod20 weapons

(1/1)

poompoom500:
 :-[

To Whomever,

Just curious. Has anyone ever asked for the code/script to put cross hair (aim) for the KFMod20 weapons? (How do you code the weapons to show cross hair reticule on the weapons?)

Snipe34:
Way back it was done... from modifying the code, I think.

off-the-top-of-my-head:
In the defaultproperties of KFWeapon, you'd need to add:
    CustomCrosshair=-1  < not sure what this does
    CustomCrossHairColor=(R=0,G=0,B=0,A=0),  Maybe changing the colour?
    CustomCrossHairTextureName=""  Find a crossHair tex in the files and add it here is the important part.

Then reCompile.

poompoom500:
 C:-)

To Snipe34,

Hey. Long time no hear! This script/code is for each weapon? And can you give me an idea as to where the cross hairs texture is...? Please.

UPDATE: Nevermind. I found out where the cross hairs textures are. Anyways, the script doesn't make it show cross hairs! I even copied the XWeapons code from UT2004. And that didn't work. Any more ideas?

Below is the code from KFMod20User.ini that I changed:


--- Quote ---[KFMod.Bullpup]
bUseOldWeaponMesh=False
ExchangeFireModes=0
Priority=5
CustomCrosshair=-1
CustomCrossHairColor=(B=0,G=0,R=255,A=0)
CustomCrossHairScale=1.000000
CustomCrossHairTextureName=Crosshairs.Hud.Crosshair_Cross5
--- End quote ---

N3Cr0:
I'm not sure, but have you tired setting "CustomCrosshair" on a value, different from "-1" ?

poompoom500:
 C:-)

To N3Cro,

It's worth a try. I'll see what happens!

Navigation

[0] Message Index

Go to full version