Author Topic: Multiple problems with my weapon edit.  (Read 862 times)

I'm doing an edit of the rocket launcher (for my own personal use) and I'm changing the color of the item. I already did it for the item that appears on the brick, but not the model that appears in the player's hand. All I need to know is if I have to edit the model or if I can edit the script to do so.

Thanks.

EDIT: I have some new problems:

1. My direct damage does not change in-game when I change it in the script.
2. Same with the impulse.
3. Same with muzzle velocity.
4. Etc...

The new firing delay, however, does work. The weapon gets no console errors.

Here is the script if you need to look at it.

I'm still a script newbie and I'm still figuring out how things work, so if anyone can help me out so I can learn, I would be very thankful.
« Last Edit: December 20, 2009, 09:40:43 PM by Regulith »

You don't need those Sound Datablocks if you're enabling the Rocket Launcher, or they'll overwrite the original sounds.
I think the muzzleVelocity is at it's max.
I'm not sure about the colour, I can edit it just fine.

Okay, so that rules out #3 if the muzzle velocity of the RL is already max (if it's not at max, what is the max?), and for the sounds I just used the same exact sounds as the RL, is that a problem? I shouldn't be overwriting things if they're the same, I would assume. You also said you didn't have any trouble editing the color, but what I'm asking is if I have to edit the color on the model or in the script.

You can change the color via script.
EDIT: Whats the muzzle velocity?
« Last Edit: December 20, 2009, 04:00:19 PM by star9578 »

You can change the color via script.
EDIT: Whats the muzzle velocity?

Ok cool.

Do you mean what is the value or what does it mean?


I set it to 200 so I could test if it was going any faster.

It isn't.

The original (for the RL) was 65.

EDIT: I can't find where I'm supposed to change the color for the item. I did it for the item that appears on the brick, but I can't find how to do it for the in-hand model, unless I have to add something that isn't already there.
« Last Edit: December 20, 2009, 08:39:57 PM by Regulith »


Code: [Select]
colorShiftColor = SomethingItem.colorShiftColor;Put that right after
datablock ShapeBaseImageData(SomethignImage)
{
//Goes here

Thanks Heed, turns out that was already in the script but there were slashes between the code and the color value P:

EDIT: I'm really bad at this.
« Last Edit: December 20, 2009, 10:04:28 PM by Regulith »

Code: [Select]
//audio
datablock AudioProfile(rocketFireSound)
{
   filename    = "./rocketFire.wav";
   description = AudioClosest3d;
   preload = true;
};

datablock AudioProfile(rocketExplodeSound)
{
   filename    = "./tntExplode.wav";
   description = AudioDefault3d;
   preload = true;
};
datablock AudioProfile(rocketLoopSound)
{
   filename    = "./rocketLoop.wav";
   description = AudioCloseLooping3d;
   preload = true;
};
Remove those. Do a force required for the RL instead