Tutorial : Changing the name of a weapon the easy way

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
User avatar
MPowell1944
Moderator
Posts: 287
Joined: Thu Jan 09, 2003 7:06 am
Location: Woodstock, GA
Contact:

Tutorial : Changing the name of a weapon the easy way

Post by MPowell1944 »

For those of you who have been wondering how you can change the weaponname without editing the localization.txt file, here is a tutorial for you :

(Using BAR as an example)

1. Open the Pak0/ui folder and make a copy of the hud_ammo_bar.urc file. Make sure to copy it into your own /ui folder. (Of course if you have another weapon, the .urc file will be named for that weapon.)

2. Now, open your copy of hud_ammo_bar.urc and scroll down to the last section, which should be the weaponname section.

3. Right below the line that says name "weaponname", add in this line, replacing WeaponNameHere with the name you want to use for the weapon :

title "WeaponNameHere"

4. Now, below your new line you will see a line that says itemstat 1. Delete that line, as that line is what tells the game to show the real name of the gun you are using, which in this case would be BAR.

5. Now, save the .urc file and pack it up with the rest of your mod and your new weapon will have it's own name without messing around with anything complicated.

Oh and no worries. This is a clientside change, so no need to worry about the server having it as well.

If you are having any problems with this, add me to your MSN Messenger by adding MPowell1944@hotmail.com to your contactlist.

I will be making an official tutorial covering this and hopefully it will be posted on a couple of sites shortly. Thanks and good luck.
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

Yum yum new tutorial. Very interesting. ;)
Image
User avatar
MPowell1944
Moderator
Posts: 287
Joined: Thu Jan 09, 2003 7:06 am
Location: Woodstock, GA
Contact:

Post by MPowell1944 »

I used this with the dynamite I made, so I figured why not allow others to improve upon their weapons as well.
m4rine
Major General
Posts: 714
Joined: Fri Apr 11, 2003 5:28 pm
Location: UK

Post by m4rine »

u can change both the weapon and taunts and everybit of dialogue you want in the global --> localization. I got the file of modtheater it lets u change everything they say to really runny things. (in text not in sound)



i cnt find where the file is so open up notepad and add (you can edit them to say anything) once done, create a new folder in main called 'global and save them in there. simple.

8)
"We must become the change we want to see in the world" (Mahatma Gandhi)
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

It's in pak0.pk3 in the global folder.

Sorry m4rine, I had to remove some of the stuff you posted to keep this thread readable.
Image
m4rine
Major General
Posts: 714
Joined: Fri Apr 11, 2003 5:28 pm
Location: UK

Post by m4rine »

ok, ill try and find the link to the download instead of typing it all out, its quite good you can change every bit of text in the game. geat fun

8)
"We must become the change we want to see in the world" (Mahatma Gandhi)
User avatar
MPowell1944
Moderator
Posts: 287
Joined: Thu Jan 09, 2003 7:06 am
Location: Woodstock, GA
Contact:

Post by MPowell1944 »

Yes, you can edit the localization.txt file to get the same effect, but what if you are playing on a server that is running a modified localization.txt file? Then yours will be cancelled out. With my method you don't have to worry about this.
m4rine
Major General
Posts: 714
Joined: Fri Apr 11, 2003 5:28 pm
Location: UK

Post by m4rine »

well i don't play multiplayer, so i woudnt now. i try to play but i get disconnected after 15 secs.

It works well with bot multiplayer, though i guess ur way is better vecause its fool-proof ;)
"We must become the change we want to see in the world" (Mahatma Gandhi)
Post Reply