Destructibles- a simple way to make breakable stuff for your maps
Please take the time and read the instructions. There is a small learning curve but once you sort that out then the making and placing of destructibles will be quick and easy.
Installation: If you need help with this part then delete the mod and go back to Halo. Seriously.
Overview:
Destructibles have three classes- DestructibleGlass, DestructibleWood, and DestructibleStone. Choose the one closest to the material you are working with as the effects are tailored to each one.
To create:
With your map open, select the actor class browser and open the Destructibles.u package. Now, take your chosen BSP you want to make the destructible from and put your builder brush around it just like you are making a normal mover. Intersect the BSP and then right-click the "create a mover" button. You'll see three new mover classes. Select the one that is your material and the editor will make you a mover. Now place that mover where you want the destructible placed. It's almost ready for use once we adjust the properties.
Open the defaultproperties for your new Destructible mover. You will find these new settings:
ExplosionDimensions=
ChunkSize=
ChunkNumber=
ChunkTexture=
BreakingSound=
Let's do a quick rundown of these settings...
First, ExplosionDimensions sets the radius around the mover's center where the chunks will spawn. A higher number means the chunks spawn farther away. Small models will need 30-50 and larger models may need 100 or more. Experiment to see visually what looks the best given your chosen thing.
Next is ChunkSize. This is the size of the created chunks. 1 is default, 2.5 or 3 is pretty large and .25 is pretty small. Again, just test and see what works.
ChunkNumber is the number of created chunks when the object is destroyed. Don't overdo this number, try to be realistic. 3 or 4 usually works for stone, a few more for wood, and glass needs the most.
ChunkTexture is the texture the chunks will have. Does NOT need to be the same as the object being destroyed.
BreakingSound is the sound emitted from the Destructible when it breaks apart.
Lastly, there is a default setting in mover called "DamageThreshold". Don't forget to set this to whatever damage you want your object to take before it breaks apart. Consider this the 'health' setting for your Destructible.
You can see that we tried to make this mod scale from small objects to large ones by adjusting these settings. Overall it gives a good effect suite with very low overhead and minimal stress on the client and almost none on the server.
A few things to keep in mind:
Don't let your Destructible touch anything when it is placed. Because these are subclassed from mover they carry some of the weirdness too. Just give it a single unit of space and things will be fine. If you don't then the Destructible can get buggy and not work right. You were warned if you ignore this.
Also don't forget to set KeyFrame1 and move the Destructible to somewhere in the void that is outside your map. This will give the Destructible a place to go when it is triggered so that it appears it was destroyed to the player. We need to keep the mover and not destroy it since UT really doesn't like it if that happens so placing it's KeyFrame into the void accomplishes all that.
As always, improve this code if you want. Source was included so have at things. This works well for what we wanted and should fit a pretty big variety of sitations but develop on with it if you need something more particular.
Good luck!
papercoffee & gopostal
Destructibles
-
- Godlike
- Posts: 3774
- Joined: Fri Jan 14, 2011 1:53 pm
- Personal rank: -Retired-
Destructibles
I got the coding done for this and it's pretty much ready for anyone to use as they like. I'm going to place the readme here first so you can decide if it interests you. Hopefully in the next day or two paper and I will add a demo map with the destructible actors and you can see everything in action.
So long, and thanks for all the fish
- UTPe
- Masterful
- Posts: 592
- Joined: Sun Jul 12, 2009 7:10 pm
- Personal rank: Dude
- Location: Trieste, Italy
- Contact:
Re: Destructibles
wow ! ![Agree 1 :agree1:](./images/smilies/zustimm.gif)
![Agree 1 :agree1:](./images/smilies/zustimm.gif)
Personal map database: http://www.ut99maps.net
"These are the days that we will return to one day in the future only in memories." (The Midnight)
"These are the days that we will return to one day in the future only in memories." (The Midnight)
- Hook
- Inhuman
- Posts: 754
- Joined: Tue Apr 22, 2008 11:21 pm
- Personal rank: UT99 Promoter/Admin
- Location: Minnesota USA
- Contact:
Re: Destructibles
I am surprised something like this hasn't been made yet - good idea, and good job! ![goodjob :gj:](./images/smilies/goodjob.gif)
![goodjob :gj:](./images/smilies/goodjob.gif)
=Hook=(Member# 626)
HUTP Active Forums: https://hooksutplace.freeforums.net/forum
HUTP UT99 Community Portal: https://hooksutplace.freeforums.net/
OR: https://hermskii.com/hook/ut99_hutp/
UT99 Server -> CROSSBONES Missile Madness {CMM}
* Newest Versions of: PRO-Redeemers | PRO-SNIPER-Redeemers | PRO-SEEKER-Redeemers <-(the Original)
and Now with FOOD FIGHT and Frying Pan arena !!!
IP: 68.232.181.236:7777 <-(NEW IP to come)
UT99 MH Server -> {CMH} CROSSBONES Monster Hunt (MH) by Mars007 (The Original) - IP: 108.61.238.93:7777
HUTP Active Forums: https://hooksutplace.freeforums.net/forum
HUTP UT99 Community Portal: https://hooksutplace.freeforums.net/
OR: https://hermskii.com/hook/ut99_hutp/
UT99 Server -> CROSSBONES Missile Madness {CMM}
* Newest Versions of: PRO-Redeemers | PRO-SNIPER-Redeemers | PRO-SEEKER-Redeemers <-(the Original)
and Now with FOOD FIGHT and Frying Pan arena !!!
IP: 68.232.181.236:7777 <-(NEW IP to come)
UT99 MH Server -> {CMH} CROSSBONES Monster Hunt (MH) by Mars007 (The Original) - IP: 108.61.238.93:7777
- Dr.Flay
- Godlike
- Posts: 3348
- Joined: Thu Aug 04, 2011 9:26 pm
- Personal rank: Chaos Evangelist
- Location: Kernow, UK
- Contact:
Re: Destructibles
Sometimes it takes the ramblings of a fool, to inspire the genius to do their thang
...The fool has been thinking again. Be prepared![Wink :wink:](./images/smilies/icon_wink.gif)
Do you think it could work with something like "HeavyMetal Drivables" ?
http://wayback.archive.org/web/20021210 ... ntro.shtml
![Ironic 2 :ironic2:](./images/smilies/LeichteIronie.gif)
...The fool has been thinking again. Be prepared
![Wink :wink:](./images/smilies/icon_wink.gif)
Do you think it could work with something like "HeavyMetal Drivables" ?
http://wayback.archive.org/web/20021210 ... ntro.shtml
- Attachments
-
- HeavyMetal_Drivables.rar
- (783.45 KiB) Downloaded 179 times
![Arrow :arrow:](./images/smilies/icon_arrow.gif)
ChaosUT https://chaoticdreams.org
Your Unreal resources: https://yourunreal.wordpress.com
The UT99/UnReal Directory: https://forumdirectory.freeforums.org
Find me on Steam and GoG
-
- Godlike
- Posts: 3774
- Joined: Fri Jan 14, 2011 1:53 pm
- Personal rank: -Retired-
Re: Destructibles
You can make a destructible out of anything that you can make a mover out of. In my demo I made one out a medium sized nali boat.
So long, and thanks for all the fish
Re: Destructibles
I know that blast a regular wooden box in MH can cause a server-crash if the splitter hits a monster, could this happen with this mutator to ?
-
- Godlike
- Posts: 3774
- Joined: Fri Jan 14, 2011 1:53 pm
- Personal rank: -Retired-
Re: Destructibles
That crash is caused by a subroutine called CanSeeMe() and it's in all fragments, carcasses, biterfish, gibs, stuff like that. If this mod causes any sort of crash increase because of this then I'll script new fragment classes for everything. I wanted this to remain as simple as possible and use as much of the default UT stuff as I could so it remains very fast and light on everyone. I can imagine this getting heavily abused by mappers going all out on making some crazy destructible map so paper and I made it so that it has the least impact on your game that it can while still giving the desired visual effect.
So yeah, it could possibly cause problems but I'll damn sure fix it if it does.
So yeah, it could possibly cause problems but I'll damn sure fix it if it does.
So long, and thanks for all the fish
-
- Inhuman
- Posts: 958
- Joined: Wed Mar 31, 2010 9:02 pm
- Personal rank: I am quite rank.
- Location: MrLoathsome fell out of the world!
- Dr.Flay
- Godlike
- Posts: 3348
- Joined: Thu Aug 04, 2011 9:26 pm
- Personal rank: Chaos Evangelist
- Location: Kernow, UK
- Contact:
Re: Destructibles
Very interesting ![Very Happy :D](./images/smilies/icon_biggrin.gif)
I had almost discarded the idea of investigating the HeavyMetal Drivables, as the physics is limited and for most occasions you need vehicles that can spawn from a factory type jobbie.
However, seeing you shoot-up the ship model made me think, if only used with slow, large driveables like ships, mobile armour, air-ships, space-ships, submarines.. that sort of thing, the combination of the 2 mods could be incredible.
![Very Happy :D](./images/smilies/icon_biggrin.gif)
I had almost discarded the idea of investigating the HeavyMetal Drivables, as the physics is limited and for most occasions you need vehicles that can spawn from a factory type jobbie.
However, seeing you shoot-up the ship model made me think, if only used with slow, large driveables like ships, mobile armour, air-ships, space-ships, submarines.. that sort of thing, the combination of the 2 mods could be incredible.
![Arrow :arrow:](./images/smilies/icon_arrow.gif)
ChaosUT https://chaoticdreams.org
Your Unreal resources: https://yourunreal.wordpress.com
The UT99/UnReal Directory: https://forumdirectory.freeforums.org
Find me on Steam and GoG
-
- Godlike
- Posts: 3774
- Joined: Fri Jan 14, 2011 1:53 pm
- Personal rank: -Retired-
Re: Destructibles
Man I hate to take so long to get stuff done. My apologies.
OK, here's the U file and the test map. This gives a couple of examples of destructibles for you to spawn in and bust up. This map has some errors in it but paper and I built and rebuilt over and over testing back and forth. Just note the examples and go forth to use it in your own project. Don't copy anything from this map into your stuff. It's buggy as hell honestly but that's not unexpected given the amount of changes this simple map has been through.
As always if you can find a better way then rock on with developing this. i just need to get this out of the way and released so I can work on my coop server. Have fun with it and let me know how it goes. The classes are simple but I'll post the source if anyone wants it.
paper, it's been a blast working with you again. You are such a great guy.
OK, here's the U file and the test map. This gives a couple of examples of destructibles for you to spawn in and bust up. This map has some errors in it but paper and I built and rebuilt over and over testing back and forth. Just note the examples and go forth to use it in your own project. Don't copy anything from this map into your stuff. It's buggy as hell honestly but that's not unexpected given the amount of changes this simple map has been through.
As always if you can find a better way then rock on with developing this. i just need to get this out of the way and released so I can work on my coop server. Have fun with it and let me know how it goes. The classes are simple but I'll post the source if anyone wants it.
paper, it's been a blast working with you again. You are such a great guy.
So long, and thanks for all the fish
- papercoffee
- Godlike
- Posts: 10462
- Joined: Wed Jul 15, 2009 11:36 am
- Personal rank: coffee addicted !!!
- Location: Cologne, the city with the big cathedral.
- Contact:
Re: Destructibles
Oh stop it you sweet-talkerJackGriffin wrote: paper, it's been a blast working with you again. You are such a great guy.
![Embarassed :oops:](./images/smilies/icon_redface.gif)
![Mr. Green :mrgreen:](./images/smilies/icon_mrgreen.gif)
- Dr.Flay
- Godlike
- Posts: 3348
- Joined: Thu Aug 04, 2011 9:26 pm
- Personal rank: Chaos Evangelist
- Location: Kernow, UK
- Contact:
Re: Destructibles
And I gotta wait till the weekend until I get back home ![Sad :(](./images/smilies/icon_sad.gif)
I guess I can spend the time doing a little promoting.
Hopefully after people post some screenshots of their , it will snowball as they realise the potential![thumbsup :tu:](./images/smilies/thumbsup.gif)
BTW. will this work in Unreal ?
![Sad :(](./images/smilies/icon_sad.gif)
I guess I can spend the time doing a little promoting.
Hopefully after people post some screenshots of their , it will snowball as they realise the potential
![thumbsup :tu:](./images/smilies/thumbsup.gif)
BTW. will this work in Unreal ?
![Arrow :arrow:](./images/smilies/icon_arrow.gif)
ChaosUT https://chaoticdreams.org
Your Unreal resources: https://yourunreal.wordpress.com
The UT99/UnReal Directory: https://forumdirectory.freeforums.org
Find me on Steam and GoG
-
- Godlike
- Posts: 3774
- Joined: Fri Jan 14, 2011 1:53 pm
- Personal rank: -Retired-
Re: Destructibles
No, however it would be easy to copy what I did in the same U1 classes.
So long, and thanks for all the fish
- Dr.Flay
- Godlike
- Posts: 3348
- Joined: Thu Aug 04, 2011 9:26 pm
- Personal rank: Chaos Evangelist
- Location: Kernow, UK
- Contact:
Re: Destructibles
OK. I will ask interested parties to come here contact you about doing a port.
It has raised interest (obviously!) at Oldunreal and UnrealSP.
We need to make sure they stay in-line and compatible if someone else does make it.
It has raised interest (obviously!) at Oldunreal and UnrealSP.
We need to make sure they stay in-line and compatible if someone else does make it.
![Arrow :arrow:](./images/smilies/icon_arrow.gif)
ChaosUT https://chaoticdreams.org
Your Unreal resources: https://yourunreal.wordpress.com
The UT99/UnReal Directory: https://forumdirectory.freeforums.org
Find me on Steam and GoG
Re: Destructibles
Im still making (80% finished) a DM map and I thinking about using 'Destructibles' in that map, for example a some destructible fences, pipes. So I going to test it out.
.
that tutorial map crashes sometimes, I hope my map will be fine :p. Im still a noob. It is good to make destructible movers touching each other or better not ?
.
that tutorial map crashes sometimes, I hope my map will be fine :p. Im still a noob. It is good to make destructible movers touching each other or better not ?