In CPawnLow.cpp, ScriptedObject::lowmethod, added:
Code: Select all
case RGF_SM_GETATTRIBUTEHIGH:
{
// USAGE: GetAttributeHigh(char* Attribute),
// GetAttributeHigh(char* Attribute, char* EntityName)
CPersistentAttributes *theInv;
if(arguments.entries() > 1)
{
strcpy(param0, arguments[1].str());
if(!stricmp(param0, "Player"))
theInv = CCD->ActorManager()->Inventory(CCD->Player()->GetActor());
else
theInv = CCD->ActorManager()->Inventory(CCD->ActorManager()->GetByEntityName(param0));
}
else
theInv = CCD->ActorManager()->Inventory(Actor);
returnValue = theInv->High(arguments[0].str().c_str());
return true;
}
Code: Select all
AddHashMethod("GetAttributeHigh", RGF_SM_GETATTRIBUTEHIGH);
Code: Select all
...
//RGF_SM_PITCH_SPEED, // same as readable
//RGF_SM_IDEAL_PITCH, // same as readable
RGF_SM_GETATTRIBUTEHIGH,
RGF_SM_MAXMETHODS
I tried debugging it with VC++ 2008 Express (Debug -> Start Debugging) and it couldn't find any of the .ini files although there was a fresh RF install in my working directory.
I'm also using Federico's hacked NearestPoint. The original RF076 and the version with Federico's hack but without my addition both work fine.
Any help is greatly appreciated.