Frictional Games Forum (read-only)
[MDL ED] Enemy_Grunt and Enemy_Manpig - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html)
+---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html)
+---- Thread: [MDL ED] Enemy_Grunt and Enemy_Manpig (/thread-54410.html)



Enemy_Grunt and Enemy_Manpig - Organic Shelter - 04-08-2018

What's the difference beetwen Enemy_Grunt and Enemy_Manpig? Is it the AI behavior or just different names?


RE: Enemy_Grunt and Enemy_Manpig - Romulator - 04-08-2018

They will both function as enemies as intended by the game - following pathnodes when directed, set active/inactive the same ways, etc. They will also use the same functions for calling out random dialogue if done so in the Model Editor's User Defined Variables.

The main difference between the two is that the Manpig allows for different standing positions. As I recall, the Manpig can be upright (biped) or can be on all fours (quadruped), swapping between the two when invoked by code:

Code:
void ChangeManPigPose(string&in asName, string&in asPoseType);

Requires 1.3

Changes the pose a specified ManPig.

asName - Internal name of the enemy
asPoseType- Name of the ManPig pose to use. Can be “Biped” or “Quadruped”

By adjusting values in the Model Editor, I believe you can change the speeds of the Manpig in these states (for example, slower in Biped, faster in Quadruped).

Therefore, you can create an enemy that has two different states; they do not necessarily need to be Bipedal or Quadrupedal, but that will be the code used (unless you create a custom function for them).


RE: Enemy_Grunt and Enemy_Manpig - Organic Shelter - 04-09-2018

(04-08-2018, 04:16 PM)Romulator Wrote: They will both function as enemies as intended by the game - following pathnodes when directed, set active/inactive the same ways, etc. They will also use the same functions for calling out random dialogue if done so in the Model Editor's User Defined Variables.

The main difference between the two is that the Manpig allows for different standing positions. As I recall, the Manpig can be upright (biped) or can be on all fours (quadruped), swapping between the two when invoked by code:

Code:
void ChangeManPigPose(string&in asName, string&in asPoseType);

Requires 1.3

Changes the pose a specified ManPig.

asName - Internal name of the enemy
asPoseType- Name of the ManPig pose to use. Can be “Biped” or “Quadruped”

By adjusting values in the Model Editor, I believe you can change the speeds of the Manpig in these states (for example, slower in Biped, faster in Quadruped).

Therefore, you can create an enemy that has two different states; they do not necessarily need to be Bipedal or Quadrupedal, but that will be the code used (unless you create a custom function for them).

So that i can make an enemy that has two different states? Like a grunt that walk and crawl?Big Grin


RE: Enemy_Grunt and Enemy_Manpig - Romulator - 04-09-2018

Correct! But you will still need to animate the grunt that way!