|
3 registered members (Yopachi, Ayumi, 1 invisible),
3,999
guests, and 5
spiders. |
|
Key:
Admin,
Global Mod,
Mod
|
|
|
Re: bullets should not collide
[Re: vlau]
#127905
05/07/07 11:32
05/07/07 11:32
|
Joined: Jul 2004
Posts: 52 Vienna
Hawk
OP
Junior Member
|
OP
Junior Member
Joined: Jul 2004
Posts: 52
Vienna
|
sry has been a while since my last post.. thanks for your ideas, i am satisfied with my current result although they are still colliding from time to time. But nevertheless my main issue has been solved because the bullets don't create any bulletholes and dust anymore if they collide with each other. I didn't think about pointers, so thanks for the hint tompo  I didn't tried everything because I don't want to change my shooting script anymore. The game isn't a fps anyways, so the current script is ok for me. I will occupy myself with the colliding when i have more time. For now i just want to get things working. If the bullets collide they just remove themselfes and my current explanation for missing bullets is that they are duds 
Commcercial A6.60
|
|
|
Re: bullets should not collide
[Re: Hawk]
#127906
05/07/07 12:56
05/07/07 12:56
|
Joined: Apr 2006
Posts: 265
vartan_s
Member
|
Member
Joined: Apr 2006
Posts: 265
|
"still colliding from time to time". So sometimes your shotgun shoots 8 bullets, sometimes 5? Not a good idea in my opinion. I had this problem a while ago, I tried making a while loop to distribute different push values to the bullets but this didn't work as smaller push values still collided with larger push values. Therefore, I recommend giving bullets a skill value of 1, with other objects being 0, and on collision check if the skill value of the thing it collided with is 1 or 0. If it is 0, remove it and do damage, smoke etc. If it is 1, do nothing; the bullets will then pass each other  . Works fine for me. c_trace also works, but then you can't do tracers and stuff like that, and also the bullet will always reach the target immediately.
|
|
|
Re: bullets should not collide
[Re: vartan_s]
#127907
05/07/07 21:31
05/07/07 21:31
|
Joined: Mar 2006
Posts: 2,503 SC, United States
xXxGuitar511
Expert
|
Expert
Joined: Mar 2006
Posts: 2,503
SC, United States
|
use a regulated c_trace()...
Same as above, but do'nt do the full trace, just from units of distance at a time...
xXxGuitar511 - Programmer
|
|
|
|