|
1 registered members (Grant),
999
guests, and 2
spiders. |
|
Key:
Admin,
Global Mod,
Mod
|
|
|
A few small problems
#73441
05/07/06 13:35
05/07/06 13:35
|
Joined: Apr 2006
Posts: 265
vartan_s
OP
Member
|
OP
Member
Joined: Apr 2006
Posts: 265
|
By now your asking why I didn't post this in the physics section... well, if I did, the einsteins there would call me a noob (im not saying im not) but here at least there are people willing to help people like me.
Ok, I'm using the A6 engine, and I'm wondering, how do I create bullets for my gun. It shouldn't be in the level before hand. Should I use create_ent?
2nd, when the bullet actually hits the enemy, how do I make it so that it then takes away from his health. I've heard about trace, but is that what I should use? And how do I make it so that where is hits a wall it creates a bullet hole? I know I should use a sprite, but how do I do it?
And 3rd, I have my rigged and animated model? How can I make it so that I can do both headshots and normal shots, especially since its the same model?
Thanks!
|
|
|
Re: A few small problems
[Re: Xarthor]
#73443
05/07/06 13:58
05/07/06 13:58
|
Joined: Apr 2006
Posts: 265
vartan_s
OP
Member
|
OP
Member
Joined: Apr 2006
Posts: 265
|
Quote:
1st: yes use ent_create 2nd: take a look at events to find out with what the bullet collided 3rd: place a vertex in the head, leg and so on (for each hitzone one) and check the distance from the bullet when it hits a model to every vertex, if the head vertex is closest, then do what you want to happen if he gets a head shot.
Thanks, but for the 2nd one I don't understand... how do you do that, and for the 3rd, how do you place a vertex?
|
|
|
Re: A few small problems
[Re: Alberto]
#73446
05/09/06 13:08
05/09/06 13:08
|
Joined: Apr 2006
Posts: 265
vartan_s
OP
Member
|
OP
Member
Joined: Apr 2006
Posts: 265
|
I've already gone through the tutorials, it's just that they don't teach you anything. Anyway, I've figured out my events:
using event_entity for bullet collision with enemy, then I'll use the 'you' pointer to decrease his skill value (health).
But I don't know how to make collision not with player entities, but with the level. I've tried event_block but that doesn't work. It doesn't even make 'event_block' brown like it does with others. (I'm using the A6 engine).
Another thing: How do I make bullets not collide with each other? Passable will stop them colliding with everything.
And how do I refer to vertexes in c-script and how do I calculate the distance?
And alberto, could you give me a link to AUM 20? I'd like to have a look.
Thanks in advance.
Last edited by vartan_s; 05/09/06 13:11.
|
|
|
Re: A few small problems
[Re: vartan_s]
#73447
05/09/06 13:19
05/09/06 13:19
|
Joined: Jun 2004
Posts: 2,234 Wisconsin USA
FoxHound
Expert
|
Expert
Joined: Jun 2004
Posts: 2,234
Wisconsin USA
|
Get out your manual, it will teach you more then tutorials will. Tutorials will then show you ways to use what is in the manual.
The AUM is the "magazine" link at the bottom of the forum page.
--------------------- There is no signature here.
QUIT LOOKING FOR ONE!
|
|
|
Re: A few small problems
[Re: FoxHound]
#73448
05/09/06 13:34
05/09/06 13:34
|
Joined: Apr 2006
Posts: 265
vartan_s
OP
Member
|
OP
Member
Joined: Apr 2006
Posts: 265
|
Quote:
Get out your manual, it will teach you more then tutorials will. Tutorials will then show you ways to use what is in the manual.
The AUM is the "magazine" link at the bottom of the forum page.
Yea it's how I figured the events out. The problem is the descriptions are a bit vague.
And the event_block problem isnt mentioned in the manual. I'll try to figure out the one about vertexes, but in the meantime I would appreciate some help. 
|
|
|
Re: A few small problems
[Re: vartan_s]
#73449
05/10/06 13:06
05/10/06 13:06
|
Joined: Apr 2006
Posts: 265
vartan_s
OP
Member
|
OP
Member
Joined: Apr 2006
Posts: 265
|
Ok never mind, I've figured out my vertexes. However, I can't use event_type to spot event_block, so I need help. Also I think I have a way to stop a way from bullets colliding. I set one of the bullet skills to 2 (1 for enemies, 0 for other) so when another bullet collides with it, itll check if the skill is 2, and then if it is itll continue on its way. The only thing is, I don't know how itll go on its way if the other bullet is in its way. Should I give each bullet a small boost? Maybe I should let them collide? It will rarely happen anyway, and even if it does it is still be realistic. Only problem is, I'll have trouble creating multiple pellets for a shotgun 
Last edited by vartan_s; 05/10/06 13:08.
|
|
|
Moderated by mk_1, Perro, rayp, Realspawn, Rei_Ayanami, rvL_eXile, Spirit, Superku, Tobias, TSG_Torsten, VeT
|