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!
How to fire a weapon while moving camera somewhere else?
-
Megagoth1702
- Posts: 510
- Joined: 2009-01-31 20:19
-
rPoXoTauJIo
- PR:BF2 Developer
- Posts: 1979
- Joined: 2011-07-20 10:02
Re: How to fire a weapon while moving camera somewhere else?
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:
Set views to 1.
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)
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 0Code: Select all
ObjectTemplate.chaseDistance 3.25
ObjectTemplate.chaseAngle 0.18
ObjectTemplate.chaseOffset 0/1/0.5
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
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.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:Set views to 1.Code: Select all
ObjectTemplate.CVMFlyBy 0 ObjectTemplate.CVMChase 0 ObjectTemplate.CVMFrontChase 1 ObjectTemplate.CVMNose 0 ObjectTemplate.CVMTrace 0 ObjectTemplate.CVMExternTrace 0And 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)Code: Select all
ObjectTemplate.chaseDistance 3.25 ObjectTemplate.chaseAngle 0.18 ObjectTemplate.chaseOffset 0/1/0.5
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?
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.
Same goes for vehicles.
Open vehicle .tweak file, find camera(note there's might be multiple ones).
Edit as follows in tutor.

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?
Thank you.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.
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?
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.Megagoth1702 wrote: EDIT: Okay, so demo recording failed. The console says "recording demo" and "recording stopped" but there is no demo file. Damn.

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?
Ah, I didn't know that.!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.
Thank you very much! This is working great!

