Scripted Sequences Help!
Post Reply
Quote
Re: Scripted Sequences Help!
Posted by Unknown_Consequences on Thu Jun 28th at 1:17pm 2007


How would i go about making a npc hand the player a handgun???

Like in Half-Life 2: Episode 1 when barney hands gordon the crowbar??

Can it be done with a normal Rebel and a Handgun Instead of a Crowbar??





Quote
Re: Scripted Sequences Help!
Posted by Stadric on Thu Jun 28th at 5:17pm 2007


You can use attachments to "give" the citizen a handgun, and then give it to the player by using the give console command and hiding the weapon in the citizen's hand.


Also change the texture of the dock. Docks are rarely tile. -Facepunch
As I Lay Dying



Quote
Re: Scripted Sequences Help!
Posted by reaper47 on Thu Jun 28th at 6:33pm 2007


I could be wrong now, but one of the later sdk_trainstation example VMF files in the sdkcontent/hl2/maps folder should include the sequence where Barney hands over the crowbar.





Quote
Re: Scripted Sequences Help!
Posted by Unknown_Consequences on Fri Jun 29th at 11:50pm 2007


yeah but i dont want the rebel the drop the weapon i want him to hold it in his hands until the palyer takes it from his hands

And Stadric

is there a tutorial on how to do that or can you explain it better??





Quote
Re: Scripted Sequences Help!
Posted by Stadric on Sat Jun 30th at 2:44am 2007


I only know what I remember of what I heard about how they did the Barney crowbar scene (the one where he take it out of a gear and lets the bridge fall).
Look up a tutorial on attachments and that should give you all the info you need.

The "give weapon_pistol" console command will give the player the gun perfectly fine, you can trigger it after the player walks into a trigger near the NPC's hand.



Also change the texture of the dock. Docks are rarely tile. -Facepunch
As I Lay Dying



Quote
Re: Scripted Sequences Help!
Posted by Unknown_Consequences on Sat Jun 30th at 3:39am 2007


yeah thats the way i was thinkin of like in the episode one part.... they said they used 3 models one was in the crank one in his hand and the other they gave to gordon

anyways ill search for an attachment tut





Quote
Re: Scripted Sequences Help!
Posted by FIDDLER on Mon Jul 2nd at 6:18pm 2007


Just decompile the eli lab 2 map where Alyx hands the grav gun to you. Look at how it's done and change to your likings.





Quote
Re: Scripted Sequences Help!
Posted by Unknown_Consequences on Tue Jul 3rd at 12:58am 2007


wow that a good idea fiddler

i extracted the bsp using GCFscape but how do i decompile it to a .vmf so i can open it in hammer???





Quote
Re: Scripted Sequences Help!
Posted by Stadric on Tue Jul 3rd at 4:13am 2007


Google VMEX.


Also change the texture of the dock. Docks are rarely tile. -Facepunch
As I Lay Dying




Post Reply