Pulling Objects Help

Discuss Halo 2 modding, progress on figuring things out, mapfiles...you know the drill. Cheating discussion not allowed.
Post Reply
mintybreath





Posts: 25
Joined: Mon Nov 26, 2007 5:55 pm

Pulling Objects Help

Post by mintybreath »

I had the idea a few weeks ago to make a gun primary fire propel an object, secondary fire pull an object. It occured to me that to pull an object i could simply make the bullet push from the other direction. So i made the guns primary fire push, simple. Then i made the weapons secondary fire shoot a bullet from 1000 on the x coordinate. That still pushed the object. So i changed it to 50 on the X coordinate, it still only pushed. Does anyone have any idea what is wrong? Based on my logic the bullet should be coming from 50 points (or feet. Whatever measurement is) ahead and hitting the object from behind. Pushing it towards me, which its not.
Any one have any idea? Any help is appreciated
User avatar
CaptainPoopface




Artisan Advisor Literarian 250

Posts: 408
Joined: Mon Jul 23, 2007 7:56 am

Post by CaptainPoopface »

The bullet spawns either as far as you tell it to (50), or until an object intersects its path, whichever is shorter. So when you shoot at an object that is closer than 50, the bullet "starts" there, and goes toward the point where your reticle intersects some coll. I tried this very trick awhile ago, using bullets that fire backwards. I suspect it happens this way because otherwise the bullet would originate inside a solid object, and that would not compute.

I will post a tutorial for how to pull objects using a new method soon. But it's not nearly as easy as pushing.

And of course, you have played with ExileLord's gravity gun, right?
Retired. Thank you neodos, DemonicSandwich, DarkShallFall, Dragonfire, foxfanatic2317, GOWO and everyone in the hall of fame.
If you want to know how I did something, take apart my mods.
mintybreath





Posts: 25
Joined: Mon Nov 26, 2007 5:55 pm

Post by mintybreath »

About exiles gravity gun, thats kinda where my idea completed. Before i saw his mod i had the idea for a gun pushing and pulling. The idea for pulling, as i said before, was an idea of my own thoughts. But then after i saw exiles gravity gun, i realize a push and pull would provide lift. So he kinda completed my idea for a gravity gun (Which of course he did first, im not saying "I was first to think of it")

I still want to create it myself because i feel its much more fun to be able to tell your friends "I made this" than it is to tell them "I downloaded this". :)
You know what i mean?

Getting 2 firing types was a pain, and i dont think i did it the most effective way, but i did it. So i'm kinda just waiting on the pull tutorial. No rush though, whenever you can manage it is fine. Just post it back when you finish it, and thanks for your help in advance
Dr.Flatulator





Posts: 18
Joined: Sun Jul 27, 2008 5:31 am
Contact:

Post by Dr.Flatulator »

You can make it so the projectile spawns behind the object, that will pull it towards you, there is a working gravity gun on a mod, look on dec's Half Life mod, I think that one has the push and pull feature.
Post Reply