PDA

View Full Version : Problem Importing Weapon Animations



2door
02-14-2010, 02:58 PM
Hello I am new here, yay!

Anyway, I am in the process of importing some weapons into my udk based game. It is as part of my university final year project. It all works fine and I can use the guns in the game. However, I can't seem to animate the individual components of the weapon (such as the clip opening or the bolt moving back).

My weapons work as follows:

I have copied the shockrifle 4 times as a base for the four weapons. The code has been modified (changing paths and names) and that all works fine! My rig has the muzzleflash and main bone. The weapon model and all its components are attached to that main bone. That bone is then animated for each of the 5 required animations (weaponfire, weaponaltfire... etc). I can make the weapon move but I cannot animate individual parts of it. How can I import the animations of those individual parts.

Also, for the pickup messages, in-game, I have to make an INT file to have "Shotgun" appear instead of "Weapon" when I pick up a gun. Is there a trick to this, which file has to be altered or where should this new .int file go.

I have looked at all the weapon import tutorials on the web and they don't cover this.

Thanks,

geodav
02-14-2010, 03:32 PM
if your anims include bone translation you need to remove the tick
http://img237.imageshack.us/img237/6503/aminrotationonly.th.jpg (http://img237.imageshack.us/i/aminrotationonly.jpg/)


you can use a custom int file for the naming then you need an entry like

[UTWeap_SMBolter]
ItemName="SM Bolter"
PickupMessage="SM Bolter"

2door
02-14-2010, 06:51 PM
Thanks, that works now.

As for the int file, there are several localization\int\ folders. What should be the correct file path?

I didnt name my shotgun UTWeap_Shotgun but simply shotgun. Can that cause a problem? I believe that for the shockrifle its something like UTWeap_ShockRiflebase. Should I refer to the ...base file?

Thanks again.

geodav
02-15-2010, 01:31 PM
you should only have 1 loc folder which should look a little like this

F:\UDK\UDK-2010-02\UTGame\Localization\INT

if the class name is shotgun then use that but i can't garantie it will work.
you don't need a base class, i think epic use it as they are porting the code from one folder to another

2door
02-18-2010, 01:36 AM
Hey geodav,

I am trying to get the muzzleflash working properly. I copied the one from the rocketlauncher and added it to my gun. It works fine but, its oriented towards one Axis always. So, my glowy explosion is not aimed forward, but towards the right. If I rotate 180, it will aim towards the left. How can I make it point where the gun is pointing. Im using the shockrifle as a base so Im thinking that its beam mode may affect it.

geodav
02-18-2010, 01:59 PM
make a new one, its not that hard, i had the same problem, the casade(particle) effects some times have different orinantations
i cheated by exporting the flash texture and created a cone with a few triangle planes which i then uvw mapped to the texture, export/import as a static mesh then copy the muzzleflash particles and replace the old mesh with the new one.

or you could try rotating the socket but i think that caused problems as well

2door
02-22-2010, 02:31 AM
Hey, the muzzleflash works fine now. I have a problem with the pistol. I modeled a hand for it and animated it to move and hold the pistol. I imported it with the pistol but the two objects are uv mapped separately as two separate objects. Therefore, I made two materials. How can I assign one to the hand and one to the pistol considering they are in the same skeletal mesh. I was thinking of using smoothing groups as the mesh has many slots for materials that would correspond to smoothing groups but that is not the case.

HEEEEELP. This problem is so annoying as I am close to finishing this thing.

geodav
02-22-2010, 01:47 PM
you need to apply the materials in your 3d app as a multiply material, without knowing which app your using i can't help, if your using max then have a look at my character tutorial for a single mesh, it should work the same way

steve12345
01-24-2011, 06:46 AM
i m also new here and I liked that someone has taken gud information for newbie here..... thanks old users for helping new comers