Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Model Editor Help Enemy_Grunt and Enemy_Manpig
Organic Shelter Offline
Junior Member

Posts: 22
Threads: 5
Joined: Mar 2018
Reputation: 0
#1
Enemy_Grunt and Enemy_Manpig

What's the difference beetwen Enemy_Grunt and Enemy_Manpig? Is it the AI behavior or just different names?
(This post was last modified: 04-08-2018, 02:48 PM by Organic Shelter.)
04-08-2018, 02:47 PM
Find
Romulator Offline
Not Tech Support ;-)

Posts: 3,628
Threads: 63
Joined: Jan 2013
Reputation: 195
#2
RE: Enemy_Grunt and Enemy_Manpig

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:

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).

Discord: Romulator#0001
[Image: 3f6f01a904.png]
04-08-2018, 04:16 PM
Find
Organic Shelter Offline
Junior Member

Posts: 22
Threads: 5
Joined: Mar 2018
Reputation: 0
#3
RE: Enemy_Grunt and Enemy_Manpig

(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:

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
04-09-2018, 02:49 AM
Find
Romulator Offline
Not Tech Support ;-)

Posts: 3,628
Threads: 63
Joined: Jan 2013
Reputation: 195
#4
RE: Enemy_Grunt and Enemy_Manpig

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

Discord: Romulator#0001
[Image: 3f6f01a904.png]
04-09-2018, 12:13 PM
Find




Users browsing this thread: 1 Guest(s)