Well i tried to implement the Zakensword class on lower chronicles from CT 2.5.
And i figured out that on CT 2.5 "AttachedBone" was implemented on NAgathion class.
What i tried to do was to make a new class since was not able to 'touch' engine.NAgathion
so i made my own:
class MyAga extends Pawn;
var enum EAgathionMovementType
{
EAMT_FOLLOW,
EAMT_FLOAT,
EAMT_ONVEHICLE,
} MovementType;
var enum EAgathionType
{
EAT_DEFAULT,
EAT_ATTACHED,
} AgathionType;
var enum EAttachedBone
{
EAB_NONE,
EAB_HEADBONE,
EAB_SPINEBONE,
EAB_R_HANDBONE,
EAB_L_HANDBONE,
EAB_R_ARMBONE,
EAB_L_ARMBONE,
EAB_R_FOOTBONE,
EAB_L_FOOTBONE,
} AttachedBone;
var vector DestLocation;
var Rotator OriginalRotationRate;
var int RandomAnimPercent;
var int RandomSpecialAnimationState; // -1 to decide, 0 failed, 1 success
var bool NeedMaster; // for 3D UI
var pawn Master;
var int MasterWaitType;
var float MasterWaitTypeChangeUpdate;
defaultproperties
{
OriginalRotationRate=(Pitch=0,Yaw=30000,Roll=0),
RandomAnimPercent=20
NeedMaster=True
bCollideActors=False
bCollideWorld=False
}
And my own class for npc
class br_aga_zaken extends MyAga
Config(User);
defaultproperties
{
GroundMaxSpeed=180.00
GroundMinSpeed=60.00
AgathionType=1
AttachedBone=2
CollisionRadius=0.01
CollisionHeight=5.50
}
when i compile those two properties disappear : AgathionType=1 AttachedBone=2
and what i get ingame is this
It doesn't follow the character but it spawns on the correct position