Anyone know how I can make a piece of breaking glass?
I tried adding effex bundle and failed
mrhowdoimod sent me some fail of a window
so im lost
Breaking glass
Re: Breaking glass
Well, add an effect bundle, simple That is the easiest and probably best way to do it. Explain where you failed and we try and help.
- Apache Thunder
- Posts: 1210
- Joined: Mon Oct 19, 2009 2:48 am
- Location: Levelland Texas, USA
- Contact:
Re: Breaking glass
Actually, EA/Dice has already tried something like this. Check this out:
MOVE_FILES/Windows_M1/Objects.con:
It is a bundle coded to be destructible. However EA gave up on it because if a PCO or soldier collides with a object with armor on (anything other then projectiles and PCOs) the game would CTD.
However you could easily convert window_m1 to a PCO.
The effect template for breaking glass has already been made courtesy of EA. You can find the code for this object in the MOVE_FILES folder in the vanilla BF1942 files.
The geometries have a been made for it too, so no need to make a geometry of a window yourself.
Anyone know if window_m1 was ever used on anything? Or is this a lone object EA/Dice just left unused in BF1942?
MOVE_FILES/Windows_M1/Objects.con:
Code: Select all
ObjectTemplate.create Bundle Window_m1
ObjectTemplate.saveInSeparateFile 1
ObjectTemplate.sethascollisionPhysics 1
ObjectTemplate.sethasresponsePhysics 1
ObjectTemplate.hasArmor 1
ObjectTemplate.maxhitpoints 1
ObjectTemplate.hitpoints 1
ObjectTemplate.Material 41
ObjectTemplate.addArmorEffect 0 e_ExplWindow 0/0/0
ObjectTemplate.explosionDamage 0
ObjectTemplate.stayAsDestroyed 1
ObjectTemplate.noCollisionsAsDestroyed 1
ObjectTemplate.addTemplate lodWindow
rem
rem *** Willy lod tree stucture
rem
LodSelectorTemplate.create DistCompareSelector2 WindowLodSelector
LodSelectorTemplate.hasDestroyedLod 1
LodSelectorTemplate.addLodComparison 0
ObjectTemplate.create LodObject lodWindow
ObjectTemplate.lodselector WindowLodSelector
ObjectTemplate.addTemplate WindowWhole
ObjectTemplate.addTemplate WindowBroken
ObjectTemplate.setRotation 0/0/0
ObjectTemplate.create SimpleObject WindowWhole
ObjectTemplate.geometry windowWhole_M1
ObjectTemplate.create SimpleObject WindowBroken
ObjectTemplate.geometry windowBroken_M1
However you could easily convert window_m1 to a PCO.
The effect template for breaking glass has already been made courtesy of EA. You can find the code for this object in the MOVE_FILES folder in the vanilla BF1942 files.
The geometries have a been made for it too, so no need to make a geometry of a window yourself.
Anyone know if window_m1 was ever used on anything? Or is this a lone object EA/Dice just left unused in BF1942?
I have cameras in your head!
- Iced Earth
- Posts: 209
- Joined: Sun Oct 18, 2009 2:07 pm
- Contact:
Re: Breaking glass
yeah me and pink found that when i was looking for effects.
I'll just paste what i posted on ssm.com like a week ago:
Nice! I got an ideer:
Make a pane of glass that would go in a window. Make it a PCO with a new material ID, and give it say...20 hit points. You could make the impact effect a bullet hole, and then after 2-3 bullets hit it(destroys its HP), it would shatter to pieces (death effect)!
I'll just paste what i posted on ssm.com like a week ago:
Nice! I got an ideer:
Make a pane of glass that would go in a window. Make it a PCO with a new material ID, and give it say...20 hit points. You could make the impact effect a bullet hole, and then after 2-3 bullets hit it(destroys its HP), it would shatter to pieces (death effect)!
- Apache Thunder
- Posts: 1210
- Joined: Mon Oct 19, 2009 2:48 am
- Location: Levelland Texas, USA
- Contact:
Re: Breaking glass
I got it working as a PCO. But the e_ExplWindow effect is just not that much in the way of eye candy. Infact it produces so little of an effect that you might confuse the particles it emites with the standard richochets that come off it when you shoot it.
No video really necessary
Screenshots: (click to enlarge)
.
Well I pretty much figured out that they intended to add these to the barracks and such. The windows are a perfact fit. (I placed those show in in the screenshots using the debugger console )
So my guess is that EA wanted breakable windows for buildings.
No video really necessary
Screenshots: (click to enlarge)
.
Well I pretty much figured out that they intended to add these to the barracks and such. The windows are a perfact fit. (I placed those show in in the screenshots using the debugger console )
So my guess is that EA wanted breakable windows for buildings.
I have cameras in your head!
Re: Breaking glass
I'd like a basic tutorial on debugger editing...like how one has to use the commands, special things that one has to take care of etc.