Search
Username:
Password:
Register or Reset Password
Remove the ads!
  
Search Threads:           Advanced
 
 
 
 
 
Making an object unbreakable?
Posted 2 months ago, last post 1 month ago by TheBigCheese
24
Replies
581
Views
0
Favorites
Undefined
Class (?)
This is probably an easy question, but I couldn't find a tutorial or previous thread on it.

Currently, I have an object (models/props_interiors/furniture_desk01a.mdl) that is breakable by default. I want it to unbreakable, but still react to physics and hits.

I have tried adding a keyvalue to the properties named "health" and setting it to 0 for unbreakable, but that does nothing.

If there is already a thread or tutorial I missed could you redirect me? Thanks.
.
Want a map assessment? PM me! | Y2M
Posted 2 months ago
Make it a prop_static.
TheBigCheese .
| Y2M
Posted 2 months ago
Prop_static keeps it from moving. I want the desk to continue to act as a rigid body, but not break into gibs after it is hit.
.
Thumb up helpful posts! | Y2M
Posted 2 months ago
Posted by nosoul

Make it a prop_static.


This wont work because he wants it to be movable, just not breakable.

Have you checked the flags?
TheBigCheese .
| Y2M
Posted 2 months ago
Hmmm... I think the problem is that when I compile and run the map, it doesn't have the changes I made.
I think the file is corrupted, as now when I tried to load the file, it gives me the error:
"line 2030: unexpected end of file"

Edit:
I got the file working, but none of the flags change whether it is breakable.

.
For The Emperor. | Y2M
Posted 2 months ago
Put me inside it
TheBigCheese .
| Y2M
Posted 2 months ago
If only that worked...
.
Thumb up helpful posts! | Y2M
Posted 2 months ago
Try settings its health to some ridiculously high value, but not too high...

Try 9999
TheBigCheese .
| Y2M
Posted 2 months ago
Nope. Still gibs in three hits from the shotgun.

The health property I added is highlighted in red. Does that mean anything?
Annath .
Bananite | Y2M
Posted 2 months ago
I think that means that the entity doesn't recognize that property. What type of entity is it?
Bananite
TheBigCheese .
| Y2M
Posted 2 months ago
It's prop_physics_multiplayer.
UKCS-Alias .
The Knifosaurus | Y2M
Posted 2 months ago
Maybe you can make it a prop_dynamic and parent it to a func_physics_multiplayer brush. If im right a prop dynamic cant be destroyed by damage even if its by default in its properties (the explosive oildrums also have that - 1 shot makes them ignite). the func_physics then allows it to become a physics object again but unbreakable.
TheBigCheese .
| Y2M
Posted 2 months ago
How would I go about parenting it? I'm not sure how to find the targetname of the entity.
UKCS-Alias .
The Knifosaurus | Y2M
Posted 2 months ago
Well, the physics object needs a name like: prop_physics_table. Then on the table (a prop_dynamic) there is a parent value. just put the name of the physics object in there: prop_physics_table

you can replace prop_physics_table with any name. its just a example.

btw, i dont know if func_physics_multiplayer can have a name. If not then use the func_physics without the multiplayer part. just make sure that the brush is the size of the table to get realistic movement. And btw, the func_physics are brush based entities and not point entities.

Also, when you make more of those tables be sure that they all use a diffirent name or the parenting will mess up.
.
Dont say it.. We know it already! | Y2M
Posted 2 months ago
LoL.. I have proplem where i cant get func_breacable to break.. :D

But to make unbrackable desk do this:

Make a prop_Physics.
-------
Name it for fun.
min damage to hurt: 9999
------
Flags:
Motion disabled

Now it shuold not to break. :P
TheBigCheese .
| Y2M
Posted 1 month ago
Any prop_dynamics that I add don't show up at all, when I run the level. They show up fine in Hammer.
Is there anything special that you must do for prop_dynamic?
Annath .
Bananite | Y2M
Posted 1 month ago
Not that I know of. Also, prop_physics_multiplayer shouldn't be breakable. It isn't for me anyway.
Bananite
RocketRunner .
Ask me 'bout Spies! | Y2M
Posted 1 month ago
Posted by Annath

Not that I know of. Also, prop_physics_multiplayer shouldn't be breakable. It isn't for me anyway.

You're right.
Let's face it: WE NEED A DISPENER RIGHT HERE.
TheBigCheese .
| Y2M
Posted 1 month ago
Hmmm... Do I have to run the map in any special way, besides just hitting F9, since it's "multiplayer"?
Vcc2cc .
| Y2M
Posted 1 month ago
If I can recall, a physics object will have an option titles something like "object will break if it takes more than X amount of damage in one hit" make X like 1000.
TheBigCheese .
| Y2M
Posted 1 month ago
I tried that. Trouble is that by setting that, it doesn't take any physics interactions without the certain amount of damage.

I'm starting to think that my hammer is either a bad version or there is an updated version that I don't have. I just tried to make fire, which should be extremely easy, but it doesn't show up. I know I did the tutorial exactly right too.
.
Gonna start making spraysz | Y2M
Posted 1 month ago
Try !freeze lmao. I do it in the mods in HL2- dm :D
TheBigCheese .
| Y2M
Posted 1 month ago
What do you mean by !freeze? Some kind of console command?
Assess Thread
You cannot assess yet!
Moderating FPSB is in your hands - when you assess a submission your vote determines its success or failure.

To vote on this submission register or login.
Stamps
No stamps recorded
StampIt
Is this thread particularly good or bad in one or more areas? Stamp it!
You cannot stamp yet!
Stamps let you apply characteristics to submissions to help others understand them.

To stamp this submission register or login.
Share It!
Get HTML Code
Get BBCode
Tell a Friend
Posters Summary
Thread Stats on TheBigCheese .
Submissions: 2
Total Views: 816
Total Feedback: 29 posts
Average Rating: -
Unrated Threads: 2
Total Favs: 0
First Submission: 2 months ago
Latest Submission: 1 month ago
Favorite Category: TF2 > Mapping (1 threads)
Save It
You cannot post yet!
Get involved on FPSB by posting your thoughts. Give authors your feedback to help them develop.

To post in this submission register or login.