ItemSpawn: MORE PROGRESS?!

This commit is contained in:
zaCade 2018-08-11 19:21:20 +02:00
parent 0f5f831445
commit c80b8ddc50
2 changed files with 210 additions and 38 deletions

View File

@ -210,38 +210,38 @@ public void SpawnBalrog(float fOrigin[3])
ParentToEntity(iSoundAttack, iKnife);
// logic_compare roar.
int iRelayRoar = CreateEntityAtOrigin("logic_compare", fOrigin);
DispatchKeyFormat(iRelayRoar, "targetname", "item_balrog_roar_compare_%d", g_iCounter);
DispatchKeyFormat(iRelayRoar, "spawnflags", "0");
DispatchKeyFormat(iRelayRoar, "OnEqualTo", "!self,SetValue,1,0,-1");
DispatchKeyFormat(iRelayRoar, "OnEqualTo", "!self,SetValue,0,25,-1");
DispatchKeyFormat(iRelayRoar, "OnEqualTo", "item_balrog_attack_compare_%d,SetCompareValue,-1,0,-1", g_iCounter);
DispatchKeyFormat(iRelayRoar, "OnEqualTo", "item_balrog_attack_compare_%d,SetCompareValue,0,4,-1", g_iCounter);
DispatchKeyFormat(iRelayRoar, "OnEqualTo", "item_spawn_speedmod,ModifySpeed,0,0,-1");
DispatchKeyFormat(iRelayRoar, "OnEqualTo", "item_spawn_speedmod,ModifySpeed,0.8,4,-1");
DispatchKeyFormat(iRelayRoar, "OnEqualTo", "item_balrog_model_%d,SetAnimation,balrog_groar,0,-1", g_iCounter);
DispatchKeyFormat(iRelayRoar, "OnEqualTo", "item_balrog_roar_sound_%d,PlaySound,,1,-1", g_iCounter);
DispatchKeyFormat(iRelayRoar, "OnEqualTo", "item_balrog_roar_%d,Enable,,0,-1", g_iCounter);
DispatchKeyFormat(iRelayRoar, "OnEqualTo", "item_balrog_roar_%d,Disable,,4,-1", g_iCounter);
SpawnAndActivate(iRelayRoar);
ParentToEntity(iRelayRoar, iKnife);
int iCompareRoar = CreateEntityAtOrigin("logic_compare", fOrigin);
DispatchKeyFormat(iCompareRoar, "targetname", "item_balrog_roar_compare_%d", g_iCounter);
DispatchKeyFormat(iCompareRoar, "spawnflags", "0");
DispatchKeyFormat(iCompareRoar, "OnEqualTo", "!self,SetValue,1,0,-1");
DispatchKeyFormat(iCompareRoar, "OnEqualTo", "!self,SetValue,0,25,-1");
DispatchKeyFormat(iCompareRoar, "OnEqualTo", "item_balrog_attack_compare_%d,SetCompareValue,-1,0,-1", g_iCounter);
DispatchKeyFormat(iCompareRoar, "OnEqualTo", "item_balrog_attack_compare_%d,SetCompareValue,0,4,-1", g_iCounter);
DispatchKeyFormat(iCompareRoar, "OnEqualTo", "item_spawn_speedmod,ModifySpeed,0,0,-1");
DispatchKeyFormat(iCompareRoar, "OnEqualTo", "item_spawn_speedmod,ModifySpeed,0.8,4,-1");
DispatchKeyFormat(iCompareRoar, "OnEqualTo", "item_balrog_model_%d,SetAnimation,balrog_groar,0,-1", g_iCounter);
DispatchKeyFormat(iCompareRoar, "OnEqualTo", "item_balrog_roar_sound_%d,PlaySound,,1,-1", g_iCounter);
DispatchKeyFormat(iCompareRoar, "OnEqualTo", "item_balrog_roar_%d,Enable,,0,-1", g_iCounter);
DispatchKeyFormat(iCompareRoar, "OnEqualTo", "item_balrog_roar_%d,Disable,,4,-1", g_iCounter);
SpawnAndActivate(iCompareRoar);
ParentToEntity(iCompareRoar, iKnife);
// logic_compare attack.
int iRelayAttack = CreateEntityAtOrigin("logic_compare", fOrigin);
DispatchKeyFormat(iRelayAttack, "targetname", "item_balrog_attack_compare_%d", g_iCounter);
DispatchKeyFormat(iRelayAttack, "spawnflags", "0");
DispatchKeyFormat(iRelayAttack, "OnEqualTo", "!self,SetValue,1,0,-1");
DispatchKeyFormat(iRelayAttack, "OnEqualTo", "!self,SetValue,0,4,-1");
DispatchKeyFormat(iRelayAttack, "OnEqualTo", "item_balrog_roar_compare_%d,SetCompareValue,-1,0,-1", g_iCounter);
DispatchKeyFormat(iRelayAttack, "OnEqualTo", "item_balrog_roar_compare_%d,SetCompareValue,0,4,-1", g_iCounter);
DispatchKeyFormat(iRelayAttack, "OnEqualTo", "item_spawn_speedmod,ModifySpeed,0,0,-1");
DispatchKeyFormat(iRelayAttack, "OnEqualTo", "item_spawn_speedmod,ModifySpeed,0.8,4,-1");
DispatchKeyFormat(iRelayAttack, "OnEqualTo", "item_balrog_model_%d,SetAnimation,balrog_attack1,0,-1", g_iCounter);
DispatchKeyFormat(iRelayAttack, "OnEqualTo", "item_balrog_attack_sound_%d,PlaySound,,1,-1", g_iCounter);
DispatchKeyFormat(iRelayAttack, "OnEqualTo", "item_balrog_attack_%d,Enable,,1.75,-1", g_iCounter);
DispatchKeyFormat(iRelayAttack, "OnEqualTo", "item_balrog_attack_%d,Disable,,2.2,-1", g_iCounter);
SpawnAndActivate(iRelayAttack);
ParentToEntity(iRelayAttack, iKnife);
int iCompareAttack = CreateEntityAtOrigin("logic_compare", fOrigin);
DispatchKeyFormat(iCompareAttack, "targetname", "item_balrog_attack_compare_%d", g_iCounter);
DispatchKeyFormat(iCompareAttack, "spawnflags", "0");
DispatchKeyFormat(iCompareAttack, "OnEqualTo", "!self,SetValue,1,0,-1");
DispatchKeyFormat(iCompareAttack, "OnEqualTo", "!self,SetValue,0,4,-1");
DispatchKeyFormat(iCompareAttack, "OnEqualTo", "item_balrog_roar_compare_%d,SetCompareValue,-1,0,-1", g_iCounter);
DispatchKeyFormat(iCompareAttack, "OnEqualTo", "item_balrog_roar_compare_%d,SetCompareValue,0,4,-1", g_iCounter);
DispatchKeyFormat(iCompareAttack, "OnEqualTo", "item_spawn_speedmod,ModifySpeed,0,0,-1");
DispatchKeyFormat(iCompareAttack, "OnEqualTo", "item_spawn_speedmod,ModifySpeed,0.8,4,-1");
DispatchKeyFormat(iCompareAttack, "OnEqualTo", "item_balrog_model_%d,SetAnimation,balrog_attack1,0,-1", g_iCounter);
DispatchKeyFormat(iCompareAttack, "OnEqualTo", "item_balrog_attack_sound_%d,PlaySound,,1,-1", g_iCounter);
DispatchKeyFormat(iCompareAttack, "OnEqualTo", "item_balrog_attack_%d,Enable,,1.75,-1", g_iCounter);
DispatchKeyFormat(iCompareAttack, "OnEqualTo", "item_balrog_attack_%d,Disable,,2.2,-1", g_iCounter);
SpawnAndActivate(iCompareAttack);
ParentToEntity(iCompareAttack, iKnife);
// logic_relay death.
int iRelayDeath = CreateEntityAtOrigin("logic_relay", fOrigin);
@ -258,6 +258,7 @@ public void SpawnBalrog(float fOrigin[3])
DispatchKeyFormat(iRelayDeath, "OnUser1", "item_balrog_attack_sound_%d,Kill,,0,1", g_iCounter);
DispatchKeyFormat(iRelayDeath, "OnUser1", "item_balrog_roar_compare_%d,Kill,,0,1", g_iCounter);
DispatchKeyFormat(iRelayDeath, "OnUser1", "item_balrog_attack_compare_%d,Kill,,0,1", g_iCounter);
DispatchKeyFormat(iRelayDeath, "OnUser1", "item_balrog_controls_%d,Kill,,0,1", g_iCounter);
DispatchKeyFormat(iRelayDeath, "OnUser1", "!activator,AddOutput,rendermode 0,0,1");
DispatchKeyFormat(iRelayDeath, "OnUser1", "!activator,AddOutput,renderfx 0,0,1");
// DispatchKeyFormat(iRelayDeath, "OnUser1", "!activator,AddOutput,gravity 1,0,1");

View File

@ -200,7 +200,7 @@ public void SpawnWhiteKnight(float fOrigin[3])
SpawnAndActivate(iSoundAttack2);
ParentToEntity(iSoundAttack2, iKnife);
// ambient_generic attack.
// ambient_generic nuke.
int iSoundNuke1 = CreateEntityAtOrigin("ambient_generic", fOrigin);
DispatchKeyFormat(iSoundNuke1, "targetname", "item_knight_nuke_sound_1_%d", g_iCounter);
DispatchKeyFormat(iSoundNuke1, "spawnflags", "49");
@ -214,7 +214,7 @@ public void SpawnWhiteKnight(float fOrigin[3])
SpawnAndActivate(iSoundNuke1);
ParentToEntity(iSoundNuke1, iKnife);
// ambient_generic attack.
// ambient_generic nuke.
int iSoundNuke2 = CreateEntityAtOrigin("ambient_generic", fOrigin);
DispatchKeyFormat(iSoundNuke2, "targetname", "item_knight_nuke_sound_2_%d", g_iCounter);
DispatchKeyFormat(iSoundNuke2, "spawnflags", "49");
@ -230,9 +230,157 @@ public void SpawnWhiteKnight(float fOrigin[3])
SpawnAndActivate(iSoundNuke2);
ParentToEntity(iSoundNuke2, iKnife);
// logic_branch attack.
int iBranchAttack = CreateEntityAtOrigin("logic_branch", fOrigin);
DispatchKeyFormat(iBranchAttack, "targetname", "item_knight_attack_branch_%d", g_iCounter);
DispatchKeyFormat(iBranchAttack, "spawnflags", "0");
// IO
SpawnAndActivate(iBranchAttack);
ParentToEntity(iBranchAttack, iKnife);
// logic_case attack.
int iCaseAttack1 = CreateEntityAtOrigin("logic_case", fOrigin);
DispatchKeyFormat(iCaseAttack1, "targetname", "item_knight_attack_case_1_%d", g_iCounter);
DispatchKeyFormat(iCaseAttack1, "spawnflags", "0");
DispatchKeyFormat(iCaseAttack1, "Case01", "1");
DispatchKeyFormat(iCaseAttack1, "Case02", "2");
DispatchKeyFormat(iCaseAttack1, "Case03", "3");
DispatchKeyFormat(iCaseAttack1, "OnCase01", "item_knight_model_%d,SetAnimation,dog_sword1,0,-1");
DispatchKeyFormat(iCaseAttack1, "OnCase02", "item_knight_model_%d,SetAnimation,dog_sword2,0,-1");
DispatchKeyFormat(iCaseAttack1, "OnCase03", "item_knight_model_%d,SetAnimation,dog_sword3,0,-1");
SpawnAndActivate(iCaseAttack1);
ParentToEntity(iCaseAttack1, iKnife);
// logic_case attack.
int iCaseAttack2 = CreateEntityAtOrigin("logic_case", fOrigin);
DispatchKeyFormat(iCaseAttack2, "targetname", "item_knight_attack_case_2_%d", g_iCounter);
DispatchKeyFormat(iCaseAttack2, "spawnflags", "0");
DispatchKeyFormat(iCaseAttack2, "Case01", "1");
DispatchKeyFormat(iCaseAttack2, "Case02", "2");
DispatchKeyFormat(iCaseAttack2, "OnCase01", "item_knight_model_%d,SetAnimation,dog_sword1heavy,0,-1");
DispatchKeyFormat(iCaseAttack2, "OnCase02", "item_knight_model_%d,SetAnimation,dog_sword2heavy,0,-1");
SpawnAndActivate(iCaseAttack2);
ParentToEntity(iCaseAttack2, iKnife);
// logic_compare attack.
int iCompareAttack = CreateEntityAtOrigin("logic_compare", fOrigin);
DispatchKeyFormat(iCompareAttack, "targetname", "item_knight_attack_compare_%d", g_iCounter);
DispatchKeyFormat(iCompareAttack, "spawnflags", "0");
DispatchKeyFormat(iCompareAttack, "OnEqualTo", "!self,SetValue,1,0,-1");
DispatchKeyFormat(iCompareAttack, "OnEqualTo", "item_knight_attack_compare_%d,SetCompareValue,-1,0,-1", g_iCounter);
DispatchKeyFormat(iCompareAttack, "OnEqualTo", "item_knight_attack_branch_%d,Test,,0,-1", g_iCounter);
SpawnAndActivate(iCompareAttack);
ParentToEntity(iCompareAttack, iKnife);
// logic_compare shield.
int iCompareShield = CreateEntityAtOrigin("logic_compare", fOrigin);
DispatchKeyFormat(iCompareShield, "targetname", "item_knight_shield_compare_%d", g_iCounter);
DispatchKeyFormat(iCompareShield, "spawnflags", "0");
DispatchKeyFormat(iCompareShield, "OnEqualTo", "!self,SetValue,1,0,-1");
DispatchKeyFormat(iCompareShield, "OnEqualTo", "!self,SetValue,0,6,-1");
DispatchKeyFormat(iCompareShield, "OnEqualTo", "item_knight_attack_compare_%d,SetCompareValue,-1,0,-1", g_iCounter);
DispatchKeyFormat(iCompareShield, "OnEqualTo", "item_knight_shield_compare_%d,SetCompareValue,-1,0,-1", g_iCounter);
// IO
SpawnAndActivate(iCompareShield);
ParentToEntity(iCompareShield, iKnife);
// logic_compare nuke.
int iCompareNuke = CreateEntityAtOrigin("logic_compare", fOrigin);
DispatchKeyFormat(iCompareNuke, "targetname", "item_knight_nuke_compare_%d", g_iCounter);
DispatchKeyFormat(iCompareNuke, "spawnflags", "0");
DispatchKeyFormat(iCompareNuke, "OnEqualTo", "!self,SetValue,1,0,-1");
DispatchKeyFormat(iCompareNuke, "OnEqualTo", "!self,SetValue,0,150,-1");
DispatchKeyFormat(iCompareNuke, "OnEqualTo", "item_knight_attack_compare_%d,SetCompareValue,-1,0,-1", g_iCounter);
DispatchKeyFormat(iCompareNuke, "OnEqualTo", "item_knight_shield_compare_%d,SetCompareValue,-1,0,-1", g_iCounter);
DispatchKeyFormat(iCompareNuke, "OnEqualTo", "item_knight_nuke_compare_%d,SetCompareValue,-1,0,-1", g_iCounter);
// IO
SpawnAndActivate(iCompareNuke);
ParentToEntity(iCompareNuke, iKnife);
// logic_relay combo 1.
int iRelayCombo1 = CreateEntityAtOrigin("logic_relay", fOrigin);
DispatchKeyFormat(iRelayCombo1, "targetname", "item_knight_combo_1_%d", g_iCounter);
DispatchKeyFormat(iRelayCombo1, "spawnflags", "0");
DispatchKeyFormat(iRelayCombo1, "OnTrigger", "item_knight_combo_2_%d,Enable,,0,-1", g_iCounter);
DispatchKeyFormat(iRelayCombo1, "OnTrigger", "item_knight_combo_2_%d,Disable,,0.3,-1", g_iCounter);
SpawnAndActivate(iRelayCombo1);
ParentToEntity(iRelayCombo1, iKnife);
// logic_relay combo 2.
int iRelayCombo2 = CreateEntityAtOrigin("logic_relay", fOrigin);
DispatchKeyFormat(iRelayCombo2, "targetname", "item_knight_combo_2_%d", g_iCounter);
DispatchKeyFormat(iRelayCombo2, "spawnflags", "0");
DispatchKeyFormat(iRelayCombo2, "startdisabled", "1");
DispatchKeyFormat(iRelayCombo2, "OnTrigger", "!self,Disable,,0,-1");
DispatchKeyFormat(iRelayCombo2, "OnTrigger", "item_knight_combo_3_%d,Enable,,0,-1", g_iCounter);
DispatchKeyFormat(iRelayCombo2, "OnTrigger", "item_knight_combo_3_%d,Disable,,0.3,-1", g_iCounter);
SpawnAndActivate(iRelayCombo2);
ParentToEntity(iRelayCombo2, iKnife);
// logic_relay combo 3.
int iRelayCombo3 = CreateEntityAtOrigin("logic_relay", fOrigin);
DispatchKeyFormat(iRelayCombo3, "targetname", "item_knight_combo_3_%d", g_iCounter);
DispatchKeyFormat(iRelayCombo3, "spawnflags", "0");
DispatchKeyFormat(iRelayCombo3, "startdisabled", "1");
DispatchKeyFormat(iRelayCombo3, "OnTrigger", "!self,Disable,,0,-1");
DispatchKeyFormat(iRelayCombo3, "OnTrigger", "item_knight_combo_4_%d,Enable,,0,-1", g_iCounter);
DispatchKeyFormat(iRelayCombo3, "OnTrigger", "item_knight_combo_4_%d,Disable,,0.3,-1", g_iCounter);
SpawnAndActivate(iRelayCombo3);
ParentToEntity(iRelayCombo3, iKnife);
// logic_relay combo 4.
int iRelayCombo4 = CreateEntityAtOrigin("logic_relay", fOrigin);
DispatchKeyFormat(iRelayCombo4, "targetname", "item_knight_combo_4_%d", g_iCounter);
DispatchKeyFormat(iRelayCombo4, "spawnflags", "0");
DispatchKeyFormat(iRelayCombo4, "startdisabled", "1");
DispatchKeyFormat(iRelayCombo4, "OnTrigger", "!self,Disable,,0,-1");
DispatchKeyFormat(iRelayCombo4, "OnTrigger", "item_knight_combo_5_%d,Enable,,0,-1", g_iCounter);
DispatchKeyFormat(iRelayCombo4, "OnTrigger", "item_knight_combo_5_%d,Disable,,0.3,-1", g_iCounter);
SpawnAndActivate(iRelayCombo4);
ParentToEntity(iRelayCombo4, iKnife);
// logic_relay combo 5.
int iRelayCombo5 = CreateEntityAtOrigin("logic_relay", fOrigin);
DispatchKeyFormat(iRelayCombo5, "targetname", "item_knight_combo_5_%d", g_iCounter);
DispatchKeyFormat(iRelayCombo5, "spawnflags", "0");
DispatchKeyFormat(iRelayCombo5, "startdisabled", "1");
DispatchKeyFormat(iRelayCombo5, "OnTrigger", "!self,Disable,,0,-1");
DispatchKeyFormat(iRelayCombo5, "OnTrigger", "item_knight_combo_6_%d,Enable,,0,-1", g_iCounter);
DispatchKeyFormat(iRelayCombo5, "OnTrigger", "item_knight_combo_6_%d,Disable,,0.3,-1", g_iCounter);
SpawnAndActivate(iRelayCombo5);
ParentToEntity(iRelayCombo5, iKnife);
// logic_relay combo 6.
int iRelayCombo6 = CreateEntityAtOrigin("logic_relay", fOrigin);
DispatchKeyFormat(iRelayCombo6, "targetname", "item_knight_combo_6_%d", g_iCounter);
DispatchKeyFormat(iRelayCombo6, "spawnflags", "0");
DispatchKeyFormat(iRelayCombo6, "startdisabled", "1");
DispatchKeyFormat(iRelayCombo6, "OnTrigger", "!self,Disable,,0,-1");
DispatchKeyFormat(iRelayCombo6, "OnTrigger", "item_knight_combo_7_%d,Enable,,0,-1", g_iCounter);
DispatchKeyFormat(iRelayCombo6, "OnTrigger", "item_knight_combo_7_%d,Disable,,0.3,-1", g_iCounter);
SpawnAndActivate(iRelayCombo6);
ParentToEntity(iRelayCombo6, iKnife);
// logic_relay combo 7.
int iRelayCombo7 = CreateEntityAtOrigin("logic_relay", fOrigin);
DispatchKeyFormat(iRelayCombo7, "targetname", "item_knight_combo_7_%d", g_iCounter);
DispatchKeyFormat(iRelayCombo7, "spawnflags", "0");
DispatchKeyFormat(iRelayCombo7, "startdisabled", "1");
DispatchKeyFormat(iRelayCombo7, "OnTrigger", "!self,Disable,,0,-1");
DispatchKeyFormat(iRelayCombo7, "OnTrigger", "item_knight_combo_8_%d,Enable,,0,-1", g_iCounter);
DispatchKeyFormat(iRelayCombo7, "OnTrigger", "item_knight_combo_8_%d,Disable,,0.3,-1", g_iCounter);
SpawnAndActivate(iRelayCombo7);
ParentToEntity(iRelayCombo7, iKnife);
// logic_relay combo 8.
int iRelayCombo8 = CreateEntityAtOrigin("logic_relay", fOrigin);
DispatchKeyFormat(iRelayCombo8, "targetname", "item_knight_combo_8_%d", g_iCounter);
DispatchKeyFormat(iRelayCombo8, "spawnflags", "0");
DispatchKeyFormat(iRelayCombo8, "startdisabled", "1");
DispatchKeyFormat(iRelayCombo8, "OnTrigger", "!self,Disable,,0,-1");
DispatchKeyFormat(iRelayCombo8, "OnTrigger", "item_knight_nuke_compare_%d,Compare,,0,-1", g_iCounter);
SpawnAndActivate(iRelayCombo8);
ParentToEntity(iRelayCombo8, iKnife);
// logic_relay walk.
int iRelayWalk = CreateEntityAtOrigin("logic_relay", fOrigin);
@ -262,10 +410,22 @@ public void SpawnWhiteKnight(float fOrigin[3])
DispatchKeyFormat(iRelayDeath, "OnUser1", "item_knight_attack_sound_2_%d,Kill,,0,1", g_iCounter);
DispatchKeyFormat(iRelayDeath, "OnUser1", "item_knight_nuke_sound_1_%d,Kill,,0,1", g_iCounter);
DispatchKeyFormat(iRelayDeath, "OnUser1", "item_knight_nuke_sound_2_%d,Kill,,0,1", g_iCounter);
DispatchKeyFormat(iRelayDeath, "OnUser1", "item_knight_attack_branch_%d,Kill,,0,1", g_iCounter);
DispatchKeyFormat(iRelayDeath, "OnUser1", "item_knight_attack_case_1_%d,Kill,,0,1", g_iCounter);
DispatchKeyFormat(iRelayDeath, "OnUser1", "item_knight_attack_case_2_%d,Kill,,0,1", g_iCounter);
DispatchKeyFormat(iRelayDeath, "OnUser1", "item_knight_attack_compare_%d,Kill,,0,1", g_iCounter);
DispatchKeyFormat(iRelayDeath, "OnUser1", "item_knight_shield_compare_%d,Kill,,0,1", g_iCounter);
DispatchKeyFormat(iRelayDeath, "OnUser1", "item_knight_nuke_compare_%d,Kill,,0,1", g_iCounter);
DispatchKeyFormat(iRelayDeath, "OnUser1", "item_knight_combo_1_%d,Kill,,0,1", g_iCounter);
DispatchKeyFormat(iRelayDeath, "OnUser1", "item_knight_combo_2_%d,Kill,,0,1", g_iCounter);
DispatchKeyFormat(iRelayDeath, "OnUser1", "item_knight_combo_3_%d,Kill,,0,1", g_iCounter);
DispatchKeyFormat(iRelayDeath, "OnUser1", "item_knight_combo_4_%d,Kill,,0,1", g_iCounter);
DispatchKeyFormat(iRelayDeath, "OnUser1", "item_knight_combo_5_%d,Kill,,0,1", g_iCounter);
DispatchKeyFormat(iRelayDeath, "OnUser1", "item_knight_combo_6_%d,Kill,,0,1", g_iCounter);
DispatchKeyFormat(iRelayDeath, "OnUser1", "item_knight_combo_7_%d,Kill,,0,1", g_iCounter);
DispatchKeyFormat(iRelayDeath, "OnUser1", "item_knight_combo_8_%d,Kill,,0,1", g_iCounter);
DispatchKeyFormat(iRelayDeath, "OnUser1", "item_knight_walk_%d,Kill,,0,1", g_iCounter);
DispatchKeyFormat(iRelayDeath, "OnUser1", "item_knight_controls_%d,Kill,,0,1", g_iCounter);
DispatchKeyFormat(iRelayDeath, "OnUser1", "!activator,AddOutput,rendermode 0,0,1");
DispatchKeyFormat(iRelayDeath, "OnUser1", "!activator,AddOutput,renderfx 0,0,1");
DispatchKeyFormat(iRelayDeath, "OnUser1", "!activator,SetDamageFilter,,0,1");
@ -318,9 +478,20 @@ public void SpawnWhiteKnight(float fOrigin[3])
DispatchKeyFormat(iHealth, "OnBreak", "item_knight_attack_sound_2_%d,Kill,,0,1", g_iCounter);
DispatchKeyFormat(iHealth, "OnBreak", "item_knight_nuke_sound_1_%d,Kill,,0,1", g_iCounter);
DispatchKeyFormat(iHealth, "OnBreak", "item_knight_nuke_sound_2_%d,Kill,,0,1", g_iCounter);
DispatchKeyFormat(iHealth, "OnBreak", "item_knight_attack_branch_%d,Kill,,0,1", g_iCounter);
DispatchKeyFormat(iHealth, "OnBreak", "item_knight_attack_case_1_%d,Kill,,0,1", g_iCounter);
DispatchKeyFormat(iHealth, "OnBreak", "item_knight_attack_case_2_%d,Kill,,0,1", g_iCounter);
DispatchKeyFormat(iHealth, "OnBreak", "item_knight_attack_compare_%d,Kill,,0,1", g_iCounter);
DispatchKeyFormat(iHealth, "OnBreak", "item_knight_shield_compare_%d,Kill,,0,1", g_iCounter);
DispatchKeyFormat(iHealth, "OnBreak", "item_knight_nuke_compare_%d,Kill,,0,1", g_iCounter);
DispatchKeyFormat(iHealth, "OnBreak", "item_knight_combo_1_%d,Kill,,0,1", g_iCounter);
DispatchKeyFormat(iHealth, "OnBreak", "item_knight_combo_2_%d,Kill,,0,1", g_iCounter);
DispatchKeyFormat(iHealth, "OnBreak", "item_knight_combo_3_%d,Kill,,0,1", g_iCounter);
DispatchKeyFormat(iHealth, "OnBreak", "item_knight_combo_4_%d,Kill,,0,1", g_iCounter);
DispatchKeyFormat(iHealth, "OnBreak", "item_knight_combo_5_%d,Kill,,0,1", g_iCounter);
DispatchKeyFormat(iHealth, "OnBreak", "item_knight_combo_6_%d,Kill,,0,1", g_iCounter);
DispatchKeyFormat(iHealth, "OnBreak", "item_knight_combo_7_%d,Kill,,0,1", g_iCounter);
DispatchKeyFormat(iHealth, "OnBreak", "item_knight_combo_8_%d,Kill,,0,1", g_iCounter);
DispatchKeyFormat(iHealth, "OnBreak", "item_knight_walk_%d,Kill,,0,1", g_iCounter);
DispatchKeyFormat(iHealth, "OnBreak", "item_knight_controls_%d,Kill,,0,1", g_iCounter);
DispatchKeyFormat(iHealth, "OnBreak", "item_knight_model_%d,ClearParent,,0,1", g_iCounter);