ColAndreas
#1

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

How can I do that?
Reply
#2

Help.
Reply
#3

With good calculations you can do that without ColAndreas
Reply
#4

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.
Reply
#5

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

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
Reply
#7

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

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.
Reply
#9

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

How?
Reply
#11

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.
Reply
#12

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.
Reply
#13

Help+
Reply
#14

....
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)