Gamestudio Links
Zorro Links
Newest Posts
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Trading Journey
by 7th_zorro. 04/27/24 04:42
Help with plotting multiple ZigZag
by M_D. 04/26/24 20:03
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
M1 Oversampling
by jcl. 04/26/24 11:12
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
Eigenwerbung
by jcl. 04/26/24 11:08
MT5 bridge not working on MT5 v. 5 build 4160
by EternallyCurious. 04/25/24 20:49
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AndrewAMD, TipmyPip), 747 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
wandaluciaia, Mega_Rod, EternallyCurious, howardR, 11honza11
19049 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Weapon shoot... #99201
11/19/06 07:49
11/19/06 07:49
Joined: Jun 2005
Posts: 734
Under your couch
Silent_Assassin Offline OP
Developer
Silent_Assassin  Offline OP
Developer

Joined: Jun 2005
Posts: 734
Under your couch
Hey,

I have a weapon...but im having trouble trying to get it to shoot...i also have an animation for the weapon that i need to play everytime it shoots..could someone please help me with this..

and also while im here how many poly's should a weapon be roughly ?


Visit us at www.m-tec-development.com WIP - Urban Conflict
Re: Weapon shoot... [Re: Silent_Assassin] #99202
11/19/06 15:10
11/19/06 15:10
Joined: Jan 2006
Posts: 968
EpsiloN Offline
User
EpsiloN  Offline
User

Joined: Jan 2006
Posts: 968
There are many ways to make a weapon shoot...you can use trace or models(bullets). It also depends on what type of game are you making...animation in first person or 3-rd person...


Extensive Multiplayer tutorial:
http://mesetts.com/index.php?page=201
Re: Weapon shoot... [Re: EpsiloN] #99203
11/19/06 20:44
11/19/06 20:44
Joined: Jun 2005
Posts: 734
Under your couch
Silent_Assassin Offline OP
Developer
Silent_Assassin  Offline OP
Developer

Joined: Jun 2005
Posts: 734
Under your couch
oh guess i forgot to mention that haha

the game i am making is in first person...what would be best to use trace or model ?


Visit us at www.m-tec-development.com WIP - Urban Conflict
Re: Weapon shoot... [Re: Silent_Assassin] #99204
11/19/06 21:18
11/19/06 21:18
Joined: Jul 2002
Posts: 4,436
Germany, Luebeck
Xarthor Offline
Expert
Xarthor  Offline
Expert

Joined: Jul 2002
Posts: 4,436
Germany, Luebeck
That depends.
If you want a more "realistic" behaviour a model (bullet) methode would be the way to go.
E.g. a sniper shot wouldnt instantly hit, even if the target is 3000 meters away.

If your going for a fast paced action blow everything up game the trace methode would work.

So its basicly up to you to decide which methodes fits your game most.

Re: Weapon shoot... [Re: Xarthor] #99205
11/20/06 06:54
11/20/06 06:54
Joined: Jun 2005
Posts: 734
Under your couch
Silent_Assassin Offline OP
Developer
Silent_Assassin  Offline OP
Developer

Joined: Jun 2005
Posts: 734
Under your couch
well i guess the bullet model would be the way to go for me

ummm now how do i do it lol


Visit us at www.m-tec-development.com WIP - Urban Conflict
Re: Weapon shoot... [Re: Silent_Assassin] #99206
11/20/06 12:08
11/20/06 12:08
Joined: Jul 2002
Posts: 4,436
Germany, Luebeck
Xarthor Offline
Expert
Xarthor  Offline
Expert

Joined: Jul 2002
Posts: 4,436
Germany, Luebeck
lol
Ok I can think of two different ways for the model thing:
- calculate a position infront of the player (center of the screen => vec_for_screen) and create (ent_create) a bullet there which will move with a certain speed

- calculate two positions: one far distance to the player and one at the gun's muzzle.
Now trace from the camera coordinates to the position far away from the player, then create the bullet at the gun's muzzle and turn it towards that position and let it fly

I'm sure there are other ways.
The first way I mentioned is quick and works, but the bullets do not fly from the gun towards where the crosshair aims.
So the second way is a bit more "realistic", nearly as "realistic" as ballistic can be in games

Re: Weapon shoot... [Re: Xarthor] #99207
11/20/06 23:12
11/20/06 23:12
Joined: Jun 2005
Posts: 734
Under your couch
Silent_Assassin Offline OP
Developer
Silent_Assassin  Offline OP
Developer

Joined: Jun 2005
Posts: 734
Under your couch
i guess its just a matter is what is easier for someone of my level...coding isnt my strong point, im only learning as i go along so everything you just said went right over my head (i know what your saying though)..i may be asking for a bit much..but how would this be in code and also to play an animation on left click


Visit us at www.m-tec-development.com WIP - Urban Conflict
Re: Weapon shoot... [Re: Silent_Assassin] #99208
11/21/06 20:37
11/21/06 20:37
Joined: Jun 2005
Posts: 734
Under your couch
Silent_Assassin Offline OP
Developer
Silent_Assassin  Offline OP
Developer

Joined: Jun 2005
Posts: 734
Under your couch
hello...anyone there? lol

(sorry for double posting but i dont think i would get an answer if i dont)

EDIT: also how many polys should a weapon be roughly (good quality, so not low poly hehe) ?

Last edited by Silent_Assassin; 11/22/06 04:40.
Re: Weapon shoot... [Re: Silent_Assassin] #99209
11/23/06 20:27
11/23/06 20:27
Joined: Dec 2005
Posts: 252
MyOwnKingdom
nipx Offline
Member
nipx  Offline
Member

Joined: Dec 2005
Posts: 252
MyOwnKingdom
Quote:

EDIT: also how many polys should a weapon be roughly (good quality, so not low poly hehe) ?




==>> Get "Angle (Angel? ) Of Attack" demo. Its in the Showcase I.

A few pretty good weapons are in there, so check it.


nipx

Re: Weapon shoot... [Re: nipx] #99210
11/24/06 13:10
11/24/06 13:10
Joined: Jun 2005
Posts: 734
Under your couch
Silent_Assassin Offline OP
Developer
Silent_Assassin  Offline OP
Developer

Joined: Jun 2005
Posts: 734
Under your couch
well i think the download link is broken or something cus i cant download it. And plus it still doesnt quite answer my question lol

too make it easier.. what would it be in like a range so something like for good quality weapons for a proffessional game

light = 900-1100
medium = 1300 - 1500
heavy = 1500 - 1700

something like that (thats just an example)


Visit us at www.m-tec-development.com WIP - Urban Conflict

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