Gamestudio Links
Zorro Links
Newest Posts
Newbie Questions
by fairtrader. 12/05/23 14:22
Zorro Trader GPT
by TipmyPip. 12/04/23 11:34
Square root rule
by Smallz. 12/02/23 09:15
RTest not found error
by TipmyPip. 12/01/23 21:43
neural function for Python to [Train]
by TipmyPip. 12/01/23 14:47
Xor Memory Problem.
by TipmyPip. 11/28/23 14:23
Training with command line parameters
by TipmyPip. 11/26/23 08:42
Combine USD & BTC Pairs In Asset Loop
by TipmyPip. 11/26/23 08:30
AUM Magazine
Latest Screens
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Who's Online Now
1 registered members (AndrewAMD), 599 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
fairtrader, hus, Vurtis, Harry5, KelvinC
19019 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 | 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