Author Topic: Renaming Default Weapons For In Game Stuff.  (Read 1311 times)

I need to change the name of the rocket launcher ingame. What to do?



You already posted a topic in coding help, you don't need multiple topics.

Okay, On the top of the .cs you will find "Edit"(i think. Its the second thing that is there)
Click it and search for "Replace"

Then click the upper list(The thing were you can write) and then type inn the weapon's name
In the one that is under you shall type in what you want it to be named accept what it was before
Then click "Replace All"

And there you go, hope you understand, cause i don't understand what i just wrote O_o


If you are only trying to rename the weapons in-game name itself, you change the uiName.

Code: [Select]
//////////
// item //
//////////
datablock ItemData(GunItem)
{
category = "Weapon";  // Mission editor category
className = "Weapon"; // For inventory system

// Basic Item Properties
shapeFile = "./pistol.dts";
rotate = false;
mass = 1;
density = 0.2;
elasticity = 0.2;
friction = 0.6;
emap = true;

//gui stuff
uiName = "Gun";
iconName = "./icon_gun";
doColorShift = true;
colorShiftColor = "0.25 0.25 0.25 1.000";

// Dynamic properties defined by the scripts
image = gunImage;
canDrop = true;
};

Under //gui stuff, you just change Gun to the wanted name.
« Last Edit: May 09, 2010, 06:46:57 PM by Blastdown »

If you are only trying to rename the weapons in-game name itself, you change the uiName.

Code: [Select]
//////////
// item //
//////////
datablock ItemData(GunItem)
{
category = "Weapon";  // Mission editor category
className = "Weapon"; // For inventory system

// Basic Item Properties
shapeFile = "./pistol.dts";
rotate = false;
mass = 1;
density = 0.2;
elasticity = 0.2;
friction = 0.6;
emap = true;

//gui stuff
uiName = "Gun";
iconName = "./icon_gun";
doColorShift = true;
colorShiftColor = "0.25 0.25 0.25 1.000";

// Dynamic properties defined by the scripts
image = gunImage;
canDrop = true;
};

Under //gui stuff, you just change Gun to the wanted name.

Yeah, but the weapon still overwrite the Rocket L by doing that.

Yeah, but the weapon still overwrite the Rocket L by doing that.
In this case the gun.. You need to change the datablock names.