Combine Sniper

Tutorial collection, comprehensive listings on main site.

Combine Sniper

Postby Tutorial on Sat Jan 28, 2006 11:56 pm

category
General Half-Life 2/Entities

description
The snipers from HL2 were tricky to beat, add your own using this tutorial.

keywords
combine, sniper, snipe.

This tutorial will teach you how to make a Combine Sniper, which can be used to ‘seal’ maps, or just act as another problem for the player to overcome.

Some related images:

Image

Image

Image

Image

We will start with our setup. You will only need a handful of entities in this tutorial. They are:

* NPC_Sniper
* Phys_ragdollmagnet OR env_shooter
* item_ammo_crate OR lots of item_frag These aren’t necessary if you want to make it impossible to kill the sniper.
* info_Snipertarget

Set up an area for the sniper to reside in, and an area that the player will have plenty of room to run around in. Make sure there are lots of obstacles and walls for the player to hide behind. Be sure to texture the back faces of the area that your sniper will be in with tools/toolsblack, because the sniper isn’t actually rendered, and it would look very odd if you could see the back wall that the sniper would be blocking.

Once you’ve done that, select your NPC_Sniper and name him Sniper_1 You can play around with all of his Keyvalues to see what they will do. Click apply and place your sniper inside a window, or other appropriate place.

Image

Next, place an info_snipertarget. This is where your sniper will aim if there aren’t any enemies to kill. Place it near the player, so that they will see there is a sniper in the area. Enter its properties and set Sweep to Speed to 6 and group name to sniper_sweeptarget. Go to the flags tab and uncheck all except Resume if interrupted. This will make the sniper return its aim to this position if all targets have been eliminated.

Image

Image

Image

Place an item_ammo_crate or lots of item_fragsomewhere near the sniper’s position so that it can be killed easily. If you are using an ammo crate, make sure you select grenades under ammo type. You can skip this step if you don’t want the player to be able to kill the sniper.

Finally, we have our phys_ragdollmagnet. This is what is going to make the sniper ‘Fall’ out of the window. Alternatively you could use an env_shooter and set the model to models/Combine_Soldier.mdl, like Valve does in some of its levels, mainly where a phys_ragdollmagnet isn’t practical. (If there are other ragdolls in the area that are too close to the magnet.) If you are using a phys_ragdollmagnet, place it just outside the window that the sniper should fall out of. Make it a bit underneath the window and set Force to 3000 and Effective Radius to an appropriate size, making sure that only the sniper is covered.

If you wish to use an env_shooter instead, place it inside the window, where the sniper is. Name it Sniper_Ragdollshooter and set the model to models/Combine_Soldier.mdl and change the various properties as needed. Now select the NPC_Sniper and go to it’s outputs tab. Click add and set it to this:

My output named: OnDeath
Target Entities named: Sniper_ragdollshooter
Via This input: Shoot

Now You’re done! Compile and run, get killed by the sniper, and try it again. I hope if helped anyone with some problems they were having, and thanks for reading my tutorial!

tut_sniper.zip

Sauce.
- Don't send PM's to this user -
Tutorial
Not A Real User
 
Joined: Sun Mar 06, 2005 11:00 pm

Postby InternalRage on Fri Feb 10, 2006 10:41 pm

Very nice. So helpful. I owe you a cookie. Remind me.

EDIT:

Woo, 99th post.
Damn ProZak is... sexy!
Image
User avatar
InternalRage
Sir Post-a-lot
Sir Post-a-lot
 
Joined: Tue Jan 10, 2006 8:41 pm

Postby ArnauDuran on Fri Feb 17, 2006 5:43 pm

Why I don't have NPC_sniper entity?
Arnau, from Girona, near Barcelona, Spain

n00b mapper
ArnauDuran
Dumpling
Dumpling
 
Joined: Sat Nov 05, 2005 10:20 am

Postby Ale on Fri Feb 17, 2006 11:17 pm

maybe because you are mapping for hl2: dm or css :wink:
Image
User avatar
Ale
May Contain Skills
May Contain Skills
 
Joined: Fri Jul 29, 2005 9:03 am
Location: Earth

Postby Ozzies_house on Mon May 08, 2006 4:26 pm

I think the snipers are the greatest along side of the Striders
Ozzies_house
Member
Member
 
Joined: Thu Mar 10, 2005 7:27 pm

Postby Sauce on Sat Jul 01, 2006 11:01 am

yes, snipers were my favourite part of HL2 and ESPECIALLY episode 1
Image
Blink wrote:Do you watch porn and decide you don't need to have sex because you've seen the ending? :-D

zombie@computer wrote:what retarded countries measure in stones anyway?
or feet? or inches? Your dick is a lot longer in cms
User avatar
Sauce
Senior Member
Senior Member
 
Joined: Sat Nov 26, 2005 4:36 am
Location: Australia

Postby OVERLROD on Mon Oct 22, 2007 1:26 pm

How do you make the sniper to aim at the targets in the fist place? :? It doesn't automaticly aim at the info_snipertarget if nothing's around ...

I see there is an output SweepTarget, but how can you set with target group to sweep?
User avatar
OVERLROD
Been Here A While
Been Here A While
 
Joined: Thu Nov 10, 2005 11:43 am
Location: Slovenia

Re: Combine Sniper

Postby Grudge on Sun Jul 20, 2008 11:33 am

Thanks a lot for this tutorial :)
User avatar
Grudge
Pheropod
Pheropod
 
Joined: Sun Jun 10, 2007 8:26 pm
Location: Lincolnshire, United Kingdom

Return to Tutorials

Who is online

Users browsing this forum: No registered users