Server Side Modding

The Official Modding Resource for Battlefield 1942 and Battlefield Vietnam
It is currently Mon Oct 19, 2009 5:30 pm

All times are UTC - 6 hours [ DST ]

Getting Started
Getting Started
Prepping Your Files
  Testing Methods
Auto-Start Map
True Testing Enviroment
General How-To's
Stop Base Camping
Removing Out Of Bounds
Stop Base Camping 2
Disabling Parachutes
Add Repair Points
Add Spawn Points
Main Base Swapping
Modifying the Point System
Conquest Ticket System
Making CTF Versions of Maps
Vehicle How-To's
Replace/Add Vehicles
Lock Vehicles
Partially Disabling Vehicles
Totally Disabling Vehicles
Making a Carbomb
Adding Nitrous
Making Amphibious
Performance Tweaking
Adding Healing Supply
Adding/Changing/Removing Carrier Vehicles
Weapon How-To's
Spawn Weapon Kits
Change the Weapon Kits of Soldiers
Modifying Weapon Attributes
Disabling Weapons
Modifying the Damage System
Disabling Overheating
Fix Wall Hacks
How to Fix Wall/Floor Hacks
Basrah's Edge
Lost Village
Al Khafji Docks
El Alamein
Other Fixes
Leaning F16 Fix
Glass Humvee
Oil Fields Exploding A-10
Operation Bragg Fixes
Object List
Weapon Kits List
Global Object Spawners
Global Soldier Spawns
Projectile Material Numbers

Fixing the Leaning F16

This fix can be done in the objects.rfa directly, or on a per map basis (for those who do not like editing the objects.rfa

Editing Objects.rfa

Open the Objects.rfa, and go to OBJECTS\vehicles\air\F16\Objects.con

Go down till you see the start of the F16RearGear_R definition (a little past haflway down, and it looks like this:)

rem **** F16RearGear_R
ObjectTemplate.create LandingGear F16RearGear_R
ObjectTemplate.loadSoundScript ../Common/Sounds/LandingGear.ssc
ObjectTemplate.geometry F16_RearGear_R
ObjectTemplate.hasMobilePhysics 1
ObjectTemplate.hasCollisionPhysics 0
ObjectTemplate.hasResponsePhysics 1
rem -------------------------------------
ObjectTemplate.addTemplate F16RearWhe_R
rem ObjectTemplate.setPosition  -0.817/-1.395/0.083
ObjectTemplate.setPosition  0.817/-1.395/0.083
rem -------------------------------------
ObjectTemplate.setMinRotation -45/-90/0
rem ObjectTemplate.setMaxRotation /0/0
ObjectTemplate.setMaxRotation 0/0/0
ObjectTemplate.setMaxSpeed 32/32/0
ObjectTemplate.setAcceleration -80/-80/0
ObjectTemplate.setGearDownHeight 25
ObjectTemplate.setGearDownEngineInput 0.55

The changes are shown in bold (I remmed out the old lines and put new ones). Basically, the original was missing the leading 0, and used a negative where a positive value was needed

Editing map rfas

To make this change on a per map basis, the following code on any map will do:

ObjectTemplate.Active F16RearGear_R
objectTemplate.setMaxRotation 0/0/0
ObjectTemplate.setPosition 0.817/-1.395/0.083

No materials may be duplicated under any circumstances.