Gamestudio Links
Zorro Links
Newest Posts
loading historical data 1st time
by AndrewAMD. 04/14/23 12:54
Trade at bar open
by juanex. 04/13/23 19:43
Bug in Highpass2 filter
by rki. 04/13/23 09:54
Adding Limit Orders For IB
by scatters. 04/11/23 16:16
FisherN
by rki. 04/11/23 08:38
AUM Magazine
Latest Screens
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Hecknex World
Who's Online Now
1 registered members (Grant), 999 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
rki, FranzIII, indonesiae, The_Judge, storrealba
18919 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
A few small problems #73441
05/07/06 13:35
05/07/06 13:35
Joined: Apr 2006
Posts: 265
V
vartan_s Offline OP
Member
vartan_s  Offline OP
Member
V

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: vartan_s] #73442
05/07/06 13:48
05/07/06 13:48
Joined: Jul 2002
Posts: 4,436
Germany, Luebeck
Xarthor Offline
Expert
Xarthor  Offline
Expert

Joined: Jul 2002
Posts: 4,436
Germany, Luebeck
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.

Re: A few small problems [Re: Xarthor] #73443
05/07/06 13:58
05/07/06 13:58
Joined: Apr 2006
Posts: 265
V
vartan_s Offline OP
Member
vartan_s  Offline OP
Member
V

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: vartan_s] #73444
05/07/06 14:01
05/07/06 14:01
Joined: Jul 2002
Posts: 4,436
Germany, Luebeck
Xarthor Offline
Expert
Xarthor  Offline
Expert

Joined: Jul 2002
Posts: 4,436
Germany, Luebeck
2nd: open up your manual (.chm file) and typ in "event" (without the " ").
Take a look at the explanations there.

3rd: open MED, load your model, go to "vertex mode", and then "create vertex"

Maybe you should start with some simple tutorials to get into WED,MED and SED and how to write actions,functions and all that stuff.

Re: A few small problems [Re: Xarthor] #73445
05/07/06 18:38
05/07/06 18:38
Joined: Oct 2003
Posts: 246
A
Alberto Offline
Member
Alberto  Offline
Member
A

Joined: Oct 2003
Posts: 246
you can also have a look at AUM 20 - Head shots, belly shots or leg shots

Re: A few small problems [Re: Alberto] #73446
05/09/06 13:08
05/09/06 13:08
Joined: Apr 2006
Posts: 265
V
vartan_s Offline OP
Member
vartan_s  Offline OP
Member
V

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 Offline
Expert
FoxHound  Offline
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
V
vartan_s Offline OP
Member
vartan_s  Offline OP
Member
V

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
V
vartan_s Offline OP
Member
vartan_s  Offline OP
Member
V

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.

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1