Skip to content

Commit 5ae2a72

Browse files
revolucasXottab-DUTY
authored andcommitted
+ added the ability to define phantom_section in configs for psy_dog to allow the possibility to spawn sections other than phantom_psy_dog
1 parent 06addea commit 5ae2a72

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/xrGame/ai/monsters/pseudodog/psy_dog.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,10 @@ bool CPsyDog::spawn_phantom()
9393
return false;
9494

9595
// set id to created server object
96-
CSE_Abstract* phantom =
97-
Level().spawn_item("psy_dog_phantom", ai().level_graph().vertex_position(node), node, 0xffff, true);
96+
//Alundaio:
97+
pcstr phantomSection = READ_IF_EXISTS(pSettings, r_string, this->get_section(), "phantom_section", "psy_dog_phantom");
98+
CSE_Abstract* phantom = Level().spawn_item(phantomSection, ai().level_graph().vertex_position(node), node, 0xffff, true);
99+
//Alundaio: END
98100
CSE_ALifeMonsterBase* pSE_Monster = smart_cast<CSE_ALifeMonsterBase*>(phantom);
99101
VERIFY(pSE_Monster);
100102

0 commit comments

Comments
 (0)