2 questions

MrMan

Newbie
Joined
Nov 19, 2004
Messages
644
Reaction score
0
Ok this is probably a bit ambitious but what i want to do is have a point in my map in the distance, represented by an object, which, when looked at while holding the gravity gun and right-clicking will draw in a certain object for the player to then throw. This can be done from anywhere in the map that you can see the far away object....

....is it possible?

Also, is there a material or texture that is see through, will allow a player to stand on it, but will also let bullets pass through it?
 
Just curious, could you explain what this is all for? I'm allways more inclined to help when I'm interested.
 
Cant really without giving away secrets, but its for a map for the snarkpit competiton, pretty much all i can say :)

Thanks for that chaos i forgot about the clip textures...

Any ideas on the whole gravity gun/object in distance question?
 
To grab objects from a certain point with the grav gun at any distance. My way of thinking would involve some rather hacky code and a new entitie or two.

Problem number 1, you need a way for this point to spawn the grabable object when the player clicks on it. Problem number two, the spawned object needs to be able to be pulled towards the grav gun from any distance in the map. Problem number three, you say when the player can see they object. This would involve a lot of calculating every characters point of view and cause immense lag. Unless you used pre-determined triggers flicking the grab ability off, for say a character walking inside a building.

In other words I'm stumped unless I modded it in my self. However, it's a mapping comp, so that can't be done. Someone else may think of a way to do it. I've only just started seriously mapping for hl2, I've been using all my hl1 knowledge to answer peoples questions for months now.
 
...all of which led me to believe it was a bit ambitious in the first place :) hmmm
 
Kyo said:
To grab objects from a certain point with the grav gun at any distance. My way of thinking would involve some rather hacky code and a new entitie or two.
Couldn't you possilby get the map to run a server command to change the distance the gravity gun can grab objects. I know it can be done yourself in console.

Kyo said:
Problem number 1, you need a way for this point to spawn the grabable object when the player clicks on it.
Couldn't you make another object spawn in as soon as the first obeject leaves its place?

Kyo said:
Problem number two, the spawned object needs to be able to be pulled towards the grav gun from any distance in the map.
Again can't that be set by the map?

Kyo said:
Problem number three, you say when the player can see they object. This would involve a lot of calculating every characters point of view and cause immense lag. Unless you used pre-determined triggers flicking the grab ability off, for say a character walking inside a building.
How is that any different than how the game works normally, like in hl2dm. And besides wouldnt it be easier to use visleaves to calculate whether or not an object is able to be grabbed?
 
Limpet said:
Couldn't you possilby get the map to run a server command to change the distance the gravity gun can grab objects. I know it can be done yourself in console.

Yes you can, but you don't want every object in the map to be able to be grabbed from any distance.

Limpet said:
Couldn't you make another object spawn in as soon as the first obeject leaves its place?

Might not be a good idea when many people try to grab an object at the same time.

Limpet said:
How is that any different than how the game works normally, like in hl2dm. And besides wouldnt it be easier to use visleaves to calculate whether or not an object is able to be grabbed?

Using Vis leaves would be less accurate than triggers.
 
Actually the object im referring to, the one in the distance, would be the ONLY pickup in the level, hence being able to grab it from anywhere. It would simply respawn after every pickup to allow unlimited pickups
 
Well now it's plausable.

I'd seriously consider giving each spawned pickup a lifetime. Otherwise the map will end up full of them and eventually crash.
 
Yeah they will have, theyre not just any old objects :) Must be buggin the hell out of you but i dont wanna say any more..thanks for help ill carry on lookin into it, will post back if i need further assistance or if i make progress
 
Back
Top