Breaking glass

Ask questions, discuss ideas, get answers
Post Reply
User avatar
MR PINK BALLS
Posts: 267
Joined: Sun Oct 18, 2009 4:01 pm

Breaking glass

Post by MR PINK BALLS »

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
Image Image

I <3 Ironmen
User avatar
Senshi
Posts: 697
Joined: Sun Oct 18, 2009 1:14 pm
Location: Germany
Contact:

Re: Breaking glass

Post by Senshi »

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.
User avatar
Apache Thunder
Posts: 1210
Joined: Mon Oct 19, 2009 2:48 am
Location: Levelland Texas, USA
Contact:

Re: Breaking glass

Post by Apache Thunder »

Actually, EA/Dice has already tried something like this. Check this out:

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

Anyone know if window_m1 was ever used on anything? Or is this a lone object EA/Dice just left unused in BF1942?
ImageImageImage
I have cameras in your head!
User avatar
Iced Earth
Posts: 209
Joined: Sun Oct 18, 2009 2:07 pm
Contact:

Re: Breaking glass

Post by Iced Earth »

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)!
Image
User avatar
fo0k
Posts: 1433
Joined: Fri Oct 16, 2009 4:21 pm
Location: UK

Re: Breaking glass

Post by fo0k »

any youtubes of this in action? :P
User avatar
Apache Thunder
Posts: 1210
Joined: Mon Oct 19, 2009 2:48 am
Location: Levelland Texas, USA
Contact:

Re: Breaking glass

Post by Apache Thunder »

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)

Image
Image.

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

So my guess is that EA wanted breakable windows for buildings. :P
ImageImageImage
I have cameras in your head!
User avatar
Senshi
Posts: 697
Joined: Sun Oct 18, 2009 1:14 pm
Location: Germany
Contact:

Re: Breaking glass

Post by Senshi »

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.
Post Reply