Author Topic: Placement of detail32 and Shape for weapons  (Read 1035 times)

Does it matter where I put detail32 and Shape? I recently made a knife weapon, but the view was underneath the handle, so all you could see from the 1st person view was the handle. I tried moving the armature higher up, but it didn't change the view at all. Is this a problem with Shape?

If you're using Blender, put everything at the center; model, mount point, shape, and detail32. This ensures it'll be centered, as it seems to lack consistency (at least for me it does, so I just do this).

Another question, how do I add shading? My model has no lighting or shadows on it in game.

Does the weapon move when you walk in first person?
If it doesn't you can do 2 things in the weapon's script:

1. change eyeOffset = "whatevertheseare"; to eyeOffset = "0 0 0";
  -This will make it so that the weapon shows up were the mountPoint is set to on the model, and will also bob when you move

2. adjust the eyeOffset values so that the weapons shows where you want it
  -Your weapon won't bob but you won't have to change where mountPoint is

Does the weapon move when you walk in first person?

Yeah, it just won't play the swing animation.

Also, I need help with another thing. I made this: http://www.mediafire.com/download/y2b7nwg7vsqqqbu/Weapon_MP7.zip
But it won't show up in game, or on the list when you wrench a brick. The server.cs was copied from Azerath's example weapon from his tutorial, but it doesn't seem to work. Could anyone check it out and see what the problem is? I'd be very grateful.

New problem. I re-did it all, and now it shows up and everything. However, it's rotated about 45 degrees to the right when you hold it. I have no clue how the hell this happened, but I'd really be grateful if someone found the problem. http://www.mediafire.com/download/x873ibr9cynnon4/Weapon_MP7(2).zip Thanks!
« Last Edit: July 24, 2013, 11:07:36 PM by ArchaicModifications »

Update for my previous comment. Turns out, I turned the armature named ejectPoint 45 degrees to the left, and this somehow turned my weapon (?). Well, I fixed it. Glad that's over.