[?] Stance firing modes?

Making or wanting help making your own asset? Check in here
Post Reply
clondicke
Posts: 64
Joined: 2010-06-19 09:04

[?] Stance firing modes?

Post by clondicke »

I know that there is a code for making the weapon fire only when prone and I use that on most of my sniper rifles.

ObjectTemplate.fire.onlyFireWhenProne 1

My Question is. Is there a way to make a weapon only fire when standing or couching?
I want to implement the fire only when crouching into my anti-tank launchers and the standing one I want to implement in my large machine guns. The reason for the lmgs is I have all of my deployed lmgs set to fire only when prone, so in return I want the non deployed ones to only fire while crouching and standing and not in prone position.

Anyone that can help me I appreciate it. Thanks in advance.
Rhino
Retired PR Developer
Posts: 47909
Joined: 2005-12-13 20:00

Re: Stance firing modes

Post by Rhino »

nope, its amazing enough we have that line of code to play with since it wasn't used on any vBF2 weapons :p
Image
clondicke
Posts: 64
Joined: 2010-06-19 09:04

Re: Stance firing modes

Post by clondicke »

Dang, Thanks for your help man, They Should have come out with a Standing and Crouching code too. That would be awesome.
Von_Gnome
Posts: 563
Joined: 2010-10-22 13:00

Re: Stance firing modes

Post by Von_Gnome »

Doesn't FH2 have something similar?
sweedensniiperr
Posts: 2784
Joined: 2009-09-18 10:27

Re: Stance firing modes

Post by sweedensniiperr »

Von_Gnome wrote:Doesn't FH2 have something similar?
well they all have the same code(vBf2) to play around with and yes, in FH2 this code is used when wielding a machine gun deployed. (maybe, long time since i played)
Image
clondicke
Posts: 64
Joined: 2010-06-19 09:04

Re: Stance firing modes

Post by clondicke »

I did that with the zoom option too. I made my machine guns only be able to fire and zoom while prone too. That code exists too. But would be awesome to be able to fire Rocket Launchers only in Crouch Mode. Kinda what Original Operation Flashpoint, ArmA and ArmA 2 did. The only thing is when you switch to the rocket launcher in those games, it makes you go crouch. you can't stand or prone while that weapon is equipped.
Post Reply

Return to “PR:BF2 Community Modding”