some advanced maths conversion..
#1

pawn Код:
if(a <= 5.0 || a >= 355.0) x += 0.645;
                    else if(a <= 10.0) x += 0.645 + (floatsin(-a, degrees) / 0.62);
                    else if(a <= 20.0) x += 0.645 + (floatsin(-a, degrees) / 0.68);
                    else if(a <= 30.0) x += 0.645 + (floatsin(-a, degrees) / 0.69);
                    else if(a <= 40.0) x += 0.645 + (floatsin(-a, degrees) / 0.65);
                    else if(a <= 44.0) x += 0.645 + (floatsin(-a, degrees) / 0.62);
                    else if(a <= 48.0) x += 0.645 + (floatsin(-a, degrees) / 0.60);
                    else if(a <= 50.0) x += 0.645 + (floatsin(-a, degrees) / 0.58);
                    else if(a <= 60.0) x += 0.645 + (floatsin(-a, degrees) / 0.63), y -= 0.3;
what i am trying to accomplish
im trying to get at each angle, it will create a pickup at the minigun (at the bullet holders or w/e, in this picture it shows at angle 40.0 is working right, but after 70 i cant seem to get it to work, isn't there some kind of way to do it in a few lines with floatsin or something?

x offset at 0.0 - 0.645
y offset at 0.0 - 1.42
z offset at - -0.30 + 0.07

Picture:
Reply


Messages In This Thread
some advanced maths conversion.. - by Donya - 01.05.2011, 14:39
Re: some advanced maths conversion.. - by Backwardsman97 - 01.05.2011, 15:19
Re: some advanced maths conversion.. - by Donya - 01.05.2011, 15:22
Re: some advanced maths conversion.. - by SchurmanCQC - 01.05.2011, 15:25
Re: some advanced maths conversion.. - by Donya - 01.05.2011, 15:31
Re: some advanced maths conversion.. - by Backwardsman97 - 01.05.2011, 15:45
Re: some advanced maths conversion.. - by Donya - 01.05.2011, 15:47
Re: some advanced maths conversion.. - by Donya - 01.05.2011, 21:10
Re: some advanced maths conversion.. - by Donya - 02.05.2011, 14:30
Re: some advanced maths conversion.. - by Donya - 09.05.2011, 00:16

Forum Jump:


Users browsing this thread: 1 Guest(s)