Please or Register to create posts and topics.

Can infodecals be stored as handles?

Page 1 of 2Next

Hey, I've got another scripting question. I'm trying to place a decal and store it in an array:

Spoiler
Sorry, only logged-in users can see spoilers.

Before this, I was trying the FindByNameWithin() function after creating it with an entity maker. Neither of these methods are storing any handle value in the variable. I'm starting to wonder if it's even possible to hold infodecals in a handle variable. I need to be able to change the names of the infodecals dynamically so I can set a texturetoggle up to switch the texture of dynamically specified infodecals. Has anyone else had problems with this, or can anyone see something wrong with my logic?

I was calling the function from the wrong spot. The infodecal is being created, but the addoutput entfires don't seem to be firing because when I use GetName() it comes up blank, and I can't see the decal image in the specified spot.
Edit: It's also not being added to the array, so still kinda the same problem.

According to the VDC, infodecal entities are removed immediately after "spraying" (either when the map loads or when given the Activate input).

Falsi sumus crusto!

That would explain a lot, except for the fact that I can still use a texturetogglecon them after they have applied themselves to the wall.

This might be because the toggle texture command applies global to all object using the given material.

Ok, well something changed in how I was testing things that is now causing the decals to not be able to toggle texture. I'll have to try to find out why it was ever working in the first place. But It's really looking now like I'm not going to be able to choose specific decals to edit he way I hoped.. Thanks for your help guys.

info_overlay work like decals, but might be able to get manipulated in game. Take a look on them.

Yeah, I was working with those first. They are really difficult to place in calculated positions, and looks impossible because they each need a brush number to attach to, and a specific angle. My new plan is to create an info_target at the same place, and instead of toggling the texture, I'm going to place another decal over the same spot. If low priority is set to yes, it would probably replace one decal with the new one, and I can replace again when toggling back.

So I tried placing the second decal over the first, while both are set to low priority. The problem now is that the older decals are not going away. The 2 decals are exaclty the same size, and are in exactly the same place. From what I can tell about the LowPriority setting on infodecals from the Valve Developer Comunity, this should be removing the old decal. Does anyone have any idea why older decals are not being removed. Is there another way to remove decals?

The low priority setting only applies when the number of decals placed exceeds the engine's limit. I think it's usually used for things like bullet holes (in HL2).

Falsi sumus crusto!
Page 1 of 2Next