PDA

View Full Version : Xan decap head


Gauwde
2nd Oct 2004, 10:24 PM
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.

//=============================================================================
// 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);
}
}

Zur
3rd Oct 2004, 02:03 AM
This would be better posted in the coding forum. The part that spawns the boss head is this :

carc = Spawn(class'UT_BossHead',,, Location + CollisionHeight * vect(0,0,0.8), Rotation + rot(3000,0,16384));

Gauwde
3rd Oct 2004, 06:59 AM
Okay, I'll try the coding forum.