SA-MP Forums Archive
ColAndreas - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: ColAndreas (/showthread.php?tid=608821)



ColAndreas - Max_Andolini - 05.06.2016

https://www.youtube.com/watch?v=kXb7RGnEtOE

How can I do that?


Re: ColAndreas - Max_Andolini - 05.06.2016

Help.


Re: ColAndreas - ilijap - 05.06.2016

With good calculations you can do that without ColAndreas


Re: ColAndreas - Crayder - 05.06.2016

Btw, you know bumping within 24 hours of your last post is against the rules? You just did it in 6.

And thanks for opening a topic for this.

Have a look at these:
http://pastebin.com/8jGtPHhq
https://sampforum.blast.hk/showthread.php?tid=446286
https://sampforum.blast.hk/showthread.php?tid=606413

Now go read the ColAndreas thread to learn how to do raycasts.

Boom, that's it. Throw together some simple physics and use raycasts to stop the object on the ground and make sure the object doesn't hit a wall. It's easy. Hell, you could even make it bounce off of a wall.


Re: ColAndreas - Gammix - 05.06.2016

There is an example of throwing a desert eagle in the physics include.


Re: ColAndreas - Max_Andolini - 05.06.2016

Quote:
Originally Posted by Gammix
View Post
There is an example of throwing a desert eagle in the physics include.
This is bugged. Weapon staying in air


Re: ColAndreas - CodeStyle175 - 05.06.2016

you can also use for that mapandreas, no need for colandreas.


Re: ColAndreas - Crayder - 06.06.2016

Quote:
Originally Posted by CodeStyle175
View Post
you can also use for that mapandreas, no need for colandreas.
1. MapAndreas doesn't detect walls.
2. MapAndreas isn't as accurate as ColAndreas
3. ColAndreas has functions that can align the gun with the ground
4. ColAndreas has functions that can be used to make the gun bounce off of walls
5. Many more reasons.

MapAndreas is outdated bro, ColAndreas is god when compared to MapAndreas.


Re: ColAndreas - bybaran - 06.06.2016

How can i get if object touch on ground with ColAndreas?


Re: ColAndreas - bybaran - 07.06.2016

How?


Re: ColAndreas - Crayder - 07.06.2016

CA_RayCastLine from the object's position to a small distance below the object. If the function returns anything other than 0 then it's close to the ground.

If you want the object to align to the ground, use CA_RayCastLineAngle and use the angles retrieved for the object rotation.


Re: ColAndreas - bybaran - 08.06.2016

Sorry Crayder but I'am not understand ColAndreas functions in no way.Can you please give me an example code for this? I know it is a simple function but I'am not understand.


Re: ColAndreas - bybaran - 09.06.2016

Help+


Re: ColAndreas - Max_Andolini - 12.06.2016

....