Xan's decap head is a human head when you headshot him but if you gib him he has a robot head. How do I give him a robot head to decap? I've come up with this script for the bot but I don't know what to do with it.
Code:
//=============================================================================
// TBossBotPlus (bot).
//=============================================================================
class TBossBotPlus extends TBossBot;
function PlayDecap()
{
local carcass carc;
PlayAnim('Dead4',, 0.1);
if ( Level.NetMode != NM_Client )
{
carc = Spawn(class'UT_BossHead',,, Location + CollisionHeight * vect(0,0,0.8), Rotation + rot(3000,0,16384));
if (carc != None)
{
carc.Initfor(self);
carc.Velocity = Velocity + VSize(Velocity) * VRand();
carc.Velocity.Z = FMax(carc.Velocity.Z, Velocity.Z);
}
}