BEEX Posted July 1, 2010 Report Share Posted July 1, 2010 (edited) although this tutorial is simple you will need some mapping,modelling,texture and static object export knowlage to get the full benefits of making a side scroller mod for bf2. . ---step 1--- go to objects/soldiers/common/soldiercamera.tweak...change to... . rem *** Generated with Bf2Editor.exe [created: 2004/10/13 15:1] ObjectTemplate.activeSafe Camera SoldierCamera ObjectTemplate.modifiedByUser beex ObjectTemplate.saveInSeparateFile 1 ObjectTemplate.hasMobilePhysics 0 rem ------------------------------------- ObjectTemplate.addTemplate S_SoldierCamera_RotationRpm rem ------------------------------------- ObjectTemplate.CVMInside 0 ObjectTemplate.CVMFlyBy 0 ObjectTemplate.CVMChase 1 ObjectTemplate.CVMFrontChase 0 ObjectTemplate.CVMNose 0 ObjectTemplate.CVMTrace 0 ObjectTemplate.CVMExternTrace 0 ObjectTemplate.cameraShakeSensitivity 0.2 ObjectTemplate.chaseDistance 16 ObjectTemplate.chaseAngle 0.01 ObjectTemplate.chaseOffset 0/0/0 ObjectTemplate.followStiffness 0 ObjectTemplate.worldFOV 1.1 ObjectTemplate.insideFOV 1.1 ObjectTemplate.activeSafe Sound S_SoldierCamera_RotationRpm ObjectTemplate.modifiedByUser beex . ---step 2--- when creating maps for a side scroller you need to make sure soldier spawn points are rotated in the correct direction... . in yourlevel/gamemodes/16,32,64 (sp or cq)/gameplayobjects.con...set all spawnpoints to 90/0.000/0.000 . rem [spawnPoint: allybase_1] Object.create allybase_1 Object.absolutePosition -0.033/26.286/-18.945 Object.rotation 90/0.000/0.000 Object.layer 1 . . unfortunetly there are some problems. 1.ladders dont work 100% of the time. 2.ladders can change the rotation of the camera on exit from the ladder,seeing as the ladder camera is hard coded theres only one work around for this issue,rotate the ladders to face you. 3.exiting a vehicle will change the direction of the camera also,only real solution is to have a vehicle on a linear track and make sure the exit positions are not rotated. 4.theres 3 things i havent tested yet,tv guided missiles,parachute and stationary weapons...(i'll edit when they have been tested). . HAPPY SCROLLING! Edited July 1, 2010 by BEEX Quote Link to comment Share on other sites More sharing options...
BEEX Posted July 2, 2010 Author Report Share Posted July 2, 2010 (edited) i need to point out if you want to do other types of games such as a top down shooter or a diablo like camera view you can easily set the camera rotation,camera follow stiffness and spawn point rotation to suit your needs. but...in some of the below options you will need to disable pitch from player controls (which may require you to create a new bf2 profile for different player control settings,other than default controls,i havent quite figured out if mods can enable different control settings) and remove recoil from all weapons,mainly the top down camera positions. . heres some examples of other camera positions/rotations... . top down camera,follows player direction,spawn point rotation set at 0/0/0,or whatever you want. . ObjectTemplate.CVMInside 0 ObjectTemplate.CVMFlyBy 0 ObjectTemplate.CVMChase 1 ObjectTemplate.CVMFrontChase 0 ObjectTemplate.CVMNose 0 ObjectTemplate.CVMTrace 0 ObjectTemplate.CVMExternTrace 0 ObjectTemplate.cameraShakeSensitivity 0.2 ObjectTemplate.chaseDistance 25 ObjectTemplate.chaseAngle 25 ObjectTemplate.chaseOffset 0/10/0 ObjectTemplate.followStiffness 10 ObjectTemplate.worldFOV 1.1 ObjectTemplate.insideFOV 1.1 . over shoulder . ObjectTemplate.CVMInside 0 ObjectTemplate.CVMFlyBy 0 ObjectTemplate.CVMChase 1 ObjectTemplate.CVMFrontChase 0 ObjectTemplate.CVMNose 0 ObjectTemplate.CVMTrace 0 ObjectTemplate.CVMExternTrace 0 ObjectTemplate.cameraShakeSensitivity 0.2 ObjectTemplate.chaseDistance 0.85 ObjectTemplate.chaseAngle 0.2 ObjectTemplate.chaseOffset 0.3/0.5/0 ObjectTemplate.followStiffness 40 ObjectTemplate.worldFOV 1.1 ObjectTemplate.insideFOV 1.1 . 3rd person . ObjectTemplate.CVMInside 0 ObjectTemplate.CVMFlyBy 0 ObjectTemplate.CVMChase 1 ObjectTemplate.CVMFrontChase 0 ObjectTemplate.CVMNose 0 ObjectTemplate.CVMTrace 0 ObjectTemplate.CVMExternTrace 0 ObjectTemplate.cameraShakeSensitivity 0.2 ObjectTemplate.chaseDistance 5 ObjectTemplate.chaseAngle 0.2 ObjectTemplate.chaseOffset 0/0/0 ObjectTemplate.followStiffness 10 ObjectTemplate.worldFOV 1.1 ObjectTemplate.insideFOV 1.1 . stiff top down view,dependant on soldier spawnpoint rotation,set spawn point rotation at 0/0/0 to suit compass/world direction. . ObjectTemplate.CVMInside 0 ObjectTemplate.CVMFlyBy 0 ObjectTemplate.CVMChase 1 ObjectTemplate.CVMFrontChase 0 ObjectTemplate.CVMNose 0 ObjectTemplate.CVMTrace 0 ObjectTemplate.CVMExternTrace 0 ObjectTemplate.cameraShakeSensitivity 0.2 ObjectTemplate.chaseDistance 16 ObjectTemplate.chaseAngle 25 ObjectTemplate.chaseOffset 0/0/0 ObjectTemplate.followStiffness 0 ObjectTemplate.worldFOV 1.1 ObjectTemplate.insideFOV 1.1 . using the stiff top down view settings set the chase angle anywhere from 0.2 to 25 and set the spawn point rotation to 45/0/0 should give you a diablo like camera. . i hope you guys appreciate this info and think yourselves lucky i am kind enough to share this info,these small tweaks open up an entirely new realm for bf2 mods...ENJOY! . btw i was really drunk adding this post. . Edited July 2, 2010 by BEEX Quote Link to comment Share on other sites More sharing options...
Freeze Posted July 2, 2010 Report Share Posted July 2, 2010 Sweet. I was looking for something like this. A friend of mine made a copy of the first level in Mario on the Sandbox mod, but we had no idea how to get the camera set up like this. Many thanks. Quote Link to comment Share on other sites More sharing options...
BEEX Posted July 2, 2010 Author Report Share Posted July 2, 2010 no probs mate ,i knew there would be a few peeps out there wondering if this were possible. . its not a perfect solution to make a side scroller for bf2 (due to hard coding)but you can make static meshes and maps that will keep you in a tight hallway like a mario game....make your projectile mesh (mesh0) different from the soldier mesh (mesh2) or else splash damage and explosions will be trouble...lol. Quote Link to comment Share on other sites More sharing options...
BEEX Posted July 16, 2010 Author Report Share Posted July 16, 2010 spray and prey. . unfortunetly theres no way to make the soldier fire in a 2d manner,and the only way to make a crosshair is to add a laser beam to a weapon. . the limitations of this engine are a real bummer...refractor engine says"your not allowed to think outside of the box"... Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.