Gamestudio Links
Zorro Links
Newest Posts
ZorroGPT
by TipmyPip. 02/26/26 21:35
WFO Training with parallel cores Zorro64
by Martin_HH. 02/26/26 16:03
Zorro version 3.0 prerelease!
by TipmyPip. 02/25/26 16:38
Camera always moves upwards?
by clonman. 02/21/26 09:29
Sam Foster Sound | Experienced Game Composer for Hire
by titanicpiano14. 02/19/26 13:22
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
5 registered members (TipmyPip, alx, Martin_HH, Enayn, 1 invisible), 5,130 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
the1, alx, ApprenticeInMuc, PatrickH90, USER0328
19200 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Switch weapon. #236190
11/12/08 18:01
11/12/08 18:01
Joined: Sep 2007
Posts: 52
Tver,Russia
D
dtntr Offline OP
Junior Member
dtntr  Offline OP
Junior Member
D

Joined: Sep 2007
Posts: 52
Tver,Russia
Hi. Please give some ideas. How i can make weapon switch.

Re: Switch weapon. [Re: dtntr] #236205
11/12/08 20:02
11/12/08 20:02
Joined: Oct 2008
Posts: 218
Nashua NH
heinekenbottle Offline
Member
heinekenbottle  Offline
Member

Joined: Oct 2008
Posts: 218
Nashua NH
A few more details on what exactly you want would be helpful

For an FPS, you could do something to this effect:

If 1 is pressed, the view entity of a pistol is turned on and the view entity of all other weapons is turned off. A variable (call it "gunMode" or something) would be set to 1, which would, in the shooting code, allow the player to shoot as if he has a pistol.

If 2 is pressed, the view entity of a sub-machine gun is turned on and the view entity of all other weapons is turned off. GunMode is set to 2 and allows the player to shoot as if he has an SMG

Etc, etc.

Last edited by heinekenbottle; 11/12/08 20:02.

I was once Anonymous_Alcoholic.

Code Breakpoint;
Re: Switch weapon. [Re: heinekenbottle] #236218
11/12/08 21:20
11/12/08 21:20
Joined: Sep 2007
Posts: 52
Tver,Russia
D
dtntr Offline OP
Junior Member
dtntr  Offline OP
Junior Member
D

Joined: Sep 2007
Posts: 52
Tver,Russia
Thanks.I making FPS. My weapon is no view entity. But i think it will be working.


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

Gamestudio download | 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