How to add gold indicator for coins

Post here if you have problems getting Reality Factory running on your machine. Please make sure you have the latest DirectX installed as well as updated drivers for your video & sound card before posting...
Post Reply
User avatar
aicd99
Posts: 264
Joined: Mon Oct 10, 2011 11:17 am

How to add gold indicator for coins

Post by aicd99 »

Hello everyone

I need help on getting the gold indicator for the coin attribute in my game project. I only need the colour to change just for the coins and no other types of attributes such as heath. That should remain green.

I made the file for the gold indicator already

Image

This how it should look like only expect the green indicatior for the coins should be gold instead.

Image


Thanks for your time.
Allanon
Posts: 493
Joined: Mon Aug 29, 2005 8:23 am

Re: How to add gold indicator for coins

Post by Allanon »

You will need to change the CHeadsUpDisplay class in the source code if you want a new indicator. Right now it only has an indicator for all non-npc actors and an indicator for all npc actors.
User avatar
aicd99
Posts: 264
Joined: Mon Oct 10, 2011 11:17 am

Re: How to add gold indicator for coins

Post by aicd99 »

Allanon wrote:You will need to change the CHeadsUpDisplay class in the source code if you want a new indicator. Right now it only has an indicator for all non-npc actors and an indicator for all npc actors.
What NPC mean ?
How do I change the source code and will there be a new reality factory release ?

What is the diference between NPC actors and non NPC actor ?
Allanon
Posts: 493
Joined: Mon Aug 29, 2005 8:23 am

Re: How to add gold indicator for coins

Post by Allanon »

What NPC mean ?
Non Player Character
How do I change the source code and will there be a new reality factory release ?
You will need Microsoft's Visual Studio C++ compiler and the knowledge of how to compile Reality Factory in order to change the source code. It's not something you should try if you don't know how to program. And I don't know if there is going to be a new release.
What is the difference between NPC actors and non NPC actor ?
NPC actors are computer controlled actors such as a hostile robot and non NPC actors are stuff like heath packs and gold coins.
User avatar
steven8
Posts: 1487
Joined: Wed Aug 24, 2005 9:08 am
Location: Barberton, OH

Re: How to add gold indicator for coins

Post by steven8 »

In the hud.ini file (found in the install folder) change npcindicator = hud\indicator_red.bmp to npcindicator = hud\indicator_gold.bmp. That should work.

[radar]
frame = hud\hud_radar.bmp
framealpha = hud\a_hud_radar.bmp
indicator = hud\indicator_green.bmp
indicatoralpha = hud\a_indicator.bmp
npcindicator = hud\indicator_red.bmp
npcindicatoralpha = hud\a_indicator.bmp
framex = -138
framey = 10
range = 3000

*edit* I just saw that you only want the coins gold. I imagine that would involve some programming. Sorry, thought I'd cracked that one for you.
Steve Dilworth - Resisting change since 1965!
User avatar
aicd99
Posts: 264
Joined: Mon Oct 10, 2011 11:17 am

Re: How to add gold indicator for coins

Post by aicd99 »

Hopefully that can be done a in new RF version
User avatar
steven8
Posts: 1487
Joined: Wed Aug 24, 2005 9:08 am
Location: Barberton, OH

Re: How to add gold indicator for coins

Post by steven8 »

I am not a scripter, but I know some amazing things have been done with scripts. It's like programming without the source code. Their is a lot of documentation on it in the scripting folder.
Steve Dilworth - Resisting change since 1965!
Post Reply