Difference between revisions of "CShootDesc"

From Project X Wiki
Jump to: navigation, search
(Undo revision 1202 by DonaldTurner (talk) Spam, Vandalism)
m (Reverted edits by DonaldTurner (talk) to last revision by StepS)
 
(One intermediate revision by one other user not shown)
(No difference)

Latest revision as of 09:36, 10 August 2012

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