5,391
edits
m (→Overpower)  | 
				|||
| Line 191: | Line 191: | ||
===Overpower===  | ===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.  | 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.  | ||
*Attention! Attention! If ''that'' was true, Konoko's overpower would last 200 seconds : over 3 minutes. Which it doesn't.  | |||
This example sets konoko's health to 400 - overpower.  | |||
 chr_set_health 0 400  | |||
This following example shows everything listed above added.  | This following example shows everything listed above added.  | ||
 func void main(void) {  | |||
     chr_teleport 0 7010  | |||
{  |      powerup_spawn hypo 7010  | ||
chr_teleport 0 7010  |      ai2_spawn Top_Striker_1  | ||
powerup_spawn hypo 7010  |      ai2_spawn Top_Comguy_1  | ||
ai2_spawn   |      chr_teleport Top_Striker_1 7008  | ||
ai2_spawn   |      chr_teleport Top_Comguy_1 7009  | ||
chr_teleport   |      chr_givepowerup Top_Striker_1 invis -1  | ||
chr_teleport   |      chr_givepowerup Top_Comguy_1 invis -1  | ||
     powerup_spawn invis 7007  | |||
chr_givepowerup   |      powerup_spawn invis 7009  | ||
chr_givepowerup   | |||
powerup_spawn invis 7007  |      chr_giveweapon Top_Striker_1 w7_scc  | ||
powerup_spawn invis 7009  |      chr_giveweapon Top_Comguy_1 w3_phr  | ||
     chr_givepowerup Top_Striker_1 ammo 15  | |||
chr_giveweapon   |      chr_givepowerup Top_Comguy_1 cell 30  | ||
chr_giveweapon   | |||
chr_givepowerup   |      weapon_spawn w2_sap 7045  | ||
chr_givepowerup   |      powerup_spawn ammo 7008  | ||
weapon_spawn w2_sap 7045  |      ai2_spawn OutroTCTF01  | ||
powerup_spawn ammo 7008  |      chr_teleport OutroTCTF01 7007  | ||
ai2_spawn OutroTCTF01  |      ai2_spawn WH_Thug_A  | ||
chr_teleport OutroTCTF01 7007  |      chr_changeteam WH_Thug_A TCTF  | ||
     chr_teleport WH_Thug_A 7007  | |||
ai2_spawn WH_Thug_A  | |||
chr_changeteam WH_Thug_A TCTF  |      ai2_spawn griffin  | ||
chr_teleport WH_Thug_A 7007  |      chr_changeteam griffin Syndicate  | ||
     chr_teleport griffin 7008  | |||
ai2_spawn griffin  |      chr_set_health griffin 3900  | ||
chr_changeteam griffin Syndicate  |  }  | ||
chr_teleport griffin 7008  | |||
chr_set_health griffin 3900  | |||
}  | |||