Project X Forums
http://px.worms2d.info/forum/

fire from clusters?
http://px.worms2d.info/forum/viewtopic.php?f=15&t=523
Page 1 of 1

Author:  Twicken [ Sun Nov 18, 2012 12:04 pm ]
Post subject:  fire from clusters?

i want to make a chilli bomb, which would at like a weaker banana bomb, but the clusters emit fire on explosion. Is this possible?

Author:  PyroMan [ Mon Nov 26, 2012 2:44 pm ]
Post subject:  Re: fire from clusters?

Yep its absolutely possible.
In CMissile u can check if type is M_EXPLODE, add some boolean variables in type M_FRAME to check that its exactly clustlets from specific weapon. And when checking succesfull - u can create some fire at that spot.
I`ve been working on creating Big Holes in the land while weap`s damage is quite low. 50radius of holes with 15dmg weap only. I used such method to do that. That works on my "Underwater Attack" weapon.

Author:  PyroMan [ Mon Nov 26, 2012 3:42 pm ]
Post subject:  Re: fire from clusters?

hm....
Forget about CMissile variable reading. I tryed to do that.. i have no idea how to "read" clustlets. It`s seems impossible to do that way.
But.. its still possible to make this weapon. Just by scripting own clustlets and behave them. That way will work, but it will take much more time and more script to make.
I`m working on it.

Author:  StepS [ Mon Nov 26, 2012 4:52 pm ]
Post subject:  Re: fire from clusters?

PyroMan wrote:
Just by scripting own clustlets and behave them.

yep, that's what i said before to Twicken ;)
but maybe there's still a way to detect the parent object for clusters. clusters are also CMissiles of course, just need to get their parent. try to see what is it. I hope the parent is really the initial bomb, otherwise it's not easily possible

Author:  PyroMan [ Mon Nov 26, 2012 10:50 pm ]
Post subject:  Re: fire from clusters?

StepS wrote:
PyroMan wrote:
Just by scripting own clustlets and behave them.

yep, that's what i said before to Twicken ;)
but maybe there's still a way to detect the parent object for clusters. clusters are also CMissiles of course, just need to get their parent. try to see what is it. I hope the parent is really the initial bomb, otherwise it's not easily possible


Whatever.. i did it! :D
viewtopic.php?f=13&t=530

Author:  PyroMan [ Mon Nov 26, 2012 10:55 pm ]
Post subject:  Re: fire from clusters?

most dificult thing for me was limiting cluster bomb explosion from other explosions :)
for example in first version, if i throwed simple Grenade with timer 5 sec, then throwed Fire Cluster Bomb with 1 sec, i got clusters on Green grenade :))))
Learaning steps`s super digger script helped me :P

Author:  PyroMan [ Mon Nov 26, 2012 11:50 pm ]
Post subject:  Re: fire from clusters?

oh damn.. after next few test i`ve understood that im still sticked with that problem.
Need help.

Page 1 of 1 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/