/******************************************************************************
 * 825_Chen.cxx : file automaticly generated
 ******************************************************************************/

#include "gamedata\world\levels\_common\cfast\825_Chen.h"
void CFast_ARG_Chenille_Reseau_Rfx_ARG_Rfx_Inoffensive ( void ) ;
void CFast_ARG_Chenille_Reseau_Rfx_ARG_Rfx_Mechante ( void ) ;
void CFast_ARG_Chenille_Reseau_Rfx_ARG_Rfx_NonVisible ( void ) ;

void CFast_ARG_Chenille_Reseau_Cmp_ARG_Initial ( void ) ;
void CFast_ARG_Chenille_Reseau_Cmp_ARG_Principal ( void ) ;
void CFast_ARG_Chenille_Reseau_Cmp_ARG_MarcheOuCreve ( void ) ;
void CFast_ARG_Chenille_Reseau_Cmp_ARG_SautDeb ( void ) ;
void CFast_ARG_Chenille_Reseau_Cmp_ARG_Marche ( void ) ;
void CFast_ARG_Chenille_Reseau_Cmp_ARG_Attaque ( void ) ;
void CFast_ARG_Chenille_Reseau_Cmp_ARG_Restart ( void ) ;


long CFast_ARG_Chenille_Reseau_Macro_0 ( void ) ;
long CFast_ARG_Chenille_Reseau_Macro_1 ( void ) ;
long CFast_ARG_Chenille_Reseau_Macro_2 ( void ) ;
CFast_EvalFunc CFast_ARG_Chenille_Reseau_ArrayReflex[] = {
  CFast_ARG_Chenille_Reseau_Rfx_ARG_Rfx_Inoffensive,
  CFast_ARG_Chenille_Reseau_Rfx_ARG_Rfx_Mechante,
  CFast_ARG_Chenille_Reseau_Rfx_ARG_Rfx_NonVisible
};
CFast_EvalFunc CFast_ARG_Chenille_Reseau_ArrayComport[] = { 
  CFast_ARG_Chenille_Reseau_Cmp_ARG_Initial,
  CFast_ARG_Chenille_Reseau_Cmp_ARG_Principal,
  CFast_ARG_Chenille_Reseau_Cmp_ARG_MarcheOuCreve,
  CFast_ARG_Chenille_Reseau_Cmp_ARG_SautDeb,
  CFast_ARG_Chenille_Reseau_Cmp_ARG_Marche,
  CFast_ARG_Chenille_Reseau_Cmp_ARG_Attaque,
  CFast_ARG_Chenille_Reseau_Cmp_ARG_Restart
};

void CFast_Dummy_ARG_Chenille_Reseau(void) ;
char g_ARG_Chenille_Reseau_StaticTreeInit = 0 ;


void CFast_ARG_Chenille_Reseau_Main ( HIE_tdxHandleToSuperObject hSuperObjPerso )
{
  register long                lIndex ;
   register AI_tdstMind         *p_stMind = M_pstGetMindOfBrain(M_GetMSHandle(hSuperObjPerso, Brain)) ;

  p_stGlobalMind = p_stMind;
  gp_stRefTree = &M_CFast_GetReferenceNodeN(hSuperObjPerso, 0);
  g_hSuperObjectPerso = hSuperObjPerso;

#ifndef U64
  gp_stPseudoTree = p_stMind->p_stAIModel->CFast_dst_ParamArray;
#else
  gp_stPseudoTree = CFast_gast_ArrayFunctions[p_stMind->p_stAIModel->CFast_lFunction].mp_stPseudoTree;
#endif

#ifdef DEBUG_CFAST
  if ( !g_ARG_Chenille_Reseau_StaticTreeInit )
  {
    g_ARG_Chenille_Reseau_StaticTreeInit = 1 ;
    CFast_Dummy_ARG_Chenille_Reseau();
  }
#endif /* DEBUG_CFAST */
  p_cGlobalDsgMemBuffer = p_stMind->p_stDsgMem->p_cDsgMemBuffer;
  p_stGlobalDsgVarInfo = (*(p_stMind->p_stDsgMem->p_p_stDsgVar))->p_stDsgVarInfo;
  CFast_g_bMetaActionInRfx = 0 ;
  AI_M_SetDoingIntel(p_stMind, 0) ;
  CFast_g_bProcessReflex = 1 ;
  lIndex = M_GetCurrentComport(AI_M_p_stGetReflex(p_stMind))->CFast_lMyIndex ;
  CFast_ARG_Chenille_Reseau_ArrayReflex[lIndex]();

  if ( !CFast_g_bMetaActionInRfx  )
  {
    AI_M_SetDoingIntel(p_stMind, 1) ;
    CFast_g_bProcessReflex = 0 ;
    lIndex = M_GetCurrentComport(AI_M_p_stGetIntelligence(p_stMind))->CFast_lMyIndex ;
    CFast_ARG_Chenille_Reseau_ArrayComport[lIndex]();
  }
}
/*
 * Model : ARG_Chenille_Reseau Reflexe ARG_Rfx_Inoffensive
 */
void CFast_ARG_Chenille_Reseau_Rfx_ARG_Rfx_Inoffensive (void)
{
}

/*
 * Model : ARG_Chenille_Reseau Reflexe ARG_Rfx_Mechante
 */
void CFast_ARG_Chenille_Reseau_Rfx_ARG_Rfx_Mechante (void)
{
  MTH3D_tdstVector stVector0;


  register  AI_tdstMind * p_stLocalMind0 = p_stGlobalMind ;
  register struct tdstNodeInterpret_   *p_stRefTree = gp_stRefTree;
  register struct tdstNodeInterpret_ * p_stPseudoTree = gp_stPseudoTree ;
  register tdstIntelligence * p_stReflex = p_stLocalMind0->p_stReflex ;

  register long long1 , long2 ;
  long long3 , long4 , long5 , long6 , long7 , long8 ;
  register AI_tdstMind * p_stLocalMind1 , * p_stLocalMind2 , * p_stLocalMind4 , * p_stLocalMind8 ;


/* [Cond : ACT_TestCustomBit] ********** [1, 1, 1]*/
  if ( CFast_CallCondition_Static(0) ) {

/* [Proc : ChangeMonComportementReflexe] *********** [1, 1, 0]*/
    CFast_CallProcedure_Static( 2 ) ;
    CFast_ARG_Chenille_Reseau_ArrayReflex[p_stReflex->p_stCurrentComport->CFast_lMyIndex]();
    return ;
  }
/* [EndTree] ************ [0]*/
  if ( ! ( gcGlobAleat & 0x1 ) )
  {

/* [Keyword : Moi] ********** [0, 0, 2]*/

/* [Keyword : ActeurPrincipal] ********** [2, 0, 3]*/

/* [Cond : Col_CollisionZDEPersoAvecPersoTypeZDE] ********** [4, 4, 1]*/
    if ( CFast_CallCondition_Static(4) ) {

/* [Keyword : ActeurPrincipal] ********** [2, 0, 1]*/

/* [Op : ..] ********** [3, 1, 0]*/

/* [Proc : COL_ChangeTypeDeCollisionneur] *********** [4, 3, 0]*/
      CFast_fn_vSetUltraOperatorMainActor();
      CFast_CallProcedure_Static( 9 ) ;

/* [Keyword : ActeurPrincipal] ********** [3, 0, 1]*/

/* [Op : ..] ********** [4, 1, 0]*/

/* [Proc : COL_ChangeVecteurDeCollisionneur] *********** [5, 4, 0]*/
      CFast_fn_vSetUltraOperatorMainActor();
      CFast_CallProcedure_Static( 12 ) ;

/* [Keyword : ActeurPrincipal] ********** [3, 0, 1]*/

/* [Op : ..] ********** [4, 1, 0]*/

/* [Proc : COL_ChangeReelDeCollisionneur] *********** [5, 4, 0]*/
      CFast_fn_vSetUltraOperatorMainActor();
      CFast_CallProcedure_Static( 16 ) ;
    }
  }
/* [EndTree] ************ [0]*/
  if ( ! ( gcGlobAleat & 0x1 ) )
  {

/* [Cond : COL_CollisionneurTouche] ********** [0, 0, 1]*/
    if ( CFast_CallCondition_Static(20) ) {

/* [Func : MOD_PositionAbsolueModule] ********** [2, 1, 1]*/
      CFast_CallFunction1_Static( 21 ) ;

/* [Vector] *********** [5, 3, 2]*/
      CFast_CallVector2_Static (23) ;

/* [Proc : LanceAGO] *********** [5, 5, 0]*/
        M_p_stVectorInterpret(p_stPseudoTree+29) = &M_GetSetParam_stVectorValue(CFast_g_a_stParam+1);
        M_p_stVectorInterpret(p_stPseudoTree+30) = &M_GetSetParam_stVectorValue(CFast_g_a_stParam+2);
      CFast_CallProcedure_Static( 27 ) ;

/* [Keyword : Moi] ********** [0, 0, 3]*/

/* [Func : ACT_EnleveEtLitPointsDeVie] ********** [2, 2, 2]*/
      CFast_CallFunction2_Static( 33 ) ;

/* [Cond : <=] ********** [2, 2, 1]*/
        M_lValueInterpret(p_stPseudoTree+37) = M_GetSetParam_lValue(CFast_g_a_stParam+2);
      if ( CFast_CallCondition_Static(36) ) {

/* [Proc : EnvoieRequeteSon] *********** [1, 1, 0]*/
        CFast_CallProcedure_Static( 39 ) ;

/* [Proc : EnvoieRequeteSon] *********** [1, 1, 0]*/
        CFast_CallProcedure_Static( 41 ) ;

/* [Func : MOD_PositionAbsolueModule] ********** [2, 1, 1]*/
        CFast_CallFunction1_Static( 43 ) ;

/* [Vector] *********** [5, 3, 2]*/
        CFast_CallVector2_Static (23) ;

/* [Proc : LanceAGO] *********** [5, 5, 0]*/
          M_p_stVectorInterpret(p_stPseudoTree+47) = &M_GetSetParam_stVectorValue(CFast_g_a_stParam+1);
          M_p_stVectorInterpret(p_stPseudoTree+48) = &M_GetSetParam_stVectorValue(CFast_g_a_stParam+2);
        CFast_CallProcedure_Static( 45 ) ;

/* [Func : MOD_PositionAbsolueModule] ********** [2, 1, 1]*/
        CFast_CallFunction1_Static( 21 ) ;

/* [Vector] *********** [5, 3, 2]*/
        CFast_CallVector2_Static (23) ;

/* [Proc : LanceAGO] *********** [5, 5, 0]*/
          M_p_stVectorInterpret(p_stPseudoTree+47) = &M_GetSetParam_stVectorValue(CFast_g_a_stParam+1);
          M_p_stVectorInterpret(p_stPseudoTree+48) = &M_GetSetParam_stVectorValue(CFast_g_a_stParam+2);
        CFast_CallProcedure_Static( 45 ) ;

/* [Func : MOD_PositionAbsolueModule] ********** [2, 1, 1]*/
        CFast_CallFunction1_Static( 51 ) ;

/* [Vector] *********** [5, 3, 2]*/
        CFast_CallVector2_Static (23) ;

/* [Proc : LanceAGO] *********** [5, 5, 0]*/
          M_p_stVectorInterpret(p_stPseudoTree+47) = &M_GetSetParam_stVectorValue(CFast_g_a_stParam+1);
          M_p_stVectorInterpret(p_stPseudoTree+48) = &M_GetSetParam_stVectorValue(CFast_g_a_stParam+2);
        CFast_CallProcedure_Static( 45 ) ;

/* [Keyword : Moi] ********** [0, 0, 1]*/

/* [Proc : DetruitPerso] *********** [1, 1, 0]*/
        fn_vSetProcedureActionReturn(C_ACTION_ENGINE_CONTINUE);
        CFast_CallProcedure_Static( 53 ) ;
        if (fn_ucGetProcedureActionReturn() != (C_ACTION_ENGINE_CONTINUE))
{
          CFast_g_bMetaActionInRfx = 1 ;
          return ;
        }
      }
    }
  }
/* [EndTree] ************ [0]*/
}

/*
 * Model : ARG_Chenille_Reseau Reflexe ARG_Rfx_NonVisible
 */
void CFast_ARG_Chenille_Reseau_Rfx_ARG_Rfx_NonVisible (void)
{
  MTH3D_tdstVector stVector0;


  register  AI_tdstMind * p_stLocalMind0 = p_stGlobalMind ;
  register struct tdstNodeInterpret_   *p_stRefTree = gp_stRefTree;
  register struct tdstNodeInterpret_ * p_stPseudoTree = gp_stPseudoTree ;
  register tdstIntelligence * p_stReflex = p_stLocalMind0->p_stReflex ;

  register long long1 , long2 ;
  long long3 , long4 , long5 , long6 , long7 , long8 ;
  register AI_tdstMind * p_stLocalMind1 , * p_stLocalMind2 , * p_stLocalMind4 , * p_stLocalMind8 ;


/* [Cond : ACT_TestCustomBit] ********** [1, 1, 1]*/
  if ( !( CFast_CallCondition_Static(0) ) ) {

/* [Cond : COL_CollisionneurTouche] ********** [0, 0, 1]*/
    if ( CFast_CallCondition_Static(20) ) {

/* [nerienfaire()] *********** [0, 0, 0]*/
    }

/* [Proc : ChangeMonComportementReflexe] *********** [1, 1, 0]*/
    CFast_CallProcedure_Static( 55 ) ;
    CFast_ARG_Chenille_Reseau_ArrayReflex[p_stReflex->p_stCurrentComport->CFast_lMyIndex]();
    return ;
  }
/* [EndTree] ************ [0]*/
}

/*
 * Model : ARG_Chenille_Reseau Comportement ARG_Initial
 */
void CFast_ARG_Chenille_Reseau_Cmp_ARG_Initial (void)
{
  MTH3D_tdstVector stVector0;


  register  AI_tdstMind * p_stLocalMind0 = p_stGlobalMind ;
  register struct tdstNodeInterpret_   *p_stRefTree = gp_stRefTree;
  register struct tdstNodeInterpret_ * p_stPseudoTree = gp_stPseudoTree ;
  register tdstIntelligence * p_stIntelligence = p_stLocalMind0 -> p_stIntelligence ;
  register char * p_cLocalDsgMemBuffer = p_cGlobalDsgMemBuffer ;
  register tdstDsgVarInfo * p_stLocalDsgVarInfo = p_stGlobalDsgVarInfo ;

  register long long1 , long2 ;
  long long3 , long4 , long5 , long6 , long7 , long8 ;
  register AI_tdstMind * p_stLocalMind1 , * p_stLocalMind2 , * p_stLocalMind4 , * p_stLocalMind8 ;

  if ( p_stLocalMind0 -> CFast_lCmpMetaAction ) 
    goto label1 ;

/* [Proc : ACT_ChangeCustomBit] *********** [2, 2, 0]*/
  CFast_CallProcedure_Static( 57 ) ;

/* [Proc : EnvoieRequeteSon] *********** [1, 1, 0]*/
  CFast_CallProcedure_Static( 60 ) ;

/* [Proc : ACT_ChangeCustomBit] *********** [2, 2, 0]*/
  CFast_CallProcedure_Static( 62 ) ;

/* [Proc : ACT_ChangeCustomBit] *********** [2, 2, 0]*/
  CFast_CallProcedure_Static( 65 ) ;

/* [Proc : ChangeMonComportementReflexe] *********** [1, 1, 0]*/
  CFast_CallProcedure_Static( 55 ) ;

/* [Proc : ChangeAction] *********** [1, 1, 0]*/
  fn_vSetProcedureActionReturn(C_ACTION_ENGINE_CONTINUE);
  CFast_CallProcedure_Static( 68 ) ;
  if (fn_ucGetProcedureActionReturn() != (C_ACTION_ENGINE_CONTINUE))
{
    return ;
  }
  CFast_ARG_Chenille_Reseau_Macro_0 () ;
/* [BeginMacro : 8] ********** [0]*/

/* [Proc : Caps_FixeCapacites] *********** [1, 1, 0]*/
  CFast_CallProcedure_Static( 70 ) ;

/* [Func : Reseau_WPLePlusProche] ********** [2, 2, 1]*/
  CFast_CallFunction1_Static( 72 ) ;
  LocalCFast_fn_vSetDsgVarWayPoint(7, M_GetSetParam_WayPointValue(CFast_g_a_stParam+1)) ;

/* [Func : Reseau_ConstruitCheminOrdonne] ********** [2, 2, 1]*/
  CFast_CallFunction1_Static( 75 ) ;
  LocalCFast_fn_vSetDsgVar0To255(4, M_GetSetParam_lValue(CFast_g_a_stParam+1)) ;

/* [Proc : ChangeMonComportement] *********** [1, 1, 0]*/
  CFast_CallProcedure_Static( 78 ) ;
label1 :
  return ;
/* [EndTree] ************ [0]*/
}

long CFast_ARG_Chenille_Reseau_Macro_0 (void)
{
  MTH3D_tdstVector stVector0;


  register  AI_tdstMind * p_stLocalMind0 = p_stGlobalMind ;
  register struct tdstNodeInterpret_   *p_stRefTree = gp_stRefTree;
  register struct tdstNodeInterpret_ * p_stPseudoTree = gp_stPseudoTree ;
  register char * p_cLocalDsgMemBuffer = p_cGlobalDsgMemBuffer ;
  register tdstDsgVarInfo * p_stLocalDsgVarInfo = p_stGlobalDsgVarInfo ;

  register long long1 , long2 ;
  long long3 , long4 , long5 , long6 , long7 , long8 ;
  register AI_tdstMind * p_stLocalMind1 , * p_stLocalMind2 , * p_stLocalMind4 , * p_stLocalMind8 ;


/* [Proc : ControlerModule] *********** [1, 1, 0]*/
  CFast_CallProcedure_Static( 80 ) ;

/* [Proc : ControlerModule] *********** [1, 1, 0]*/
  CFast_CallProcedure_Static( 82 ) ;

/* [Proc : ControlerModule] *********** [1, 1, 0]*/
  CFast_CallProcedure_Static( 84 ) ;

/* [Proc : ControlerModule] *********** [1, 1, 0]*/
  CFast_CallProcedure_Static( 86 ) ;

/* [Proc : ControlerModule] *********** [1, 1, 0]*/
  CFast_CallProcedure_Static( 88 ) ;

/* [Proc : ControlerModule] *********** [1, 1, 0]*/
  CFast_CallProcedure_Static( 90 ) ;

/* [Proc : ControlerModule] *********** [1, 1, 0]*/
  CFast_CallProcedure_Static( 92 ) ;

/* [Proc : ControlerModule] *********** [1, 1, 0]*/
  CFast_CallProcedure_Static( 94 ) ;

/* [Proc : ControlerModule] *********** [1, 1, 0]*/
  CFast_CallProcedure_Static( 96 ) ;
  LocalCFast_fn_vSetDsgVar_128To127(3, 0) ;

/* [Proc : Boucle] *********** [1, 1, 0]*/
  {
    int i0;
for ( i1=30 ; i1>0 ; i1-- ) { /* Boucle 0 */

/* [Func : ACT_PositionAbsoluePerso] ********** [0, 0, 1]*/
    CFast_CallFunction1_Static( 98 ) ;
    CFast_fn_vSetDsgVarVectorArray(5,p_stLocalMind0,LocalCFast_fn_lGetDsgVar_128To127(3),&M_GetSetParam_stVectorValue(CFast_g_a_stParam+1)) ;
    LocalCFast_fn_vSetDsgVar_128To127(3, (LocalCFast_fn_lGetDsgVar_128To127(3)+1)) ;

/* [Proc : FinBoucle] ********** [0, 0, 0]*/
    }
}
  LocalCFast_fn_vSetDsgVar_128To127(3, 0) ;
  return 0 ;
}
/*
 * Model : ARG_Chenille_Reseau Comportement ARG_Principal
 */
void CFast_ARG_Chenille_Reseau_Cmp_ARG_Principal (void)
{
  MTH3D_tdstVector stVector0;
  MTH3D_tdstVector stVector1;
  MTH3D_tdstVector stVector2;


  register  AI_tdstMind * p_stLocalMind0 = p_stGlobalMind ;
  register struct tdstNodeInterpret_   *p_stRefTree = gp_stRefTree;
  register struct tdstNodeInterpret_ * p_stPseudoTree = gp_stPseudoTree ;
  register tdstIntelligence * p_stIntelligence = p_stLocalMind0 -> p_stIntelligence ;
  register char * p_cLocalDsgMemBuffer = p_cGlobalDsgMemBuffer ;
  register tdstDsgVarInfo * p_stLocalDsgVarInfo = p_stGlobalDsgVarInfo ;

  register long long1 , long2 ;
  long long3 , long4 , long5 , long6 , long7 , long8 ;
  register AI_tdstMind * p_stLocalMind1 , * p_stLocalMind2 , * p_stLocalMind4 , * p_stLocalMind8 ;

  if ( p_stLocalMind0 -> CFast_lCmpMetaAction ) 
    goto label1 ;

/* [Cond : ACT_TestCustomBit] ********** [1, 1, 1]*/
  if ( CFast_CallCondition_Static(99) ) {

/* [Proc : ChangeMonComportement] *********** [1, 1, 0]*/
    CFast_CallProcedure_Static( 101 ) ;
    CFast_ARG_Chenille_Reseau_ArrayComport[p_stIntelligence->p_stCurrentComport->CFast_lMyIndex]();
    return ;
  }
/* [EndTree] ************ [0]*/
  long1 = (*((char *)(M_LocalGetDsgVarAddr(p_stLocalMind0, 1))));
  if ( !long1 ) {

/* [Op : .] ********** [2, 2, 0]*/
    p_stLocalMind1 = M_pstGetMindOfBrain(M_GetMSHandle(M_CFast_hGetPersoRef(19) ,Brain));
    long1 = (*((char *)(M_GetDsgVarAddr(p_stLocalMind1, 85))));
  }
  if ( !long1 ) {

/* [Keyword : ActeurPrincipal] ********** [0, 0, 2]*/

/* [Func : ACT_DistanceAuPerso] ********** [1, 1, 1]*/
    CFast_CallFunction1_Static( 103 ) ;
    LocalCFast_fn_vSetDsgVarFloat(9, M_GetSetParam_xValue(CFast_g_a_stParam+1)) ;

/* [Cond : <] ********** [2, 2, 2]*/
    long1 = MTH_M_bLess((*((MTH_tdxReal *)(M_LocalGetDsgVarAddr(p_stLocalMind0, 9)))), MTH_M_xFloatToReal(8.000000f)) ? 1 : 0;
if ( long1 ) {

/* [Cond : >] ********** [2, 2, 3]*/
      long1 = MTH_M_bGreater((*((MTH_tdxReal *)(M_LocalGetDsgVarAddr(p_stLocalMind0, 9)))), MTH_M_xFloatToReal(1.500000f)) ? 1 : 0;
    }
    if ( long1 ) {

/* [Proc : ChangeAction] *********** [1, 1, 0]*/
      fn_vSetProcedureActionReturn(C_ACTION_ENGINE_CONTINUE);
      CFast_CallProcedure_Static( 105 ) ;
      if (fn_ucGetProcedureActionReturn() != (C_ACTION_ENGINE_CONTINUE))
{
        return ;
      }
      POS_fn_vGetTranslationVector(HIE_fn_hGetSuperObjectMatrix(MC_fn_hGetCharacterInMainCharacterNode(MC_fn_hGetFirstMainCharNode())), &stVector1); ;
      POS_fn_vGetTranslationVector(HIE_fn_hGetSuperObjectMatrix(g_hSuperObjectPerso), &stVector0); ;
      MTH3D_M_vSubVector(&stVector2, &stVector1,&stVector0) ;
      LocalCFast_fn_vSetDsgVarVector(8, &stVector2) ;
      M_GetSetParam_xValue(&CFast_g_a_stParam[1]) = MTH3D_M_xNormVector(((MTH3D_tdstVector *)(M_LocalGetDsgVarAddr(p_stLocalMind0, 8))));
      M_GetSetParam_Type(&CFast_g_a_stParam[1]) = E_vt_Float;
      LocalCFast_fn_vSetDsgVarFloat(10, M_GetSetParam_xValue(CFast_g_a_stParam+1)) ;

/* [Op : .Z] ********** [2, 1, 2]*/
      CFast_CallOperator2_Static( 107 ) ;

/* [Cond : >] ********** [3, 2, 1]*/
      if ( MTH_M_bGreater(M_GetSetParam_xValue(&CFast_g_a_stParam[2]), MTH_M_xFloatToReal(0.000000f)) ) {
        LocalCFast_fn_vSetDsgVarFloat(9, MTH_M_xFloatToReal(2.00000f)) ;
      }
      else {
        LocalCFast_fn_vSetDsgVarFloat(9, MTH_M_xSub(MTH_M_xFloatToReal(2.00000f),LocalCFast_fn_p_stGetDsgVarVector(8)->xZ)) ;
      }

/* [Proc : ACT_ChangeViseePerso] *********** [2, 1, 0]*/
      CFast_CallProcedure_Static( 109 ) ;

/* [Func : ACT_PositionAbsoluePerso] ********** [1, 0, 2]*/
      CFast_CallFunction2_Static( 98 ) ;

/* [Keyword : ActeurPrincipal] ********** [2, 0, 4]*/

/* [Op : ..] ********** [3, 1, 0]*/

/* [Func : ACT_PositionAbsoluePerso] ********** [4, 1, 3]*/
      CFast_fn_vSetUltraOperatorMainActor();
      CFast_CallFunction3_Static( 98 ) ;

/* [Func : MEC_ImpulsionSaut] ********** [4, 3, 1]*/
        M_p_stVectorInterpret(p_stPseudoTree+112) = &M_GetSetParam_stVectorValue(CFast_g_a_stParam+2);
        M_p_stVectorInterpret(p_stPseudoTree+113) = &M_GetSetParam_stVectorValue(CFast_g_a_stParam+3);
      CFast_CallFunction1_Static( 111 ) ;
      LocalCFast_fn_vSetDsgVarVector(8, &M_GetSetParam_stVectorValue(CFast_g_a_stParam+1)) ;

/* [Proc : ACT_ImposeVecteurVitesseAbsolu] *********** [2, 1, 0]*/
      CFast_CallProcedure_Static( 115 ) ;

/* [Keyword : ActeurPrincipal] ********** [1, 0, 2]*/

/* [Op : ..] ********** [2, 1, 0]*/

/* [Func : ACT_PositionAbsoluePerso] ********** [3, 1, 1]*/
      CFast_fn_vSetUltraOperatorMainActor();
      CFast_CallFunction1_Static( 98 ) ;
      LocalCFast_fn_vSetDsgVarVector(8, &M_GetSetParam_stVectorValue(CFast_g_a_stParam+1)) ;
      CFast_ARG_Chenille_Reseau_Macro_1 () ;
/* [BeginMacro : 5] ********** [1]*/
      CFast_ARG_Chenille_Reseau_Macro_2 () ;
/* [BeginMacro : 32] ********** [1]*/

/* [Proc : EnvoieRequeteSon] *********** [2, 1, 0]*/
      CFast_CallProcedure_Static( 39 ) ;

/* [Proc : EnvoieRequeteSon] *********** [2, 1, 0]*/
      CFast_CallProcedure_Static( 117 ) ;

/* [Proc : ChangeMonComportement] *********** [2, 1, 0]*/
      CFast_CallProcedure_Static( 119 ) ;
label1 :
      return ;
    }
  }
/* [EndTree] ************ [1]*/

/* [Cond : <=] ********** [3, 2, 1]*/
  if ( MTH_M_bLessEqual(MTH_M_xLongToReal((*((char *)(M_LocalGetDsgVarAddr(p_stLocalMind0, 4))))), MTH_M_xFloatToReal(1.000000f)) ) {

/* [Func : Reseau_WPLePlusProche] ********** [3, 2, 1]*/
    CFast_CallFunction1_Static( 72 ) ;
    LocalCFast_fn_vSetDsgVarWayPoint(7, M_GetSetParam_WayPointValue(CFast_g_a_stParam+1)) ;

/* [Func : Reseau_ConstruitCheminOrdonne] ********** [3, 2, 1]*/
    CFast_CallFunction1_Static( 75 ) ;
    LocalCFast_fn_vSetDsgVar0To255(4, M_GetSetParam_lValue(CFast_g_a_stParam+1)) ;
  }
/* [EndTree] ************ [1]*/

/* [Func : Reseau_LitIndexCourant] ********** [1, 0, 2]*/
  CFast_CallFunction2_Static( 121 ) ;

/* [Func : Reseau_LitCapaciteLiaisonAIndex] ********** [2, 1, 1]*/
    M_lValueInterpret(p_stPseudoTree+123) = M_GetSetParam_lValue(CFast_g_a_stParam+2);
  CFast_CallFunction1_Static( 122 ) ;
  LocalCFast_fn_vSetDsgVarCaps(6, M_GetSetParam_CapsValue(CFast_g_a_stParam+1)) ;

/* [Func : Reseau_IncrementIndex] ********** [2, 1, 2]*/
  CFast_CallFunction2_Static( 124 ) ;

/* [Func : Reseau_LitWPAIndex] ********** [2, 1, 1]*/
    M_lValueInterpret(p_stPseudoTree+127) = M_GetSetParam_lValue(CFast_g_a_stParam+2);
  CFast_CallFunction1_Static( 126 ) ;
  LocalCFast_fn_vSetDsgVarWayPoint(7, M_GetSetParam_WayPointValue(CFast_g_a_stParam+1)) ;
  LocalCFast_fn_vSetDsgVar0To255(4, (LocalCFast_fn_lGetDsgVar0To255(4)-1)) ;

/* [Proc : ChangeMonComportement] *********** [2, 1, 0]*/
  CFast_CallProcedure_Static( 128 ) ;
  CFast_ARG_Chenille_Reseau_ArrayComport[p_stIntelligence->p_stCurrentComport->CFast_lMyIndex]();
  return ;
/* [EndTree] ************ [1]*/
}

long CFast_ARG_Chenille_Reseau_Macro_1 (void)
{
  MTH3D_tdstVector stVector0;
  MTH3D_tdstVector stVector1;
  MTH3D_tdstVector stVector2;


  register  AI_tdstMind * p_stLocalMind0 = p_stGlobalMind ;
  register struct tdstNodeInterpret_ * p_stPseudoTree = gp_stPseudoTree ;
  register char * p_cLocalDsgMemBuffer = p_cGlobalDsgMemBuffer ;
  register tdstDsgVarInfo * p_stLocalDsgVarInfo = p_stGlobalDsgVarInfo ;

  register long long1 , long2 ;
  long long3 , long4 , long5 , long6 , long7 , long8 ;
  register AI_tdstMind * p_stLocalMind1 , * p_stLocalMind2 , * p_stLocalMind4 , * p_stLocalMind8 ;


/* [Cond : >=] ********** [3, 2, 1]*/
  if ( MTH_M_bGreaterEqual(MTH_M_xLongToReal((*((char *)(M_LocalGetDsgVarAddr(p_stLocalMind0, 3))))), MTH_M_xFloatToReal(29.000000f)) ) {
    LocalCFast_fn_vSetDsgVar_128To127(3, 0) ;
  }
  else {
    LocalCFast_fn_vSetDsgVar_128To127(3, (LocalCFast_fn_lGetDsgVar_128To127(3)+1)) ;
  }

/* [Func : ACT_MaPositionAbsolue] ********** [1, 0, 2]*/
  CFast_CallFunction2_Static( 130 ) ;
  MTH3D_M_vSetVectorElements(&stVector0, MTH_M_xFloatToReal(0.00000f), MTH_M_xFloatToReal(0.00000f), MTH_M_xFloatToReal(1.00000f)) ;
  MTH3D_M_vAddVector(&stVector1, &M_GetSetParam_stVectorValue(CFast_g_a_stParam+2),&stVector0) ;
  CFast_fn_vSetDsgVarVectorArray(5,p_stLocalMind0,LocalCFast_fn_lGetDsgVar_128To127(3),&stVector1) ;
  return 0 ;
}
long CFast_ARG_Chenille_Reseau_Macro_2 (void)
{
  MTH3D_tdstVector stVector0;
  MTH3D_tdstVector stVector1;
  MTH3D_tdstVector stVector2;


  register  AI_tdstMind * p_stLocalMind0 = p_stGlobalMind ;
  register struct tdstNodeInterpret_   *p_stRefTree = gp_stRefTree;
  register struct tdstNodeInterpret_ * p_stPseudoTree = gp_stPseudoTree ;
  register char * p_cLocalDsgMemBuffer = p_cGlobalDsgMemBuffer ;
  register tdstDsgVarInfo * p_stLocalDsgVarInfo = p_stGlobalDsgVarInfo ;

  register long long1 , long2 ;
  long long3 , long4 , long5 , long6 , long7 , long8 ;
  register AI_tdstMind * p_stLocalMind1 , * p_stLocalMind2 , * p_stLocalMind4 , * p_stLocalMind8 ;


/* [Cond : >=] ********** [3, 2, 1]*/
  if ( MTH_M_bGreaterEqual(MTH_M_xLongToReal((*((char *)(M_LocalGetDsgVarAddr(p_stLocalMind0, 3))))), MTH_M_xFloatToReal(18.000000f)) ) {
    M_Full_GetSetParam_Integer(&CFast_g_a_stParam[1], (*((char *)(M_LocalGetDsgVarAddr(p_stLocalMind0, 3)))) + -3);

/* [Op : [] ********** [3, 2, 0]*/

/* [Proc : MOD_ChangePositionModule] *********** [6, 3, 0]*/
    M_eProcedureIdInterpret(&CFast_g_a_stPseudoTree[E_ti_Procedure][0]) = (tdeProcedureId)218 ;

/* [Op : [] ********** [1, 2, 0]*/
    M_SetTypeInterpret(&CFast_g_a_stPseudoTree[4][1], E_ti_Operator);
    M_eOperatorIdInterpret(&CFast_g_a_stPseudoTree[4][1]) = (tdeOperatorId)26 ;
    M_SetTypeInterpret(&CFast_g_a_stPseudoTree[4][2], E_ti_DsgVarRef);
    M_lValueInterpret(&CFast_g_a_stPseudoTree[4][2]) = 5 ;
    M_SetTypeInterpret(&CFast_g_a_stPseudoTree[4][3], E_ti_Constant);
    M_lValueInterpret(&CFast_g_a_stPseudoTree[4][3]) = M_GetSetParam_lValue(&CFast_g_a_stParam[1]) ;
    CFast_memcpy ( 4, 4, 7) ;
    M_SetTypeInterpret(&CFast_g_a_stPseudoTree[4][5], E_ti_Constant);
    M_lValueInterpret(&CFast_g_a_stPseudoTree[4][5]) = 1 ;
    CFast_CallProcedure_NoStatic( ) ;
    M_Full_GetSetParam_Integer(&CFast_g_a_stParam[1], (*((char *)(M_LocalGetDsgVarAddr(p_stLocalMind0, 3)))) + -6);

/* [Op : [] ********** [3, 2, 0]*/

/* [Proc : MOD_ChangePositionModule] *********** [6, 3, 0]*/
    M_eProcedureIdInterpret(&CFast_g_a_stPseudoTree[E_ti_Procedure][0]) = (tdeProcedureId)218 ;

/* [Op : [] ********** [1, 2, 0]*/
    M_eOperatorIdInterpret(&CFast_g_a_stPseudoTree[4][1]) = (tdeOperatorId)26 ;
    M_lValueInterpret(&CFast_g_a_stPseudoTree[4][2]) = 5 ;
    M_SetTypeInterpret(&CFast_g_a_stPseudoTree[4][3], E_ti_Constant);
    M_lValueInterpret(&CFast_g_a_stPseudoTree[4][3]) = M_GetSetParam_lValue(&CFast_g_a_stParam[1]) ;
    CFast_memcpy ( 4, 4, 14) ;
    M_lValueInterpret(&CFast_g_a_stPseudoTree[4][5]) = 1 ;
    CFast_CallProcedure_NoStatic( ) ;
    M_Full_GetSetParam_Integer(&CFast_g_a_stParam[1], (*((char *)(M_LocalGetDsgVarAddr(p_stLocalMind0, 3)))) + -9);

/* [Op : [] ********** [3, 2, 0]*/

/* [Proc : MOD_ChangePositionModule] *********** [6, 3, 0]*/
    M_eProcedureIdInterpret(&CFast_g_a_stPseudoTree[E_ti_Procedure][0]) = (tdeProcedureId)218 ;

/* [Op : [] ********** [1, 2, 0]*/
    M_eOperatorIdInterpret(&CFast_g_a_stPseudoTree[4][1]) = (tdeOperatorId)26 ;
    M_lValueInterpret(&CFast_g_a_stPseudoTree[4][2]) = 5 ;
    M_SetTypeInterpret(&CFast_g_a_stPseudoTree[4][3], E_ti_Constant);
    M_lValueInterpret(&CFast_g_a_stPseudoTree[4][3]) = M_GetSetParam_lValue(&CFast_g_a_stParam[1]) ;
    CFast_memcpy ( 4, 4, 1) ;
    M_lValueInterpret(&CFast_g_a_stPseudoTree[4][5]) = 1 ;
    CFast_CallProcedure_NoStatic( ) ;
    M_Full_GetSetParam_Integer(&CFast_g_a_stParam[1], (*((char *)(M_LocalGetDsgVarAddr(p_stLocalMind0, 3)))) + -12);

/* [Op : [] ********** [3, 2, 0]*/

/* [Proc : MOD_ChangePositionModule] *********** [6, 3, 0]*/
    M_eProcedureIdInterpret(&CFast_g_a_stPseudoTree[E_ti_Procedure][0]) = (tdeProcedureId)218 ;

/* [Op : [] ********** [1, 2, 0]*/
    M_eOperatorIdInterpret(&CFast_g_a_stPseudoTree[4][1]) = (tdeOperatorId)26 ;
    M_lValueInterpret(&CFast_g_a_stPseudoTree[4][2]) = 5 ;
    M_SetTypeInterpret(&CFast_g_a_stPseudoTree[4][3], E_ti_Constant);
    M_lValueInterpret(&CFast_g_a_stPseudoTree[4][3]) = M_GetSetParam_lValue(&CFast_g_a_stParam[1]) ;
    CFast_memcpy ( 4, 4, 15) ;
    M_lValueInterpret(&CFast_g_a_stPseudoTree[4][5]) = 1 ;
    CFast_CallProcedure_NoStatic( ) ;
    M_Full_GetSetParam_Integer(&CFast_g_a_stParam[1], (*((char *)(M_LocalGetDsgVarAddr(p_stLocalMind0, 3)))) + -15);

/* [Op : [] ********** [3, 2, 0]*/

/* [Proc : MOD_ChangePositionModule] *********** [6, 3, 0]*/
    M_eProcedureIdInterpret(&CFast_g_a_stPseudoTree[E_ti_Procedure][0]) = (tdeProcedureId)218 ;

/* [Op : [] ********** [1, 2, 0]*/
    M_eOperatorIdInterpret(&CFast_g_a_stPseudoTree[4][1]) = (tdeOperatorId)26 ;
    M_lValueInterpret(&CFast_g_a_stPseudoTree[4][2]) = 5 ;
    M_SetTypeInterpret(&CFast_g_a_stPseudoTree[4][3], E_ti_Constant);
    M_lValueInterpret(&CFast_g_a_stPseudoTree[4][3]) = M_GetSetParam_lValue(&CFast_g_a_stParam[1]) ;
    CFast_memcpy ( 4, 4, 5) ;
    M_lValueInterpret(&CFast_g_a_stPseudoTree[4][5]) = 1 ;
    CFast_CallProcedure_NoStatic( ) ;
    M_Full_GetSetParam_Integer(&CFast_g_a_stParam[1], (*((char *)(M_LocalGetDsgVarAddr(p_stLocalMind0, 3)))) + -18);

/* [Op : [] ********** [3, 2, 0]*/

/* [Proc : MOD_ChangePositionModule] *********** [6, 3, 0]*/
    M_eProcedureIdInterpret(&CFast_g_a_stPseudoTree[E_ti_Procedure][0]) = (tdeProcedureId)218 ;

/* [Op : [] ********** [1, 2, 0]*/
    M_eOperatorIdInterpret(&CFast_g_a_stPseudoTree[4][1]) = (tdeOperatorId)26 ;
    M_lValueInterpret(&CFast_g_a_stPseudoTree[4][2]) = 5 ;
    M_SetTypeInterpret(&CFast_g_a_stPseudoTree[4][3], E_ti_Constant);
    M_lValueInterpret(&CFast_g_a_stPseudoTree[4][3]) = M_GetSetParam_lValue(&CFast_g_a_stParam[1]) ;
    CFast_memcpy ( 4, 4, 16) ;
    M_lValueInterpret(&CFast_g_a_stPseudoTree[4][5]) = 1 ;
    CFast_CallProcedure_NoStatic( ) ;
  }
  else {
    M_Full_GetSetParam_Integer(&CFast_g_a_stParam[3], (*((char *)(M_LocalGetDsgVarAddr(p_stLocalMind0, 3)))) + -3);

/* [Func : Math_Modulo] ********** [5, 3, 2]*/
      M_lValueInterpret(p_stPseudoTree+132) = M_GetSetParam_lValue(CFast_g_a_stParam+3);
    CFast_CallFunction2_Static( 131 ) ;
    M_GetSetParam_lValue(&CFast_g_a_stParam[1]) = MTH_M_xRealToLong(M_GetSetParam_xValue(&CFast_g_a_stParam[2])) ;
    M_GetSetParam_Type(&CFast_g_a_stParam[1]) = E_vt_Integer;

/* [Math_ : Math_ConversionEnEntier] ********** [2, 1, 1]*/

/* [Op : [] ********** [3, 2, 0]*/

/* [Proc : MOD_ChangePositionModule] *********** [6, 3, 0]*/
    M_eProcedureIdInterpret(&CFast_g_a_stPseudoTree[E_ti_Procedure][0]) = (tdeProcedureId)218 ;

/* [Op : [] ********** [1, 2, 0]*/
    M_SetTypeInterpret(&CFast_g_a_stPseudoTree[4][1], E_ti_Operator);
    M_eOperatorIdInterpret(&CFast_g_a_stPseudoTree[4][1]) = (tdeOperatorId)26 ;
    M_SetTypeInterpret(&CFast_g_a_stPseudoTree[4][2], E_ti_DsgVarRef);
    M_lValueInterpret(&CFast_g_a_stPseudoTree[4][2]) = 5 ;
    M_SetTypeInterpret(&CFast_g_a_stPseudoTree[4][3], E_ti_Constant);
    M_lValueInterpret(&CFast_g_a_stPseudoTree[4][3]) = M_GetSetParam_lValue(&CFast_g_a_stParam[1]) ;
    CFast_memcpy ( 4, 4, 7) ;
    M_SetTypeInterpret(&CFast_g_a_stPseudoTree[4][5], E_ti_Constant);
    M_lValueInterpret(&CFast_g_a_stPseudoTree[4][5]) = 1 ;
    CFast_CallProcedure_NoStatic( ) ;
    M_Full_GetSetParam_Integer(&CFast_g_a_stParam[3], (*((char *)(M_LocalGetDsgVarAddr(p_stLocalMind0, 3)))) + -6);

/* [Func : Math_Modulo] ********** [5, 3, 2]*/
      M_lValueInterpret(p_stPseudoTree+132) = M_GetSetParam_lValue(CFast_g_a_stParam+3);
    CFast_CallFunction2_Static( 131 ) ;
    M_GetSetParam_lValue(&CFast_g_a_stParam[1]) = MTH_M_xRealToLong(M_GetSetParam_xValue(&CFast_g_a_stParam[2])) ;
    M_GetSetParam_Type(&CFast_g_a_stParam[1]) = E_vt_Integer;

/* [Math_ : Math_ConversionEnEntier] ********** [2, 1, 1]*/

/* [Op : [] ********** [3, 2, 0]*/

/* [Proc : MOD_ChangePositionModule] *********** [6, 3, 0]*/
    M_eProcedureIdInterpret(&CFast_g_a_stPseudoTree[E_ti_Procedure][0]) = (tdeProcedureId)218 ;

/* [Op : [] ********** [1, 2, 0]*/
    M_eOperatorIdInterpret(&CFast_g_a_stPseudoTree[4][1]) = (tdeOperatorId)26 ;
    M_lValueInterpret(&CFast_g_a_stPseudoTree[4][2]) = 5 ;
    M_SetTypeInterpret(&CFast_g_a_stPseudoTree[4][3], E_ti_Constant);
    M_lValueInterpret(&CFast_g_a_stPseudoTree[4][3]) = M_GetSetParam_lValue(&CFast_g_a_stParam[1]) ;
    CFast_memcpy ( 4, 4, 14) ;
    M_lValueInterpret(&CFast_g_a_stPseudoTree[4][5]) = 1 ;
    CFast_CallProcedure_NoStatic( ) ;
    M_Full_GetSetParam_Integer(&CFast_g_a_stParam[3], (*((char *)(M_LocalGetDsgVarAddr(p_stLocalMind0, 3)))) + -9);

/* [Func : Math_Modulo] ********** [5, 3, 2]*/
      M_lValueInterpret(p_stPseudoTree+132) = M_GetSetParam_lValue(CFast_g_a_stParam+3);
    CFast_CallFunction2_Static( 131 ) ;
    M_GetSetParam_lValue(&CFast_g_a_stParam[1]) = MTH_M_xRealToLong(M_GetSetParam_xValue(&CFast_g_a_stParam[2])) ;
    M_GetSetParam_Type(&CFast_g_a_stParam[1]) = E_vt_Integer;

/* [Math_ : Math_ConversionEnEntier] ********** [2, 1, 1]*/

/* [Op : [] ********** [3, 2, 0]*/

/* [Proc : MOD_ChangePositionModule] *********** [6, 3, 0]*/
    M_eProcedureIdInterpret(&CFast_g_a_stPseudoTree[E_ti_Procedure][0]) = (tdeProcedureId)218 ;

/* [Op : [] ********** [1, 2, 0]*/
    M_eOperatorIdInterpret(&CFast_g_a_stPseudoTree[4][1]) = (tdeOperatorId)26 ;
    M_lValueInterpret(&CFast_g_a_stPseudoTree[4][2]) = 5 ;
    M_SetTypeInterpret(&CFast_g_a_stPseudoTree[4][3], E_ti_Constant);
    M_lValueInterpret(&CFast_g_a_stPseudoTree[4][3]) = M_GetSetParam_lValue(&CFast_g_a_stParam[1]) ;
    CFast_memcpy ( 4, 4, 1) ;
    M_lValueInterpret(&CFast_g_a_stPseudoTree[4][5]) = 1 ;
    CFast_CallProcedure_NoStatic( ) ;
    M_Full_GetSetParam_Integer(&CFast_g_a_stParam[3], (*((char *)(M_LocalGetDsgVarAddr(p_stLocalMind0, 3)))) + -12);

/* [Func : Math_Modulo] ********** [5, 3, 2]*/
      M_lValueInterpret(p_stPseudoTree+132) = M_GetSetParam_lValue(CFast_g_a_stParam+3);
    CFast_CallFunction2_Static( 131 ) ;
    M_GetSetParam_lValue(&CFast_g_a_stParam[1]) = MTH_M_xRealToLong(M_GetSetParam_xValue(&CFast_g_a_stParam[2])) ;
    M_GetSetParam_Type(&CFast_g_a_stParam[1]) = E_vt_Integer;

/* [Math_ : Math_ConversionEnEntier] ********** [2, 1, 1]*/

/* [Op : [] ********** [3, 2, 0]*/

/* [Proc : MOD_ChangePositionModule] *********** [6, 3, 0]*/
    M_eProcedureIdInterpret(&CFast_g_a_stPseudoTree[E_ti_Procedure][0]) = (tdeProcedureId)218 ;

/* [Op : [] ********** [1, 2, 0]*/
    M_eOperatorIdInterpret(&CFast_g_a_stPseudoTree[4][1]) = (tdeOperatorId)26 ;
    M_lValueInterpret(&CFast_g_a_stPseudoTree[4][2]) = 5 ;
    M_SetTypeInterpret(&CFast_g_a_stPseudoTree[4][3], E_ti_Constant);
    M_lValueInterpret(&CFast_g_a_stPseudoTree[4][3]) = M_GetSetParam_lValue(&CFast_g_a_stParam[1]) ;
    CFast_memcpy ( 4, 4, 15) ;
    M_lValueInterpret(&CFast_g_a_stPseudoTree[4][5]) = 1 ;
    CFast_CallProcedure_NoStatic( ) ;
    M_Full_GetSetParam_Integer(&CFast_g_a_stParam[3], (*((char *)(M_LocalGetDsgVarAddr(p_stLocalMind0, 3)))) + -15);

/* [Func : Math_Modulo] ********** [5, 3, 2]*/
      M_lValueInterpret(p_stPseudoTree+132) = M_GetSetParam_lValue(CFast_g_a_stParam+3);
    CFast_CallFunction2_Static( 131 ) ;
    M_GetSetParam_lValue(&CFast_g_a_stParam[1]) = MTH_M_xRealToLong(M_GetSetParam_xValue(&CFast_g_a_stParam[2])) ;
    M_GetSetParam_Type(&CFast_g_a_stParam[1]) = E_vt_Integer;

/* [Math_ : Math_ConversionEnEntier] ********** [2, 1, 1]*/

/* [Op : [] ********** [3, 2, 0]*/

/* [Proc : MOD_ChangePositionModule] *********** [6, 3, 0]*/
    M_eProcedureIdInterpret(&CFast_g_a_stPseudoTree[E_ti_Procedure][0]) = (tdeProcedureId)218 ;

/* [Op : [] ********** [1, 2, 0]*/
    M_eOperatorIdInterpret(&CFast_g_a_stPseudoTree[4][1]) = (tdeOperatorId)26 ;
    M_lValueInterpret(&CFast_g_a_stPseudoTree[4][2]) = 5 ;
    M_SetTypeInterpret(&CFast_g_a_stPseudoTree[4][3], E_ti_Constant);
    M_lValueInterpret(&CFast_g_a_stPseudoTree[4][3]) = M_GetSetParam_lValue(&CFast_g_a_stParam[1]) ;
    CFast_memcpy ( 4, 4, 5) ;
    M_lValueInterpret(&CFast_g_a_stPseudoTree[4][5]) = 1 ;
    CFast_CallProcedure_NoStatic( ) ;
    M_Full_GetSetParam_Integer(&CFast_g_a_stParam[3], (*((char *)(M_LocalGetDsgVarAddr(p_stLocalMind0, 3)))) + -18);

/* [Func : Math_Modulo] ********** [5, 3, 2]*/
      M_lValueInterpret(p_stPseudoTree+132) = M_GetSetParam_lValue(CFast_g_a_stParam+3);
    CFast_CallFunction2_Static( 131 ) ;
    M_GetSetParam_lValue(&CFast_g_a_stParam[1]) = MTH_M_xRealToLong(M_GetSetParam_xValue(&CFast_g_a_stParam[2])) ;
    M_GetSetParam_Type(&CFast_g_a_stParam[1]) = E_vt_Integer;

/* [Math_ : Math_ConversionEnEntier] ********** [2, 1, 1]*/

/* [Op : [] ********** [3, 2, 0]*/

/* [Proc : MOD_ChangePositionModule] *********** [6, 3, 0]*/
    M_eProcedureIdInterpret(&CFast_g_a_stPseudoTree[E_ti_Procedure][0]) = (tdeProcedureId)218 ;

/* [Op : [] ********** [1, 2, 0]*/
    M_eOperatorIdInterpret(&CFast_g_a_stPseudoTree[4][1]) = (tdeOperatorId)26 ;
    M_lValueInterpret(&CFast_g_a_stPseudoTree[4][2]) = 5 ;
    M_SetTypeInterpret(&CFast_g_a_stPseudoTree[4][3], E_ti_Constant);
    M_lValueInterpret(&CFast_g_a_stPseudoTree[4][3]) = M_GetSetParam_lValue(&CFast_g_a_stParam[1]) ;
    CFast_memcpy ( 4, 4, 16) ;
    M_lValueInterpret(&CFast_g_a_stPseudoTree[4][5]) = 1 ;
    CFast_CallProcedure_NoStatic( ) ;
  }
  return 0 ;
}
/*
 * Model : ARG_Chenille_Reseau Comportement ARG_MarcheOuCreve
 */
void CFast_ARG_Chenille_Reseau_Cmp_ARG_MarcheOuCreve (void)
{
  MTH3D_tdstVector stVector0;


  register  AI_tdstMind * p_stLocalMind0 = p_stGlobalMind ;
  register struct tdstNodeInterpret_   *p_stRefTree = gp_stRefTree;
  register struct tdstNodeInterpret_ * p_stPseudoTree = gp_stPseudoTree ;
  register tdstIntelligence * p_stIntelligence = p_stLocalMind0 -> p_stIntelligence ;
  register char * p_cLocalDsgMemBuffer = p_cGlobalDsgMemBuffer ;
  register tdstDsgVarInfo * p_stLocalDsgVarInfo = p_stGlobalDsgVarInfo ;

  register long long1 , long2 ;
  long long3 , long4 , long5 , long6 , long7 , long8 ;
  register AI_tdstMind * p_stLocalMind1 , * p_stLocalMind2 , * p_stLocalMind4 , * p_stLocalMind8 ;


/* [Cond : Caps_ALaCapaciteNumero] ********** [2, 2, 1]*/
  if ( CFast_CallCondition_Static(135) ) {

/* [Proc : ChangeAction] *********** [1, 1, 0]*/
    fn_vSetProcedureActionReturn(C_ACTION_ENGINE_CONTINUE);
    CFast_CallProcedure_Static( 105 ) ;
    if (fn_ucGetProcedureActionReturn() != (C_ACTION_ENGINE_CONTINUE))
{
      return ;
    }

/* [Func : Reseau_PositionAbsolueWP] ********** [1, 1, 2]*/
    CFast_CallFunction2_Static( 138 ) ;

/* [Func : ACT_PositionAbsoluePerso] ********** [1, 0, 3]*/
    CFast_CallFunction3_Static( 98 ) ;
    MTH3D_M_vSubVector(&stVector0, &M_GetSetParam_stVectorValue(CFast_g_a_stParam+2),&M_GetSetParam_stVectorValue(CFast_g_a_stParam+3)) ;
    LocalCFast_fn_vSetDsgVarVector(8, &stVector0) ;

/* [Op : .Z] ********** [1, 1, 2]*/
    CFast_CallOperator2_Static( 107 ) ;

/* [Cond : >] ********** [2, 2, 1]*/
    if ( MTH_M_bGreater(M_GetSetParam_xValue(&CFast_g_a_stParam[2]), MTH_M_xFloatToReal(0.000000f)) ) {
      LocalCFast_fn_vSetDsgVarFloat(9, MTH_M_xFloatToReal(2.00000f)) ;
    }
    else {
      LocalCFast_fn_vSetDsgVarFloat(9, MTH_M_xSub(MTH_M_xFloatToReal(2.00000f),LocalCFast_fn_p_stGetDsgVarVector(8)->xZ)) ;
    }

/* [Proc : ACT_ChangeViseePerso] *********** [1, 1, 0]*/
    CFast_CallProcedure_Static( 109 ) ;

/* [Func : ACT_PositionAbsoluePerso] ********** [0, 0, 2]*/
    CFast_CallFunction2_Static( 98 ) ;

/* [Func : Reseau_PositionAbsolueWP] ********** [2, 1, 3]*/
    CFast_CallFunction3_Static( 138 ) ;

/* [Func : MEC_ImpulsionSaut] ********** [3, 3, 1]*/
      M_p_stVectorInterpret(p_stPseudoTree+141) = &M_GetSetParam_stVectorValue(CFast_g_a_stParam+2);
      M_p_stVectorInterpret(p_stPseudoTree+142) = &M_GetSetParam_stVectorValue(CFast_g_a_stParam+3);
    CFast_CallFunction1_Static( 140 ) ;
    LocalCFast_fn_vSetDsgVarVector(8, &M_GetSetParam_stVectorValue(CFast_g_a_stParam+1)) ;

/* [Proc : ACT_ImposeVecteurVitesseAbsolu] *********** [1, 1, 0]*/
    CFast_CallProcedure_Static( 115 ) ;

/* [Func : Reseau_DistanceAuWP] ********** [1, 1, 1]*/
    CFast_CallFunction1_Static( 144 ) ;
    LocalCFast_fn_vSetDsgVarFloat(10, M_GetSetParam_xValue(CFast_g_a_stParam+1)) ;

/* [Proc : EnvoieRequeteSon] *********** [1, 1, 0]*/
    CFast_CallProcedure_Static( 39 ) ;

/* [Proc : EnvoieRequeteSon] *********** [1, 1, 0]*/
    CFast_CallProcedure_Static( 117 ) ;

/* [Proc : ChangeMonComportement] *********** [1, 1, 0]*/
    CFast_CallProcedure_Static( 146 ) ;
    CFast_ARG_Chenille_Reseau_ArrayComport[p_stIntelligence->p_stCurrentComport->CFast_lMyIndex]();
    return ;
  }
  else {

/* [Cond : Caps_ALaCapaciteNumero] ********** [2, 2, 1]*/
    if ( CFast_CallCondition_Static(148) ) {
      LocalCFast_fn_vSetDsgVarBoolean(13, 1) ;
    }
    else {
      LocalCFast_fn_vSetDsgVarBoolean(13, 0) ;
    }
    LocalCFast_fn_vSetDsgVarFloat(9, MTH_M_xFloatToReal(0.00000f)) ;

/* [Proc : ChangeMonComportement] *********** [1, 1, 0]*/
    CFast_CallProcedure_Static( 151 ) ;
    CFast_ARG_Chenille_Reseau_ArrayComport[p_stIntelligence->p_stCurrentComport->CFast_lMyIndex]();
    return ;
  }
/* [EndTree] ************ [0]*/
}

/*
 * Model : ARG_Chenille_Reseau Comportement ARG_SautDeb
 */
void CFast_ARG_Chenille_Reseau_Cmp_ARG_SautDeb (void)
{
  MTH3D_tdstVector stVector0;
  MTH3D_tdstVector stVector1;


  register  AI_tdstMind * p_stLocalMind0 = p_stGlobalMind ;
  register struct tdstNodeInterpret_   *p_stRefTree = gp_stRefTree;
  register struct tdstNodeInterpret_ * p_stPseudoTree = gp_stPseudoTree ;
  register tdstIntelligence * p_stIntelligence = p_stLocalMind0 -> p_stIntelligence ;
  register char * p_cLocalDsgMemBuffer = p_cGlobalDsgMemBuffer ;
  register tdstDsgVarInfo * p_stLocalDsgVarInfo = p_stGlobalDsgVarInfo ;

  register long long1 , long2 ;
  long long3 , long4 , long5 , long6 , long7 , long8 ;
  register AI_tdstMind * p_stLocalMind1 , * p_stLocalMind2 , * p_stLocalMind4 , * p_stLocalMind8 ;


/* [Func : Reseau_DistanceAuWP] ********** [1, 1, 1]*/
  CFast_CallFunction1_Static( 144 ) ;
  LocalCFast_fn_vSetDsgVarFloat(9, M_GetSetParam_xValue(CFast_g_a_stParam+1)) ;

/* [Op : .Z] ********** [1, 1, 3]*/
  CFast_CallOperator3_Static( 153 ) ;

/* [Cond : <] ********** [2, 2, 2]*/
  long1 = MTH_M_bLess(M_GetSetParam_xValue(&CFast_g_a_stParam[3]), MTH_M_xFloatToReal(0.000000f)) ? 1 : 0;
if ( long1 ) {

/* [Cond : >] ********** [2, 2, 3]*/
    long1 = MTH_M_bGreater((*((MTH_tdxReal *)(M_LocalGetDsgVarAddr(p_stLocalMind0, 9)))), (*((MTH_tdxReal *)(M_LocalGetDsgVarAddr(p_stLocalMind0, 10))))) ? 1 : 0;
  }
  if ( long1 ) {

/* [Proc : ChangeAction] *********** [1, 1, 0]*/
    fn_vSetProcedureActionReturn(C_ACTION_ENGINE_CONTINUE);
    CFast_CallProcedure_Static( 68 ) ;
    if (fn_ucGetProcedureActionReturn() != (C_ACTION_ENGINE_CONTINUE))
{
      return ;
    }

/* [Proc : EnvoieRequeteSon] *********** [1, 1, 0]*/
    CFast_CallProcedure_Static( 117 ) ;

/* [Proc : EnvoieRequeteSon] *********** [1, 1, 0]*/
    CFast_CallProcedure_Static( 60 ) ;

/* [Proc : ChangeMonComportement] *********** [1, 1, 0]*/
    CFast_CallProcedure_Static( 78 ) ;
    CFast_ARG_Chenille_Reseau_ArrayComport[p_stIntelligence->p_stCurrentComport->CFast_lMyIndex]();
    return ;
  }
  else {
    LocalCFast_fn_vSetDsgVarFloat(10, LocalCFast_fn_xGetDsgVarFloat(9)) ;
    CFast_ARG_Chenille_Reseau_Macro_1 () ;
/* [BeginMacro : 5] ********** [0]*/
    CFast_ARG_Chenille_Reseau_Macro_2 () ;
/* [BeginMacro : 32] ********** [0]*/
  }
/* [EndTree] ************ [0]*/
}

/*
 * Model : ARG_Chenille_Reseau Comportement ARG_Marche
 */
void CFast_ARG_Chenille_Reseau_Cmp_ARG_Marche (void)
{
  MTH3D_tdstVector stVector0;
  MTH3D_tdstVector stVector1;


  register  AI_tdstMind * p_stLocalMind0 = p_stGlobalMind ;
  register struct tdstNodeInterpret_   *p_stRefTree = gp_stRefTree;
  register struct tdstNodeInterpret_ * p_stPseudoTree = gp_stPseudoTree ;
  register tdstIntelligence * p_stIntelligence = p_stLocalMind0 -> p_stIntelligence ;
  register char * p_cLocalDsgMemBuffer = p_cGlobalDsgMemBuffer ;
  register tdstDsgVarInfo * p_stLocalDsgVarInfo = p_stGlobalDsgVarInfo ;

  register long long1 , long2 ;
  long long3 , long4 , long5 , long6 , long7 , long8 ;
  register AI_tdstMind * p_stLocalMind1 , * p_stLocalMind2 , * p_stLocalMind4 , * p_stLocalMind8 ;

  if ( ! ( gcGlobAleat & 0x1 ) )
  {
    if ( 1 ) {

/* [Func : Reseau_PositionAbsolueWP] ********** [1, 1, 2]*/
      CFast_CallFunction2_Static( 138 ) ;

/* [Func : ACT_PositionAbsoluePerso] ********** [1, 0, 3]*/
      CFast_CallFunction3_Static( 98 ) ;
      MTH3D_M_vSubVector(&stVector0, &M_GetSetParam_stVectorValue(CFast_g_a_stParam+2),&M_GetSetParam_stVectorValue(CFast_g_a_stParam+3)) ;
      LocalCFast_fn_vSetDsgVarVector(8, &stVector0) ;

/* [Cond : VEC_VecteurNul] ********** [1, 1, 1]*/
      if ( !( CFast_CallCondition_Static(155) ) ) {

/* [Func : ACT_ViseePerso] ********** [0, 0, 3]*/
        CFast_CallFunction3_Static( 157 ) ;
        MTH3D_M_vMulScalarVector(&M_GetSetParam_stVertexValue(&CFast_g_a_stParam[2]), MTH_M_xFloatToReal(0.900000f), &M_GetSetParam_stVectorValue(&CFast_g_a_stParam[3]));
        M_GetSetParam_Type(&CFast_g_a_stParam[2]) = E_vt_Vector;
        MTH3D_M_vMulScalarVector(&M_GetSetParam_stVertexValue(&CFast_g_a_stParam[3]), MTH_M_xFloatToReal(0.100000f), ((MTH3D_tdstVector *)(M_LocalGetDsgVarAddr(p_stLocalMind0, 8))));
        M_GetSetParam_Type(&CFast_g_a_stParam[3]) = E_vt_Vector;
        MTH3D_M_vAddVector(&M_GetSetParam_stVertexValue(&CFast_g_a_stParam[1]), &M_GetSetParam_stVectorValue(&CFast_g_a_stParam[2]), &M_GetSetParam_stVectorValue(&CFast_g_a_stParam[3]));
        M_GetSetParam_Type(&CFast_g_a_stParam[1]) = E_vt_Vector;

/* [Proc : ACT_ChangeViseeQuelconquePerso] *********** [1, 1, 0]*/
          M_p_stVectorInterpret(p_stPseudoTree+159) = &M_GetSetParam_stVectorValue(CFast_g_a_stParam+1);
        CFast_CallProcedure_Static( 158 ) ;
      }

/* [Keyword : Moi] ********** [0, 0, 2]*/

/* [Cond : COL_CollisionWP] ********** [2, 2, 1]*/
      if ( CFast_CallCondition_Static(160) ) {

/* [Proc : ChangeMonComportement] *********** [1, 1, 0]*/
        CFast_CallProcedure_Static( 78 ) ;
        CFast_ARG_Chenille_Reseau_ArrayComport[p_stIntelligence->p_stCurrentComport->CFast_lMyIndex]();
        return ;
      }
      LocalCFast_fn_vSetDsgVarFloat(9, MTH_M_xAdd(LocalCFast_fn_xGetDsgVarFloat(9),MTH_M_xFloatToReal(20.00000f))) ;
      M_GetSetParam_xValue(&CFast_g_a_stParam[2]) = MTH_M_xSin( MTH_M_xDegToRad((*((MTH_tdxReal *)(M_LocalGetDsgVarAddr(p_stLocalMind0, 9))))) );
      M_GetSetParam_Type(&CFast_g_a_stParam[2]) = E_vt_Float;

/* [Math_ : Math_Sinus] ********** [0, 1, 2]*/
      LocalCFast_fn_vSetDsgVarFloat(12, MTH_M_xMul(M_GetSetParam_xValue(CFast_g_a_stParam+2),MTH_M_xLongToReal(8))) ;
    }
  }
/* [EndTree] ************ [1]*/
  CFast_ARG_Chenille_Reseau_Macro_1 () ;
/* [BeginMacro : 6] ********** [1]*/

/* [Cond : ACT_TestCustomBit] ********** [2, 1, 1]*/
  if ( !( CFast_CallCondition_Static(0) ) ) {
    CFast_ARG_Chenille_Reseau_Macro_2 () ;
/* [BeginMacro : 32] ********** [1]*/
  }
/* [EndTree] ************ [1]*/
  if ( (*((char *)(M_LocalGetDsgVarAddr(p_stLocalMind0, 13)))) ) {

/* [Op : _] ********** [3, 1, 1]*/
    CFast_CallOperator1_Static(163) ;

/* [Proc : ACT_ImposeVitesseXY] *********** [3, 2, 0]*/
      M_lValueInterpret(p_stPseudoTree+167) = M_GetSetParam_lValue(CFast_g_a_stParam+1);
    CFast_CallProcedure_Static( 165 ) ;
  }
  else {

/* [Op : _] ********** [3, 1, 1]*/
    CFast_CallOperator1_Static(163) ;

/* [Proc : ACT_ImposeVitesseXYZ] *********** [4, 3, 0]*/
      M_lValueInterpret(p_stPseudoTree+170) = M_GetSetParam_lValue(CFast_g_a_stParam+1);
    CFast_CallProcedure_Static( 168 ) ;
  }
/* [EndTree] ************ [1]*/
}

/*
 * Model : ARG_Chenille_Reseau Comportement ARG_Attaque
 */
void CFast_ARG_Chenille_Reseau_Cmp_ARG_Attaque (void)
{
  MTH3D_tdstVector stVector0;
  MTH3D_tdstVector stVector1;


  register  AI_tdstMind * p_stLocalMind0 = p_stGlobalMind ;
  register struct tdstNodeInterpret_   *p_stRefTree = gp_stRefTree;
  register struct tdstNodeInterpret_ * p_stPseudoTree = gp_stPseudoTree ;
  register tdstIntelligence * p_stIntelligence = p_stLocalMind0 -> p_stIntelligence ;
  register char * p_cLocalDsgMemBuffer = p_cGlobalDsgMemBuffer ;
  register tdstDsgVarInfo * p_stLocalDsgVarInfo = p_stGlobalDsgVarInfo ;

  register long long1 , long2 ;
  long long3 , long4 , long5 , long6 , long7 , long8 ;
  register AI_tdstMind * p_stLocalMind1 , * p_stLocalMind2 , * p_stLocalMind4 , * p_stLocalMind8 ;

  if ( p_stLocalMind0 -> CFast_lCmpMetaAction ) 
    goto label1 ;

/* [Op : v-] ********** [2, 2, 2]*/
  CFast_CallOperator2_Static( 172 ) ;
  M_GetSetParam_xValue(&CFast_g_a_stParam[1]) = MTH3D_M_xNormVector(&M_GetSetParam_stVectorValue(&CFast_g_a_stParam[2]));
  M_GetSetParam_Type(&CFast_g_a_stParam[1]) = E_vt_Float;
  LocalCFast_fn_vSetDsgVarFloat(9, M_GetSetParam_xValue(CFast_g_a_stParam+1)) ;

/* [Op : .Z] ********** [1, 1, 3]*/
  CFast_CallOperator3_Static( 153 ) ;

/* [Cond : >] ********** [2, 2, 2]*/
  long1 = MTH_M_bGreater(M_GetSetParam_xValue(&CFast_g_a_stParam[3]), MTH_M_xFloatToReal(0.000000f)) ? 1 : 0;
  if ( !long1 ) {

/* [Cond : <] ********** [2, 2, 3]*/
    long1 = MTH_M_bLess((*((MTH_tdxReal *)(M_LocalGetDsgVarAddr(p_stLocalMind0, 9)))), (*((MTH_tdxReal *)(M_LocalGetDsgVarAddr(p_stLocalMind0, 10))))) ? 1 : 0;
  }
  if ( long1 ) {
    LocalCFast_fn_vSetDsgVarFloat(10, LocalCFast_fn_xGetDsgVarFloat(9)) ;
    CFast_ARG_Chenille_Reseau_Macro_1 () ;
/* [BeginMacro : 5] ********** [0]*/
    CFast_ARG_Chenille_Reseau_Macro_2 () ;
/* [BeginMacro : 32] ********** [0]*/
  }
  else {

/* [Func : Reseau_PositionAbsolueWP] ********** [1, 1, 2]*/
    CFast_CallFunction2_Static( 138 ) ;
    POS_fn_vGetTranslationVector(HIE_fn_hGetSuperObjectMatrix(g_hSuperObjectPerso), &stVector0); ;
    MTH3D_M_vSubVector(&stVector1, &M_GetSetParam_stVectorValue(CFast_g_a_stParam+2),&stVector0) ;
    LocalCFast_fn_vSetDsgVarVector(8, &stVector1) ;

/* [Op : .Z] ********** [1, 1, 2]*/
    CFast_CallOperator2_Static( 107 ) ;

/* [Cond : >] ********** [2, 2, 1]*/
    if ( MTH_M_bGreater(M_GetSetParam_xValue(&CFast_g_a_stParam[2]), MTH_M_xFloatToReal(0.000000f)) ) {
      LocalCFast_fn_vSetDsgVarFloat(9, MTH_M_xFloatToReal(2.00000f)) ;
    }
    else {
      LocalCFast_fn_vSetDsgVarFloat(9, MTH_M_xSub(MTH_M_xFloatToReal(2.00000f),LocalCFast_fn_p_stGetDsgVarVector(8)->xZ)) ;
    }
    (LocalCFast_fn_p_stGetDsgVarVector(8))->xZ= MTH_M_xLongToReal(0) ;

/* [Proc : ACT_ChangeViseePerso] *********** [1, 1, 0]*/
    CFast_CallProcedure_Static( 109 ) ;

/* [Func : ACT_PositionAbsoluePerso] ********** [0, 0, 2]*/
    CFast_CallFunction2_Static( 98 ) ;

/* [Func : Reseau_PositionAbsolueWP] ********** [2, 1, 3]*/
    CFast_CallFunction3_Static( 138 ) ;

/* [Func : MEC_ImpulsionSaut] ********** [3, 3, 1]*/
      M_p_stVectorInterpret(p_stPseudoTree+141) = &M_GetSetParam_stVectorValue(CFast_g_a_stParam+2);
      M_p_stVectorInterpret(p_stPseudoTree+142) = &M_GetSetParam_stVectorValue(CFast_g_a_stParam+3);
    CFast_CallFunction1_Static( 140 ) ;
    LocalCFast_fn_vSetDsgVarVector(8, &M_GetSetParam_stVectorValue(CFast_g_a_stParam+1)) ;

/* [Proc : ACT_ImposeVecteurVitesseAbsolu] *********** [1, 1, 0]*/
    CFast_CallProcedure_Static( 115 ) ;
    CFast_ARG_Chenille_Reseau_Macro_1 () ;
/* [BeginMacro : 5] ********** [0]*/
    CFast_ARG_Chenille_Reseau_Macro_2 () ;
/* [BeginMacro : 32] ********** [0]*/

/* [Proc : ChangeMonComportement] *********** [1, 1, 0]*/
    CFast_CallProcedure_Static( 146 ) ;
label1 :
    return ;
  }
/* [EndTree] ************ [0]*/
}

/*
 * Model : ARG_Chenille_Reseau Comportement ARG_Restart
 */
void CFast_ARG_Chenille_Reseau_Cmp_ARG_Restart (void)
{
  MTH3D_tdstVector stVector0;


  register  AI_tdstMind * p_stLocalMind0 = p_stGlobalMind ;
  register struct tdstNodeInterpret_   *p_stRefTree = gp_stRefTree;
  register struct tdstNodeInterpret_ * p_stPseudoTree = gp_stPseudoTree ;
  register tdstIntelligence * p_stIntelligence = p_stLocalMind0 -> p_stIntelligence ;
  register char * p_cLocalDsgMemBuffer = p_cGlobalDsgMemBuffer ;
  register tdstDsgVarInfo * p_stLocalDsgVarInfo = p_stGlobalDsgVarInfo ;

  register long long1 , long2 ;
  long long3 , long4 , long5 , long6 , long7 , long8 ;
  register AI_tdstMind * p_stLocalMind1 , * p_stLocalMind2 , * p_stLocalMind4 , * p_stLocalMind8 ;

  LocalCFast_fn_vSetDsgVarGraph(0, LocalCFast_fn_hGetDsgVarGraph(11)) ;

/* [Func : Reseau_WPLePlusProche] ********** [2, 2, 1]*/
  CFast_CallFunction1_Static( 72 ) ;
  LocalCFast_fn_vSetDsgVarWayPoint(7, M_GetSetParam_WayPointValue(CFast_g_a_stParam+1)) ;

/* [Cond : Reseau_WayPointValide] ********** [1, 1, 1]*/
  if ( CFast_CallCondition_Static(175) ) {

/* [Func : Reseau_ConstruitCheminOrdonne] ********** [2, 2, 1]*/
    CFast_CallFunction1_Static( 75 ) ;
    LocalCFast_fn_vSetDsgVar0To255(4, M_GetSetParam_lValue(CFast_g_a_stParam+1)) ;

/* [Proc : ACT_ChangeCustomBit] *********** [2, 2, 0]*/
    CFast_CallProcedure_Static( 177 ) ;

/* [Proc : ChangeMonComportement] *********** [1, 1, 0]*/
    CFast_CallProcedure_Static( 78 ) ;
    CFast_ARG_Chenille_Reseau_ArrayComport[p_stIntelligence->p_stCurrentComport->CFast_lMyIndex]();
    return ;
  }
/* [EndTree] ************ [0]*/
}

void CFast_Dummy_ARG_Chenille_Reseau(void) {
#ifdef DEBUG_CFAST
  long lSize ;
  FILE *fd = fopen ( "CfastAISize.log", "a") ;

  lSize = (long)CFast_Dummy_ARG_Chenille_Reseau - (long)CFast_ARG_Chenille_Reseau_Main ;
  lSize += sizeof ( CFast_ARG_Chenille_Reseau_ArrayReflex ) ;
  lSize += sizeof ( CFast_ARG_Chenille_Reseau_ArrayComport ) ;
  lSize += 1440;
  fprintf ( fd, "ARG_Chenille_Reseau : 	AI = 10328\tC = %d\tDiff = %+d\n", lSize, 10328-lSize ) ;
  fclose (fd) ;
#endif /* DEBUG_CFAST */
}
