How to fire a weapon while moving camera somewhere else?

Making or wanting help making your own asset? Check in here
Post Reply
Megagoth1702
Posts: 510
Joined: 2009-01-31 20:19

How to fire a weapon while moving camera somewhere else?

Post by Megagoth1702 »

Hey guys, for testing purposes I would like to position a camera somewhere and still be able to shoot a gun. Is there a way to do it with PR bot or maybe something else?

Thanks a lot!
rPoXoTauJIo
PR:BF2 Developer
Posts: 1979
Joined: 2011-07-20 10:02

Re: How to fire a weapon while moving camera somewhere else?

Post by rPoXoTauJIo »

Sounds like you wanna test 3p sounds, right? Unfortunately, you can't do this from ingame unless it's a bots firing.

Other way to do it is to edit cameras:

Code: Select all

ObjectTemplate.CVMFlyBy 0
ObjectTemplate.CVMChase 0
ObjectTemplate.CVMFrontChase 1
ObjectTemplate.CVMNose 0
ObjectTemplate.CVMTrace 0
ObjectTemplate.CVMExternTrace 0
Set views to 1.

Code: Select all

ObjectTemplate.chaseDistance 3.25
ObjectTemplate.chaseAngle 0.18
ObjectTemplate.chaseOffset 0/1/0.5
And here you can set camera position\rotation(note i have take setting from jets, so yours will be something like 0\3\10 + some more chaseDistance)
Image

assetruler69: I've seen things you smurfs wouldn't believe. Apaches on the Kashan. I watched burned down tank hulls after the launch of the single TOW. All those moments will be lost in time, like tears in rain.

Time to give up and respawn.
Megagoth1702
Posts: 510
Joined: 2009-01-31 20:19

Post by Megagoth1702 »

rPoXoTauJIo wrote:Sounds like you wanna test 3p sounds, right? Unfortunately, you can't do this from ingame unless it's a bots firing.

Other way to do it is to edit cameras:

Code: Select all

ObjectTemplate.CVMFlyBy 0
ObjectTemplate.CVMChase 0
ObjectTemplate.CVMFrontChase 1
ObjectTemplate.CVMNose 0
ObjectTemplate.CVMTrace 0
ObjectTemplate.CVMExternTrace 0
Set views to 1.

Code: Select all

ObjectTemplate.chaseDistance 3.25
ObjectTemplate.chaseAngle 0.18
ObjectTemplate.chaseOffset 0/1/0.5
And here you can set camera position\rotation(note i have take setting from jets, so yours will be something like 0\3\10 + some more chaseDistance)
Thanks,maybe there is a way to record a demo? I have never done it on a local server but that would be a good way I think.
Last edited by Megagoth1702 on 2015-08-21 10:17, edited 1 time in total.
rPoXoTauJIo
PR:BF2 Developer
Posts: 1979
Joined: 2011-07-20 10:02

Re: How to fire a weapon while moving camera somewhere else?

Post by rPoXoTauJIo »

None i knowl of without editing files.
Same goes for vehicles.

Open vehicle .tweak file, find camera(note there's might be multiple ones).
Edit as follows in tutor.
Image

assetruler69: I've seen things you smurfs wouldn't believe. Apaches on the Kashan. I watched burned down tank hulls after the launch of the single TOW. All those moments will be lost in time, like tears in rain.

Time to give up and respawn.
Megagoth1702
Posts: 510
Joined: 2009-01-31 20:19

Re: How to fire a weapon while moving camera somewhere else?

Post by Megagoth1702 »

rPoXoTauJIo wrote:None i knowl of without editing files.
Same goes for vehicles.

Open vehicle .tweak file, find camera(note there's might be multiple ones).
Edit as follows in tutor.
Thank you.

I have figured it out on my own but noticed that the editor is not loading my external mods (I use a rather cumbersome system, heh).

So I will try the record-demo thing and adding external cameras to the soldier.

EDIT: Okay, so demo recording failed. The console says "recording demo" and "recording stopped" but there is no demo file. Damn.

Another idea - I have two PCs, I can use one to join onto a local server and shoot around. Just gotta figure out how to join, Hamachi is overloaded right now, maybe local network will work (since it IS local).
Last edited by Megagoth1702 on 2015-08-21 10:46, edited 2 times in total.
rPoXoTauJIo
PR:BF2 Developer
Posts: 1979
Joined: 2011-07-20 10:02

Re: How to fire a weapon while moving camera somewhere else?

Post by rPoXoTauJIo »

Megagoth1702 wrote: EDIT: Okay, so demo recording failed. The console says "recording demo" and "recording stopped" but there is no demo file. Damn.
Demo file is being recorded in your modfolder, while you should have them in Documents\Project Reality\profiles\default\demos if you want them to be played.
Image

assetruler69: I've seen things you smurfs wouldn't believe. Apaches on the Kashan. I watched burned down tank hulls after the launch of the single TOW. All those moments will be lost in time, like tears in rain.

Time to give up and respawn.
Megagoth1702
Posts: 510
Joined: 2009-01-31 20:19

Re: How to fire a weapon while moving camera somewhere else?

Post by Megagoth1702 »

rPoXoTauJIo wrote:Demo file is being recorded in your modfolder, while you should have them in Documents\Project Reality\profiles\default\demos if you want them to be played.
Ah, I didn't know that.!
Thank you very much! This is working great! :) Thaaaaanks!
Post Reply

Return to “PR:BF2 Community Modding”