| |
How to create an Helmet
Here I will explain how you can create an helmet that you can wear in addition to the normal Armor. (Like the sheepherders hat in "Die Bedrohung")
A helmet is a static mesh and you don´t need 3D Studio Max to create one.
First you start any 3D programm with that you can export to the 3DS format.
Then you create a box with 30cm * 30cm * 20cm at the midpoint (0/0/0), that is the center of the head. Then put a textur on the box and export it to 3DS into the Meshes directory.
Then we create the script.
INSTANCE loa_helmet2 (C_Item)
{
name = "The real hat";
mainflag = ITEM_KAT_ARMOR;
flags = 0;
protection [PROT_EDGE] = 40;
protection [PROT_BLUNT] = 40;
protection [PROT_POINT] = 40;
protection [PROT_FIRE] = 0;
protection [PROT_MAGIC] = 0;
value = VALUE_ITAR_Governor;
wear = WEAR_Head;
visual = "helmet.3ds"; //Here you put in the name of your file.
visual_skin = 0;
material = MAT_LEATHER;
description = name;
TEXT[1] = NAME_Prot_Edge;
COUNT[1] = protection [PROT_EDGE];
TEXT[2] = NAME_Prot_Point;
COUNT[2] = protection [PROT_POINT];
TEXT[3] = NAME_Prot_Fire;
COUNT[3] = protection [PROT_FIRE];
TEXT[4] = NAME_Prot_Magic;
COUNT[4] = protection [PROT_MAGIC];
TEXT[5] = NAME_Value;
COUNT[5] = value;
};
Attention: Who copy this script have to regard that the visual name is correct!
Now you compile the script and then you can test it ingame when you type "insert loa_helmet" into the console. When you now take the helmet and wear it you should have your box on the head.
Of course you can design the mesh how you want, the box was only an example.
Original Author: Black Eye
Translated from German to English by: DerNamenloseModder
|
|