Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
0 registered members (), 1,382 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19055 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Visible Hand+Gun in FPS #405881
08/09/12 05:51
08/09/12 05:51
Joined: Jul 2008
Posts: 168
8
82RJZAE Offline OP
Member
82RJZAE  Offline OP
Member
8

Joined: Jul 2008
Posts: 168
Hi, what is the best way to approach a visible hand+gun to show the player that they are holding a weapon without making the entire model invisible and just adding a hand+gun model?

See the below image for an example (source: digitaltrends.com):


I know that if the game is only first person and the player will not be visible that a simple solution is just to add a hand+gun model; however, how can I accommodate for the player being visible by others and in 3rd person?

Thanks,
82RJZAE

Re: Visible Hand+Gun in FPS [Re: 82RJZAE] #405882
08/09/12 06:18
08/09/12 06:18
Joined: Nov 2007
Posts: 2,568
Germany, BW, Stuttgart
MasterQ32 Offline
Expert
MasterQ32  Offline
Expert

Joined: Nov 2007
Posts: 2,568
Germany, BW, Stuttgart
you can attach the world-model to a bone on your model
this model will be visible for all but the player
the player gets a view entity (easy-to-implement, bad light effects) or a normal entity which is attached to the camera (position+angle, more work, but nicer results because model reacts on lights)
you have to differ between player and others
if you want to switch between a fps and a tps you need to switch the visibility of the first person weapon and add a world-model also for the player


Visit my site: www.masterq32.de
Re: Visible Hand+Gun in FPS [Re: MasterQ32] #405883
08/09/12 07:18
08/09/12 07:18
Joined: Jul 2008
Posts: 168
8
82RJZAE Offline OP
Member
82RJZAE  Offline OP
Member
8

Joined: Jul 2008
Posts: 168
Originally Posted By: MasterQ32
or a normal entity which is attached to the camera (position+angle, more work, but nicer results because model reacts on lights)

That's a great idea! Thanks MasterQ32! laugh

Re: Visible Hand+Gun in FPS [Re: 82RJZAE] #405884
08/09/12 07:21
08/09/12 07:21
Joined: Nov 2007
Posts: 2,568
Germany, BW, Stuttgart
MasterQ32 Offline
Expert
MasterQ32  Offline
Expert

Joined: Nov 2007
Posts: 2,568
Germany, BW, Stuttgart
in my opinion it looks great if you add the mtl_specBump shader to the model
so you get really nice looking weapons which react in a great way to dynamic lights wink


Visit my site: www.masterq32.de
Re: Visible Hand+Gun in FPS [Re: MasterQ32] #405885
08/09/12 07:29
08/09/12 07:29
Joined: Jul 2008
Posts: 168
8
82RJZAE Offline OP
Member
82RJZAE  Offline OP
Member
8

Joined: Jul 2008
Posts: 168
I'll bet! Any idea how to make the model visible only to the player and not to anyone else?

Re: Visible Hand+Gun in FPS [Re: 82RJZAE] #405886
08/09/12 07:34
08/09/12 07:34
Joined: Nov 2007
Posts: 2,568
Germany, BW, Stuttgart
MasterQ32 Offline
Expert
MasterQ32  Offline
Expert

Joined: Nov 2007
Posts: 2,568
Germany, BW, Stuttgart
just create it only for the player as a local entity


Visit my site: www.masterq32.de

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

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