diff --git a/ItemSpawn/scripting/items/whiteknight.inc b/ItemSpawn/scripting/items/whiteknight.inc index 9829e952..bcfd0102 100644 --- a/ItemSpawn/scripting/items/whiteknight.inc +++ b/ItemSpawn/scripting/items/whiteknight.inc @@ -300,6 +300,7 @@ public void SpawnWhiteKnight(float fOrigin[3]) DispatchKeyFormat(iCompareShield, "spawnflags", "0"); DispatchKeyFormat(iCompareShield, "OnEqualTo", "!self,SetValue,1,0,-1"); DispatchKeyFormat(iCompareShield, "OnEqualTo", "!self,SetValue,0,6,-1"); + DispatchKeyFormat(iCompareShield, "OnEqualTo", "item_spawn_speedmod,ModifySpeed,0,0,-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); DispatchKeyFormat(iCompareShield, "OnEqualTo", "item_knight_model_%d,SetAnimation,dog_defense,0,-1", g_iCounter); @@ -307,19 +308,18 @@ public void SpawnWhiteKnight(float fOrigin[3]) DispatchKeyFormat(iCompareShield, "OnEqualTo", "item_knight_health_%d,SetDamageFilter,item_spawn_nodamage,0,-1", g_iCounter); DispatchKeyFormat(iCompareShield, "OnEqualTo", "item_knight_health_%d,SetDamageFilter,item_spawn_zombie_filter,0,-1", g_iCounter); DispatchKeyFormat(iCompareShield, "OnEqualTo", "item_knight_walk_%d,Trigger,,2,-1", g_iCounter); - DispatchKeyFormat(iCompareShield, "OnEqualTo", "item_spawn_speedmod,ModifySpeed,0,0,-1"); 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); + 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); SpawnAndActivate(iCompareNuke); ParentToEntity(iCompareNuke, iKnife); @@ -407,7 +407,7 @@ public void SpawnWhiteKnight(float fOrigin[3]) 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); DispatchKeyFormat(iRelayWalk, "targetname", "item_knight_walk_%d", g_iCounter);