Jump to content


Photo

Change infanrty weapons?


  • Please log in to reply
13 replies to this topic

#1 Niall0

Niall0
  • Members
  • 12 posts

Posted 25 September 2007 - 08:08 PM

Ive been trying to give the GDI Riflesoldier the Blackhands Flamethrower, Ive managed to get the Riflesoldier to shoot flames but it still has the old gun (see pic). Also the flash from the rifle is still there and follows the unit around even when its not firing (see pic) .
Posted Image

How do you change which gun the infantry unit is holding ? Is it referenced somewhere in the units xml file?

Edited by Niall0, 25 September 2007 - 08:13 PM.


#2 GodSun666

GodSun666

    Marching Trough The Eternal Fields Of Chaos!

  • Banned
  • 1,439 posts
  • Location:The Netherland @ Nod HQ!
  • Projects:Fast Fun And Crazy for Red Alert 3

Posted 26 September 2007 - 09:44 AM

I geuss some old .fx files are still in there!
для матери Россия! Советский Союз победит! Америка может облизывать мои яйца
Posted Image
Posted Image

#3 Phil

Phil

    Force Majeure

  • Network Leaders
  • 7,976 posts
  • Location:Switzerland
  • Projects:Revora, C&C:Online
  •  Thought Police
  • Division:Revora
  • Job:Network Leader
  • Donated
  • Association

Posted 26 September 2007 - 01:33 PM

The gun is part of the model and so is that muzzle flash effect you still have. It is kind of weird that the muzzle flash is there even when the unit is not firing, but that might be because it's not hidden properly with LUA. Did you make this a new unit or just edited the weapon of the original GDI riflesoldier? Posting the code of your unit will certainly also help.

revorapresident.jpg
My Political Compass

Sieben Elefanten hatte Herr Dschin
Und da war dann noch der achte.
Sieben waren wild und der achte war zahm
Und der achte war's, der sie bewachte.


#4 Niall0

Niall0
  • Members
  • 12 posts

Posted 26 September 2007 - 03:25 PM

I Just edited the riflesoldier.xml . So the gun is part of the units model is it? (I thought they were separate for some reason) .If i can get rid of the muzzle flash it'll do for now, im still just trying to figure things out.

How do you attach files to posts?

#5 Phil

Phil

    Force Majeure

  • Network Leaders
  • 7,976 posts
  • Location:Switzerland
  • Projects:Revora, C&C:Online
  •  Thought Police
  • Division:Revora
  • Job:Network Leader
  • Donated
  • Association

Posted 26 September 2007 - 03:35 PM

Seems pretty weird to me that the muzzle flash is actually there all the time, unless you cut out the AIUpdate part, which I highly doubt.

There is a "File Attachments" option below the post form, but it's possible that you need to have a certain number of posts first. If you only want to post your XML codes you can also paste them in, using the code tags.

revorapresident.jpg
My Political Compass

Sieben Elefanten hatte Herr Dschin
Und da war dann noch der achte.
Sieben waren wild und der achte war zahm
Und der achte war's, der sie bewachte.


#6 Nighthawk

Nighthawk

    Grumble Grumble.

  • Division Leaders
  • 2,947 posts
  • Location:Edinburgh
  • Projects:The Third War, Ares, misc side projects.
  •  Strategist and Modder
  • Division:C&C Guild
  • Job:Division Leader
  • Association

Posted 26 September 2007 - 03:40 PM

You need to be a Posting Member to attach files, as far as I can remember, and you need 10 posts to be one.
Posted Image
Posted Image
Job Openings with the Guild: Division Staff, News Posters.
Job Openings with Ares: Documentation Maintainer, Active Testers.

PM if interested.

#7 Niall0

Niall0
  • Members
  • 12 posts

Posted 26 September 2007 - 03:58 PM

Heres the code for the unit ...
See File below...

Edited by Niall0, 26 September 2007 - 04:51 PM.


#8 Phil

Phil

    Force Majeure

  • Network Leaders
  • 7,976 posts
  • Location:Switzerland
  • Projects:Revora, C&C:Online
  •  Thought Police
  • Division:Revora
  • Job:Network Leader
  • Donated
  • Association

Posted 26 September 2007 - 04:19 PM

I guess it was the board the cut off the rest of the unit code. If you didn't change anything in the Draw block, cut that out and fill it up with the rest of the unit's code.

revorapresident.jpg
My Political Compass

Sieben Elefanten hatte Herr Dschin
Und da war dann noch der achte.
Sieben waren wild und der achte war zahm
Und der achte war's, der sie bewachte.


#9 Niall0

Niall0
  • Members
  • 12 posts

Posted 26 September 2007 - 04:41 PM

ya the board cut out some of it , heres the rest... (still some of the end missing, when i checked post length it was wll under the max and it previewed fine :D , its only some audio stuff missing anyway.)

Edited by Niall0, 26 September 2007 - 04:50 PM.


#10 Phil

Phil

    Force Majeure

  • Network Leaders
  • 7,976 posts
  • Location:Switzerland
  • Projects:Revora, C&C:Online
  •  Thought Police
  • Division:Revora
  • Job:Network Leader
  • Donated
  • Association

Posted 26 September 2007 - 04:43 PM

These freaking limitations annoy me so much. I've set your postcount to 10, look if you can attach files now.

revorapresident.jpg
My Political Compass

Sieben Elefanten hatte Herr Dschin
Und da war dann noch der achte.
Sieben waren wild und der achte war zahm
Und der achte war's, der sie bewachte.


#11 Niall0

Niall0
  • Members
  • 12 posts

Posted 26 September 2007 - 04:49 PM

Here we go...

Attached Files



#12 Phil

Phil

    Force Majeure

  • Network Leaders
  • 7,976 posts
  • Location:Switzerland
  • Projects:Revora, C&C:Online
  •  Thought Police
  • Division:Revora
  • Job:Network Leader
  • Donated
  • Association

Posted 26 September 2007 - 04:55 PM

Okay, I haven't actually looked into C&C3's model/animation coding, but I guess the reason is that you cut out this:
<WeaponMuzzleFlash
	WeaponSlotType="PRIMARY_WEAPON"
	BoneName="B_WEAPONA_FX" />
from the default ModelConditionState. In the original Rifle soldier code there are 4 of those settings (FireFX, Recoil, MuzzleFlash and Launch) while in your flamethrower unit there is only the WeaponLaunchBone.

revorapresident.jpg
My Political Compass

Sieben Elefanten hatte Herr Dschin
Und da war dann noch der achte.
Sieben waren wild und der achte war zahm
Und der achte war's, der sie bewachte.


#13 Daz

Daz

    title available

  • Hosted
  • 2,654 posts
  •  Revora Co-Founder

Posted 26 September 2007 - 05:31 PM

DLotS is correct, you've removed the part that tells the game what object to use as the muzzleflash.
Because it doesn't know that is the muzzleflash it assumes it's just a normal part of the model and displays it at all times.

#14 Niall0

Niall0
  • Members
  • 12 posts

Posted 26 September 2007 - 05:56 PM

Yep thats solved the problem :)




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users