HEK: Chain Spawning Tutorial
-
- Posts: 171
- Joined: Thu Feb 19, 2004 3:37 pm
- Contact:
HEK: Chain Spawning Tutorial
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.
-
- Posts: 732
- Joined: Wed Nov 26, 2003 11:59 pm
- Location: Raleigh, NC, USA
-
- Posts: 32
- Joined: Mon Jul 26, 2004 4:54 am
- Contact:
-
- Posts: 5426
- Joined: Sat Jul 24, 2004 12:12 pm
- Location: I'm a Paranoid
- Contact:
sry bout the bump, but incase u guys cant get it to work, open up the copied frag grenade.projectile in geeurilla, scroll down to the detonation part, then click the 3 dots in the same row as the effect option in it, then go to the copied frag grenade folder, then go into that effects folder, now choose the explosion.effect u modified. after that you gotta do something in the globals, but im not sure, ill edit back when i find out what works in the globals
-
- Posts: 2
- Joined: Wed Sep 13, 2006 7:27 pm
-
- Posts: 2
- Joined: Wed Sep 13, 2006 7:27 pm
- TomClancey
- Posts: 2565
- Joined: Sat Jan 28, 2006 6:49 am
- Location: Ohio
- Contact:
- DiSrUpTiOn
- Posts: 33
- Joined: Tue Jul 17, 2007 1:25 pm
- Location: Tsavo Highway
- DiSrUpTiOn
- Posts: 33
- Joined: Tue Jul 17, 2007 1:25 pm
- Location: Tsavo Highway