Battlezone Universe

Battlezone Universe => Archive Vault => Public 1.3 Beta 3 Archive => Topic started by: Steeveeo on May 10, 2008, 11:33:48 PM

Title: Wondering about a fix.
Post by: Steeveeo on May 10, 2008, 11:33:48 PM
While modding one day, I was trying to remake the Homeworld 2 Torpedo Frigate's anti-fighter missiles (the ones that shoot as one missile, then split into four that chase down the target).

However, the best way I could think of to make it work (in fact, the ONLY way), was to make the initial missile a popper that turned into a spraybomb when triggered, which would then fire 4 missiles at the target.

Thing is, right when the popper triggered it caused an AV, so I concluded that poppers cannot turn to spraybombs.

Is this or can this be fixed in PB4? It would be nice to have some scattering ordnance like that.

Also, this may not make it in, but can a spraybomb be told to inherit its height from the spawnpoint instead of units the setAltitude ODF line?
Title: Re: Wondering about a fix.
Post by: General BlackDragon on May 10, 2008, 11:49:37 PM
The only way to do that is to actually make 1 missile a salvo count of poppers. These poppers then should all "burst" at the same time. Make the according missiles kindof like FAFs, where they wiggle off and they should seperate on their own...

I'll make a zip of an old "burst missile" weapon I made ages ago for you...
Title: Re: Wondering about a fix.
Post by: mrtwosheds on May 11, 2008, 05:49:51 AM
Quoteso I concluded that poppers cannot turn to spraybombs.
Spraybombs trigger when they are on the ground, poppers trigger in the air.
you can get the first stage of a spraybomb to to spawn from a popper, (the mortar) but not the second stage, it needs to be on the ground.
Title: Re: Wondering about a fix.
Post by: Zero Angel on May 11, 2008, 07:16:53 AM
Theres 2 different types of spraybombs. The first stage is the ordnance class with grenade physics, which spawns an object. The second stage (which I call spraybomb/spraybuilding) is an object class, which releases ordnance.

Ordnance and object are very different things in the BZ2 engine and cannot be interchanged.

Theoretically, you should be able to have the popper be able to fire the first stage spraybomb which will uses grenade physics, then turns into an object when it touches the ground (typically a spraybuilding, but it could be any object even an ivtank). -- But you can't have the popper release the spraybomb/spraybuilding object directly, because the popper expects to fire ordnance, not objects.