Gamestudio Links
Zorro Links
Newest Posts
Future of ZorroHFT
by TipmyPip. 11/16/25 13:52
COT Download with Quandl does not work
by Petra. 11/15/25 09:35
Training with the R bridge does not work
by Petra. 11/15/25 09:31
Zorro 2.70
by jcl. 11/15/25 08:43
Camera always moves upwards?
by NeoDumont. 11/14/25 16:32
brokerCommand PLOT_HLINE parameters
by M_D. 11/13/25 10:42
ZorroGPT
by TipmyPip. 11/10/25 11:04
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
1 registered members (AndrewAMD), 8,508 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
tritom, sheliepaley, Blueguy, blobplayintennis, someone2
19178 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