• Welcome to Battlezone Universe.
 

News:

Welcome to the BZU Archive dated December 24, 2009. Topics and posts are in read-only mode. Those with accounts will be able to login and browse anything the account had access granted to at the time. No changes to permissions will be made to be given access to particular content. If you have any questions, please reach out to squirrelof09/Rapazzini.

Main Menu

do spraybuilding/spraybomb/spraymine class support a launch explosion?

Started by TheJamsh, August 22, 2008, 05:24:24 AM

Previous topic - Next topic

TheJamsh



BZII Expansion Pack Development Leader. Coming Soon.

Steeveeo

No, not that I know of, but you can simulate it by using a multiple-draw_emit technique on the ordinance itself.

Example (from my Hammer Missile):

[GLaunch]
simulateBase = "sim_dust"
lifeTime = .1
renderBase = "draw_emit"
emitName = "aphammer.Glaunch2"
emitDelay = 9e9
emitVelocity = "0.0 0.0 0.0"
emitVariance = "0.0 0.0 0.0"
emitLife = 0.1
maxDist = 1000

[GLaunch2]
simulateBase = "sim_dust"
lifeTime = 0.1
renderBase = "draw_emit"
emitName = "aphammer.Glaunchcloud"
emitDelay = 0.002
emitVelocity = "0 0 0"
emitVariance = "150.0 0.0 150.0"
emitLife = 30

[GLaunchCloud]
simulateBase = "sim_dust"
lifeTime = 30.0
renderBase = "draw_sprite"
textureName = "cloudsmokefull.tga"
textureBlend = "srcalpha invsrcalpha modulatealpha"
startColor = "31 31 31 255"
finishColor = "128 128 128 0"
startRadius = 15.0
finishRadius = 30.0
animateTime = 30.0


This is from a "missile" which is a vehicle class that's launched from an armory (which definintely does not support an explosion to be played upon launch). Notice how it's set up, the first emit has a delay of 9e9, which basically means that it will not fire again for 2853.88 years (:P), it leads to another emit with a lifetime of 0.1 and an emitdelay of 0.002, meaning it spawns about 50 instances of GLaunchCloud within that tenth of a second which fly out at 150 points on both horizontal axis (Axises? Axi? What's the plural for that?). That is a good way of replicating the Explosion file Particle declaration system (particle class, count, and veloc).

If that needs any clarification lemme know.

By the way, I think there was a way to make a particle make a sound to simulate an explosion when you cannot spawn a real one, lemme find it real quick...

Ah here we are, from the changelog:


[e1]
simulateBase = "sim_smoke" // Or one of the others above
SimulateSoundEffect = "" // blank is no sound; otherwise, something like "blah.wav"


   Compiles, but is pretty much untested. This has the possibility of
flooding the sound system with a few too many requests. Use
sparingly. [NM]


And there ya go, how to make an explosion without an explosion present (dont count of the shockwave or damage effects from a real one working at all without DLL).

(Click it for more art, y'know you wanna!)

Gone to college, but I now have internet.

TheJamsh

thats okay, i just needed to give this thing a take off explosion. ive managed to remakle the javelin missile from COD and now turn it into a much better comet missile.

basically i can stick a massive missile right into Padisha Burns' teacup :D


BZII Expansion Pack Development Leader. Coming Soon.

TheJamsh

oh wait, is there anyway to give a shot sound to the spraybuilding?


BZII Expansion Pack Development Leader. Coming Soon.

Zero Angel

If the spraybuilding class has the properties of a building, couldnt one tap something to it? Like an object which immediately detonates prior to the spraybuilding releasing its payload?
QuoteAwareness, Teamwork, Discipline
Constantly apply these principles, and you will succeed in a lot of things, especially BZ2 team strat.
{bac}Zero Angel
Victory through superior aggression

General BlackDragon




*****General BlackDragon*****

TheJamsh

shotsound doesnt work unfortunately, which is a pity. heres the ODF. minus the sexual effects because its part of the mod :D


[GameObjectClass]
geometryName = "aocome00.xsi"
classLabel = "spraymine"
scrapCost = 0
scrapValue = 0
maxHealth = 100
maxAmmo = 1
unitName = "Comet"
effectHard1 = "hp_emit_1"
effectName1 = "tagca_a2.render"
effectHard2 = "hp_emit_2"
effectName2 = "tagca_a2.wingtrail"
effectHard3 = "hp_emit_3"
effectName3 = "tagca_a2.wingtrail"

[SprayBuildingClass]
payloadName = "tagca_a3"
triggerDelay = 4.6
setAltitude = 390.0
omegaSpin = 6.0
shotDelay = 0.1
anglePitch = 0.0
maxYSpeed = 90.0
shotSound = "acomet.wav"


BZII Expansion Pack Development Leader. Coming Soon.

mrtwosheds

It should be fireSound =

Example:

explosionName = "xorbfir"

[SprayBuildingClass]
payloadName = "orbmtr"
fireSound = "djoing.wav"
triggerDelay = 0.5
setAltitude = 8.0
anglePitch = 15.0

TheJamsh



BZII Expansion Pack Development Leader. Coming Soon.

General BlackDragon




*****General BlackDragon*****