Author Topic: Explosion Effects?  (Read 2312 times)

rabid_psyduck

  • Guest
Explosion Effects?
« on: 13 September 2007, 04:03:21 »
Slowly I work on my mod, quietly. Ugh...too slow for my liking...  Alright, I'm curious if it's possible to configure a particle xml file to start when a unit gets killed.

Say I have a unit that I want to generate a particle-effect upon it's death. Would be kinda cool to have that also do splash damage, but I'm JUST asking about the particle-effect.

Anybody? Thanks

BTW: It's about space & I've barely finished the main menu, ugh... Still about a month away from a beta, maybe...
« Last Edit: 1 January 1970, 00:00:00 by rabid_psyduck »

hailstone

  • GAE Team
  • Battle Machine
  • ********
  • Posts: 1,568
    • View Profile
(No subject)
« Reply #1 on: 28 September 2007, 06:07:42 »
I tried adding particle effects but the way it is setup every unit that didn't use particle effects would need to add
Quote
<projectile value="false">

to its die_skill because if the child node doesn't exist it throws an exception exiting the game. I tried doing a work around where the existence of the node is checked before the particleNode is created but I'm not sure if I did it correctly because the effects didn't show.

The files changed are:
(the unit I tested with)
glest/techs/magitech/factions/magic/units/battlemage/battlemage.xml

(the following two were to add the particle code to the die skill)
source/glest_game/types/skill_type.h
source/glest_game/types/skill_type.cpp

(the xml ones were to add the node checking)
source/shared_lib/include/xml/xml_parser.h
source/shared_lib/sources/xml/xml_parser.cpp
« Last Edit: 1 January 1970, 00:00:00 by hailstone »
Glest Advanced Engine - Admin/Programmer
https://sourceforge.net/projects/glestae/

titi

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 4,240
    • View Profile
    • http://www.titusgames.de
(No subject)
« Reply #2 on: 28 September 2007, 14:29:22 »
I also tried my best, but it didn't work!
I think particle effects when dying are not possible yet.
(If you realy want them, create them in your animation, but that's a lot of work)
« Last Edit: 1 January 1970, 00:00:00 by titi »
Try Megaglest! Improved Engine / New factions / New tilesets / New maps / New scenarios

rabid_psyduck

  • Guest
(No subject)
« Reply #3 on: 29 September 2007, 04:07:38 »
Too bad, I guess we'll just have to wait or live without them. It's okay anyways, my missile ship looks pretty cool when it dies. And when it gets hit by a missile, the smoke kinda lingers with the death animation. You can see what I mean in the teaser pics: http://http://www.glest.org/glest_board/viewtopic.php?t=3006
« Last Edit: 1 January 1970, 00:00:00 by rabid_psyduck »