-
Full NPCGEN
Powered by Chaos13 :w00t:
Release by loko9988 :tongue:
# нпсген
# 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;
}
-
Re: Full NPCGEN
thank you it makes me easier
-
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;
}