Official BF Editor Forums: Side Scroller - Official BF Editor Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Side Scroller mini tutorial

#1 User is offline   BEEX Icon

  • Expert
  • PipPipPipPip
  • Group: Moderators
  • Posts: 1,363
  • Joined: 06-August 05

Posted 01 July 2010 - 10:01 PM

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! :lol:

This post has been edited by BEEX: 01 July 2010 - 10:02 PM

Posted Image
0

#2 User is offline   BEEX Icon

  • Expert
  • PipPipPipPip
  • Group: Moderators
  • Posts: 1,363
  • Joined: 06-August 05

Posted 02 July 2010 - 05:25 AM

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. :P .

This post has been edited by BEEX: 02 July 2010 - 05:39 AM

Posted Image
0

#3 User is offline   Freeze Icon

  • Member
  • PipPip
  • Group: Members
  • Posts: 162
  • Joined: 14-August 08
  • Gender:Male

Posted 02 July 2010 - 06:08 AM

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. :lol:

Many thanks.
0

#4 User is offline   BEEX Icon

  • Expert
  • PipPipPipPip
  • Group: Moderators
  • Posts: 1,363
  • Joined: 06-August 05

Posted 02 July 2010 - 06:37 AM

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.
Posted Image
0

#5 User is offline   rhysm_08 Icon

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 892
  • Joined: 22-May 08
  • Gender:Male
  • Location:Brisbane, Aussie land :3)

Posted 16 July 2010 - 01:08 AM

Very cool! I had a go at it. Side scroller one is funny. New ideas comming.... "3rd person cage match" (lol)

But... how does aiming work? the whole crosshair thing? 


Posted Image

1on1 Links

http://www.moddb.com/mods/1on1/
http://www.youtube.com/bfrhys/

Latest 1on1 Video

http://www.youtube.c...h?v=rR1BRXlmIAM

James Bond is back! Starting to get the Alpha Romeo (badguys) into the editor.
0

#6 User is offline   BEEX Icon

  • Expert
  • PipPipPipPip
  • Group: Moderators
  • Posts: 1,363
  • Joined: 06-August 05

Posted 16 July 2010 - 11:38 PM

spray and prey. :lol:
.
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"... :lol:
Posted Image
0

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users