Is it possible to have a missile spawn particles on fragment
I'm trying to find a way to have a missile hit a target, and spawn a spherical effect using the "particles" type of fragment, rather than the "missile" type of fragment. But I'm not sure if this is possible, or if so how I would do such a thing. Has anyone else tried this out?
Mischievous local moderator. She/Her pronouns.
The plasma explosions used by exploding Ringer/Teraton stations and Iocrym ships are particles (based on Iocrym Fracture Cannon).
Otherwise, a combination of the <OnFragment> event and a loop containing (sysCreateWeaponFire ...) should do the trick.
Otherwise, a combination of the <OnFragment> event and a loop containing (sysCreateWeaponFire ...) should do the trick.
Download and Play in 1.9 beta 1...
Drake Technologies (Alpha): More hardware for combat in parts 1 and 2!
Star Castle Arcade: Play a classic arcade game adventure, with or without more features (like powerups)!
Playership Drones: Buy or restore exotic ships to command!
Other playable mods from 1.8 and 1.7, waiting to be updated...
Godmode v3 (WIP): Dev/cheat tool compatible with D&O parts 1 or 2.
Drake Technologies (Alpha): More hardware for combat in parts 1 and 2!
Star Castle Arcade: Play a classic arcade game adventure, with or without more features (like powerups)!
Playership Drones: Buy or restore exotic ships to command!
Other playable mods from 1.8 and 1.7, waiting to be updated...
Godmode v3 (WIP): Dev/cheat tool compatible with D&O parts 1 or 2.
I'll probably have to do the latter. The problem is that the iocrym explosions are (like all of the games ship/station explosions) virtual weapons: they're not actually fragmentation events. It may or may not be possible to port the code over.
Mischievous local moderator. She/Her pronouns.
- digdug
- Fleet Admiral
- Posts: 2620
- Joined: Mon Oct 29, 2007 9:23 pm
- Location: Decoding hieroglyphics on Tan-Ru-Dorem
sorry, just saw this.
Actually you can create particle clouds using <ParticleExplosion> effect in a <HitEffect>:
This is used to add clouds of particles for some missiles like the NAMI heavy, I think.
Of course, in the <Image> you can use any loaded image you want (or custom made) and create clouds of them. The vanilla one uses animated debris particles but I'm pretty sure that it can accept other stuff too.
Actually you can create particle clouds using <ParticleExplosion> effect in a <HitEffect>:
Code: Select all
<HitEffect
sound= "&snArmorHit1;"
>
<ParticleExplosion
particleCount= "20d4"
particleSpeed= "30"
particleLifetime= "40"
>
<Image imageID="&rsDebris1;" imageX="0" imageY="0" imageWidth="4" imageHeight="4" imageFrameCount="8" imageTicksPerFrame="3"/>
</ParticleExplosion>
</HitEffect>
Of course, in the <Image> you can use any loaded image you want (or custom made) and create clouds of them. The vanilla one uses animated debris particles but I'm pretty sure that it can accept other stuff too.