S2ENGINE HD 2023
User guide
×
Menu
Index

Soldiers

Soldier is the most complex kind of enemy until now.
He has the ability to cover behind obstacles, either standing up or crouching, to shoot against player or to beat him if too close.
He has the ability to patrol a zone and to view the player (he has a much complex "vision" system than zombies, not only a distance check).
Optionally He can also open doors (locked or not).
 
Soldier prerfabs are located into 3 different folders basing on their type:
 
Soldiers behaviour is built up with 3 gameMachines.
The first 2 are located into EasyGamePack\Characters\Marine folder, the third one is located into EasyGamePack\Characters folder:
 
Following are the parameters of the locomotion gameMachine:
6.3.9.2. Soldiers
1

IdleMaxSpeed

1. IdleMaxSpeed
<TODO>: Insert description text here...
2

walkMaxSpeed

2. walkMaxSpeed
<TODO>: Insert description text here...
3

walkMinSpeed

3. walkMinSpeed
<TODO>: Insert description text here...
4

runMinSpeed

4. runMinSpeed
<TODO>: Insert description text here...
5

runMul

5. runMul
<TODO>: Insert description text here...
 
The following are the parameters of marine gameMachine
6.3.9.2. Soldiers
1

navmesh

1. navmesh
<TODO>: Insert description text here...
2

walkSpeed

2. walkSpeed
<TODO>: Insert description text here...
3

runSpeed

3. runSpeed
<TODO>: Insert description text here...
4

patrolID

4. patrolID
<TODO>: Insert description text here...
5

aggression

5. aggression
<TODO>: Insert description text here...
6

pitch_ofs

6. pitch_ofs
<TODO>: Insert description text here...
7

jogSpeed

7. jogSpeed
<TODO>: Insert description text here...
8

speech_silence

8. speech_silence
<TODO>: Insert description text here...
9

alert_range

9. alert_range
<TODO>: Insert description text here...
10

patrol_range

10. patrol_range
<TODO>: Insert description text here...
11

cover_range1

11. cover_range1
<TODO>: Insert description text here...
12

cover_range2

12. cover_range2
<TODO>: Insert description text here...
13

coverID

13. coverID
<TODO>: Insert description text here...
14

scoreObject

14. scoreObject
<TODO>: Insert description text here...
 
The following are parameters of the FootIK gameMachine:
6.3.9.2. Soldiers
1

smooth

1. smooth
<TODO>: Insert description text here...
2

hitmask

2. hitmask
<TODO>: Insert description text here...
3

eps

3. eps
<TODO>: Insert description text here...
4

IK_fwd

4. IK_fwd
<TODO>: Insert description text here...
5

leanMul

5. leanMul
<TODO>: Insert description text here...
 

ANIMATIONS
Just as zombies, soldiers animations are based on the animation blending system.
The modelscript of the soldier is a bit more complex than the zombie one. Soldier are animated by separating the body into top and bottom part. This separation is made by superimposing two animation channels with a top/bottom animation mask. The bottom channel is managed inside the locomotion gameMachine, the top one inside the logic gameMachine. This system is used for making top animations independent from bottom ones, for example shooting while running.
 
The soldiers modelscript is the same for either marines and criminals.
It is named Marine_tpose_mixamorig.ms2 and it is located into EasyGamePack\Characters\Marine.
 
 

PATROLING
Patroling of the soldiers is less more the same of the zombies one.
You must place PatrolPoints along the zones you want soldier must patrol and use the PatrolID for distinguishing the zone (see also zombies).
 
 

COVERING
 
 

CREATING A NEW SOLDIER