Xan decap head

  • Two Factor Authentication is now available on BeyondUnreal Forums. To configure it, visit your Profile and look for the "Two Step Verification" option on the left side. We can send codes via email (may be slower) or you can set up any TOTP Authenticator app on your phone (Authy, Google Authenticator, etc) to deliver codes. It is highly recommended that you configure this to keep your account safe.

Gauwde

UP THE IRONS \m/
Jun 24, 2004
92
0
0
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);
		}
	}
 

Zur

surrealistic mad cow
Jul 8, 2002
11,708
8
38
48
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));