Destroy entities!

Destroy entities!

Re: Destroy entities! Posted by Vix on Wed Dec 28th 2005 at 3:59pm
Vix
38 posts
Posted 2005-12-28 3:59pm
Vix
member
38 posts 14 snarkmarks Registered: Nov 24th 2004 Occupation: Computers Location: Spain
Hi all.

I am working on a map that is based on a weapons factory. I want to do a movable belt that has two holes and the belt, in one side a especific weapon appears and moves with the belt to the other side where there is the other hole and there should disappear. I did the part where the weapon appears using env_entity_maker & point_template, it worked ok through a trigger_multiple (it can be a button too, i know). But my doubt comes when i have to do the part where the entities disappear. I know there is an I/O event, that is "kill". But don't know exactly how to make the game knows where and when to destroy the weapons. ? It should be a trigger ? and when the weapon reaches this trigger ?it destroys the weapon? ?has anybody did something like this?

But there is also another problem, my movable belt (trigger_push) does not work with weapons. I checked the "physics objects" and even "everything" and all was moved but weapons. :sad:

I was thinking too on making the machine upside-down, that it throw the weapons from above and that they fall into a hole where disappears. But my initial idea was the movable belt, because of the players can go through and get some weapons to continue the game.

? Any ideas about how to destroy weapons ? ? And about the movable belt ?(trigger_push)

I know there are two topics in this same post, but i think that they are related if you want to do the movable belt thing.

Here is a pic of what i have in mind:

User posted image
Re: Destroy entities! Posted by Carcase on Wed Dec 28th 2005 at 5:29pm
Carcase
145 posts
Posted 2005-12-28 5:29pm
Carcase
member
145 posts 15 snarkmarks Registered: Nov 15th 2003 Location: Northern Virginia
Hmm, well from experience I DO know that the trigger_dissolve, or trigger_weapondissolve, something like that, will dissolve weapons, bodies, npc's, everything it touches. It'll kill players when touched too. It even takes an info_target and shoot a laser from it into any nearby gravgun and turn it into the super grav gun if needed.

I'm not sure exactly how to work it, but it takes a little fooling around with. If you can manage to get it working, you should put it at the end of the conveyor belt or whatever you're making.

Another alternative to your trigger_push problem could be func_conveyor. I know it works with players, havn't tried making it work with objects though.

Also, your trigger_push might not be strong enough. The effect of trigger_push is exponential, every second the object is in the trigger, it gets the amount of force added onto it.

I havn't tried it yet but you could try making a func_tracktrain and have it move along a track, where the gun is parented to the train. And make the train invisible (nodraw texture) and have no collision.

If func_conveyor works with physics objects, then i say thats your best bet.

Hope this helps.
Re: Destroy entities! Posted by Vix on Fri Dec 30th 2005 at 11:58pm
Vix
38 posts
Posted 2005-12-30 11:58pm
Vix
member
38 posts 14 snarkmarks Registered: Nov 24th 2004 Occupation: Computers Location: Spain
Ok, the entity to destroy other entities is trigger_remove , but it did not work, at least when i dropped my weapons inside the hole, they were not removed.

About the conveyor, there are two entities, but neither trigger_push nor func_conveyor worked. They push anything but weapons, i don't know why.

I didn't try the func_tracktrain yet, but i may give it a try.

Or may be i will simply put some weapons above some desks or crates in the factory, instead of trying this movable belt thing. :sad: At least it will look like they are dealing with weapons.

Thanks for your answer anyway Carcase, i appreciate that :wink:

Note: I don't mark your answer as incorrect or correct, because you may be right and i don't know how to do what i want. :S
Re: Destroy entities! Posted by Crono on Sat Dec 31st 2005 at 12:31am
Crono
6628 posts
Posted 2005-12-31 12:31am
Crono
super admin
6628 posts 700 snarkmarks Registered: Dec 19th 2003 Location: Oregon, USA
You should check out the output options for killing an entity (which will completly remove it from the world). It should be, at least, a little handy.
Blame it on Microsoft, God does.
Re: Destroy entities! Posted by omegaslayer on Sat Dec 31st 2005 at 3:05am
omegaslayer
2481 posts
Posted 2005-12-31 3:05am
2481 posts 595 snarkmarks Registered: Jan 16th 2004 Occupation: Sr. DevOPS Engineer Location: Seattle, WA
Here read this:

http://developer.valvesoftware.com/wiki/User_Inputs_and_Outputs

I think this is what your looking for.
Posting And You