1

Topic: Bullet-to-bullet collision

Anyone know how to make bullets collide or which file I should modify? It would help me when making my jedi mod. I specifically want to make it so that a laser can block another laser. If you help me, I'll credit you. Thanks.

if($poster["intelligence"] == $intelligence["idiot"])
        deny_post($poster);

2

Re: Bullet-to-bullet collision

gs_server.cpp
in projectile section

3

Re: Bullet-to-bullet collision

Thank you. I'll have a look later.

if($poster["intelligence"] == $intelligence["idiot"])
        deny_post($poster);

4

Re: Bullet-to-bullet collision

What function should I use to check if a bullet hit another one? I'm not too clear on this one.

if($poster["intelligence"] == $intelligence["idiot"])
        deny_post($poster);

5

Re: Bullet-to-bullet collision

I don't know you might create a function that test if the bullet intersect an other bullet like
intersect_player(prevpos, curpos, 6.0f, curpos, powner);
and then add it to the end condition.

6

Re: Bullet-to-bullet collision

So I should write:

if(intersect_player(prevpos, curpos, 6.0f, curpos, powner))
{
[Laser rebound code here]
}

if($poster["intelligence"] == $intelligence["idiot"])
        deny_post($poster);

7

Re: Bullet-to-bullet collision

no, you would have to write a new function to check if bullets collide. intersect_player are made for players...

Used to be very active waay back

8

Re: Bullet-to-bullet collision

I wish I knew c++, it would make for much less awkward moments.
If you don't mind, could you explain how to do that to me?

if($poster["intelligence"] == $intelligence["idiot"])
        deny_post($poster);

9

Re: Bullet-to-bullet collision

i think Bullet-to-bullet collision would be cool cool
http://www.bildhoster.de/uploads/24.05.2008_17:45:34_jaja.gif big_smile

Please use an english signature //heinrich5991

10 (edited by Sub Focus 2008-05-24 17:19:14)

Re: Bullet-to-bullet collision

0³7 wrote:

i think Bullet-to-bullet collision would be cool cool
http://www.bildhoster.de/uploads/24.05. … 4_jaja.gif big_smile

Nicely done smile An example how it must be done.

11 (edited by 0³7 2008-05-24 17:23:01)

Re: Bullet-to-bullet collision

big_smile thanks
i have notething to do lol

Please use an english signature //heinrich5991

12

Re: Bullet-to-bullet collision

I'd do it for my jedi mod, if I knew how.

if($poster["intelligence"] == $intelligence["idiot"])
        deny_post($poster);

13

Re: Bullet-to-bullet collision

Why do you ask which file you should modify, if you don't have an idea what to modify once you have been shown the file...

14

Re: Bullet-to-bullet collision

I <3 THE ANIMATION


Incredibly cute... aaah.. that made my day.

Thanks 0³7.

*** JUSTICE ALWAYS WINS ***

15

Re: Bullet-to-bullet collision

Well, Ideally I thought that once I have been pointed to the file, I would figure it out.

if($poster["intelligence"] == $intelligence["idiot"])
        deny_post($poster);

16

Re: Bullet-to-bullet collision

nice to here that Captain AMN  ^^

Please use an english signature //heinrich5991

17

Re: Bullet-to-bullet collision

i dont like the idea of bullet colision
pehrhaps it wpuld be kewl by the rpcket luncher but not by the pistol

18

Re: Bullet-to-bullet collision

Look, all I want is an explanation of how to check whether or not a laser intersected another laser.

if($poster["intelligence"] == $intelligence["idiot"])
        deny_post($poster);

19

Re: Bullet-to-bullet collision

I don't this thing idea would add much to the game.

20

Re: Bullet-to-bullet collision

<.<
That's why I don't want to add it. I want to do this in a mod. This topic has gone so off topic, that people don't know why it started in the first place. 037 and his admirers, go make your own topic and discuss your animations. Those who want to debate the merits of bullet collision, likewise. This is MY topic. If you can help, please do. If not, leave.

if($poster["intelligence"] == $intelligence["idiot"])
        deny_post($poster);

21

Re: Bullet-to-bullet collision

Sorry, i like the animation, but the idea of bullet to bullet collision is stupid IMHO. It would ruin the game in some aspects and what would be the goal of a collision? Absolutely unnecessary..

*** JUSTICE ALWAYS WINS ***

22

Re: Bullet-to-bullet collision

You'll see the goal when you see the mod. Which won't be soon at this rate.

if($poster["intelligence"] == $intelligence["idiot"])
        deny_post($poster);

23

Re: Bullet-to-bullet collision

made something like that now. the grenades explode on every collision. if no explosive bullets collide they simply disappear. look here: http://www.teeworlds.com/forum/viewtopic.php?id=1636

24

Re: Bullet-to-bullet collision

Thanks, I'll have a look.

if($poster["intelligence"] == $intelligence["idiot"])
        deny_post($poster);