OFPEC Forum

Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting General => Topic started by: tateyou on 17 Jul 2008, 07:06:21

Title: How to creat a shockwave?
Post by: tateyou on 17 Jul 2008, 07:06:21
In the nuke addon,when nuke exploded,there is a wind of dust represent as shockwave
How to create this effect? I want to use it as a small version,like use it on Bo_GBU12_LGB
Thanks a lot!
Title: Re: How to creat a shockwave?
Post by: Luke on 17 Jul 2008, 07:09:25
Tateyou,

Don't have the addon in front of me right now (using a different computer).

if you have a .pbo unpacker you could probably find the file/

I'd have to get back to you in about 10 hrs.

Here's YOUR reply, as always.

Luke
Title: Re: How to creat a shockwave?
Post by: tateyou on 17 Jul 2008, 11:34:09
Thanks!
And i do have a .pbo unpacker,waiting for good news!
Title: Re: How to creat a shockwave?
Post by: Luke on 17 Jul 2008, 17:41:56
~37200  :D

Tateyou,

Sorry I'm late, what did I miss?  :)

There's a file in GIGAN's SCUD addon entitled "nuke_blast1".

If you want to call it, you can by typing [getpos name select 0, getpos name select 1] exec "\GIG_Scud\nuke_blast1.sqs"

I 'believe' since it's a). unmodified). and b) released to the public) that I am not doing anything wrong here.

but the basic jist is here:
Code: [Select]
_posx = _this select 0
_posy = _this select 1


_cnt = 0
_next = 0
_agl = random 360
_aglz = 0


#loop
?(_cnt > 30) : goto "next"

_velx = (sin _agl) * 1000.0
_vely = (cos _agl) * 1000.0
_velz = 10
drop ["\Ca\Data\Cl_basic","","Billboard",1,3.0,[_posx,_posy, -10],[_velx,_vely,_velz],1,1.25,1.0,0.0,[50,300,750,1500],[[1.0,1.0,1.0,0.0],[1.0,1.0,1.0,0.2],[1.0,1.0,1.0,0.1],[1.0,1.0,1.0,0.05],[1.0,1.0,1.0,0.025],[1.0,1.0,1.0,0.012],[1.0,1.0,1.0,0.0]],[0],0.0,2.0,"","",""]

_velx = (sin (_agl + 120)) * 1000.0
_vely = (cos (_agl + 120)) * 1000.0
drop ["\Ca\Data\Cl_basic","","Billboard",1,3.0,[_posx,_posy, -10],[_velx,_vely,_velz],1,1.25,1.0,0.0,[50,300,750,1500],[[1.0,1.0,1.0,0.0],[1.0,1.0,1.0,0.2],[1.0,1.0,1.0,0.1],[1.0,1.0,1.0,0.05],[1.0,1.0,1.0,0.025],[1.0,1.0,1.0,0.012],[1.0,1.0,1.0,0.0]],[0],0.0,2.0,"","",""]

_velx = (sin (_agl + 240)) * 1000.0
_vely = (cos (_agl + 240)) * 1000.0
drop ["\Ca\Data\Cl_basic","","Billboard",1,3.0,[_posx,_posy, -10],[_velx,_vely,_velz],1,1.25,1.0,0.0,[50,300,750,1500],[[1.0,1.0,1.0,0.0],[1.0,1.0,1.0,0.2],[1.0,1.0,1.0,0.1],[1.0,1.0,1.0,0.05],[1.0,1.0,1.0,0.025],[1.0,1.0,1.0,0.012],[1.0,1.0,1.0,0.0]],[0],0.0,2.0,"","",""]

_agl = _agl + 4
_cnt = _cnt + 1
goto "loop"


#next
exit
?(_next == 9) : goto "end"
_cnt = 0
_agl = random 360
_aglz = _aglz + 9.0
_next = _next + 1
goto "loop"


#end
exit

Hope that helps.

Here's YOUR reply, as always.

Luke

EDIT: Tateyou,

If your gonna change it,
you probably want to ask GIGAN first.
Title: Re: How to creat a shockwave?
Post by: Mandoble on 17 Jul 2008, 17:46:00
Note that this is creating a visual effect, but it is not affecting men or vehicles in any way.
Title: Re: How to creat a shockwave?
Post by: Luke on 17 Jul 2008, 18:20:13
Note that this is creating a visual effect, but it is not affecting men or vehicles in any way.

Yeah, what he said.

Sorry for not mentioning this.

Here's YOUR reply, as always.

Luke
Title: Re: How to creat a shockwave?
Post by: tateyou on 17 Jul 2008, 19:17:37
A lot of thank to your guys!
Actually,it's more like a self entertaining,but if i want to use it in a mission or what i'll ask GIGAN.
Thanks again!

I tried and  i 'don't know how to reduce the effect,i mean, what are these numbers represent?like below:
drop ["\Ca\Data\Cl_basic","","Billboard",1,3.0,[_posx,_posy, -10],[_velx,_vely,_velz],1,1.25,1.0,0.0,[50,300,750,1500],[[1.0,1.0,1.0,0.0],[1.0,1.0,1.0,0.2],[1.0,1.0,1.0,0.1],[1.0,1.0,1.0,0.05],[1.0,1.0,1.0,0.025],[1.0,1.0,1.0,0.012],[1.0,1.0,1.0,0.0]],[0],0.0,2.0,"","",""]

I know some of them are about color,some are about smoke,but i don't know which is what?
Can anyone tell me,that'll mean a lot to me!
And GIGAN's E-mail address too :)
Title: Re: How to creat a shockwave?
Post by: Mandoble on 18 Jul 2008, 14:20:18
That is a particle array, the meaning of the members can be found here (http://www.ofpec.com/COMREF/arrays.php#ParticleArray).
Title: Re: How to creat a shockwave?
Post by: tateyou on 18 Jul 2008, 15:18:49
Sooooooooo thank you!
Or as in my mother language,naked in the snow to thank you!
And next time i should keep my eyes sharp,hehe :D