I'm trying to copy the V2 explosion effect. However, looking into obj_team2.scr I can't figure out what part of the coding produces this effect. Here's the code (cleaned up):
Yes the global/exploder.scr script is what creates the effect.
exec global/exploder.scr::main
The above line sets it all up to wait for the bomb to go off. But the rocket must be targetnamed "exploder" with a key/value, #set 1. The explosion enitity must be named "exploderfire" and have the same #set 1. You can read the little tutorial that is in the exploder script in pak0.pk3.
But, the bomb you set is controled by another script called "global/obj_dm.scr".
You should be able to follow most bomb objective tutorials to do this: the only real difference is that you use a script_model object with key: model set to value: static/v2.tik as an exploder, instead og the usual Flak88 model or script_object's...
( all the strange words will make sense once you read the tutorial )
Yes the exploder.scr is called from the obj_dm.scr when the bomb explodes... I think the bomb needs a #exploder_set key for this to work.. anyway see the explode thread in obj_dm.scr.. I may not have all the answers but this script does.
The trigger is a trigger_use place around the bomb (size 30x30x30)
----------------------------------------------------------------------
targetname - v2_bomb
The kill area is a trigger_mulitiple covering the whole area that will cause damage
--------------------------------------------------------------------------
targetname - groundzero
There are also pieces of debris located inside the rocket that target script origins placed outside and above the rocket. Just make small brushes (about 5 or 6) and texture them with something metallic and closely have the same color as the v2 rocket. Select one of the debris brushes and right click and choose script_object. Do this for all the debris brushes you create. Give each debris piece a targetname of 'exploderchunk' minus the quotes of course. Place these 'debris pieces' inside the static rocket model. Select one debris brush and then a script origin and hit ctrl+k. This will connect the two, and you should see a line showing they are connected. This will be the direction the debris piece will fly when the rocket explodes.
That should do it. You should now have near replica of the v2 explosion as seen in the v2 rocket facility stock map.