0 registered members (),
1,209
guests, and 0
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Re: c_trace and shooting projectile help
[Re: immolat3]
#168168
11/22/07 17:05
11/22/07 17:05
|
Joined: Oct 2004
Posts: 4,134 Netherlands
Joozey
Expert
|
Expert
Joined: Oct 2004
Posts: 4,134
Netherlands
|
Yes it's possible, but not very good for your framerate. But I guess you're happy when it works . It's up to you how you make it. For c_trace, trace from bullet to a position just in front of the bullet. When an entity is detected, the entity will be put into the 'you' pointer. You can then use the you for identifying the player.
Click and join the 3dgs irc community! Room: #3dgs
|
|
|
Re: c_trace and shooting projectile help
[Re: Joozey]
#168169
11/22/07 18:32
11/22/07 18:32
|
Joined: Nov 2007
Posts: 73
immolat3
OP
Junior Member
|
OP
Junior Member
Joined: Nov 2007
Posts: 73
|
hmm, first let me say thanks for all your help. people like you make this worth doing and incase you wanted to now, the reason i know little about this is because i am not a programmer, only web programming actually, and im doing this for a class at my college, Drexel U., and the person we had doing the coding basically decided he wanted to fail and not show up // help at all, soooo here i am trying to slide through this heh. someone had to do it i guess.
anyhow, would it be possible in the action BulletFly, to create some sort of explosion radius type thing like someone mentioned earlier and i have functions that get the players X,Y,Z, etc. so if the playerX,Y,Z is inside the "explosion radius" they would get damaged?
|
|
|
Re: c_trace and shooting projectile help
[Re: immolat3]
#168172
11/22/07 19:29
11/22/07 19:29
|
Joined: Oct 2004
Posts: 4,134 Netherlands
Joozey
Expert
|
Expert
Joined: Oct 2004
Posts: 4,134
Netherlands
|
No problem for the help and it's good to know our help is appreciated . I know what you mean, regulary had to pick up the programming stuff (and often alot more) within school projects myself as well because others failed to do their work. Just kick them from the project and move along hehe. Yes it's possible to do such a thing. There are several ways for accomplishing this as well. The simpliest way would be to use vec_dist, but that does not have accurate collision detection. You can try with this first though at least to get it to work. If you want to make accurate collision for the bullets (e.g. for headshots) maybe try out ENABLE_TRIGGER from c_move. I haven't tried something the like, but I would just think out some different methods and try what works best.
Click and join the 3dgs irc community! Room: #3dgs
|
|
|
|