|
2 registered members (steyr, alibaba),
534
guests, and 4
spiders. |
|
Key:
Admin,
Global Mod,
Mod
|
|
|
Special question about shooting
#335749
07/30/10 13:00
07/30/10 13:00
|
Joined: Dec 2008
Posts: 1,218 Germany
Rackscha
OP
Serious User
|
OP
Serious User
Joined: Dec 2008
Posts: 1,218
Germany
|
HI, Well i have a special question.
Lets say i have a c_scan, that scans with a ball shape.
Now imagen it finds a suitable entity and now whants to check if its possible to shoot it.
THat means, even if a bit of the entity(if its behind a wall for example) is vissible, it should detect it as hitable.
Someone an idea how to do that WITHOUT using using lots of super massive traces?
Greets Rackscha
Last edited by Rackscha; 07/30/10 13:01.
MY Website with news of my projects: (for example my current Muliplayer Bomberman, GenesisPrecompiler for LiteC and TileMaster, an easy to use Tile editor) Sparetime-Development
|
|
|
Re: Special question about shooting
[Re: Helghast]
#335755
07/30/10 13:27
07/30/10 13:27
|
Joined: Dec 2008
Posts: 1,218 Germany
Rackscha
OP
Serious User
|
OP
Serious User
Joined: Dec 2008
Posts: 1,218
Germany
|
Well that WOULD work..but depending on the vertex num it'll eat up performance, and just displaying 200textured blocks results sometimes in FPS jigging from 60 to 59 to 60fps
(THe scanning needs to be done 2/3 times a second for up to 8 players)
GReets Rackscha
MY Website with news of my projects: (for example my current Muliplayer Bomberman, GenesisPrecompiler for LiteC and TileMaster, an easy to use Tile editor) Sparetime-Development
|
|
|
Re: Special question about shooting
[Re: Rackscha]
#335758
07/30/10 13:32
07/30/10 13:32
|
Joined: Oct 2007
Posts: 5,209 İstanbul, Turkey
Quad
Senior Expert
|
Senior Expert
Joined: Oct 2007
Posts: 5,209
İstanbul, Turkey
|
instead of a full vertex trace loop, you could also run aroun 10-12 loops from the side facing to the player, on the bounding box plane, it would be less accurate but should work in most cases
3333333333
|
|
|
Re: Special question about shooting
[Re: Quad]
#335759
07/30/10 13:34
07/30/10 13:34
|
Joined: Dec 2008
Posts: 1,218 Germany
Rackscha
OP
Serious User
|
OP
Serious User
Joined: Dec 2008
Posts: 1,218
Germany
|
so you mean tracing from the scan position to the player boundingbox to see if its hit?(boundingbox is absolutely accurate enough for my purpose^^)
MY Website with news of my projects: (for example my current Muliplayer Bomberman, GenesisPrecompiler for LiteC and TileMaster, an easy to use Tile editor) Sparetime-Development
|
|
|
Re: Special question about shooting
[Re: bart_the_13th]
#335764
07/30/10 13:38
07/30/10 13:38
|
Joined: Dec 2008
Posts: 1,218 Germany
Rackscha
OP
Serious User
|
OP
Serious User
Joined: Dec 2008
Posts: 1,218
Germany
|
) Have Com 2) Cant program shadesr(yet) 3) The entitys may have different skins for different players  Have an idea now: We have an entity found, so we shoot directly on it, and 3/4 times with a little angle offset to the left/right. That should do the trick. Just 4/5 traces put should work(or even just 3 when using a box volume trace). Greets Rackscha
Last edited by Rackscha; 07/30/10 13:41.
MY Website with news of my projects: (for example my current Muliplayer Bomberman, GenesisPrecompiler for LiteC and TileMaster, an easy to use Tile editor) Sparetime-Development
|
|
|
|