SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Filterscripts > Includes

Thread Tools Display Modes
Old 04/04/2012, 10:32 PM   #11
Join Date: Nov 2010
Posts: 725
Reputation: 41
Default Re: [INC]Trajectory - V 0.1 || By ~Cueball~

It seems very nice, and well organized thread. Good job, Cueball.
Toreno is offline   Reply With Quote
Old 05/04/2012, 03:28 AM   #12
Ballu Miaa
Ballu Miaa's Avatar
Join Date: Apr 2010
Location: New Delhi,India
Posts: 1,849
Reputation: 323
Default Re: [INC]Trajectory - V 0.1 || By ~Cueball~

Looks good but seems real advance to me. What else can i script using this include?

I will take half payment as an advance to script for you.
Click here to request my Scripting Service.

Ballu Miaa is offline   Reply With Quote
Old 05/04/2012, 04:53 AM   #13
Huge Clucker
Tannz0rz's Avatar
Join Date: Dec 2007
Posts: 344
Reputation: 35
Default Re: [INC]Trajectory - V 0.1 || By ~Cueball~

Originally Posted by [HLF]Southclaw View Post
Hey, I just decided to use this again (I did a while ago but didn't understand trajectory enough)
Now I'm back with more knowledge!

But, I can't seem to find the rotation angle?
I'm assuming 'angle' is the angle of elevation, but I can't see where I input the angle of rotation in your example.

If there is none, then how can I change the direction of my flight path?

Say I want to set an array of paths in the direction 46 degrees from north, angled 60 degrees in the air and a heading velocity of 15 m/s and to land at a base of -5.0...
I hope you realize you've made people think that this is a recent addition to the forum! Haha! Flawless bump indeed.

Anyways, I've not given much look into the matter but I'm fairly certain you'd need something along the lines of:
pawn Code:
const NUM_ELEMENTS = 30; // This can be any arbitrary number, it merely represents the number of "steps" into the trajectory. For a smoother transition, a larger number of steps is ideal.


GetFlightData(-5.0, 15.0, 60.0, data);

for(new i = 0; i < sizeof(data); ++i)
    CreateObject(1337, x + (data[i][FLIGHT_DISTANCE] * floatsin(-46.0, degrees)), y + (data[i][FLIGHT_DISTANCE] * floatcos(-46.0, degrees)), z + data[i][FLIGHT_HEIGHT], 0.0, 0.0, 0.0);

Hopefully I've helped some!

Last edited by Tannz0rz; 05/04/2012 at 05:25 AM.
Tannz0rz is offline   Reply With Quote
Old 05/04/2012, 06:54 AM   #14
Huge Clucker
clavador's Avatar
Join Date: Jun 2007
Location: Argentina
Posts: 220
Reputation: 71
Default Re: [INC]Trajectory - V 0.1 || By ~Cueball~

Interesting to make throwable weapons or a golf minigame, haha.
clavador is offline   Reply With Quote

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Include] [INC] Zones By ~Cueball~ - V 2.0 Cueball Includes 37 29/12/2018 02:03 AM

All times are GMT. The time now is 05:58 PM.

Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.