Cross hair for KFMod20 weapons  (Read 14557 times)

poompoom500

  • 1337
  • *
  • Posts: 708
  • Country: us
  • For my one and only Dottie.
    • poompoom500
    • poompoom500
Cross hair for KFMod20 weapons
« on: August 27, 2015, 06:13 »
 :-[

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

  • 1337
  • *
  • Posts: 945
  • Country: au
Re: Cross hair for KFMod20 weapons
« Reply #1 on: August 27, 2015, 11:01 »
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

  • 1337
  • *
  • Posts: 708
  • Country: us
  • For my one and only Dottie.
    • poompoom500
    • poompoom500
Re: Cross hair for KFMod20 weapons
« Reply #2 on: August 27, 2015, 12:43 »
 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
« Last Edit: August 27, 2015, 18:37 by poompoom500 »

N3Cr0

  • 1337
  • *
  • Posts: 641
  • Country: de
Re: Cross hair for KFMod20 weapons
« Reply #3 on: August 28, 2015, 08:01 »
I'm not sure, but have you tired setting "CustomCrosshair" on a value, different from "-1" ?
http://n3cr0.itch.io/

xmpp: n3cr0@jabber.ccc.de

poompoom500

  • 1337
  • *
  • Posts: 708
  • Country: us
  • For my one and only Dottie.
    • poompoom500
    • poompoom500
Re: Cross hair for KFMod20 weapons
« Reply #4 on: August 28, 2015, 20:37 »
 C:-)

To N3Cro,

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