HEK: Chain Spawning Tutorial
Posted: Fri Jul 16, 2004 10:35 pm
This will teach you how to make a projectile spawn another projectile, or other things, after it is destroyed. So if you want a frag grenade to explode, then have 3 armed plasma grenades come out of it, this is the place.
Lets get started.
1. First, go to your "Halo ce\tags\weapons\frag grenade" folder and make a copy and paste it somewhere. It's a good idea to make a copy of anything you'll be altering.
2. Now open up Guerilla, and open go to the "weapons\frag grenade\effects" folder, and open "explosion.effect".
We are going to make a simple chain grenade that spawns 3 plasma grenades.
3. Now that you have explosion.effects open Guerilla, go down to where it reads "PARTS". This is the 4th section from the top.
4. In this section, click the "Add" button 3 times.
5. Now in the dropdown bar you shuold see "8.effect_part_block". Select it.
6. Now 3 tabs down is "location" dropdown bar. Click this and select "0. effect_locations_block".
7. Skip flags and go to the "type" dropdown bar. Select "projectile". In the tab to the right, hit the "..." button, and go to "weapons\plasma grenade\plasma grenade.projectile".
8. In the "velocity bounds" section, enter "0.2" in both sections. I believe this is the speed that the projectile travels when spawned. So the higher it is, the further and faster it will go.
9. In the "velocity cone angle" section, enter 25 degrees.
10. In "angular velocity bounds", put "0.5" in both sections.
11. Repeat this process for the other two "effect_part_block" dropdowns. Just make sure you change the "velocity cone angle", so the grenades spread out in different directions.
12. Now save the file, and recompile your map.
That's it, you have just created a frag grenade that will spawn 3 plasma grenades when it explodes. Then the plasma grenades will explode. The possibilities are endless. Try puting other heavy weapon projectiles, or even vehicles and weapons in place of the plasma grenade. You can even spawn a MC decoy, just use the correct "type" tag. "vehicle" for example if you want to spawn a warthog or ghost. Just be carefull with the vehicle spawning, to prevent lag, and turn off vehicle respawn in the setup menu, otherwise they will keep piling up at the same spawn points that you set in your map. Also don't get carried away with the chain spawning, if you where to make an assault rifle fire rockets that spawn 100 extra projectiles, the engine will not be able to handle it and the game will crash. Also, just for fun, edit the plasma grenade to spawn plasma rifle bolts when it explodes, or you can even edit the plasma rifle bolt impact effects files to make it appear to bounce off the walls. Have fun, and soon I will make a quick tutorial on duplicating projectiles. This is so you can have a frag grenade spawn other frag grenades without it going on forever. See you online sometime.
This is a link to a demo movie of chain spawning.
http://files.halomods.com/viewtopic.php?t=9572
Deimos
this was not written by me, just thought i would share the knowlage.
Lets get started.
1. First, go to your "Halo ce\tags\weapons\frag grenade" folder and make a copy and paste it somewhere. It's a good idea to make a copy of anything you'll be altering.
2. Now open up Guerilla, and open go to the "weapons\frag grenade\effects" folder, and open "explosion.effect".
We are going to make a simple chain grenade that spawns 3 plasma grenades.
3. Now that you have explosion.effects open Guerilla, go down to where it reads "PARTS". This is the 4th section from the top.
4. In this section, click the "Add" button 3 times.
5. Now in the dropdown bar you shuold see "8.effect_part_block". Select it.
6. Now 3 tabs down is "location" dropdown bar. Click this and select "0. effect_locations_block".
7. Skip flags and go to the "type" dropdown bar. Select "projectile". In the tab to the right, hit the "..." button, and go to "weapons\plasma grenade\plasma grenade.projectile".
8. In the "velocity bounds" section, enter "0.2" in both sections. I believe this is the speed that the projectile travels when spawned. So the higher it is, the further and faster it will go.
9. In the "velocity cone angle" section, enter 25 degrees.
10. In "angular velocity bounds", put "0.5" in both sections.
11. Repeat this process for the other two "effect_part_block" dropdowns. Just make sure you change the "velocity cone angle", so the grenades spread out in different directions.
12. Now save the file, and recompile your map.
That's it, you have just created a frag grenade that will spawn 3 plasma grenades when it explodes. Then the plasma grenades will explode. The possibilities are endless. Try puting other heavy weapon projectiles, or even vehicles and weapons in place of the plasma grenade. You can even spawn a MC decoy, just use the correct "type" tag. "vehicle" for example if you want to spawn a warthog or ghost. Just be carefull with the vehicle spawning, to prevent lag, and turn off vehicle respawn in the setup menu, otherwise they will keep piling up at the same spawn points that you set in your map. Also don't get carried away with the chain spawning, if you where to make an assault rifle fire rockets that spawn 100 extra projectiles, the engine will not be able to handle it and the game will crash. Also, just for fun, edit the plasma grenade to spawn plasma rifle bolts when it explodes, or you can even edit the plasma rifle bolt impact effects files to make it appear to bounce off the walls. Have fun, and soon I will make a quick tutorial on duplicating projectiles. This is so you can have a frag grenade spawn other frag grenades without it going on forever. See you online sometime.
This is a link to a demo movie of chain spawning.
http://files.halomods.com/viewtopic.php?t=9572
Deimos
this was not written by me, just thought i would share the knowlage.