ItemSpawn: More WK progress.

This commit is contained in:
zaCade 2018-08-11 15:47:04 +02:00
parent baab4dd2eb
commit ecf08a90bd
2 changed files with 236 additions and 138 deletions

View File

@ -263,6 +263,7 @@ public void SpawnBalrog(float fOrigin[3])
// DispatchKeyFormat(iRelayDeath, "OnUser1", "!activator,AddOutput,gravity 1,0,1"); // DispatchKeyFormat(iRelayDeath, "OnUser1", "!activator,AddOutput,gravity 1,0,1");
DispatchKeyFormat(iRelayDeath, "OnUser1", "!activator,SetDamageFilter,,0,1"); DispatchKeyFormat(iRelayDeath, "OnUser1", "!activator,SetDamageFilter,,0,1");
DispatchKeyFormat(iRelayDeath, "OnUser1", "!activator,SetHealth,0,0.02,-1"); DispatchKeyFormat(iRelayDeath, "OnUser1", "!activator,SetHealth,0,0.02,-1");
DispatchKeyFormat(iRelayDeath, "OnUser1", "!self,Kill,,0,1");
SpawnAndActivate(iRelayDeath); SpawnAndActivate(iRelayDeath);
ParentToEntity(iRelayDeath, iKnife); ParentToEntity(iRelayDeath, iKnife);

View File

@ -93,87 +93,160 @@ public void SpawnWhiteKnight(float fOrigin[3])
SetEntityBBox(iTriggerStrip, view_as<float>({-8.0, -8.0, -8.0}), view_as<float>({8.0, 8.0, 8.0})); SetEntityBBox(iTriggerStrip, view_as<float>({-8.0, -8.0, -8.0}), view_as<float>({8.0, 8.0, 8.0}));
SetEntityProps(iTriggerStrip); SetEntityProps(iTriggerStrip);
// attack push origin. // attack origin.
fOriginTemp[0] = fOrigin[0] + 112.0; fOriginTemp[0] = fOrigin[0] + 112.0;
fOriginTemp[1] = fOrigin[1]; fOriginTemp[1] = fOrigin[1];
fOriginTemp[2] = fOrigin[2] + 4.0; fOriginTemp[2] = fOrigin[2] + 4.0;
// trigger_push attack push. // trigger_push attack.
int iTriggerPushOne = CreateEntityAtOrigin("trigger_push", fOriginTemp); int iTriggerAttack1 = CreateEntityAtOrigin("trigger_push", fOriginTemp);
DispatchKeyFormat(iTriggerPushOne, "targetname", "item_knight_push_1_%d", g_iCounter); DispatchKeyFormat(iTriggerAttack1, "targetname", "item_knight_attack_1_%d", g_iCounter);
DispatchKeyFormat(iTriggerPushOne, "filtername", "item_spawn_zombie_filter"); DispatchKeyFormat(iTriggerAttack1, "filtername", "item_spawn_zombie_filter");
DispatchKeyFormat(iTriggerPushOne, "spawnflags", "1"); DispatchKeyFormat(iTriggerAttack1, "spawnflags", "1");
DispatchKeyFormat(iTriggerPushOne, "startdisabled", "1"); DispatchKeyFormat(iTriggerAttack1, "startdisabled", "1");
DispatchKeyFormat(iTriggerPushOne, "pushdir", "-45 0 0"); DispatchKeyFormat(iTriggerAttack1, "pushdir", "-45 0 0");
DispatchKeyFormat(iTriggerPushOne, "speed", "600"); DispatchKeyFormat(iTriggerAttack1, "speed", "600");
SpawnAndActivate(iTriggerPushOne); SpawnAndActivate(iTriggerAttack1);
ParentToEntity(iTriggerPushOne, iKnife); ParentToEntity(iTriggerAttack1, iKnife);
// make the trigger work. // make the trigger work.
SetEntityBBox(iTriggerPushOne, view_as<float>({-70.0, -52.0, -36.0}), view_as<float>({70.0, 52.0, 36.0})); SetEntityBBox(iTriggerAttack1, view_as<float>({-70.0, -52.0, -36.0}), view_as<float>({70.0, 52.0, 36.0}));
SetEntityProps(iTriggerPushOne); SetEntityProps(iTriggerAttack1);
// trigger_push attack push. // trigger_push attack.
int iTriggerPushTwo = CreateEntityAtOrigin("trigger_push", fOriginTemp); int iTriggerAttack2 = CreateEntityAtOrigin("trigger_push", fOriginTemp);
DispatchKeyFormat(iTriggerPushTwo, "targetname", "item_knight_push_2_%d", g_iCounter); DispatchKeyFormat(iTriggerAttack2, "targetname", "item_knight_attack_2_%d", g_iCounter);
DispatchKeyFormat(iTriggerPushTwo, "filtername", "item_spawn_zombie_filter"); DispatchKeyFormat(iTriggerAttack2, "filtername", "item_spawn_zombie_filter");
DispatchKeyFormat(iTriggerPushTwo, "spawnflags", "1"); DispatchKeyFormat(iTriggerAttack2, "spawnflags", "1");
DispatchKeyFormat(iTriggerPushTwo, "startdisabled", "1"); DispatchKeyFormat(iTriggerAttack2, "startdisabled", "1");
DispatchKeyFormat(iTriggerPushTwo, "pushdir", "-45 0 0"); DispatchKeyFormat(iTriggerAttack2, "pushdir", "-45 0 0");
DispatchKeyFormat(iTriggerPushTwo, "speed", "1500"); DispatchKeyFormat(iTriggerAttack2, "speed", "1500");
SpawnAndActivate(iTriggerPushTwo); SpawnAndActivate(iTriggerAttack2);
ParentToEntity(iTriggerPushTwo, iKnife); ParentToEntity(iTriggerAttack2, iKnife);
// make the trigger work. // make the trigger work.
SetEntityBBox(iTriggerPushTwo, view_as<float>({-70.0, -52.0, -36.0}), view_as<float>({70.0, 52.0, 36.0})); SetEntityBBox(iTriggerAttack2, view_as<float>({-70.0, -52.0, -36.0}), view_as<float>({70.0, 52.0, 36.0}));
SetEntityProps(iTriggerPushTwo); SetEntityProps(iTriggerAttack2);
// attack hurt origin. // attack origin.
fOriginTemp[0] = fOrigin[0] + 130.0; fOriginTemp[0] = fOrigin[0] + 130.0;
fOriginTemp[1] = fOrigin[1]; fOriginTemp[1] = fOrigin[1];
fOriginTemp[2] = fOrigin[2] + 4.0; fOriginTemp[2] = fOrigin[2] + 4.0;
// trigger_hurt attack hurt. // trigger_hurt attack.
int iTriggerHurtOne = CreateEntityAtOrigin("trigger_hurt", fOriginTemp); int iTriggerAttack3 = CreateEntityAtOrigin("trigger_hurt", fOriginTemp);
DispatchKeyFormat(iTriggerHurtOne, "targetname", "item_knight_hurt_1_%d", g_iCounter); DispatchKeyFormat(iTriggerAttack3, "targetname", "item_knight_attack_3_%d", g_iCounter);
DispatchKeyFormat(iTriggerHurtOne, "filtername", "item_spawn_zombie_filter"); DispatchKeyFormat(iTriggerAttack3, "filtername", "item_spawn_zombie_filter");
DispatchKeyFormat(iTriggerHurtOne, "spawnflags", "9"); DispatchKeyFormat(iTriggerAttack3, "spawnflags", "9");
DispatchKeyFormat(iTriggerHurtOne, "startdisabled", "1"); DispatchKeyFormat(iTriggerAttack3, "startdisabled", "1");
DispatchKeyFormat(iTriggerHurtOne, "damagetype", "512"); DispatchKeyFormat(iTriggerAttack3, "damagetype", "512");
DispatchKeyFormat(iTriggerHurtOne, "damagemodel", "0"); DispatchKeyFormat(iTriggerAttack3, "damagemodel", "0");
DispatchKeyFormat(iTriggerHurtOne, "damagecap", "20"); DispatchKeyFormat(iTriggerAttack3, "damagecap", "20");
DispatchKeyFormat(iTriggerHurtOne, "damage", "800"); DispatchKeyFormat(iTriggerAttack3, "damage", "800");
SpawnAndActivate(iTriggerHurtOne); SpawnAndActivate(iTriggerAttack3);
ParentToEntity(iTriggerHurtOne, iKnife); ParentToEntity(iTriggerAttack3, iKnife);
// make the trigger work. // make the trigger work.
SetEntityBBox(iTriggerHurtOne, view_as<float>({-52.0, -52.0, -36.0}), view_as<float>({52.0, 52.0, 36.0})); SetEntityBBox(iTriggerAttack3, view_as<float>({-52.0, -52.0, -36.0}), view_as<float>({52.0, 52.0, 36.0}));
SetEntityProps(iTriggerHurtOne); SetEntityProps(iTriggerAttack3);
// nuke hurt origin. // nuke origin.
fOriginTemp[0] = fOrigin[0] + 6.0; fOriginTemp[0] = fOrigin[0] + 6.0;
fOriginTemp[1] = fOrigin[1]; fOriginTemp[1] = fOrigin[1];
fOriginTemp[2] = fOrigin[2] + 32.0; fOriginTemp[2] = fOrigin[2] + 32.0;
int iTriggerHurtTwo = CreateEntityAtOrigin("trigger_hurt", fOriginTemp);
DispatchKeyFormat(iTriggerHurtTwo, "targetname", "item_knight_hurt_2_%d", g_iCounter); // trigger_hurt nuke.
DispatchKeyFormat(iTriggerHurtTwo, "filtername", "item_spawn_zombie_filter"); int iTriggerNuke = CreateEntityAtOrigin("trigger_hurt", fOriginTemp);
DispatchKeyFormat(iTriggerHurtTwo, "spawnflags", "9"); DispatchKeyFormat(iTriggerNuke, "targetname", "item_knight_nuke_%d", g_iCounter);
DispatchKeyFormat(iTriggerHurtTwo, "startdisabled", "1"); DispatchKeyFormat(iTriggerNuke, "filtername", "item_spawn_zombie_filter");
DispatchKeyFormat(iTriggerHurtTwo, "damagetype", "512"); DispatchKeyFormat(iTriggerNuke, "spawnflags", "9");
DispatchKeyFormat(iTriggerHurtTwo, "damagemodel", "0"); DispatchKeyFormat(iTriggerNuke, "startdisabled", "1");
DispatchKeyFormat(iTriggerHurtTwo, "damagecap", "20"); DispatchKeyFormat(iTriggerNuke, "damagetype", "512");
DispatchKeyFormat(iTriggerHurtTwo, "damage", "20000"); DispatchKeyFormat(iTriggerNuke, "damagemodel", "0");
SpawnAndActivate(iTriggerHurtTwo); DispatchKeyFormat(iTriggerNuke, "damagecap", "20");
ParentToEntity(iTriggerHurtTwo, iKnife); DispatchKeyFormat(iTriggerNuke, "damage", "20000");
SpawnAndActivate(iTriggerNuke);
ParentToEntity(iTriggerNuke, iKnife);
// make the trigger work. // make the trigger work.
SetEntityBBox(iTriggerHurtTwo, view_as<float>({-1024.0, -1024.0, -800.0}), view_as<float>({1024.0, 1024.0, 800.0})); SetEntityBBox(iTriggerNuke, view_as<float>({-1024.0, -1024.0, -800.0}), view_as<float>({1024.0, 1024.0, 800.0}));
SetEntityProps(iTriggerHurtTwo); SetEntityProps(iTriggerNuke);
// ambient_generic attack.
int iSoundAttack1 = CreateEntityAtOrigin("ambient_generic", fOrigin);
DispatchKeyFormat(iSoundAttack1, "targetname", "item_knight_attack_sound_1_%d", g_iCounter);
DispatchKeyFormat(iSoundAttack1, "spawnflags", "48");
DispatchKeyFormat(iSoundAttack1, "radius", "1250");
DispatchKeyFormat(iSoundAttack1, "sourceentityname", "item_knight_knife_%d", g_iCounter);
DispatchKeyFormat(iSoundAttack1, "message", "npc/roller/blade_out.wav");
DispatchKeyFormat(iSoundAttack1, "volume", "10");
DispatchKeyFormat(iSoundAttack1, "health", "10");
DispatchKeyFormat(iSoundAttack1, "pitch", "100");
DispatchKeyFormat(iSoundAttack1, "pitchstart", "100");
SpawnAndActivate(iSoundAttack1);
ParentToEntity(iSoundAttack1, iKnife);
// ambient_generic attack.
int iSoundAttack2 = CreateEntityAtOrigin("ambient_generic", fOrigin);
DispatchKeyFormat(iSoundAttack2, "targetname", "item_knight_attack_sound_2_%d", g_iCounter);
DispatchKeyFormat(iSoundAttack2, "spawnflags", "48");
DispatchKeyFormat(iSoundAttack2, "radius", "1250");
DispatchKeyFormat(iSoundAttack2, "sourceentityname", "item_knight_knife_%d", g_iCounter);
DispatchKeyFormat(iSoundAttack2, "message", "npc/strider/strider_skewer1.wav");
DispatchKeyFormat(iSoundAttack2, "volume", "10");
DispatchKeyFormat(iSoundAttack2, "health", "10");
DispatchKeyFormat(iSoundAttack2, "pitch", "100");
DispatchKeyFormat(iSoundAttack2, "pitchstart", "100");
SpawnAndActivate(iSoundAttack2);
ParentToEntity(iSoundAttack2, iKnife);
// ambient_generic attack.
int iSoundNuke1 = CreateEntityAtOrigin("ambient_generic", fOrigin);
DispatchKeyFormat(iSoundNuke1, "targetname", "item_knight_nuke_sound_1_%d", g_iCounter);
DispatchKeyFormat(iSoundNuke1, "spawnflags", "49");
DispatchKeyFormat(iSoundNuke1, "radius", "1250");
DispatchKeyFormat(iSoundNuke1, "sourceentityname", "item_knight_knife_%d", g_iCounter);
DispatchKeyFormat(iSoundNuke1, "message", "ambient/levels/citadel/portal_beam_shoot4.wav");
DispatchKeyFormat(iSoundNuke1, "volume", "10");
DispatchKeyFormat(iSoundNuke1, "health", "10");
DispatchKeyFormat(iSoundNuke1, "pitch", "100");
DispatchKeyFormat(iSoundNuke1, "pitchstart", "100");
SpawnAndActivate(iSoundNuke1);
ParentToEntity(iSoundNuke1, iKnife);
// ambient_generic attack.
int iSoundNuke2 = CreateEntityAtOrigin("ambient_generic", fOrigin);
DispatchKeyFormat(iSoundNuke2, "targetname", "item_knight_nuke_sound_2_%d", g_iCounter);
DispatchKeyFormat(iSoundNuke2, "spawnflags", "49");
DispatchKeyFormat(iSoundNuke2, "radius", "1250");
DispatchKeyFormat(iSoundNuke2, "sourceentityname", "item_knight_knife_%d", g_iCounter);
DispatchKeyFormat(iSoundNuke2, "message", "ambient/explosions/explode_6.wav");
DispatchKeyFormat(iSoundNuke2, "volume", "10");
DispatchKeyFormat(iSoundNuke2, "health", "10");
DispatchKeyFormat(iSoundNuke2, "pitch", "100");
DispatchKeyFormat(iSoundNuke2, "pitchstart", "100");
DispatchKeyFormat(iSoundNuke2, "fadein", "0");
DispatchKeyFormat(iSoundNuke2, "fadeout", "0");
SpawnAndActivate(iSoundNuke2);
ParentToEntity(iSoundNuke2, iKnife);
// logic_relay walk.
int iRelayWalk = CreateEntityAtOrigin("logic_relay", fOrigin);
DispatchKeyFormat(iRelayWalk, "targetname", "item_knight_walk_%d", g_iCounter);
DispatchKeyFormat(iRelayWalk, "spawnflags", "0");
DispatchKeyFormat(iRelayWalk, "OnTrigger", "item_knight_model_%d,SetAnimation,dog_run,0,-1", g_iCounter);
DispatchKeyFormat(iRelayWalk, "OnTrigger", "item_knight_model_%d,SetDefaultAnimation,dog_run,0,-1", g_iCounter);
DispatchKeyFormat(iRelayWalk, "OnTrigger", "item_knight_attack_compare_%d,SetCompareValue,0,0,-1", g_iCounter);
DispatchKeyFormat(iRelayWalk, "OnTrigger", "item_knight_shield_compare_%d,SetCompareValue,0,0,-1", g_iCounter);
DispatchKeyFormat(iRelayWalk, "OnTrigger", "item_knight_nuke_compare_%d,SetCompareValue,0,0,-1", g_iCounter);
DispatchKeyFormat(iRelayWalk, "OnTrigger", "item_spawn_speedmod,ModifySpeed,1,0,-1");
SpawnAndActivate(iRelayWalk);
ParentToEntity(iRelayWalk, iKnife);
// logic_relay death. // logic_relay death.
int iRelayDeath = CreateEntityAtOrigin("logic_relay", fOrigin); int iRelayDeath = CreateEntityAtOrigin("logic_relay", fOrigin);
DispatchKeyFormat(iRelayDeath, "targetname", "item_knight_death_%d", g_iCounter); DispatchKeyFormat(iRelayDeath, "targetname", "item_knight_death_%d", g_iCounter);
@ -181,14 +254,23 @@ public void SpawnWhiteKnight(float fOrigin[3])
DispatchKeyFormat(iRelayDeath, "OnTrigger", "!self,FireUser1,,0.1,-1"); DispatchKeyFormat(iRelayDeath, "OnTrigger", "!self,FireUser1,,0.1,-1");
DispatchKeyFormat(iRelayDeath, "OnUser1", "item_knight_knife_%d,Kill,,0,1", g_iCounter); DispatchKeyFormat(iRelayDeath, "OnUser1", "item_knight_knife_%d,Kill,,0,1", g_iCounter);
DispatchKeyFormat(iRelayDeath, "OnUser1", "item_knight_strip_%d,Kill,,0,1", g_iCounter); DispatchKeyFormat(iRelayDeath, "OnUser1", "item_knight_strip_%d,Kill,,0,1", g_iCounter);
DispatchKeyFormat(iRelayDeath, "OnUser1", "item_knight_push_1_%d,Kill,,0,1", g_iCounter); DispatchKeyFormat(iRelayDeath, "OnUser1", "item_knight_attack_1_%d,Kill,,0,1", g_iCounter);
DispatchKeyFormat(iRelayDeath, "OnUser1", "item_knight_push_2_%d,Kill,,0,1", g_iCounter); DispatchKeyFormat(iRelayDeath, "OnUser1", "item_knight_attack_2_%d,Kill,,0,1", g_iCounter);
DispatchKeyFormat(iRelayDeath, "OnUser1", "item_knight_hurt_1_%d,Kill,,0,1", g_iCounter); DispatchKeyFormat(iRelayDeath, "OnUser1", "item_knight_attack_3_%d,Kill,,0,1", g_iCounter);
DispatchKeyFormat(iRelayDeath, "OnUser1", "item_knight_hurt_2_%d,Kill,,0,1", g_iCounter); DispatchKeyFormat(iRelayDeath, "OnUser1", "item_knight_nuke_%d,Kill,,0,1", g_iCounter);
DispatchKeyFormat(iRelayDeath, "OnUser1", "item_knight_attack_sound_1_%d,Kill,,0,1", g_iCounter);
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_walk_%d,Kill,,0,1", g_iCounter);
DispatchKeyFormat(iRelayDeath, "OnUser1", "!activator,AddOutput,rendermode 0,0,1"); DispatchKeyFormat(iRelayDeath, "OnUser1", "!activator,AddOutput,rendermode 0,0,1");
DispatchKeyFormat(iRelayDeath, "OnUser1", "!activator,AddOutput,renderfx 0,0,1"); DispatchKeyFormat(iRelayDeath, "OnUser1", "!activator,AddOutput,renderfx 0,0,1");
DispatchKeyFormat(iRelayDeath, "OnUser1", "!activator,SetDamageFilter,,0,1"); DispatchKeyFormat(iRelayDeath, "OnUser1", "!activator,SetDamageFilter,,0,1");
DispatchKeyFormat(iRelayDeath, "OnUser1", "!activator,SetHealth,0,0.02,-1"); DispatchKeyFormat(iRelayDeath, "OnUser1", "!activator,SetHealth,0,0.02,-1");
DispatchKeyFormat(iRelayDeath, "OnUser1", "!self,Kill,,0,1");
SpawnAndActivate(iRelayDeath); SpawnAndActivate(iRelayDeath);
ParentToEntity(iRelayDeath, iKnife); ParentToEntity(iRelayDeath, iKnife);
@ -228,11 +310,18 @@ public void SpawnWhiteKnight(float fOrigin[3])
DispatchKeyFormat(iHealth, "damagefilter", "item_spawn_zombie_filter"); DispatchKeyFormat(iHealth, "damagefilter", "item_spawn_zombie_filter");
DispatchKeyFormat(iHealth, "OnBreak", "item_knight_knife_%d,Kill,,0,1", g_iCounter); DispatchKeyFormat(iHealth, "OnBreak", "item_knight_knife_%d,Kill,,0,1", g_iCounter);
DispatchKeyFormat(iHealth, "OnBreak", "item_knight_strip_%d,Kill,,0,1", g_iCounter); DispatchKeyFormat(iHealth, "OnBreak", "item_knight_strip_%d,Kill,,0,1", g_iCounter);
DispatchKeyFormat(iHealth, "OnBreak", "item_knight_push_1_%d,Kill,,0,1", g_iCounter); DispatchKeyFormat(iHealth, "OnBreak", "item_knight_attack_1_%d,Kill,,0,1", g_iCounter);
DispatchKeyFormat(iHealth, "OnBreak", "item_knight_push_2_%d,Kill,,0,1", g_iCounter); DispatchKeyFormat(iHealth, "OnBreak", "item_knight_attack_2_%d,Kill,,0,1", g_iCounter);
DispatchKeyFormat(iHealth, "OnBreak", "item_knight_hurt_1_%d,Kill,,0,1", g_iCounter); DispatchKeyFormat(iHealth, "OnBreak", "item_knight_attack_3_%d,Kill,,0,1", g_iCounter);
DispatchKeyFormat(iHealth, "OnBreak", "item_knight_hurt_2_%d,Kill,,0,1", g_iCounter); DispatchKeyFormat(iHealth, "OnBreak", "item_knight_nuke_%d,Kill,,0,1", g_iCounter);
DispatchKeyFormat(iHealth, "OnBreak", "item_knight_attack_sound_1_%d,Kill,,0,1", g_iCounter);
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_walk_%d,Kill,,0,1", g_iCounter);
DispatchKeyFormat(iHealth, "OnBreak", "item_knight_controls_%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); DispatchKeyFormat(iHealth, "OnBreak", "item_knight_model_%d,ClearParent,,0,1", g_iCounter);
DispatchKeyFormat(iHealth, "OnBreak", "item_knight_model_%d,SetAnimation,dog_die,0,1", g_iCounter); DispatchKeyFormat(iHealth, "OnBreak", "item_knight_model_%d,SetAnimation,dog_die,0,1", g_iCounter);
@ -260,6 +349,14 @@ public void SpawnWhiteKnight(float fOrigin[3])
DispatchKeyFormat(iControls, "fieldofview", "-1.0"); DispatchKeyFormat(iControls, "fieldofview", "-1.0");
DispatchKeyFormat(iControls, "PressedAttack", "item_knight_attack_compare_%d,Compare,,0,-1", g_iCounter); DispatchKeyFormat(iControls, "PressedAttack", "item_knight_attack_compare_%d,Compare,,0,-1", g_iCounter);
DispatchKeyFormat(iControls, "PressedAttack2", "item_knight_shield_compare_%d,Compare,,0,-1", g_iCounter); DispatchKeyFormat(iControls, "PressedAttack2", "item_knight_shield_compare_%d,Compare,,0,-1", g_iCounter);
DispatchKeyFormat(iControls, "PressedBack", "item_knight_combo_5_%d,Trigger,,0,-1", g_iCounter);
DispatchKeyFormat(iControls, "PressedBack", "item_knight_combo_7_%d,Trigger,,0,-1", g_iCounter);
DispatchKeyFormat(iControls, "PressedForward", "item_knight_combo_6_%d,Trigger,,0,-1", g_iCounter);
DispatchKeyFormat(iControls, "PressedForward", "item_knight_combo_8_%d,Trigger,,0,-1", g_iCounter);
DispatchKeyFormat(iControls, "PressedMoveLeft", "item_knight_combo_1_%d,Trigger,,0,-1", g_iCounter);
DispatchKeyFormat(iControls, "PressedMoveLeft", "item_knight_combo_2_%d,Trigger,,0,-1", g_iCounter);
DispatchKeyFormat(iControls, "PressedMoveRight", "item_knight_combo_3_%d,Trigger,,0,-1", g_iCounter);
DispatchKeyFormat(iControls, "PressedMoveRight", "item_knight_combo_4_%d,Trigger,,0,-1", g_iCounter);
SpawnAndActivate(iControls); SpawnAndActivate(iControls);
ParentToEntity(iControls, iKnife); ParentToEntity(iControls, iKnife);