What does "init the retreat penalty" mean?
When we retreat, mission template call "script_simulate_retreat" script, like :
(call_script, "script_simulate_retreat",
10, 20),
The params used are vary among the mission template. That's why we need to set
(assign, "$retreat_player_side",
10), # Retreat Penalty Initialization
(assign, "$retreat_enemy_side",
20),
for every mission, so retreat penalty applied will be the same as initial penalty set by native.
PS. set (assign, "$retreat_type", 2), for missions that check mission timer, and (assign, "$retreat_type", 1), if they don't.