Breaking glass

Ask questions, discuss ideas, get answers

Breaking glass

Postby MR PINK BALLS » Mon Nov 02, 2009 3:49 am

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
MR PINK BALLS
 
Posts: 267
Joined: Sun Oct 18, 2009 4:01 pm

Re: Breaking glass

Postby Senshi » Mon Nov 02, 2009 8:44 am

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
Senshi
 
Posts: 695
Joined: Sun Oct 18, 2009 1:14 pm
Location: Germany

Re: Breaking glass

Postby Apache Thunder » Mon Nov 02, 2009 5:08 pm

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

Re: Breaking glass

Postby Iced Earth » Mon Nov 02, 2009 8:32 pm

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
Iced Earth
 
Posts: 208
Joined: Sun Oct 18, 2009 2:07 pm

Re: Breaking glass

Postby fo0k » Tue Nov 03, 2009 4:21 am

any youtubes of this in action? :P
User avatar
fo0k
 
Posts: 1411
Joined: Fri Oct 16, 2009 4:21 pm
Location: UK

Re: Breaking glass

Postby Apache Thunder » Tue Nov 03, 2009 6:25 am

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

Re: Breaking glass

Postby Senshi » Tue Nov 03, 2009 9:44 am

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.
User avatar
Senshi
 
Posts: 695
Joined: Sun Oct 18, 2009 1:14 pm
Location: Germany


Return to 1942 Modding Discussion

Who is online

Users browsing this forum: Google [Bot] and 15 guests

cron