Merged redundant hak files. Moved hak scripts into module. Updated gitignore. Full Compile. Added release folder & archive.
54 lines
2.0 KiB
Plaintext
54 lines
2.0 KiB
Plaintext
/////////////////////////////////////////////////////////////////////////
|
|
// NPC ACTIVITIES 5.0 - AI CONTROL LIBRARY
|
|
// Version: 1.0
|
|
// Library name: NC
|
|
// Also used with NPC ACTIVITIES 6.0 but, did not require modification
|
|
//=======================================================================
|
|
// Author: Deva Bryson Winblood
|
|
// Date : 10/11/2003
|
|
//=======================================================================
|
|
// This library provides access to the SetAILevel() commands
|
|
//
|
|
//
|
|
//////////////////////////////////////////////////////////////////////////
|
|
#include "npcactlibtoolh"
|
|
// #Parm1 FUNCTION PARAMETERS
|
|
//------------------------------------------------------------------------
|
|
|
|
|
|
///////////////////////////////// PROTOTYPES //////////////////////////////
|
|
|
|
/////////////////////////////////////////////////////////////////// MAIN
|
|
void main()
|
|
{
|
|
string sParmIn=GetLocalString(OBJECT_SELF,"sLIBParm");
|
|
DeleteLocalString(OBJECT_SELF,"sLIBParm");
|
|
fnTokenizeParameters(sParmIn);
|
|
int nArgC=GetLocalInt(OBJECT_SELF,"nArgc");
|
|
string sParm;
|
|
int nFuncNum; // function number
|
|
string sParm1;
|
|
string sParm2;
|
|
string sParm3;
|
|
if (nArgC>0)
|
|
{ // arguments were passed
|
|
sParm=GetLocalString(OBJECT_SELF,"sArgv1");
|
|
nFuncNum=StringToInt(sParm);
|
|
switch(nFuncNum)
|
|
{ // switch
|
|
case 1: { SetAILevel(OBJECT_SELF,AI_LEVEL_DEFAULT); break; }
|
|
case 2: { SetAILevel(OBJECT_SELF,AI_LEVEL_VERY_LOW); break; }
|
|
case 3: { SetAILevel(OBJECT_SELF,AI_LEVEL_LOW); break; }
|
|
case 4: { SetAILevel(OBJECT_SELF,AI_LEVEL_NORMAL); break; }
|
|
case 5: { SetAILevel(OBJECT_SELF,AI_LEVEL_HIGH); break; }
|
|
default: { SetAILevel(OBJECT_SELF,AI_LEVEL_DEFAULT); break; }
|
|
} // switch
|
|
} // arguments were passed
|
|
fnFreeParms();
|
|
}
|
|
/////////////////////////////////////////////////////////////////// MAIN
|
|
|
|
////////////////////////////////////////////////////////////////////
|
|
// LIBRARY SUPPORT FUNCTIONS
|
|
////////////////////////////////////////////////////////////////////
|