All pastes #765523 Raw Edit

Something

public text v1 · immutable
·published 2007-11-08 02:47 UTC
rendered paste body
//This is a The Plot of War Script


piece	base, top, turret, gun, firepoint, buildpoint;



#define FIRING_THING	2


Create()
	{
	spin top around y-axis speed <50> accelerate <25>;
	}

AimPrimary(heading, pitch)
	{
	signal FIRING_THING;
	set-signal-mask FIRING_THING;
	turn turret to y-axis heading speed <350>;
	turn gun to x-axis <0> - pitch speed <350>;
	wait-for-turn turret around y-axis;
	wait-for-turn gun around x-axis;
	return (1);
	}

FirePrimary()
	{
	move gun to z-axis [-2] now;
	sleep 100;
	move gun to z-axis [0] speed [20];
	}

AimFromPrimary(piecenum)
	{
	piecenum = turret;
	}

QueryPrimary(piecenum)
	{
	piecenum = firepoint;
	}

QueryNanoPiece(piecenum)
	{
	piecenum = buildpoint;
	}

SweetSpot(piecenum)
	{
	piecenum = top;
	}

Killed(severity, corpsetype)
	{		
	}