ItemSpawn: Cleaner this way.
This commit is contained in:
parent
4db684851a
commit
13323e04f5
@ -300,6 +300,7 @@ public void SpawnWhiteKnight(float fOrigin[3])
|
|||||||
DispatchKeyFormat(iCompareShield, "spawnflags", "0");
|
DispatchKeyFormat(iCompareShield, "spawnflags", "0");
|
||||||
DispatchKeyFormat(iCompareShield, "OnEqualTo", "!self,SetValue,1,0,-1");
|
DispatchKeyFormat(iCompareShield, "OnEqualTo", "!self,SetValue,1,0,-1");
|
||||||
DispatchKeyFormat(iCompareShield, "OnEqualTo", "!self,SetValue,0,6,-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_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_shield_compare_%d,SetCompareValue,-1,0,-1", g_iCounter);
|
||||||
DispatchKeyFormat(iCompareShield, "OnEqualTo", "item_knight_model_%d,SetAnimation,dog_defense,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_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_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_knight_walk_%d,Trigger,,2,-1", g_iCounter);
|
||||||
DispatchKeyFormat(iCompareShield, "OnEqualTo", "item_spawn_speedmod,ModifySpeed,0,0,-1");
|
|
||||||
SpawnAndActivate(iCompareShield);
|
SpawnAndActivate(iCompareShield);
|
||||||
ParentToEntity(iCompareShield, iKnife);
|
ParentToEntity(iCompareShield, iKnife);
|
||||||
|
/*
|
||||||
// logic_compare nuke.
|
// logic_compare nuke.
|
||||||
int iCompareNuke = CreateEntityAtOrigin("logic_compare", fOrigin);
|
int iCompareNuke = CreateEntityAtOrigin("logic_compare", fOrigin);
|
||||||
DispatchKeyFormat(iCompareNuke, "targetname", "item_knight_nuke_compare_%d", g_iCounter);
|
DispatchKeyFormat(iCompareNuke, "targetname", "item_knight_nuke_compare_%d", g_iCounter);
|
||||||
DispatchKeyFormat(iCompareNuke, "spawnflags", "0");
|
DispatchKeyFormat(iCompareNuke, "spawnflags", "0");
|
||||||
// DispatchKeyFormat(iCompareNuke, "OnEqualTo", "!self,SetValue,1,0,-1");
|
DispatchKeyFormat(iCompareNuke, "OnEqualTo", "!self,SetValue,1,0,-1");
|
||||||
// DispatchKeyFormat(iCompareNuke, "OnEqualTo", "!self,SetValue,0,150,-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_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_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", "item_knight_nuke_compare_%d,SetCompareValue,-1,0,-1", g_iCounter);
|
||||||
SpawnAndActivate(iCompareNuke);
|
SpawnAndActivate(iCompareNuke);
|
||||||
ParentToEntity(iCompareNuke, iKnife);
|
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);
|
DispatchKeyFormat(iRelayCombo8, "OnTrigger", "item_knight_nuke_compare_%d,Compare,,0,-1", g_iCounter);
|
||||||
SpawnAndActivate(iRelayCombo8);
|
SpawnAndActivate(iRelayCombo8);
|
||||||
ParentToEntity(iRelayCombo8, iKnife);
|
ParentToEntity(iRelayCombo8, iKnife);
|
||||||
|
*/
|
||||||
// logic_relay walk.
|
// logic_relay walk.
|
||||||
int iRelayWalk = CreateEntityAtOrigin("logic_relay", fOrigin);
|
int iRelayWalk = CreateEntityAtOrigin("logic_relay", fOrigin);
|
||||||
DispatchKeyFormat(iRelayWalk, "targetname", "item_knight_walk_%d", g_iCounter);
|
DispatchKeyFormat(iRelayWalk, "targetname", "item_knight_walk_%d", g_iCounter);
|
||||||
|
Loading…
Reference in New Issue
Block a user