Scripted Sequences Help!

Scripted Sequences Help!

Re: Scripted Sequences Help! Posted by Unknown_Consequences on Thu Jun 28th 2007 at 1:17pm
Posted 2007-06-28 1:17pm
46 posts 5 snarkmarks Registered: Oct 12th 2006 Occupation: Mc'donalds Location: Australia
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??
Re: Scripted Sequences Help! Posted by Stadric on Thu Jun 28th 2007 at 5:17pm
Stadric
848 posts
Posted 2007-06-28 5:17pm
Stadric
member
848 posts 585 snarkmarks Registered: Jun 3rd 2005 Occupation: Slacker Location: Here
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
Re: Scripted Sequences Help! Posted by reaper47 on Thu Jun 28th 2007 at 6:33pm
reaper47
2827 posts
Posted 2007-06-28 6:33pm
reaper47
member
2827 posts 1921 snarkmarks Registered: Feb 16th 2005 Location: Austria
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.
Why snark works.
Re: Scripted Sequences Help! Posted by Unknown_Consequences on Fri Jun 29th 2007 at 11:50pm
Posted 2007-06-29 11:50pm
46 posts 5 snarkmarks Registered: Oct 12th 2006 Occupation: Mc'donalds Location: Australia
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??
Re: Scripted Sequences Help! Posted by Stadric on Sat Jun 30th 2007 at 2:44am
Stadric
848 posts
Posted 2007-06-30 2:44am
Stadric
member
848 posts 585 snarkmarks Registered: Jun 3rd 2005 Occupation: Slacker Location: Here
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
Re: Scripted Sequences Help! Posted by Unknown_Consequences on Sat Jun 30th 2007 at 3:39am
Posted 2007-06-30 3:39am
46 posts 5 snarkmarks Registered: Oct 12th 2006 Occupation: Mc'donalds Location: Australia
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
Re: Scripted Sequences Help! Posted by FIDDLER on Mon Jul 2nd 2007 at 6:18pm
FIDDLER
39 posts
Posted 2007-07-02 6:18pm
FIDDLER
member
39 posts 14 snarkmarks Registered: Feb 4th 2003
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.
Re: Scripted Sequences Help! Posted by Unknown_Consequences on Tue Jul 3rd 2007 at 12:58am
Posted 2007-07-03 12:58am
46 posts 5 snarkmarks Registered: Oct 12th 2006 Occupation: Mc'donalds Location: Australia
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???
Re: Scripted Sequences Help! Posted by Stadric on Tue Jul 3rd 2007 at 4:13am
Stadric
848 posts
Posted 2007-07-03 4:13am
Stadric
member
848 posts 585 snarkmarks Registered: Jun 3rd 2005 Occupation: Slacker Location: Here
Google VMEX.
Also change the texture of the dock. Docks are rarely tile. -Facepunch
As I Lay Dying