Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
1 registered members (TipmyPip), 18,449 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 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