Full NPCGEN

Results 1 to 3 of 3
  1. #1
    Лучезарный loko9988 is offline
    MemberRank
    Mar 2010 Join Date
    RussiaLocation
    335Posts

    idea Full NPCGEN

    Powered by Chaos13
    Release by loko9988

    # нпсген
    # npcgen
    // флаги моба
    // mob flags
    type = struct CNPCGenMan::NPCGEN {
    int iArea;
    size_t dwID;
    size_t dwNum;
    size_t dwRefresh;
    size_t dwDiedTimes;
    size_t dwAggressive;
    float fOffsetWater;
    float fOffsetTrn;
    size_t dwFaction;
    size_t dwFacHelper;
    size_t dwFacAccept;
    bool bNeedHelp;
    bool bDefFaction;
    bool bDefFacHelper;
    bool bDefFacAccept;
    int iPathID;
    int iLoopType;
    int iSpeedFlag;
    int iDeadTime;
    }



    //Триггеры
    //triggers
    type = struct CNPCGenMan::CONTROLLER {
    size_t id;
    int iControllerID;
    char szName[128];
    bool bActived;
    int iWaitTime;
    int iStopTime;
    bool bActiveTimeInvalid;
    bool bStopTimeInvalid;
    int iActiveTimeRange;
    NPCCTRLTIME ActiveTime;
    NPCCTRLTIME StopTime;
    }

    // Основа айди
    // General ID
    type = struct CNPCGenMan::AREA {
    int iType;
    int iNumGen;
    float vPos[3];
    float vDir[3];
    float vExts[3];
    int iFirstGen;
    int iNPCType;
    int iGroupType;
    bool bAutoRevive;
    int idCtrl;
    int iLifeTime;
    int iMaxNum;
    }

    //Динамика
    //Dynamic
    type = struct CNPCGenMan::DYNOBJ {
    size_t dwDynObjID;
    float vPos[3];
    unsigned char dir[2];
    unsigned char rad;
    unsigned int idCtrl;
    unsigned char scale;
    }

    //Ресурсы
    //Resource

    type = struct CNPCGenMan::RES {
    int iResType;
    int idTemplate;
    size_t dwRefreshTime;
    size_t dwNumber;
    float fHeiOff;
    }

    type = struct CNPCGenMan::RESAREA {
    float vPos[3];
    float fExtX;
    float fExtZ;
    int iFirstRes;
    int iResNum;
    bool bAutoRevive;
    int idCtrl;
    int iMaxNum;
    unsigned char dir[2];
    unsigned char rad;
    }


  2. #2
    Apprentice iddamo is offline
    MemberRank
    Sep 2010 Join Date
    10Posts

    Re: Full NPCGEN

    thank you it makes me easier

  3. #3
    Novice Chaos13 is offline
    MemberRank
    Feb 2009 Join Date
    2Posts

    Re: Full NPCGEN

    type = struct CNPCGenMan {
    protected:
    vector<CNPCGenMan::AREA, abase::default_alloc> m_aAreas;
    vector<CNPCGenMan::NPCGEN, abase::default_alloc> m_aNPCGens;
    vector<CNPCGenMan::RESAREA, abase::default_alloc> m_aResAreas;
    vector<CNPCGenMan::RES, abase::default_alloc> m_aRes;
    vector<CNPCGenMan::DYNOBJ, abase::default_alloc> m_aDynObjs;
    vector<CNPCGenMan::CONTROLLER, abase::default_alloc> m_aControllers;
    ...
    }

    type = struct NPCCTRLTIME {
    int iYear;
    int iMouth;
    int iWeek;
    int iDay;
    int iHours;
    int iMinutes;
    }
    Last edited by Chaos13; 19-03-11 at 11:54 AM.



Advertisement