Here's a stupid question...

Post topics regarding Level Building/Design and Entity Usage with Reality Factory
Post Reply
User avatar
metal_head
Posts: 1244
Joined: Sat Jan 05, 2008 8:31 pm
Location: Bulgaria,Sofia
Contact:

Here's a stupid question...

Post by metal_head »

I have a problem adding new weapons!Now I see in the menu and in control.ini that there are 9 weapon slots,but only 7 of them are used I decided to add one more weapon,but I added it in weapon.ini,and put it in slot 7,but the result was nothing,when I started the game there wasn't a weapon in the slot (I'm saying that when I push the button for the weapon nothing happens),than I deleted the minigun and named the new weapon minigun and it worked just fine than I tried to rename the Sprayer to Sprayer1 and It was the same,the sprayer didn't appear...
Why is this happening it's because of the name,right? But how do I fix it.It's a very lame question,but I couldn't find the answer anywhere
User avatar
Juutis
Posts: 1511
Joined: Thu Jan 12, 2006 12:46 pm
Location: Finland

Re: Here's a stupid question...

Post by Juutis »

You have to "give" the weapon to the player. After defining the weapon go open player.ini and add:

Code: Select all

[<WEAPON NAME>]
initial = 1
low = 0
high = 1
So for example if your weapon is named Sprayer1 you would add:

Code: Select all

[Sprayer1]
initial = 1
low = 0
high = 1
Pain is only psychological.
User avatar
QuestOfDreams
Site Admin
Posts: 1520
Joined: Sun Jul 03, 2005 11:12 pm
Location: Austria
Contact:

Re: Here's a stupid question...

Post by QuestOfDreams »

Read the following sections in the RF manual :!:
Getting Started -> Adding A Weapon
Component Reference -> INI Files -> AttributeInfoFile
Component Reference -> INI Files -> Effect.ini
Component Reference -> INI Files -> Explosion.ini
Component Reference -> INI Files -> Weapon.ini
User avatar
metal_head
Posts: 1244
Joined: Sat Jan 05, 2008 8:31 pm
Location: Bulgaria,Sofia
Contact:

Re: Here's a stupid question...

Post by metal_head »

Wow! man Thanks Juutis (it really is a stupid question)
QoD,I couldn't find them in the manual,that's why I asked,Thanks for the fast replies btw
Post Reply