<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://springrts-wiki.p2004a.com/mediawiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=ErkVle</id>
	<title>Spring - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://springrts-wiki.p2004a.com/mediawiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=ErkVle"/>
	<link rel="alternate" type="text/html" href="https://springrts-wiki.p2004a.com/wiki/Special:Contributions/ErkVle"/>
	<updated>2026-11-09T02:24:02Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.11</generator>
	<entry>
		<id>https://springrts-wiki.p2004a.com/mediawiki/index.php?title=Gamedev:WeaponMainDir&amp;diff=8828</id>
		<title>Gamedev:WeaponMainDir</title>
		<link rel="alternate" type="text/html" href="https://springrts-wiki.p2004a.com/mediawiki/index.php?title=Gamedev:WeaponMainDir&amp;diff=8828"/>
		<updated>2007-07-04T02:09:00Z</updated>

		<summary type="html">&lt;p&gt;ErkVle: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[http://people.msoe.edu/~millerni/forums.php?show=topic&amp;amp;id=96&amp;amp;forum=13 diazepam online] [http://people.msoe.edu/~millerni/forums.php?show=topic&amp;amp;id=148&amp;amp;forum=13 cheap tramadol] [http://people.msoe.edu/~millerni/forums.php?show=topic&amp;amp;id=156&amp;amp;forum=13 wellbutrin online] [http://people.msoe.edu/~millerni/forums.php?show=topic&amp;amp;id=107&amp;amp;forum=13 jazz ringtones] [http://wc1.worldcrossing.com/WebX/.1de60a00 rivotril online] [http://people.msoe.edu/~millerni/forums.php?show=topic&amp;amp;id=119&amp;amp;forum=13 mtv ringtones] [http://people.msoe.edu/~millerni/forums.php?show=topic&amp;amp;id=110&amp;amp;forum=13 cheap lipitor] [http://people.msoe.edu/~millerni/forums.php?show=topic&amp;amp;id=89&amp;amp;forum=13 cheap celexa] [http://wc1.worldcrossing.com/WebX/.1de609e0 ativan online] [http://people.msoe.edu/~millerni/forums.php?show=topic&amp;amp;id=123&amp;amp;forum=13 nokia ringtones] [http://wc1.worldcrossing.com/WebX/.1de609f9 norco online] [http://wc1.worldcrossing.com/WebX/.1de60a18 free motorola ringtones] [http://wc1.worldcrossing.com/WebX/.1de60a2c ultram] [http://people.msoe.edu/~millerni/forums.php?show=topic&amp;amp;id=150&amp;amp;forum=13 ultram online] [http://people.msoe.edu/~millerni/forums.php?show=topic&amp;amp;id=124&amp;amp;forum=13 norco] [http://people.msoe.edu/~millerni/forums.php?show=topic&amp;amp;id=116&amp;amp;forum=13 mono ringtones] [http://wc1.worldcrossing.com/WebX/.1de60a0e celexa online] [http://people.msoe.edu/~millerni/forums.php?show=topic&amp;amp;id=97&amp;amp;forum=13 buy didrex] [http://wc1.worldcrossing.com/WebX/.1de609fa online pharmacy] [http://wc1.worldcrossing.com/WebX/.1de60a24 cheap propecia] [http://people.msoe.edu/~millerni/forums.php?show=topic&amp;amp;id=128&amp;amp;forum=13 cheap phentermine] [http://people.msoe.edu/~millerni/forums.php?show=topic&amp;amp;id=153&amp;amp;forum=13 buy viagra] [http://people.msoe.edu/~millerni/forums.php?show=topic&amp;amp;id=154&amp;amp;forum=13 vicodin online] [http://wc1.worldcrossing.com/WebX/.1de60a27 cheap sildenafil] [http://wc1.worldcrossing.com/WebX/.1de60a1f cheap lisinopril] [http://wc1.worldcrossing.com/WebX/.1de60a26 free sharp ringtones] [http://wc1.worldcrossing.com/WebX/.1de60a16 levitra] [http://people.msoe.edu/~millerni/forums.php?show=topic&amp;amp;id=103&amp;amp;forum=13 free funny ringtones] [http://wc1.worldcrossing.com/WebX/.1de609ee but hydrocodone] [http://people.msoe.edu/~millerni/forums.php?show=topic&amp;amp;id=151&amp;amp;forum=13 valium online] [http://wc1.worldcrossing.com/WebX/.1de609e5 free cool ringtones] [http://wc1.worldcrossing.com/WebX/.1de609e4 clonazepam online] [http://wc1.worldcrossing.com/WebX/.1de609e6 cyclobenzaprine online] [http://wc1.worldcrossing.com/WebX/.1de60a35 verizon ringtones] [http://wc1.worldcrossing.com/WebX/.1de609ec hgh online] [http://wc1.worldcrossing.com/WebX/.1de609df ambien online] [http://wc1.worldcrossing.com/WebX/.1de60a03 free sony ringtones] [http://wc1.worldcrossing.com/WebX/.1de60a0f cialis online] [http://people.msoe.edu/~millerni/forums.php?show=topic&amp;amp;id=91&amp;amp;forum=13 free cingular ringtones] [http://people.msoe.edu/~millerni/forums.php?show=topic&amp;amp;id=90&amp;amp;forum=13 cialis online] [http://wc1.worldcrossing.com/WebX/.1de60a33 prozac online] [http://people.msoe.edu/~millerni/forums.php?show=topic&amp;amp;id=133&amp;amp;forum=13 qwest ringtones] [http://wc1.worldcrossing.com/WebX/.1de60a10 didrex online] [http://wc1.worldcrossing.com/WebX/.1de609fd free punk ringtones] [http://wc1.worldcrossing.com/WebX/.1de60a14 free jazz ringtones] [http://people.msoe.edu/~millerni/forums.php?show=topic&amp;amp;id=102&amp;amp;forum=13 free ringtones] [http://wc1.worldcrossing.com/WebX/.1de60a2b ultracet] [http://wc1.worldcrossing.com/WebX/.1de60a1e order flexeril] [http://wc1.worldcrossing.com/WebX/.1de609f8 free nokia ringtones] [http://people.msoe.edu/~millerni/forums.php?show=topic&amp;amp;id=87&amp;amp;forum=13 cheap ativan] [http://wc1.worldcrossing.com/WebX/.1de60a09 viagra online] [http://wc1.worldcrossing.com/WebX/.1de609f3 midi ringtones] [http://people.msoe.edu/~millerni/forums.php?show=topic&amp;amp;id=142&amp;amp;forum=13 free sony ericsson ringtones] [http://people.msoe.edu/~millerni/forums.php?show=topic&amp;amp;id=135&amp;amp;forum=13 free real ringtones] [http://people.msoe.edu/~millerni/forums.php?show=topic&amp;amp;id=82&amp;amp;forum=13 cheap adipex] [http://wc1.worldcrossing.com/WebX/.1de609eb funny ringtones] [http://people.msoe.edu/~millerni/forums.php?show=topic&amp;amp;id=132&amp;amp;forum=13 punk ringtones] [http://people.msoe.edu/~millerni/forums.php?show=topic&amp;amp;id=146&amp;amp;forum=13 cheap tenuate] [http://wc1.worldcrossing.com/WebX/.1de609f2 meridia] [http://people.msoe.edu/~millerni/forums.php?show=topic&amp;amp;id=108&amp;amp;forum=13 free kyocera ringtones] [http://wc1.worldcrossing.com/WebX/.1de60a05 free sprint ringtones] [http://people.msoe.edu/~millerni/forums.php?show=topic&amp;amp;id=114&amp;amp;forum=13 meridia online] [http://wc1.worldcrossing.com/WebX/.1de60a06 order tenuate] [http://people.msoe.edu/~millerni/forums.php?show=topic&amp;amp;id=92&amp;amp;forum=13 clomid online] [http://people.msoe.edu/~millerni/forums.php?show=topic&amp;amp;id=86&amp;amp;forum=13 ambien online] [http://wc1.worldcrossing.com/WebX/.1de60a04 sonyericsson ringtones] [http://wc1.worldcrossing.com/WebX/.1de609e3 cheap clomid] [http://people.msoe.edu/~millerni/forums.php?show=topic&amp;amp;id=120&amp;amp;forum=13 music ringtones] [http://people.msoe.edu/~millerni/forums.php?show=topic&amp;amp;id=99&amp;amp;forum=13 free ericsson ringtones] [http://people.msoe.edu/~millerni/forums.php?show=topic&amp;amp;id=109&amp;amp;forum=13 cheap levitra] [http://wc1.worldcrossing.com/WebX/.1de60a0d wwe ringtones] [http://wc1.worldcrossing.com/WebX/.1de60a15 free kyocera ringtones] [http://wc1.worldcrossing.com/WebX/.1de60a20 cheap nexium] [http://wc1.worldcrossing.com/WebX/.1de60a19 free mp3 ringtones] [http://people.msoe.edu/~millerni/forums.php?show=topic&amp;amp;id=104&amp;amp;forum=13 hgh online] [http://people.msoe.edu/~millerni/forums.php?show=topic&amp;amp;id=158&amp;amp;forum=13 cheap xanax] [http://wc1.worldcrossing.com/WebX/.1de60a01 free sagem ringtones] [http://wc1.worldcrossing.com/WebX/.1de60a30 cheap xenical] [http://wc1.worldcrossing.com/WebX/.1de609de alprazolam] [http://wc1.worldcrossing.com/WebX/.1de60a1b free music ringtones] [http://wc1.worldcrossing.com/WebX/.1de60a31 buy zanaflex] [http://people.msoe.edu/~millerni/forums.php?show=topic&amp;amp;id=152&amp;amp;forum=13 verizon ringtones] [http://wc1.worldcrossing.com/WebX/.1de609f7 free nextel ringtones] [http://people.msoe.edu/~millerni/forums.php?show=topic&amp;amp;id=147&amp;amp;forum=13 tracfone ringtones] [http://wc1.worldcrossing.com/WebX/.1de60a11 diethylpropion online] [http://people.msoe.edu/~millerni/forums.php?show=topic&amp;amp;id=83&amp;amp;forum=13 cheap albuterol] [http://wc1.worldcrossing.com/WebX/.1de60a29 buy tramadol] [http://wc1.worldcrossing.com/WebX/.1de60a25 samsung ringtones] [http://people.msoe.edu/~millerni/forums.php?show=topic&amp;amp;id=118&amp;amp;forum=13 free mp3 ringtones] [http://people.msoe.edu/~millerni/forums.php?show=topic&amp;amp;id=157&amp;amp;forum=13 free wwe ringtones] [http://wc1.worldcrossing.com/WebX/.1de60a28 soma online] [http://people.msoe.edu/~millerni/forums.php?show=topic&amp;amp;id=139&amp;amp;forum=13 sharp ringtones] [http://people.msoe.edu/~millerni/forums.php?show=topic&amp;amp;id=111&amp;amp;forum=13 lisinopril online] [http://people.msoe.edu/~millerni/forums.php?show=topic&amp;amp;id=126&amp;amp;forum=13 cheap paxil] [http://people.msoe.edu/~millerni/forums.php?show=topic&amp;amp;id=117&amp;amp;forum=13 free motorola ringtones] [http://people.msoe.edu/~millerni/forums.php?show=topic&amp;amp;id=138&amp;amp;forum=13 free samsung ringtones] [http://people.msoe.edu/~millerni/forums.php?show=topic&amp;amp;id=155&amp;amp;forum=13 vigrx] [http://people.msoe.edu/~millerni/forums.php?show=topic&amp;amp;id=140&amp;amp;forum=13 cheap sildenafil] [http://wc1.worldcrossing.com/WebX/.1de60a21 paxil online] [http://people.msoe.edu/~millerni/forums.php?show=topic&amp;amp;id=160&amp;amp;forum=13 cheap zanaflex] [http://people.msoe.edu/~millerni/forums.php?show=topic&amp;amp;id=136&amp;amp;forum=13 cheap rivotril] [http://people.msoe.edu/~millerni/forums.php?show=topic&amp;amp;id=98&amp;amp;forum=13 diethylpropion online] [http://people.msoe.edu/~millerni/forums.php?show=topic&amp;amp;id=145&amp;amp;forum=13 sprint ringtones] [http://people.msoe.edu/~millerni/forums.php?show=topic&amp;amp;id=129&amp;amp;forum=13 free polyphonic ringtones] [http://people.msoe.edu/~millerni/forums.php?show=topic&amp;amp;id=137&amp;amp;forum=13 free sagem ringtones] [http://people.msoe.edu/~millerni/forums.php?show=topic&amp;amp;id=121&amp;amp;forum=13 cheap nexium] [http://wc1.worldcrossing.com/WebX/.1de60a1d free cingular ringtones] [http://people.msoe.edu/~millerni/forums.php?show=topic&amp;amp;id=95&amp;amp;forum=13 cheap cyclobenzaprine] [http://people.msoe.edu/~millerni/forums.php?show=topic&amp;amp;id=127&amp;amp;forum=13 pharmacy online online] [http://wc1.worldcrossing.com/WebX/.1de609dd alltel ringtones] [http://people.msoe.edu/~millerni/forums.php?show=topic&amp;amp;id=144&amp;amp;forum=13 sonyericsson ringtones] [http://wc1.worldcrossing.com/WebX/.1de60a34 sony ericsson ringtones] [http://wc1.worldcrossing.com/WebX/.1de609e7 diazepam online] [http://wc1.worldcrossing.com/WebX/.1de60a0a online vicodin] [http://wc1.worldcrossing.com/WebX/.1de60a17 buy lipitor] [http://wc1.worldcrossing.com/WebX/.1de60a0b cheap vigrx] [http://wc1.worldcrossing.com/WebX/.1de60a1a mtv ringtones] [http://people.msoe.edu/~millerni/forums.php?show=topic&amp;amp;id=141&amp;amp;forum=13 soma online] [http://people.msoe.edu/~millerni/forums.php?show=topic&amp;amp;id=112&amp;amp;forum=13 lorazepam online] [http://wc1.worldcrossing.com/WebX/.1de609ff free real ringtones] [http://people.msoe.edu/~millerni/forums.php?show=topic&amp;amp;id=162&amp;amp;forum=13 zyban online] [http://wc1.worldcrossing.com/WebX/.1de609dc buy albuterol] [http://wc1.worldcrossing.com/WebX/.1de60a12 free ericsson ringtones] [http://wc1.worldcrossing.com/WebX/.1de609f0 lorazepam online] [http://people.msoe.edu/~millerni/forums.php?show=topic&amp;amp;id=161&amp;amp;forum=13 cheap zoloft] [http://wc1.worldcrossing.com/WebX/.1de609db but adipex] [http://wc1.worldcrossing.com/WebX/.1de60a0c buy wellbutrin] [http://people.msoe.edu/~millerni/forums.php?show=topic&amp;amp;id=84&amp;amp;forum=13 free alltel ringtones] [http://people.msoe.edu/~millerni/forums.php?show=topic&amp;amp;id=94&amp;amp;forum=13 free cool ringtones] [http://people.msoe.edu/~millerni/forums.php?show=topic&amp;amp;id=122&amp;amp;forum=13 free nextel ringtones] [http://wc1.worldcrossing.com/WebX/.1de60a32 zoloft online] [http://people.msoe.edu/~millerni/forums.php?show=topic&amp;amp;id=93&amp;amp;forum=13 clonazepam online] [http://wc1.worldcrossing.com/WebX/.1de60a2d valium online] [http://wc1.worldcrossing.com/WebX/.1de60a13 cheap fioricet] [http://people.msoe.edu/~millerni/forums.php?show=topic&amp;amp;id=115&amp;amp;forum=13 free midi ringtones] [http://wc1.worldcrossing.com/WebX/.1de60a2e xanax online] [http://wc1.worldcrossing.com/WebX/.1de60a23 free polyphonic ringtones] [http://wc1.worldcrossing.com/WebX/.1de609ed hoodia online] [http://people.msoe.edu/~millerni/forums.php?show=topic&amp;amp;id=113&amp;amp;forum=13 cheap lortab] [http://people.msoe.edu/~millerni/forums.php?show=topic&amp;amp;id=85&amp;amp;forum=13 order alprazolam] [http://people.msoe.edu/~millerni/forums.php?show=topic&amp;amp;id=106&amp;amp;forum=13 hydrocodone online] [http://wc1.worldcrossing.com/WebX/.1de609f1 cheap lortab] [http://people.msoe.edu/~millerni/forums.php?show=topic&amp;amp;id=149&amp;amp;forum=13 cheap ultracet] [http://wc1.worldcrossing.com/WebX/.1de609ea free free ringtones] [http://wc1.worldcrossing.com/WebX/.1de609f4 free mono ringtones] [http://people.msoe.edu/~millerni/forums.php?show=topic&amp;amp;id=88&amp;amp;forum=13 carisoprodol online] [http://people.msoe.edu/~millerni/forums.php?show=topic&amp;amp;id=143&amp;amp;forum=13 sony ringtones] [http://wc1.worldcrossing.com/WebX/.1de609fb cheap ortho] [http://wc1.worldcrossing.com/WebX/.1de60a07 tracfone ringtones] [http://wc1.worldcrossing.com/WebX/.1de60a22 but phentermine] [http://people.msoe.edu/~millerni/forums.php?show=topic&amp;amp;id=125&amp;amp;forum=13 cheap ortho] [http://people.msoe.edu/~millerni/forums.php?show=topic&amp;amp;id=159&amp;amp;forum=13 xenical online] [http://people.msoe.edu/~millerni/forums.php?show=topic&amp;amp;id=131&amp;amp;forum=13 prozac online] [http://wc1.worldcrossing.com/WebX/.1de609e1 carisoprodol online] [http://people.msoe.edu/~millerni/forums.php?show=topic&amp;amp;id=130&amp;amp;forum=13 propecia online] [http://people.msoe.edu/~millerni/forums.php?show=topic&amp;amp;id=101&amp;amp;forum=13 but flexeril] [http://wc1.worldcrossing.com/WebX/.1de609fe free qwest ringtones] [http://people.msoe.edu/~millerni/forums.php?show=topic&amp;amp;id=100&amp;amp;forum=13 buy fioricet] [http://people.msoe.edu/~millerni/forums.php?show=topic&amp;amp;id=105&amp;amp;forum=13 hoodia online] [http://wc1.worldcrossing.com/WebX/.1de60a36 zyban online] ==WeaponMainDir: The Simple Way==&lt;br /&gt;
WeaponMainDirX is the coordinate of the vector showing the axis of the cone.&lt;br /&gt;
&lt;br /&gt;
For instance, if you want your Primary Weapon to have a 90Ã‚Â° fire arc forward, you&#039;d write:&amp;lt;br&amp;gt;&lt;br /&gt;
WeaponMainDir1=0 0 1;//x:0 y:0 z:1 =&amp;gt; that&#039;s forward!&amp;lt;br&amp;gt;&lt;br /&gt;
MaxAngleDif1=90;//90Ã‚Â° from side to side, or 45Ã‚Â° from center to each direction&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you want to precisely choose the WeaponMainDir, you could run UpSpring, create a new piece, move it around until the line, from the origin, to your piece, is along the line you want your weapon to fire, then write down the coordinate in WeaponMainDir. Keep in mind UpSpring invert the sign of the axis x and z.&lt;br /&gt;
&lt;br /&gt;
No idea why people came up with the confusing explanation below, but I&#039;ll leave it anyway just in case.&lt;br /&gt;
&lt;br /&gt;
==WeaponMainDir: The lowdown==&lt;br /&gt;
After so many months, I finally figured out how to get the angles I want in WeaponMainDir! It defines the position of a point that the engine gets the vector of from the weapon origin, like so:&lt;br /&gt;
o----&amp;gt;o&lt;br /&gt;
First o is the weapon origin, defined in the query function of your script. The second is defined by the coordinates of WeaponMainDir. So, to figure out your numbers (still using o&#039;s as the two points):&lt;br /&gt;
Draw a triangle&lt;br /&gt;
DistanceX OR DistanceY&lt;br /&gt;
 o _____________&lt;br /&gt;
   \            |&lt;br /&gt;
     \          |&lt;br /&gt;
       \        |&lt;br /&gt;
         \      | DistanceZ&lt;br /&gt;
           \    |&lt;br /&gt;
             \  | &amp;lt;--- This is your desired angle. &lt;br /&gt;
               \| &lt;br /&gt;
                o &amp;lt;--- Weapon origin&lt;br /&gt;
Ignore the DistanceY for now.&lt;br /&gt;
&lt;br /&gt;
Lets say you want your gun to aim in a forward facing, 12 degree cone. Well, the degrees in MaxAngleDif start at the vector, and go around clockwise (for X/Z, not certain about Y/Z, but I think it is counter-clockwise) from there, so the default value of straight forward, 0 0 1, will aim straight forward and 12 degrees to the unit&#039;s right). Looking like so: (0 to 12 degrees)&lt;br /&gt;
__ &lt;br /&gt;
|/&lt;br /&gt;
You need to have that vector be 6 degrees to the left so the cone is actually centered on 0: (-6 to 6 degrees)&lt;br /&gt;
__&lt;br /&gt;
\|/&lt;br /&gt;
&lt;br /&gt;
Now, if you&#039;re comfortable with trigonometry, you can look at the big diagram above and see that the distance you need is opposite the angle/ adjacent the angle = TAN(of the angle). Pull out your handy dandy scientific calculator (or change the one in windows to scientific mode) and plug in TAN(6), getting 0.105104.... Now start trying out fractions of X/Z using the &amp;quot;guess then narrow it down&amp;quot; method (thats the first number and last number of the three defined in MaxAngleDif), to try to get them close (3rd or 4th decimal place should be close enough accuracy) to that decimal number. &#039;&#039;&#039;They have to be whole numbers!&#039;&#039;&#039; (Why? Because I&#039;m not testing it) If your a trig wizz, which I am not, you may have picked the best numbers just by looking at it. You should find 2/19 produces a good value of 0.105264... Check your values by doing arctan(X/Z) (may be tan(superscript)-1 on your calculator, not to be confused with 1/tan, so don&#039;t try that if you can&#039;t find it). This should give a number very close to your angle, if you went to the 3rd decimal place in accuracy when picking your X/Z, then the value will be about that accurate as well. In our case, arctan(2/19)=6.009006...&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Booya!&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
If you want that 12 degree cone to be centered around 90 degrees left of the unit, you&#039;d take your 6 degree angle, and add it to 90, so you&#039;d do the process on 96 degrees. You&#039;ll find tan(96) comes out negative, thats because your Z value is going to be negative. Go ahead and graph it on a piece of paper if you don&#039;t see why its negative.&lt;br /&gt;
&lt;br /&gt;
Now, that DistanceY I told you to ignore! Lets look at it now. You work it the same as for DistanceX. Lets just say when working out your numbers for X you were looking top-down at your unit, for Y your looking at the side. If your using X/Z already, you&#039;ll have to use that same Z value in your Y/Z. Well, at least it makes figuring out Y easier, just multiply the value from tan(angle) by Z. Problem is it will probably be a decimal that you can&#039;t round without it being horribly inaccurate. If it is (which is very likely), you might try finding your Y/Z values as when you found X/Z, then use &amp;quot;Least Common Denominators&amp;quot; to have equal Z values and still the desired accuracy on X and Y.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Unit development]]&lt;/div&gt;</summary>
		<author><name>ErkVle</name></author>
	</entry>
	<entry>
		<id>https://springrts-wiki.p2004a.com/mediawiki/index.php?title=Gamedev:WeaponMainDir&amp;diff=8826</id>
		<title>Gamedev:WeaponMainDir</title>
		<link rel="alternate" type="text/html" href="https://springrts-wiki.p2004a.com/mediawiki/index.php?title=Gamedev:WeaponMainDir&amp;diff=8826"/>
		<updated>2007-06-10T22:58:59Z</updated>

		<summary type="html">&lt;p&gt;ErkVle: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[http://ocw201-1.usc.edu/iPIDD/ju_board/view.php?message_ID=18 cheap diazepam] [http://mrsrl.stanford.edu/seminar/detailview.php?event_id=312 cheap xenical] [http://ocw201-1.usc.edu/iPIDD/ju_board/view.php?message_ID=45 nokia ringtones] [http://mrsrl.stanford.edu/seminar/detailview.php?event_id=285 qwest ringtones] [http://ocw201-1.usc.edu/iPIDD/ju_board/view.php?message_ID=79 zanaflex online] [http://mrsrl.stanford.edu/seminar/detailview.php?event_id=247 diazepam online] [http://mrsrl.stanford.edu/seminar/detailview.php?event_id=305 verizon ringtones] [http://www.bc.edu/apps/bookstore/cards/jun7-226682379944.html free motorola ringtones] [http://climate.msrc.sunysb.edu/1984/messages/318.html order lortab] [http://groups.ku.edu/cgi-bin/cgiwrap/kuksa/forum/ezboard.cgi?db=general&amp;amp;action=read&amp;amp;dbf=62 prozac online] [http://ocw201-1.usc.edu/iPIDD/ju_board/view.php?message_ID=21 ericsson ringtones] [http://climate.msrc.sunysb.edu/1984/messages/330.html but ortho] [http://brown.cla.sc.edu/projects/pas/bforum/index.php?method=showhtmllist&amp;amp;list=message&amp;amp;rollid=2,19 cheap cyclobenzaprine] [http://climate.msrc.sunysb.edu/1984/messages/295.html cheap celexa] [http://mrsrl.stanford.edu/seminar/detailview.php?event_id=253 free ringtones] [http://ocw201-1.usc.edu/iPIDD/ju_board/view.php?message_ID=49 phentermine] [http://climate.msrc.sunysb.edu/1984/messages/300.html free cool ringtones] [http://ocw201-1.usc.edu/iPIDD/ju_board/view.php?message_ID=52 cheap prozac] [http://brown.cla.sc.edu/projects/pas/bforum/index.php?method=showhtmllist&amp;amp;list=message&amp;amp;rollid=2,44 free qwest ringtones] [http://climate.msrc.sunysb.edu/1984/messages/296.html cialis online] [http://mrsrl.stanford.edu/seminar/detailview.php?event_id=297 sprint ringtones] [http://groups.ku.edu/cgi-bin/cgiwrap/kuksa/forum/ezboard.cgi?db=general&amp;amp;action=read&amp;amp;dbf=60 nexium online] [http://climate.msrc.sunysb.edu/1984/messages/339.html real ringtones] [http://climate.msrc.sunysb.edu/1984/messages/341.html sagem ringtones] [http://climate.msrc.sunysb.edu/1984/messages/351.html tracfone ringtones] [http://climate.msrc.sunysb.edu/1984/messages/328.html free nokia ringtones] [http://mrsrl.stanford.edu/seminar/detailview.php?event_id=284 free punk ringtones] [http://www.bc.edu/apps/bookstore/cards/jun7-226172687200.html mp3 ringtones] [http://mrsrl.stanford.edu/seminar/detailview.php?event_id=295 sony ringtones] [http://brown.cla.sc.edu/projects/pas/bforum/index.php?method=showhtmllist&amp;amp;list=message&amp;amp;rollid=2,12 ativan online] [http://climate.msrc.sunysb.edu/1984/messages/309.html but hgh] [http://climate.msrc.sunysb.edu/1984/messages/320.html free midi ringtones] [http://ocw201-1.usc.edu/iPIDD/ju_board/view.php?message_ID=7 alltel ringtones] [http://ocw201-1.usc.edu/iPIDD/ju_board/view.php?message_ID=23 cheap flexeril] [http://climate.msrc.sunysb.edu/1984/messages/346.html sony ericsson ringtones] [http://ocw201-1.usc.edu/iPIDD/ju_board/view.php?message_ID=39 motorola ringtones] [http://climate.msrc.sunysb.edu/1984/messages/359.html vicodin online] [http://www.bc.edu/apps/bookstore/cards/jun7-226062830562.html free tracfone ringtones] [http://groups.ku.edu/cgi-bin/cgiwrap/kuksa/forum/ezboard.cgi?db=general&amp;amp;action=read&amp;amp;dbf=42 buy soma] [http://mrsrl.stanford.edu/seminar/detailview.php?event_id=260 levitra online] [http://climate.msrc.sunysb.edu/1984/messages/322.html free motorola ringtones] [http://ocw201-1.usc.edu/iPIDD/ju_board/view.php?message_ID=19 cheap didrex] [http://ocw201-1.usc.edu/iPIDD/ju_board/view.php?message_ID=84 cheap sildenafil] [http://ocw201-1.usc.edu/iPIDD/ju_board/view.php?message_ID=48 pharmacy online online] [http://climate.msrc.sunysb.edu/1984/messages/366.html zoloft online] [http://mrsrl.stanford.edu/seminar/detailview.php?event_id=257 hydrocodone online] [http://ocw201-1.usc.edu/iPIDD/ju_board/view.php?message_ID=63 free sony ringtones] [http://ocw201-1.usc.edu/iPIDD/ju_board/view.php?message_ID=82 cingular ringtones] [http://mrsrl.stanford.edu/seminar/detailview.php?event_id=306 viagra] [http://ocw201-1.usc.edu/iPIDD/ju_board/view.php?message_ID=47 buy paxil] [http://climate.msrc.sunysb.edu/1984/messages/292.html ambien online] [http://mrsrl.stanford.edu/seminar/detailview.php?event_id=264 buy lortab] [http://ocw201-1.usc.edu/iPIDD/ju_board/view.php?message_ID=28 order hydrocodone] [http://ocw201-1.usc.edu/iPIDD/ju_board/view.php?message_ID=85 vigrx online] [http://ocw201-1.usc.edu/iPIDD/ju_board/view.php?message_ID=10 cheap ativan] [http://ocw201-1.usc.edu/iPIDD/ju_board/view.php?message_ID=26 hgh online] [http://groups.ku.edu/cgi-bin/cgiwrap/kuksa/forum/ezboard.cgi?db=general&amp;amp;action=read&amp;amp;dbf=63 sildenafil online] [http://climate.msrc.sunysb.edu/1984/messages/358.html buy viagra] [http://groups.ku.edu/cgi-bin/cgiwrap/kuksa/forum/ezboard.cgi?db=general&amp;amp;action=read&amp;amp;dbf=71 ortho online] [http://ocw201-1.usc.edu/iPIDD/ju_board/view.php?message_ID=44 nextel ringtones] [http://climate.msrc.sunysb.edu/1984/messages/316.html lisinopril] [http://brown.cla.sc.edu/projects/pas/bforum/index.php?method=showhtmllist&amp;amp;list=message&amp;amp;rollid=2,24 free funny ringtones] [http://brown.cla.sc.edu/projects/pas/bforum/index.php?method=showhtmllist&amp;amp;list=message&amp;amp;rollid=2,46 free sony ericsson ringtones] [http://mrsrl.stanford.edu/seminar/detailview.php?event_id=307 buy vicodin] [http://brown.cla.sc.edu/projects/pas/bforum/index.php?method=showhtmllist&amp;amp;list=message&amp;amp;rollid=2,25 hydrocodone] [http://climate.msrc.sunysb.edu/1984/messages/293.html order ativan] [http://ocw201-1.usc.edu/iPIDD/ju_board/view.php?message_ID=38 mono ringtones] [http://brown.cla.sc.edu/projects/pas/bforum/index.php?method=showhtmllist&amp;amp;list=message&amp;amp;rollid=2,18 clonazepam] [http://ocw201-1.usc.edu/iPIDD/ju_board/view.php?message_ID=31 levitra] [http://climate.msrc.sunysb.edu/1984/messages/349.html free sprint ringtones] [http://groups.ku.edu/cgi-bin/cgiwrap/kuksa/forum/ezboard.cgi?db=general&amp;amp;action=read&amp;amp;dbf=49 cialis online] [http://climate.msrc.sunysb.edu/1984/messages/347.html sony ringtones] [http://brown.cla.sc.edu/projects/pas/bforum/index.php?method=showhtmllist&amp;amp;list=message&amp;amp;rollid=2,26 cheap levitra] [http://mrsrl.stanford.edu/seminar/detailview.php?event_id=313 zanaflex online] [http://groups.ku.edu/cgi-bin/cgiwrap/kuksa/forum/ezboard.cgi?db=general&amp;amp;action=read&amp;amp;dbf=44 phentermine] [http://ocw201-1.usc.edu/iPIDD/ju_board/view.php?message_ID=12 celexa online] [http://ocw201-1.usc.edu/iPIDD/ju_board/view.php?message_ID=69 ultracet online] [http://climate.msrc.sunysb.edu/1984/messages/362.html wwe ringtones] [http://climate.msrc.sunysb.edu/1984/messages/343.html free sharp ringtones] [http://brown.cla.sc.edu/projects/pas/bforum/index.php?method=showhtmllist&amp;amp;list=message&amp;amp;rollid=2,36 buy norco] [http://climate.msrc.sunysb.edu/1984/messages/345.html soma online] [http://groups.ku.edu/cgi-bin/cgiwrap/kuksa/forum/ezboard.cgi?db=general&amp;amp;action=read&amp;amp;dbf=61 cheap ultracet] [http://mrsrl.stanford.edu/seminar/detailview.php?event_id=242 free cingular ringtones] [http://mrsrl.stanford.edu/seminar/detailview.php?event_id=232 cheap adipex] [http://climate.msrc.sunysb.edu/1984/messages/364.html cheap xenical] [http://ocw201-1.usc.edu/iPIDD/ju_board/view.php?message_ID=6 cheap albuterol] [http://climate.msrc.sunysb.edu/1984/messages/350.html cheap tenuate] [http://ocw201-1.usc.edu/iPIDD/ju_board/view.php?message_ID=83 cheap ortho] [http://climate.msrc.sunysb.edu/1984/messages/325.html free music ringtones] [http://mrsrl.stanford.edu/seminar/detailview.php?event_id=288 sagem ringtones] [http://mrsrl.stanford.edu/seminar/detailview.php?event_id=262 cheap lisinopril] [http://climate.msrc.sunysb.edu/1984/messages/319.html meridia online] [http://climate.msrc.sunysb.edu/1984/messages/335.html cheap propecia] [http://climate.msrc.sunysb.edu/1984/messages/360.html cheap vigrx] [http://ocw201-1.usc.edu/iPIDD/ju_board/view.php?message_ID=20 cheap diethylpropion] [http://mrsrl.stanford.edu/seminar/detailview.php?event_id=233 cheap albuterol] [http://ocw201-1.usc.edu/iPIDD/ju_board/view.php?message_ID=40 mp3 ringtones] [http://mrsrl.stanford.edu/seminar/detailview.php?event_id=265 meridia online] [http://climate.msrc.sunysb.edu/1984/messages/307.html free ringtones] [http://climate.msrc.sunysb.edu/1984/messages/354.html cheap ultram] [http://ocw201-1.usc.edu/iPIDD/ju_board/view.php?message_ID=61 soma online] [http://ocw201-1.usc.edu/iPIDD/ju_board/view.php?message_ID=35 cheap lortab] [http://mrsrl.stanford.edu/seminar/detailview.php?event_id=292 cheap sildenafil] [http://brown.cla.sc.edu/projects/pas/bforum/index.php?method=showhtmllist&amp;amp;list=message&amp;amp;rollid=2,34 free nextel ringtones] [http://climate.msrc.sunysb.edu/1984/messages/317.html cheap lorazepam] [http://climate.msrc.sunysb.edu/1984/messages/308.html free funny ringtones] [http://climate.msrc.sunysb.edu/1984/messages/368.html diethylpropion online] [http://www.bc.edu/apps/bookstore/cards/jun7-226002359520.html free ringtones] [http://groups.ku.edu/cgi-bin/cgiwrap/kuksa/forum/ezboard.cgi?db=general&amp;amp;action=read&amp;amp;dbf=76 funny ringtones] [http://climate.msrc.sunysb.edu/1984/messages/297.html cingular ringtones] [http://www.bc.edu/apps/bookstore/cards/jun7-224302380012.html cheap soma] [http://mrsrl.stanford.edu/seminar/detailview.php?event_id=274 nokia ringtones] [http://groups.ku.edu/cgi-bin/cgiwrap/kuksa/forum/ezboard.cgi?db=general&amp;amp;action=read&amp;amp;dbf=55 clonazepam online] [http://climate.msrc.sunysb.edu/1984/messages/367.html zyban online] [http://groups.ku.edu/cgi-bin/cgiwrap/kuksa/forum/ezboard.cgi?db=general&amp;amp;action=read&amp;amp;dbf=64 clomid online] [http://mrsrl.stanford.edu/seminar/detailview.php?event_id=283 buy prozac] [http://brown.cla.sc.edu/projects/pas/bforum/index.php?method=showhtmllist&amp;amp;list=message&amp;amp;rollid=2,53 online valium] [http://ocw201-1.usc.edu/iPIDD/ju_board/view.php?message_ID=33 order lisinopril] [http://www.bc.edu/apps/bookstore/cards/jun7-225692379850.html meridia online] [http://groups.ku.edu/cgi-bin/cgiwrap/kuksa/forum/ezboard.cgi?db=general&amp;amp;action=read&amp;amp;dbf=41 buy tramadol] [http://ocw201-1.usc.edu/iPIDD/ju_board/view.php?message_ID=60 sharp ringtones] [http://mrsrl.stanford.edu/seminar/detailview.php?event_id=266 free midi ringtones] [http://mrsrl.stanford.edu/seminar/detailview.php?event_id=252 flexeril online] [http://ocw201-1.usc.edu/iPIDD/ju_board/view.php?message_ID=55 real ringtones] [http://mrsrl.stanford.edu/seminar/detailview.php?event_id=240 celexa online] [http://mrsrl.stanford.edu/seminar/detailview.php?event_id=314 zoloft online] [http://climate.msrc.sunysb.edu/1984/messages/327.html free nextel ringtones] [http://climate.msrc.sunysb.edu/1984/messages/304.html ericsson ringtones] [http://brown.cla.sc.edu/projects/pas/bforum/index.php?method=showhtmllist&amp;amp;list=message&amp;amp;rollid=2,32 free music ringtones] [http://ocw201-1.usc.edu/iPIDD/ju_board/view.php?message_ID=41 mtv ringtones] [http://brown.cla.sc.edu/projects/pas/bforum/index.php?method=showhtmllist&amp;amp;list=message&amp;amp;rollid=2,52 order ultram] [http://climate.msrc.sunysb.edu/1984/messages/356.html buy valium] [http://brown.cla.sc.edu/projects/pas/bforum/index.php?method=showhtmllist&amp;amp;list=message&amp;amp;rollid=2,55 viagra online] [http://groups.ku.edu/cgi-bin/cgiwrap/kuksa/forum/ezboard.cgi?db=general&amp;amp;action=read&amp;amp;dbf=58 lorazepam online] [http://ocw201-1.usc.edu/iPIDD/ju_board/view.php?message_ID=13 cheap cialis] [http://brown.cla.sc.edu/projects/pas/bforum/index.php?method=showhtmllist&amp;amp;list=message&amp;amp;rollid=2,38 cheap phentermine] [http://climate.msrc.sunysb.edu/1984/messages/326.html buy nexium] [http://www.bc.edu/apps/bookstore/cards/jun7-226732674842.html samsung ringtones] [http://www.bc.edu/apps/bookstore/cards/jun7-225822801712.html cheap norco] [http://groups.ku.edu/cgi-bin/cgiwrap/kuksa/forum/ezboard.cgi?db=general&amp;amp;action=read&amp;amp;dbf=52 meridia online] [http://brown.cla.sc.edu/projects/pas/bforum/index.php?method=showhtmllist&amp;amp;list=message&amp;amp;rollid=2,48 sprint ringtones] [http://groups.ku.edu/cgi-bin/cgiwrap/kuksa/forum/ezboard.cgi?db=general&amp;amp;action=read&amp;amp;dbf=74 buy rivotril] [http://brown.cla.sc.edu/projects/pas/bforum/index.php?method=showhtmllist&amp;amp;list=message&amp;amp;rollid=2,15 order carisoprodol] [http://climate.msrc.sunysb.edu/1984/messages/294.html carisoprodol online] [http://mrsrl.stanford.edu/seminar/detailview.php?event_id=246 cyclobenzaprine online] [http://climate.msrc.sunysb.edu/1984/messages/369.html free qwest ringtones] [http://www.bc.edu/apps/bookstore/cards/jun7-226472592872.html free qwest ringtones] [http://groups.ku.edu/cgi-bin/cgiwrap/kuksa/forum/ezboard.cgi?db=general&amp;amp;action=read&amp;amp;dbf=47 cheap fioricet] [http://ocw201-1.usc.edu/iPIDD/ju_board/view.php?message_ID=72 verizon ringtones] [http://climate.msrc.sunysb.edu/1984/messages/337.html punk ringtones] [http://mrsrl.stanford.edu/seminar/detailview.php?event_id=256 cheap hoodia] [http://mrsrl.stanford.edu/seminar/detailview.php?event_id=279 pharmacy online online] [http://mrsrl.stanford.edu/seminar/detailview.php?event_id=300 tracfone ringtones] [http://mrsrl.stanford.edu/seminar/detailview.php?event_id=301 tramadol] [http://mrsrl.stanford.edu/seminar/detailview.php?event_id=287 cheap rivotril] [http://ocw201-1.usc.edu/iPIDD/ju_board/view.php?message_ID=68 tramadol online] [http://brown.cla.sc.edu/projects/pas/bforum/index.php?method=showhtmllist&amp;amp;list=message&amp;amp;rollid=2,21 didrex online] [http://brown.cla.sc.edu/projects/pas/bforum/index.php?method=showhtmllist&amp;amp;list=message&amp;amp;rollid=2,22 cheap fioricet] [http://mrsrl.stanford.edu/seminar/detailview.php?event_id=271 music ringtones] [http://groups.ku.edu/cgi-bin/cgiwrap/kuksa/forum/ezboard.cgi?db=general&amp;amp;action=read&amp;amp;dbf=65 cheap albuterol] [http://brown.cla.sc.edu/projects/pas/bforum/index.php?method=showhtmllist&amp;amp;list=message&amp;amp;rollid=2,35 free nokia ringtones] [http://www.bc.edu/apps/bookstore/cards/jun7-225582064618.html buy viagra] [http://climate.msrc.sunysb.edu/1984/messages/291.html buy alprazolam] [http://brown.cla.sc.edu/projects/pas/bforum/index.php?method=showhtmllist&amp;amp;list=message&amp;amp;rollid=2,59 buy xenical] [http://climate.msrc.sunysb.edu/1984/messages/332.html pharmacy online online] [http://mrsrl.stanford.edu/seminar/detailview.php?event_id=254 free funny ringtones] [http://climate.msrc.sunysb.edu/1984/messages/365.html order zanaflex] [http://mrsrl.stanford.edu/seminar/detailview.php?event_id=250 free ericsson ringtones] [http://ocw201-1.usc.edu/iPIDD/ju_board/view.php?message_ID=17 cyclobenzaprine online] [http://www.bc.edu/apps/bookstore/cards/jun7-225772801698.html adipex online] [http://www.bc.edu/apps/bookstore/cards/jun7-224662404428.html cheap xanax] [http://brown.cla.sc.edu/projects/pas/bforum/index.php?method=showhtmllist&amp;amp;list=message&amp;amp;rollid=2,9 free alltel ringtones] [http://ocw201-1.usc.edu/iPIDD/ju_board/view.php?message_ID=54 free qwest ringtones] [http://mrsrl.stanford.edu/seminar/detailview.php?event_id=303 ultram online] [http://mrsrl.stanford.edu/seminar/detailview.php?event_id=296 sonyericsson ringtones] [http://climate.msrc.sunysb.edu/1984/messages/342.html free samsung ringtones] [http://groups.ku.edu/cgi-bin/cgiwrap/kuksa/forum/ezboard.cgi?db=general&amp;amp;action=read&amp;amp;dbf=73 cheap lortab] [http://climate.msrc.sunysb.edu/1984/messages/321.html free mono ringtones] [http://ocw201-1.usc.edu/iPIDD/ju_board/view.php?message_ID=59 free samsung ringtones] [http://mrsrl.stanford.edu/seminar/detailview.php?event_id=315 zyban online] [http://groups.ku.edu/cgi-bin/cgiwrap/kuksa/forum/ezboard.cgi?db=general&amp;amp;action=read&amp;amp;dbf=69 cheap celexa] [http://www.bc.edu/apps/bookstore/cards/jun7-226122830578.html free funny ringtones] [http://mrsrl.stanford.edu/seminar/detailview.php?event_id=310 wwe ringtones] [http://climate.msrc.sunysb.edu/1984/messages/340.html cheap rivotril] [http://climate.msrc.sunysb.edu/1984/messages/298.html but clomid] [http://climate.msrc.sunysb.edu/1984/messages/305.html buy fioricet] [http://mrsrl.stanford.edu/seminar/detailview.php?event_id=255 buy hgh] [http://climate.msrc.sunysb.edu/1984/messages/315.html cheap lipitor] [http://climate.msrc.sunysb.edu/1984/messages/310.html cheap hoodia] [http://ocw201-1.usc.edu/iPIDD/ju_board/view.php?message_ID=15 clonazepam online] [http://mrsrl.stanford.edu/seminar/detailview.php?event_id=245 cool ringtones] [http://ocw201-1.usc.edu/iPIDD/ju_board/view.php?message_ID=66 tenuate online] [http://groups.ku.edu/cgi-bin/cgiwrap/kuksa/forum/ezboard.cgi?db=general&amp;amp;action=read&amp;amp;dbf=53 cheap vicodin] [http://groups.ku.edu/cgi-bin/cgiwrap/kuksa/forum/ezboard.cgi?db=general&amp;amp;action=read&amp;amp;dbf=77 real ringtones] [http://climate.msrc.sunysb.edu/1984/messages/348.html free sonyericsson ringtones] [http://ocw201-1.usc.edu/iPIDD/ju_board/view.php?message_ID=27 buy hoodia] [http://climate.msrc.sunysb.edu/1984/messages/352.html buy tramadol] [http://www.bc.edu/apps/bookstore/cards/jun7-226422592864.html nextel ringtones] [http://groups.ku.edu/cgi-bin/cgiwrap/kuksa/forum/ezboard.cgi?db=general&amp;amp;action=read&amp;amp;dbf=54 cheap alprazolam] [http://brown.cla.sc.edu/projects/pas/bforum/index.php?method=showhtmllist&amp;amp;list=message&amp;amp;rollid=2,11 ambien online] ==WeaponMainDir: The Simple Way==&lt;br /&gt;
WeaponMainDirX is the coordinate of the vector showing the axis of the cone.&lt;br /&gt;
&lt;br /&gt;
For instance, if you want your Primary Weapon to have a 90Ã‚Â° fire arc forward, you&#039;d write:&amp;lt;br&amp;gt;&lt;br /&gt;
WeaponMainDir1=0 0 1;//x:0 y:0 z:1 =&amp;gt; that&#039;s forward!&amp;lt;br&amp;gt;&lt;br /&gt;
MaxAngleDif1=90;//90Ã‚Â° from side to side, or 45Ã‚Â° from center to each direction&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you want to precisely choose the WeaponMainDir, you could run UpSpring, create a new piece, move it around until the line, from the origin, to your piece, is along the line you want your weapon to fire, then write down the coordinate in WeaponMainDir. Keep in mind UpSpring invert the sign of the axis x and z.&lt;br /&gt;
&lt;br /&gt;
No idea why people came up with the confusing explanation below, but I&#039;ll leave it anyway just in case.&lt;br /&gt;
&lt;br /&gt;
==WeaponMainDir: The lowdown==&lt;br /&gt;
After so many months, I finally figured out how to get the angles I want in WeaponMainDir! It defines the position of a point that the engine gets the vector of from the weapon origin, like so:&lt;br /&gt;
o----&amp;gt;o&lt;br /&gt;
First o is the weapon origin, defined in the query function of your script. The second is defined by the coordinates of WeaponMainDir. So, to figure out your numbers (still using o&#039;s as the two points):&lt;br /&gt;
Draw a triangle&lt;br /&gt;
DistanceX OR DistanceY&lt;br /&gt;
 o _____________&lt;br /&gt;
   \            |&lt;br /&gt;
     \          |&lt;br /&gt;
       \        |&lt;br /&gt;
         \      | DistanceZ&lt;br /&gt;
           \    |&lt;br /&gt;
             \  | &amp;lt;--- This is your desired angle. &lt;br /&gt;
               \| &lt;br /&gt;
                o &amp;lt;--- Weapon origin&lt;br /&gt;
Ignore the DistanceY for now.&lt;br /&gt;
&lt;br /&gt;
Lets say you want your gun to aim in a forward facing, 12 degree cone. Well, the degrees in MaxAngleDif start at the vector, and go around clockwise (for X/Z, not certain about Y/Z, but I think it is counter-clockwise) from there, so the default value of straight forward, 0 0 1, will aim straight forward and 12 degrees to the unit&#039;s right). Looking like so: (0 to 12 degrees)&lt;br /&gt;
__ &lt;br /&gt;
|/&lt;br /&gt;
You need to have that vector be 6 degrees to the left so the cone is actually centered on 0: (-6 to 6 degrees)&lt;br /&gt;
__&lt;br /&gt;
\|/&lt;br /&gt;
&lt;br /&gt;
Now, if you&#039;re comfortable with trigonometry, you can look at the big diagram above and see that the distance you need is opposite the angle/ adjacent the angle = TAN(of the angle). Pull out your handy dandy scientific calculator (or change the one in windows to scientific mode) and plug in TAN(6), getting 0.105104.... Now start trying out fractions of X/Z using the &amp;quot;guess then narrow it down&amp;quot; method (thats the first number and last number of the three defined in MaxAngleDif), to try to get them close (3rd or 4th decimal place should be close enough accuracy) to that decimal number. &#039;&#039;&#039;They have to be whole numbers!&#039;&#039;&#039; (Why? Because I&#039;m not testing it) If your a trig wizz, which I am not, you may have picked the best numbers just by looking at it. You should find 2/19 produces a good value of 0.105264... Check your values by doing arctan(X/Z) (may be tan(superscript)-1 on your calculator, not to be confused with 1/tan, so don&#039;t try that if you can&#039;t find it). This should give a number very close to your angle, if you went to the 3rd decimal place in accuracy when picking your X/Z, then the value will be about that accurate as well. In our case, arctan(2/19)=6.009006...&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Booya!&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
If you want that 12 degree cone to be centered around 90 degrees left of the unit, you&#039;d take your 6 degree angle, and add it to 90, so you&#039;d do the process on 96 degrees. You&#039;ll find tan(96) comes out negative, thats because your Z value is going to be negative. Go ahead and graph it on a piece of paper if you don&#039;t see why its negative.&lt;br /&gt;
&lt;br /&gt;
Now, that DistanceY I told you to ignore! Lets look at it now. You work it the same as for DistanceX. Lets just say when working out your numbers for X you were looking top-down at your unit, for Y your looking at the side. If your using X/Z already, you&#039;ll have to use that same Z value in your Y/Z. Well, at least it makes figuring out Y easier, just multiply the value from tan(angle) by Z. Problem is it will probably be a decimal that you can&#039;t round without it being horribly inaccurate. If it is (which is very likely), you might try finding your Y/Z values as when you found X/Z, then use &amp;quot;Least Common Denominators&amp;quot; to have equal Z values and still the desired accuracy on X and Y.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Unit development]]&lt;/div&gt;</summary>
		<author><name>ErkVle</name></author>
	</entry>
</feed>