Skip to content

Commit

Permalink
+ added the ability to define phantom_section in configs for psy_dog …
Browse files Browse the repository at this point in the history
…to allow the possibility to spawn sections other than phantom_psy_dog
  • Loading branch information
revolucas authored and Xottab-DUTY committed Aug 19, 2017
1 parent 06addea commit 5ae2a72
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/xrGame/ai/monsters/pseudodog/psy_dog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,10 @@ bool CPsyDog::spawn_phantom()
return false;

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

Expand Down

0 comments on commit 5ae2a72

Please sign in to comment.