Please or Register to create posts and topics.

My Companion Cubes Have Betrayed My Graphics Card

So I'm nearly done with my first actual project and I'm just creating a cinematic intro to it.

Part of the intro includes a room full of many companion cubes, so I did that and made them all prop_static.

When I compiled, it said that the cube model couldn't be used as static so I made them all prop_physics.

Big mistake...when I go in game, the game freezes every microsecond. It took my game literally two minutes to get up the elevator shaft.

I know that this is because of the huge amount of prop_physics because I have gotten board before and spawned in a huge amount of companion cubes before my game froze [long story] but anyways, is there any way to keep this huge amount of lag from happening?

Make the companion cubes prop_static_override.

Image

Make sure they are sitting on top of each other, then check the flag "motion disabled". This'll stop them from moving or doing physics calculations. If the player can interact with the room in any way, set the flag "start asleep" instead. This does the same thing until something else interacts with a cube.

My stuff:
[spoiler]- BEE2 Addons | (BEE2)
- Hammer Addons
Maps:
- Crushed Gel
- Gel is Not Always Helpful[/spoiler]
TeamSpen210 wrote:
Make sure they are sitting on top of each other, then check the flag "motion disabled". This'll stop them from moving or doing physics calculations. If the player can interact with the room in any way, set the flag "start asleep" instead. This does the same thing until something else interacts with a cube.

However, if the player interacts with all the cubes, the same problem would occur.

Image

If they don't even move then just change it to a prop_dynamic.

?????????????????????????????TWP Releases | My Workshop

None of these will work if a physics object touches the cubes. There is no prop_static_override and I think cubes are physics-only.

Use a bunch of prop_dynamic_overrides.

Falsi sumus crusto!

@Dr.Toaster Waffles: depending of the point_viewcontrol position and movement you could simply fake that bunch of companion cubes for example by using cube-shaped brushes textured with the wcc texture ;) You might need to polish the shape a bit to avoid a too-square shape and to make it look more close to the prop_weight_cube shape.

Another possibility could be to decompile the cube model and add the $propstatic to the .QC file, then compile again, then use it as a prop_static. I bet it works, but I haven't tried, someone correct me if I'm wrong.

ImageImageImageImageImageuseful tools and stuff here on TWP :thumbup:
[spoiler]ImageImageImageImageImage[/spoiler]
Ultiman9711 wrote:
Make the companion cubes prop_static_override.

:notwant:

Happy Mapping

http://www.tophattwaffle.com/ - My site for Source Engine Level Design
http://therewillbescience.com/ - Portal 2, Lab Rat
http://www.moddb.com/mods/portal-2-lab-rat - Portal 2, Lab Rat (MODDB)
FelixGriffin wrote:
None of these will work if a physics object touches the cubes. There is no prop_static_override and I think cubes are physics-only.

Use a bunch of prop_dynamic_overrides.

Oh wow! I must've been half asleep when I wrote, "prop_STATIC_override." Oops. I meant dynamic_override!

Image

@Ultiman: Don't worry. I feel your pain.

@Felix: Thanks, that's fine because the player isn't interacting with them at all. I mean, what kind of map would it be if the player got a room full of companion cubes, other than just a tantalizing glimpse at one?