My Tutorials Thread

Full Life 1?

Newbie
Joined
Dec 29, 2008
Messages
96
Reaction score
0
Ok, welcome to my tutorials thread. To start us off, I have made a tutorial on Anti-Personnel And Anti-Vehicle mines. Feel free to request a tutorial, and I will try my best to make it happen.

Mines

OK, so you want to blow the shit out of some poor unsuspecting player eh? If so then read on. I assume you already have your map, so listen up. First, decide whether or not you want the mine to be visible. Choose the location for your mine, and if you want a model or whatever make one. Now, create an env_explosion, and set it up like this:

Name: Splode (Or whatever takes your fancy)
Magnitude: 67
Fireball Sprite: sprites/splodesprite.vmt

Only edit the rest if you know what you are doing.

Now, create a trigger_once that covers the area of your mine, but make it taller than the player. Make sure Clients and, if you want npcs to die too, NPCs. Now, set the outputs to:

My Output Named: OnStartTouch
Target entities named: splode (Or the name you gave your env_explosion)
Via this input: Explode
Set it to fire once only if you are going for realism.
Voila! An Anti-Personnel Mine!

Anti Vehicle Mines

For Anti-Vehicle Mines, the layout is almost exactly the same, with one little difference: The flags of your trigger need to be: Only clients in vehicles. And there you go! Now go blow some shit up!
 

Attachments

  • mines.zip
    60 KB · Views: 141
Back
Top