Page 1 of 1

Here's a stupid question...

Posted: Fri Jun 27, 2008 12:34 pm
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

Re: Here's a stupid question...

Posted: Fri Jun 27, 2008 12:55 pm
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

Re: Here's a stupid question...

Posted: Fri Jun 27, 2008 1:00 pm
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

Re: Here's a stupid question...

Posted: Fri Jun 27, 2008 1:17 pm
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