|
PR:BF2 Community Modding Making or wanting help making your own asset? Check in here |
|
Thread Tools | Display Modes |
2014-01-12, 02:30 | #1 |
Join Date: Jan 2014
Posts: 6
Canada
|
[?] Adding "camera recoil to handheld weapons
I've been screwing around with modding in BF2 for a few months now and I've been constantly developing a personal BF2 mod. So far I've overhauled the all the weapon and vehicle stats as well as most of the effects.
Anyways, I want to add the camera shaking effect of vehicle weapons to the handheld weapons, similar to PR, but I'm not sure how. I've tried this: Code:
rem ---BeginComp:SoldierBasedRecoilComp --- ObjectTemplate.createComponent SoldierBasedRecoilComp ObjectTemplate.recoil.hasRecoilForce 1 ObjectTemplate.recoil.goBackOnRecoil 1 ObjectTemplate.recoil.recoilForceUp CRD_UNIFORM/0.8/1/0 ObjectTemplate.recoil.recoilForceLeftRight CRD_UNIFORM/-0.5/0.5/0 ObjectTemplate.recoil.zoomModifier 0.9 ObjectTemplate.recoil.recoilGraphFrameCount 8 ObjectTemplate.recoil.recoilGraphExponent 9 ObjectTemplate.recoil.recoilGraphTotalMovement 1 rem ---EndComp --- rem ---BeginComp:WeaponBasedRecoilComp --- rem ObjectTemplate.createComponent WeaponBasedRecoilComp ObjectTemplate.recoil.cameraRecoilSpeed 10 ObjectTemplate.recoil.cameraRecoilSize 3 rem ---EndComp --- Code:
rem ---BeginComp:SoldierBasedRecoilComp --- ObjectTemplate.createComponent SoldierBasedRecoilComp ObjectTemplate.recoil.hasRecoilForce 1 ObjectTemplate.recoil.goBackOnRecoil 1 ObjectTemplate.recoil.recoilForceUp CRD_UNIFORM/0.8/1/0 ObjectTemplate.recoil.recoilForceLeftRight CRD_UNIFORM/-0.5/0.5/0 ObjectTemplate.recoil.zoomModifier 0.9 ObjectTemplate.recoil.recoilGraphFrameCount 8 ObjectTemplate.recoil.recoilGraphExponent 9 ObjectTemplate.recoil.recoilGraphTotalMovement 1 ObjectTemplate.recoil.cameraRecoilSpeed 10 ObjectTemplate.recoil.cameraRecoilSize 3 rem ---EndComp --- Code:
rem ---BeginComp:WeaponBasedRecoilComp --- rem ObjectTemplate.createComponent WeaponBasedRecoilComp ObjectTemplate.recoil.hasRecoilForce 1 ObjectTemplate.recoil.goBackOnRecoil 1 ObjectTemplate.recoil.recoilForceUp CRD_UNIFORM/0.8/1/0 ObjectTemplate.recoil.recoilForceLeftRight CRD_UNIFORM/-0.5/0.5/0 ObjectTemplate.recoil.zoomModifier 0.9 ObjectTemplate.recoil.recoilGraphFrameCount 8 ObjectTemplate.recoil.recoilGraphExponent 9 ObjectTemplate.recoil.recoilGraphTotalMovement 1 ObjectTemplate.recoil.cameraRecoilSpeed 10 ObjectTemplate.recoil.cameraRecoilSize 3 rem ---EndComp --- They didn't work, as expected. I've checked the recoil files in PR and they just had the SoldierBasedRecoilComp, nothing about WeaponBasedRecoil or cameraRecoil. Anyone have any idea how to accomplish this? Thanks in advance. |
2014-01-12, 03:06 | #2 |
Retired PR Developer
|
Re: [?] Adding "camera recoil to handheld weapons
Those settings for camera recoil don't work on handheld weapons. PR accomplishes the camera shake with the fire animation.
|
|
|
Tags |
adding camera, camera, handheld, recoil, weapons |
|
|