Gamestudio Links
Zorro Links
Newest Posts
Trading Journey
by howardR. 04/28/24 09:55
basik85278
by basik85278. 04/28/24 08:56
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
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
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
0 registered members (), 744 guests, and 5 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
Our fps entities #78851
06/21/06 16:01
06/21/06 16:01
Joined: Apr 2006
Posts: 265
V
vartan_s Offline OP
Member
vartan_s  Offline OP
Member
V

Joined: Apr 2006
Posts: 265
I have a small question to ask

This could be regarded as more of a discussion question. I'd like to know, which one is better for creating fps weapons, whether it is the view entity method used by grimber in his tutorials, or the actual 3d entity used by the xpire AI demo.. I've noticed several advantages and disadvantages for both, and I'd like to know a way around them if they exist:

View entites:
Advantages:
No need to change their position relative to player every time
Do not go into walls

Disadvantages:
Do not receive level lighting
Cannot be removed or created in functions

Normal entities:
Advantages:
Receive level lighting
Can be removed and created [needed]

Disadvantages:
Go into walls [needed]
Must be moved to position in front of player every time

Remember, ultimately the point of this topic is not to discuss which is better (although you can do so), but to find a way to stop these from happening. The ones with [needed] have priority - I need these to be fixed to continue

Re: Our fps entities [Re: vartan_s] #78852
06/21/06 16:09
06/21/06 16:09
Joined: Jul 2002
Posts: 4,436
Germany, Luebeck
Xarthor Offline
Expert
Xarthor  Offline
Expert

Joined: Jul 2002
Posts: 4,436
Germany, Luebeck
You can sort out one disadvantage of normal entities by just adding the following line to the weapons action:
my.znear = on;

In the past I always used view entities, but at the moment I think level entities are better, caus of the advantages you listed. And I think moving the weapon infront of the player all the time is not a problem at all.

Re: Our fps entities [Re: Xarthor] #78853
06/21/06 16:44
06/21/06 16:44
Joined: Apr 2006
Posts: 265
V
vartan_s Offline OP
Member
vartan_s  Offline OP
Member
V

Joined: Apr 2006
Posts: 265
Well, it depends really. I'm trying to do different things with my guns, like in cstrike they vibrate while shooting or their tilt changes eg a shotgun. To make these smooth and realistic, things become slightly more complicated. But as you said, it's not that much of a disadvantage... I guess i had people with script-phobia in mind lol

Re: Our fps entities [Re: vartan_s] #78854
06/21/06 17:06
06/21/06 17:06
Joined: Nov 2004
Posts: 595
127.0.0.1
K
KoH Offline
Developer
KoH  Offline
Developer
K

Joined: Nov 2004
Posts: 595
127.0.0.1
Personally I would go with the "Normal entities". I can't give you any code at the moment, but it isn't hard to stop a weapon from going into the wall. As for moving them relative to the player, that is not to hard either.
And this way gives you your lighting.


I am no longer a member of these boards.

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