Can I remove a camera?

Making or wanting help making your own asset? Check in here
Post Reply
mft004
Posts: 33
Joined: 2017-12-14 17:37

Can I remove a camera?

Post by mft004 »

Hi guys,

I'm continuing with my project to tweak the Forgotten Hope 2 mod for SP bot games and have a question about camera cycles, but there aren't many active wizards on the FH2 forums, so I was wondering if you guys could help. It's a problem with the tank cameras, which are largely controlled by a TankCameras.con file located within Objects_Vehicles_Server\Vehicles\Land\Common. I'd altered the CVMChase camera in TankCameras.con so that the camera was further back and zoomed out; this change affected the CVMFrontChase camera negatively, with that second camera looking at half the tank now and from an overhead view. I'd like to remove that camera from the camera cycle entirely but keep the CVMFrontChase cam; is that possible?

I looked at the references to the CVMFrontChase cameras in TankCameras.con, but in all cases within that file, CVMFrontChase was set to 0 which I take it means 'off'. So I'm guessing that there must be another file somewhere in the mod folder which determines which cameras are on/off for tanks, or maybe for all vehicles. Any wizards here know which file might hold that, based off experiences with Bf2 mods in general?

Many thanks in advance for any help and I've added below the two tank cameras of the TankCameras.con file which I've been editing so far.

Mark

Code: Select all


ObjectTemplate.create Bundle Tank_DriverCamera
ObjectTemplate.modifiedByUser "kev"
ObjectTemplate.saveInSeparateFile 1
ObjectTemplate.floaterMod 0
ObjectTemplate.hasMobilePhysics 0
rem -------------------------------------
ObjectTemplate.addTemplate Tank_DriverCamera_camera
rem -------------------------------------

ObjectTemplate.create Camera Tank_DriverCamera_camera
ObjectTemplate.creator ctz
ObjectTemplate.saveInSeparateFile 1
ObjectTemplate.floaterMod 0
ObjectTemplate.hasMobilePhysics 0
rem -------------------------------------
ObjectTemplate.addTemplate S_Tank_DriverCamera_RotationRpm
rem -------------------------------------
ObjectTemplate.setMinRotation 0/-50/0
ObjectTemplate.setMaxRotation 0/10/0
ObjectTemplate.setPivotPosition 0/0/-0.1
ObjectTemplate.setMaxSpeed 180/180/0
ObjectTemplate.setAcceleration 600/600/0
ObjectTemplate.setInputToYaw PIMouseLookX
ObjectTemplate.setInputToPitch PIMouseLookY
ObjectTemplate.automaticPitchStabilization 1
ObjectTemplate.regulateYaw -0.2/0.25
ObjectTemplate.regulatePitch -0.2/0.25
ObjectTemplate.toggleMouseLook 1
ObjectTemplate.CVMChase 1
ObjectTemplate.CVMFrontChase 0
ObjectTemplate.CVMFlyBy 0
ObjectTemplate.chaseDistance 8
ObjectTemplate.chaseAngle 1
ObjectTemplate.chaseOffset 0/-3/-5
ObjectTemplate.cameraShakeSensitivity 1
ObjectTemplate.cameraShakeStartSpeed 1
objecttemplate.cameraShakeMaxSpeed 36
ObjectTemplate.bounceLength 0.5
ObjectTemplate.bounceStrength 0.05
ObjectTemplate.bounceDamping 2
ObjectTemplate.followStiffness 2
ObjectTemplate.worldFOV 1.8
ObjectTemplate.insideFOV 1.6
ObjectTemplate.allowInsideDynamicLights 1
ObjectTemplate.allowInsideStaticSun 1
ObjectTemplate.insideStaticSunDirection -0.25/-0.5/0.75
ObjectTemplate.insideStaticSunColor 1/1/1
ObjectTemplate.insideStaticSunDamageColor 1/0/0
ObjectTemplate.insideDamageFrequency 3
ObjectTemplate.insideDamageThreshold 0.15
ObjectTemplate.insideStaticSunAmbientColor 0.7/0.7/0.7
ObjectTemplate.cockpitLod 0
ObjectTemplate.cockpitSubGeom 1
ObjectTemplate.restoreRotationOnExit 1

ObjectTemplate.create Bundle Tank_DriverCamera_geom0
ObjectTemplate.modifiedByUser "kev"
ObjectTemplate.saveInSeparateFile 1
ObjectTemplate.floaterMod 0
ObjectTemplate.hasMobilePhysics 0
rem -------------------------------------
ObjectTemplate.addTemplate Tank_DriverCamera_geom0_camera
rem -------------------------------------

ObjectTemplate.create Camera Tank_DriverCamera_geom0_camera
ObjectTemplate.creator ctz
ObjectTemplate.saveInSeparateFile 1
ObjectTemplate.floaterMod 0
ObjectTemplate.hasMobilePhysics 0
rem -------------------------------------
ObjectTemplate.addTemplate S_Tank_DriverCamera_geom0_RotationRpm
rem -------------------------------------
ObjectTemplate.setMinRotation 0/-50/0
ObjectTemplate.setMaxRotation 0/10/0
ObjectTemplate.setPivotPosition 0/0/-0.1
ObjectTemplate.setMaxSpeed 160/160/0
ObjectTemplate.setAcceleration 450/450/0
ObjectTemplate.setInputToYaw PIMouseLookX
ObjectTemplate.setInputToPitch PIMouseLookY
ObjectTemplate.automaticPitchStabilization 1
ObjectTemplate.regulateYaw -0.2/0.25
ObjectTemplate.regulatePitch -0.2/0.25
ObjectTemplate.toggleMouseLook 1
ObjectTemplate.CVMChase 0
ObjectTemplate.CVMFrontChase 0
ObjectTemplate.CVMFlyBy 0
ObjectTemplate.chaseDistance 8
ObjectTemplate.chaseAngle 1
ObjectTemplate.chaseOffset 0/-3/-5
ObjectTemplate.cameraShakeSensitivity 1
ObjectTemplate.cameraShakeStartSpeed 1
ObjectTemplate.cameraShakeMaxSpeed 36
ObjectTemplate.bounceLength 0.5
ObjectTemplate.bounceStrength 0.05
ObjectTemplate.bounceDamping 2
ObjectTemplate.followStiffness 2
ObjectTemplate.worldFOV 1.8
ObjectTemplate.insideFOV 1.6
ObjectTemplate.allowInsideDynamicLights 1
ObjectTemplate.allowInsideStaticSun 1
ObjectTemplate.insideStaticSunDirection -0.25/-0.5/0.75
ObjectTemplate.insideStaticSunColor 1/1/1
ObjectTemplate.insideStaticSunDamageColor 1/0/0
ObjectTemplate.insideDamageFrequency 3
ObjectTemplate.insideDamageThreshold 0.15
ObjectTemplate.insideStaticSunAmbientColor 0.7/0.7/0.7
ObjectTemplate.cockpitLod 0
ObjectTemplate.cockpitSubGeom 0
ObjectTemplate.restoreRotationOnExit 1
Last edited by Mats391 on 2018-06-05 15:45, edited 2 times in total.
User avatar
Mats391
PR:BF2 Lead Developer
Posts: 7643
Joined: 2010-08-06 18:06

Re: Can I remove a camera?

Post by Mats391 »

See if disabling all these except CVMChase helps.

Code: Select all

objectTemplate.CVMChase bool -> bool
objectTemplate.CVMExternTrace bool -> bool
objectTemplate.CVMFlyBy bool -> bool
objectTemplate.CVMFrontChase bool -> bool
objectTemplate.CVMInside bool -> bool
objectTemplate.CVMNose bool -> bool
objectTemplate.CVMTrace bool -> bool
Image

Mineral: TIL that Wire-guided missiles actually use wire
mft004
Posts: 33
Joined: 2017-12-14 17:37

Re: Can I remove a camera?

Post by mft004 »

Thanks for the response Mats but no luck so far. Using your suggestion I've tried removing all CVM lines except CVMChase, then I've tried adding bool -> bool to those CVM lines, but the cameras persist. That's to say, I've made those changes for CVM lines within TankCameras.con.

The other thought I had was whether there was a way to assign different cameras to different keys. So instead of tapping c to go from turret/gunner view to CVMChase, I'd just tap the key that CVMChase was assigned to. If that was possible, any ideas?
Last edited by mft004 on 2018-06-07 18:20, edited 2 times in total.
User avatar
Mats391
PR:BF2 Lead Developer
Posts: 7643
Joined: 2010-08-06 18:06

Re: Can I remove a camera?

Post by Mats391 »

I dont know enough about the different camera modes as in PR we just disable them all. Sorry
Image

Mineral: TIL that Wire-guided missiles actually use wire
Rabbit
Posts: 7818
Joined: 2006-12-17 15:14

Re: Can I remove a camera?

Post by Rabbit »

[R-DEV]Mats391 wrote:I dont know enough about the different camera modes as in PR we just disable them all. Sorry
Not really, jets have 2.
Image

AfSoccer "I just don't see the natural talent."
Image
mft004
Posts: 33
Joined: 2017-12-14 17:37

Re: Can I remove a camera?

Post by mft004 »

My apologies everyone, I was being very woolly. I completely forgot that there's an option in the standard Controls menu ingame to assign single cameras to different keys, so now I've done so for all except the CVMFrontChase. Thanks anyway for the comments!
Post Reply

Return to “PR:BF2 Community Modding”