PDA

View Full Version : Gravity Gun


MAZter
January 12th, 2005, 06:49 AM
Nobody wishes to make Gravity gun (like in Half-life 2) for Doom Legacy? Imho idea very perspective.

NTG56
January 12th, 2005, 07:26 AM
dude that is messed up, i was going to post this idea i had for this....oh well ill just post it now! :D

ok heres all we gotta do:
replace the sprites of the fist with gravity gun pics (load up map in "dm_construct" and then take several pics)
find some sort of variable that is active when the player is shooting.
when the player shoots, look in the #of degress the player has set there view to, and find all inanimate objects in that view (also set a varible telling the that user fired once)
get a lock on the one most in the center of the players view
activate script that pulls object towards player, speeding up as its closr
when object it about the legenth of a couple feet hold it there
as the player turns, always be sure the object remains in front of the player
when the player fieres again, compute some stuff to make whatever the player picked up go flying @ the angle that the players fireing at at about the speed of a turbo door

hopefully this will work, i intend to start looking stuff up this afternoon. :)

Cherepoc
January 12th, 2005, 07:35 AM
Well, you really think it is possible in Legacy? Heh, it will be better if they make slopes and decorate first.

MAZter
January 12th, 2005, 07:44 AM
Why not? It's may be real for pickup something sprites like other players, medkit, armor...

Cherepoc
January 12th, 2005, 08:24 AM
heh, if they want they will make it. I just sad. that its not easy to do this and it's impossible with scripts

MAZter
January 15th, 2005, 05:00 PM
ZDoom developers did it:

http://forum.zdoom.org/viewtopic.php?t=4885

Screenshot:

http://iddqd.ru/scr/gravgun.jpg

P.S. This time it work only for pick up Barrels

ToXiCFLUFF
January 15th, 2005, 05:43 PM
If I just get a few utterly spare hours, I might have a go at this.

NTG56
January 16th, 2005, 07:26 AM
hey, worst case u can just bind a coupla keys to the gravity gun control scripts if u cant see when the player is fireing..