Battlefield Modding Tutorials BFMODS
https://battlefieldmodding.com/ssm/phpBB3/

How do I add fire, BF1942' maps.
https://battlefieldmodding.com/ssm/phpBB3/viewtopic.php?f=3&t=5176
Page 2 of 2

Author:  anselmus [ Thu Aug 20, 2009 11:32 pm ]
Post subject:  Re: How do I add fire, BF1942' maps.

Here, people:

1) Add these lines to your Map ( Init.con )

rem *** placeable fire ***
ObjectTemplate.create Bundle VehicleFire
ObjectTemplate.saveInSeparateFile 1
ObjectTemplate.hasArmor 1
ObjectTemplate.maxhitpoints 25
ObjectTemplate.hitpoints 25
ObjectTemplate.Material 40
ObjectTemplate.addArmorEffect 25 e_KubelFire 0/0/0

rem *** stuka wreck and fire ***
ObjectTemplate.create SimpleObject StukaWreckSolid
ObjectTemplate.geometry Wreck_Stuka_M1
ObjectTemplate.setHasCollisionPhysics 1

ObjectTemplate.create Bundle Wreck_Stuka_Fire
ObjectTemplate.setHasCollisionPhysics 1

ObjectTemplate.addTemplate StukaWreckSolid

ObjectTemplate.addTemplate VehicleFire
ObjectTemplate.setPosition 0/1.5/3

2) Add these lines to your list file for Battlecraft:

Wreck_Stuka_Fire=StandardMesh(Wreck_ju87_m1)
StukaWreckSolid=StandardMesh(Wreck_ju87_m1)
VehicleFire=StandardMesh(soldier_spawn)
You can place the plain wreck, the wreck on fire, and the fire by itself. When you place the fire by itself it will look weird in Battlecraft because there's no mesh that BC can display, so I use the soldier_spawn object which is a three way arrow thing that never gets used in the game, so you know it's an effect. Now you can place a wreck and have it automatically be on fire, or place the plain wreck and then place the fire wherever you want.




Edited By: Dweller_Benthos ( ForumPlanet )

Page 2 of 2 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/