85
edits
Line 188: | Line 188: | ||
====Adding Enemies==== | ====Adding Enemies==== | ||
Look at the chart for what teams the AI are on. Most of the time, adding enemies simply involve spawning and teleporting the AI. As long as the team in "Syndicate", it will be an enemy. | Look at the chart for what teams the AI are on. Most of the time, adding enemies simply involve spawning and teleporting the AI. As long as the team in "Syndicate", it will be an enemy. If you want to add an emeny from an allied team, use the <tt>chr_changeteam</tt> command to changet their team to "Syndicate" like this: | ||
<tt>chr_changeteam griffin Syndicate</tt> | |||
====Adding Allies==== | ====Adding Allies==== | ||
Line 196: | Line 198: | ||
<tt>chr_changeteam WH_Striker_D TCTF</tt> | <tt>chr_changeteam WH_Striker_D TCTF</tt> | ||
. | ===Overpower=== | ||
. | |||
Use the <tt>chr_set_health</tt> command to set a character's health. Note that each character has a base health that may not be the same. For example, konoko's base health is 200, while a brown striker's is only 50. Keep this in mind when setting character's health. Setting it over their base health will send them into overpower - like using a hypo at full health. The health will drain at 1 every second even for AI. This example sets konoko's health to 400 - overpower. | |||
<tt>chr_set_health 0 400</tt> | |||
This following example shows everything listed above added. | |||
<tt>func void main(void)<br> | |||
{<br> | |||
#teleport konoko<br> | |||
chr_teleport 0 7010<br> | |||
powerup_spawn hypo 7010<br> | |||
#add baddies<br> | |||
ai2_spawn Top_Striker<br> | |||
ai2_spawn Top_Comguy<br> | |||
#teleport<br> | |||
chr_teleport Top_Striker 7008<br> | |||
chr_teleport Top_Comguy 7009<br> | |||
#invis<br> | |||
chr_givepowerup Top_Striker invis -1<br> | |||
chr_givepowerup Top_Comguy invis -1<br> | |||
powerup_spawn invis 7007<br> | |||
powerup_spawn invis 7009<br> | |||
#guns & ammo<br> | |||
chr_giveweapon Top_Striker w7_scc<br> | |||
chr_giveweapon Top_Comguy w3_phr<br> | |||
chr_givepowerup Top_Striker ammo 15<br> | |||
chr_givepowerup Top_Comguy cell 30<br> | |||
<br> | |||
weapon_spawn w2_sap 7045<br> | |||
powerup_spawn ammo 7008<br> | |||
#TCTF<br> | |||
ai2_spawn OutroTCTF01<br> | |||
chr_teleport OutroTCTF01 7007<br> | |||
#AllyThug<br> | |||
ai2_spawn WH_Thug_A<br> | |||
chr_changeteam WH_Thug_A TCTF<br> | |||
chr_teleport WH_Thug_A 7007<br> | |||
#Spawn Overpower Griffin on ENEMY team<br> | |||
ai2_spawn griffin<br> | |||
chr_changeteam griffin Syndicate<br> | |||
chr_teleport griffin 7008<br> | |||
chr_set_health griffin 3900<br> | |||
}</tt> | |||
edits