05.06.2016, 10:38
ColAndreas
05.06.2016, 16:38
Help.
05.06.2016, 16:54
With good calculations you can do that without ColAndreas
05.06.2016, 17:03
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.
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.
05.06.2016, 18:20
There is an example of throwing a desert eagle in the physics include.
05.06.2016, 18:49
(
Last edited by Max_Andolini; 06/06/2016 at 02:29 PM.
)
05.06.2016, 20:52
you can also use for that mapandreas, no need for colandreas.
06.06.2016, 04:15
Quote:
you can also use for that mapandreas, no need for colandreas.
|
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.
06.06.2016, 06:11
How can i get if object touch on ground with ColAndreas?
07.06.2016, 06:40
How?
07.06.2016, 07:19
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.
If you want the object to align to the ground, use CA_RayCastLineAngle and use the angles retrieved for the object rotation.
08.06.2016, 11:45
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.
09.06.2016, 05:54
Help+
12.06.2016, 09:14
(
Последний раз редактировалось Max_Andolini; 13.06.2016 в 13:17.
)
....
« Next Oldest | Next Newest »
Users browsing this thread: 1 Guest(s)