Author Topic: Weapon spawns too high  (Read 1043 times)

Alright, so I made this gun and it spawns too high.
I asked around and according to Trigun it's the item's offset. So I changed the offset and it didn't change.
It's also not the model because it's positioned like any other gun.

Here's the ItemData stuff, the part that needs to get changed.
Code: [Select]
datablock ItemData(RevolverItem)
{
category = "Weapon";  // Mission editor category
className = "Weapon"; // For inventory system

// Basic Item Properties
shapeFile = "./Revolver.dts";
rotate = false;
mass = 1;
density = 0.2;
elasticity = 0.2;
friction = 0.6;
emap = true;
offset = "0 0 -2";

//gui stuff
uiName = "Revolver";
iconName = "./icon_Revolver";
doColorShift = true;
colorShiftColor = "0.25 0.25 0.25 1.000";

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

Alright, so I made this gun and it spawns too high.
I asked around and according to Trigun it's the item's offset. So I changed the offset and it didn't change.
It's also not the model because it's positioned like any other gun.

Here's the ItemData stuff, the part that needs to get changed.
Code: [Select]
datablock ItemData(RevolverItem)
{
category = "Weapon";  // Mission editor category
className = "Weapon"; // For inventory system

// Basic Item Properties
shapeFile = "./Revolver.dts";
rotate = false;
mass = 1;
density = 0.2;
elasticity = 0.2;
friction = 0.6;
emap = true;
offset = "0 0 -2";

//gui stuff
uiName = "Revolver";
iconName = "./icon_Revolver";
doColorShift = true;
colorShiftColor = "0.25 0.25 0.25 1.000";

// Dynamic properties defined by the scripts
image = RevolverImage;
canDrop = true;
};
I believe it has to do with where the model is placed, and where the joints are.  It has to be JUST right.

Has to be JUUUUUUST right. :cookieMonster:



Bend over and take it, son.
Spawn it from a lower brick.

I.E.

Place 1 brick, spawn the wep on top of it, then put another brick on top of the first one so it looks like the spawn is on the top one. Or if it is too low, do it the other way around and make the top brick without raycasting/collision/rendering.

Don't let your weapon spawns smoke weed.

What modeling program are you using? Post a screenshot of the model in it.