CShootDesc

From Project X Wiki
Jump to: navigation, search
Up one category:
Scripting

This structure is used in many functions. It describes a shot (speed, worm who shot...).

struct CShootDesc
{
	int       Team;
	int       Worm;
	fixed       X;
	fixed       Y;
	fixed       SpX;
	fixed	    SpY;
	fixed       AddX;
	fixed       AddY;
};

Team - team index (1 - 6)
Worm - worm index (1 - 8)
X, Y - coordinates
SpX, SpY - speed
AddX, AddY - custom parameters; for example, for homing weapon it's coordinates of target