2 quest

Topics regarding Scripting with Reality Factory
Post Reply
User avatar
darksmaster923
Posts: 1857
Joined: Wed Jan 03, 2007 10:32 pm
Location: Huntington Beach, California, USA

2 quest

Post by darksmaster923 »

how do you make an ammo indicater and turn on the scope?
Herp derp.
User avatar
Juutis
Posts: 1511
Joined: Thu Jan 12, 2006 12:46 pm
Location: Finland

Post by Juutis »

Ammo indicator is a part of the HUD (Heads Up Display).
There's a pretty good explanation of how to do this in the manual. See 'Clip & Magazine display' part in the 'Heads Up Display' section.



To use the scope, you first need to make the weapon zoomable. Open install\weapon.ini and find the definition for the weapon that you want to give zoom to. Then add line (or if it already exists, modify) 'zoomamount = 5'. You can of course have a different number there, as long as it's not zero.
You might also want to add a 'zoomoverlay'. It's a bitmap image that's placed on top of the screen when zooming. It is defined with lines 'zoomoverlay' and 'zoomoverlayalpha'.
There's more info in the section called 'Weapon And Projectile Definition' in the manual.

Then just run RF and select the weapon that now has zoom. Pressing the zoom key should work...
You can check and change the zoom key in options (Main Menu -> Options -> Controls).
Pain is only psychological.
Post Reply