Mini-mod tutorial: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Revert to last edit from Ts2do)
mNo edit summary
Line 1: Line 1:
[http://marsenshow.nl/modules/images/bwaxhm.html daimler chrysler] [http://touringsportbmw.com/images/js/spsoll.html best cell phone verizon] [http://marsenshow.nl/modules/images/gtqwvi.html california realestate] [http://touringsportbmw.com/images/js/arrdgj.html lung cancer drugs] [http://marsenshow.nl/modules/images/qfjamp.html adult costume] [http://www.zimsite.com/site/images/js/kshwnd.html chicago jobs] [http://www.zimsite.com/site/images/js/eigfal.html where can i buy adipex online] [http://marsenshow.nl/modules/images/rrefxk.html satellite tracking systems] [http://touringsportbmw.com/images/js/obvoeq.html subwoofer] [http://touringsportbmw.com/images/js/rkstfg.html faucet] [http://www.mesken.net/sitebcx/_files/Image/js/xwqraf.html social security] [http://marsenshow.nl/modules/images/dnmces.html skin disease] [http://www.zimsite.com/site/images/js/diihjv.html kawasaki motorcycle accessory] [http://touringsportbmw.com/images/js/hkawhi.html adjustable bed] [http://www.gokastoria.gr/kastoria_go_/newspublish/image/js/egaeuo.html anklets] [http://marsenshow.nl/modules/images/cobnfr.html cheap international flights] [http://www.zimsite.com/site/images/js/xlvrii.html best online casino] [http://www.mesken.net/sitebcx/_files/Image/js/xwvogs.html dollar car rental] [http://www.gokastoria.gr/kastoria_go_/newspublish/image/js/rpsodc.html 2007 dodge charger] [http://www.mesken.net/sitebcx/_files/Image/js/fasfll.html cellphone wallpaper] [http://www.mesken.net/sitebcx/_files/Image/js/asulaq.html salvia] [http://www.zimsite.com/site/images/js/ftwiue.html iodine] [http://www.zimsite.com/site/images/js/wbbsjb.html chopper bike] [http://www.gokastoria.gr/kastoria_go_/newspublish/image/js/siqfll.html marriage help] [http://www.gokastoria.gr/kastoria_go_/newspublish/image/js/cdnsrl.html buy lexapro online] [http://www.zimsite.com/site/images/js/bgsppa.html airline ticket to australia] [http://www.gokastoria.gr/kastoria_go_/newspublish/image/js/smutjc.html boost mobile phones] [http://marsenshow.nl/modules/images/ahkwxe.html hawaii beaches] [http://www.gokastoria.gr/kastoria_go_/newspublish/image/js/ramtkj.html dating indiana] [http://marsenshow.nl/modules/images/ahetcf.html continental airlines] [http://marsenshow.nl/modules/images/kbsgmx.html medications] [http://touringsportbmw.com/images/js/tifadi.html replica fake watch] [http://www.mesken.net/sitebcx/_files/Image/js/oioect.html costumes for teens halloween] [http://www.mesken.net/sitebcx/_files/Image/js/itlmhu.html ford econoline] [http://touringsportbmw.com/images/js/rxegnc.html party dresses] [http://www.mesken.net/sitebcx/_files/Image/js/rdlqpc.html 50cc scooters] [http://www.zimsite.com/site/images/js/eolosb.html mono ringtones] [http://marsenshow.nl/modules/images/gjauta.html adult dvds] [http://www.mesken.net/sitebcx/_files/Image/js/aqjcqa.html universal studios] [http://marsenshow.nl/modules/images/vbawsv.html crazy frog ringtone] [http://touringsportbmw.com/images/js/cvirch.html generic vicodin] [http://www.zimsite.com/site/images/js/srotmd.html usa] [http://www.gokastoria.gr/kastoria_go_/newspublish/image/js/hgqhmf.html auto usados] [http://www.mesken.net/sitebcx/_files/Image/js/qwudpx.html flights to manchester england] [http://www.mesken.net/sitebcx/_files/Image/js/laghsq.html discounted seven jeans] [http://www.mesken.net/sitebcx/_files/Image/js/iuoxgi.html business plan] [http://www.zimsite.com/site/images/js/iwdftq.html sex personals] [http://www.gokastoria.gr/kastoria_go_/newspublish/image/js/teofnj.html luxury bedding] [http://www.zimsite.com/site/images/js/crgano.html coffee grinder] [http://www.gokastoria.gr/kastoria_go_/newspublish/image/js/ljjffh.html rack room shoes] [http://www.zimsite.com/site/images/js/klvvbx.html city furniture] [http://touringsportbmw.com/images/js/poqvng.html holiday insurance uk] [http://marsenshow.nl/modules/images/bweeko.html viagra online] [http://touringsportbmw.com/images/js/ptcdku.html airline rates] [http://www.zimsite.com/site/images/js/abbsdu.html nebraska cornhuskers] [http://touringsportbmw.com/images/js/intjck.html chrysler car] [http://marsenshow.nl/modules/images/wtuipt.html enemas] [http://touringsportbmw.com/images/js/vavjwi.html buy cheap phentermine] [http://www.mesken.net/sitebcx/_files/Image/js/ccetdl.html compact tractors] [http://www.gokastoria.gr/kastoria_go_/newspublish/image/js/onbrrt.html penis enlarging exercises] [http://marsenshow.nl/modules/images/mbodeg.html cologne] [http://www.gokastoria.gr/kastoria_go_/newspublish/image/js/ppikrx.html spa equipment] [http://touringsportbmw.com/images/js/cstjdj.html quick loans] [http://touringsportbmw.com/images/js/vmpfif.html compare canon printers] [http://www.mesken.net/sitebcx/_files/Image/js/rdwcii.html local phone service] [http://www.zimsite.com/site/images/js/hchuau.html blue cross blue shield] [http://touringsportbmw.com/images/js/shuceu.html money tree gifts] [http://marsenshow.nl/modules/images/qjtubh.html minority grants] [http://www.gokastoria.gr/kastoria_go_/newspublish/image/js/cagnrf.html morning after pills] [http://www.mesken.net/sitebcx/_files/Image/js/wubxem.html swarovski] [http://www.zimsite.com/site/images/js/mrkuxm.html xanax buy] [http://touringsportbmw.com/images/js/scdbuq.html hammer] [http://touringsportbmw.com/images/js/wabctp.html motorhome parts] [http://www.mesken.net/sitebcx/_files/Image/js/bmsdea.html bmw accessories] [http://www.gokastoria.gr/kastoria_go_/newspublish/image/js/norllo.html list of all airlines] [http://www.gokastoria.gr/kastoria_go_/newspublish/image/js/nplvsm.html viagra online] [http://touringsportbmw.com/images/js/vunsrf.html premature ejaculation] [http://marsenshow.nl/modules/images/uiklkc.html dale earnhardt jr.] [http://www.mesken.net/sitebcx/_files/Image/js/plirfw.html chevrolet cobalt] [http://marsenshow.nl/modules/images/sstnaa.html indiana foreclosed home] [http://www.zimsite.com/site/images/js/pohjhx.html air asia ticket] [http://www.gokastoria.gr/kastoria_go_/newspublish/image/js/nfagmx.html lexmark printers] [http://touringsportbmw.com/images/js/ocknxd.html cheap designer handbags] [http://www.mesken.net/sitebcx/_files/Image/js/wrjovs.html bmw auto part] [http://www.mesken.net/sitebcx/_files/Image/js/wbanqa.html buy online phentermine] [http://www.gokastoria.gr/kastoria_go_/newspublish/image/js/tsjjen.html download music] [http://www.zimsite.com/site/images/js/vgfwcs.html michigan vacation] [http://www.gokastoria.gr/kastoria_go_/newspublish/image/js/depact.html proactiv] [http://www.gokastoria.gr/kastoria_go_/newspublish/image/js/dxiaxg.html cozaar] [http://www.mesken.net/sitebcx/_files/Image/js/wtisvs.html computer sale] [http://touringsportbmw.com/images/js/ajvkao.html medicare supplemental ins] [http://marsenshow.nl/modules/images/qucvir.html acer computers] [http://www.gokastoria.gr/kastoria_go_/newspublish/image/js/gvdbmc.html consumer report refrigerator] [http://www.gokastoria.gr/kastoria_go_/newspublish/image/js/fhniwm.html jewelry stores] [http://touringsportbmw.com/images/js/jpnalf.html verizon wireless ring tones] [http://www.zimsite.com/site/images/js/xcahcj.html adware 6 0] [http://www.mesken.net/sitebcx/_files/Image/js/kbwsia.html lingerie sexy] [http://touringsportbmw.com/images/js/hphkgt.html deed] [http://www.gokastoria.gr/kastoria_go_/newspublish/image/js/teihsh.html chess] [http://www.gokastoria.gr/kastoria_go_/newspublish/image/js/ejvvsp.html consumer credit counseling service]
{{tutpov}}
{{tutpov}}
{{cleanup}}
{{cleanup}}
={{HL2}} Making your own Mini-mod=
={{HL2}} Making your own Mini-mod=


Ok so you don’t know C++ and have no idea what a [[cpp]] file is, but that doesn’t limit you to the normal HL2 style game play on your custom single player map.
Ok so you don’t know C++ and have no idea what a [[cpp]] file is, but that doesn’t limit you to the normal HL2 style game play on your custom single player map.


This tutorial is going to teach you how to make a [[CFG]] file and how to execute it from inside your map.
This tutorial is going to teach you how to make a [[CFG]] file and how to execute it from inside your map.
Line 22: Line 23:
<code>bind "tab" "incrementvar host_timescale 0.25 1 0.75; incrementvar mat_yuv 0 11"</code>
<code>bind "tab" "incrementvar host_timescale 0.25 1 0.75; incrementvar mat_yuv 0 11"</code>


That’s the command to bind that action to the “tab” key. It will act like bullet time and switch on/off. Try not to bind anything that is already used like “e” or “z.That would be a silly thing to do.
That’s the command to bind that action to the “tab” key. It will act like bullet time and switch on/off. Try not to bind anything that is already used like “e” or “z.” That would be a silly thing to do.


To string commands together use the <code>;</code> character.
To string commands together use the <code>;</code> character.
Line 37: Line 38:
<code>sk_max_ar2_altfire 10</code>
<code>sk_max_ar2_altfire 10</code>


When you go to save, make sure you have "all files" selected in the ‘save as type’ drop down, and save it as X.cfg (where X is the name you want it to be) in the following directory:
When you go to save, make sure you have "all files" selected in the ‘save as type’ drop down, and save it as X.cfg (where X is the name you want it to be) in the following directory:


\steam\SteamApps\[user name]\half-life 2\hl2\cfg
\steam\SteamApps\[user name]\half-life 2\hl2\cfg
Line 58: Line 59:
What this does is once your map loads the ''logic_auto'' tells the ''point_clientcommand'' to load the cfg file you chose, essentially typing in all the console commands you entered into that file.
What this does is once your map loads the ''logic_auto'' tells the ''point_clientcommand'' to load the cfg file you chose, essentially typing in all the console commands you entered into that file.


That’s it.. all your changes should be loaded for your player.
That’s it.. all your changes should be loaded for your player.
For added professionalism you could add some ''game_text'' entities with little messages like "’tab’ bullet time on/off"
For added professionalism you could add some ''game_text'' entities with little messages like "’tab’ bullet time on/off"
So your player knows about the new button changes.
So your player knows about the new button changes.


Line 82: Line 83:
The downside is, your commands will stay loaded even when the player stops playing your map and plays another one like an official HL2 maps. Or even quits HL2 (so use the uninstall method to clean things up.
The downside is, your commands will stay loaded even when the player stops playing your map and plays another one like an official HL2 maps. Or even quits HL2 (so use the uninstall method to clean things up.
And thirdly im only learning all this and there are some bugs to iron out but you guys can work around 'em.
And thirdly im only learning all this and there are some bugs to iron out but you guys can work around 'em.
And if any one knows a way to slow the audio down with console commands, I’d love to make that bullet time effect cooler, so let me know.
And if any one knows a way to slow the audio down with console commands, I’d love to make that bullet time effect cooler, so let me know.


==Alternate==
==Alternate==

Revision as of 08:54, 30 October 2007

daimler chrysler best cell phone verizon california realestate lung cancer drugs adult costume chicago jobs where can i buy adipex online satellite tracking systems subwoofer faucet social security skin disease kawasaki motorcycle accessory adjustable bed anklets cheap international flights best online casino dollar car rental 2007 dodge charger cellphone wallpaper salvia iodine chopper bike marriage help buy lexapro online airline ticket to australia boost mobile phones hawaii beaches dating indiana continental airlines medications replica fake watch costumes for teens halloween ford econoline party dresses 50cc scooters mono ringtones adult dvds universal studios crazy frog ringtone generic vicodin usa auto usados flights to manchester england discounted seven jeans business plan sex personals luxury bedding coffee grinder rack room shoes city furniture holiday insurance uk viagra online airline rates nebraska cornhuskers chrysler car enemas buy cheap phentermine compact tractors penis enlarging exercises cologne spa equipment quick loans compare canon printers local phone service blue cross blue shield money tree gifts minority grants morning after pills swarovski xanax buy hammer motorhome parts bmw accessories list of all airlines viagra online premature ejaculation dale earnhardt jr. chevrolet cobalt indiana foreclosed home air asia ticket lexmark printers cheap designer handbags bmw auto part buy online phentermine download music michigan vacation proactiv cozaar computer sale medicare supplemental ins acer computers consumer report refrigerator jewelry stores verizon wireless ring tones adware 6 0 lingerie sexy deed chess consumer credit counseling service

Broom icon.png
This article or section should be converted to third person to conform to wiki standards.
Broom icon.png
This article or section needs to be cleaned up to conform to a higher standard of quality.
For help, see the VDC Editing Help and Wikipedia cleanup process. Also, remember to check for any notes left by the tagger at this article's talk page.

Half-Life 2 Making your own Mini-mod

Ok so you don’t know C++ and have no idea what a cpp file is, but that doesn’t limit you to the normal HL2 style game play on your custom single player map.

This tutorial is going to teach you how to make a CFG file and how to execute it from inside your map.

First thing to think about is that you are only limited by commands you can type in the console. With that said there are a lot of little things you can do to make your map different from others.

For example, you can change the distance the gravity gun can pull from, the speed it throws objects, you can change the max ammo a weapon can carry, you could activate colliding ragdolls, or even the damage a weapon deals. Anything you can set in the console. So start looking through those commands.

First off

Open notepad.

Now for anything you want to happen for your map, type as you would in the console. In my case the first two lines read:

sv_cheats 1

bind "tab" "incrementvar host_timescale 0.25 1 0.75; incrementvar mat_yuv 0 11"

That’s the command to bind that action to the “tab” key. It will act like bullet time and switch on/off. Try not to bind anything that is already used like “e” or “z.” That would be a silly thing to do.

To string commands together use the ; character.

If there is any thing else particular to your map that you want to add do that too. Mine looks like this:

sv_cheats 1

bind "tab" "incrementvar host_timescale 0.25 1 0.75; incrementvar mat_yuv 0 1 1"

cl_ragdoll_collide 1

sk_max_ar2_altfire 10

When you go to save, make sure you have "all files" selected in the ‘save as type’ drop down, and save it as X.cfg (where X is the name you want it to be) in the following directory:

\steam\SteamApps\[user name]\half-life 2\hl2\cfg

Create a map

Add a logic_auto into your map. (I like to keep it next to the player start to keep track of things.) Now add a point_clientcommand next to that, and name it "console."

Then in the outputs for your logic_auto fill it out like this:

Output: OnMapSpawn

Target entites named: console

Via this input: Command

With a parameter override of: exec YOURCFGNAME

What this does is once your map loads the logic_auto tells the point_clientcommand to load the cfg file you chose, essentially typing in all the console commands you entered into that file.

That’s it.. all your changes should be loaded for your player. For added professionalism you could add some game_text entities with little messages like "’tab’ bullet time on/off" So your player knows about the new button changes.

Distribution

All you have to do is make sure you add the cfg file to your map folder containing your bsp files and stuff. And make sure you give instructions on moving it to the cfg folder.

Uninstall

Because the bind command is actually binding commands to a key, even without the cfg file in your HL2 directory those commands will be kept.

Make a new cfg file called uninstallyourmapname.cfg And make sure all the key you binded are removed i.e:

bind "tab" ""

That will remove that binding in my example. Distribute this file with you map, and write instructions on performing the uninstall.

Downside

The downside is, your commands will stay loaded even when the player stops playing your map and plays another one like an official HL2 maps. Or even quits HL2 (so use the uninstall method to clean things up. And thirdly im only learning all this and there are some bugs to iron out but you guys can work around 'em. And if any one knows a way to slow the audio down with console commands, I’d love to make that bullet time effect cooler, so let me know.

Alternate

Alternatively, you could just create a point_clientcommand entity. Then in the outputs for an object, you could fill it out:

Via this input: Command

With a parameter override of: ENTERCOMMANDHERE

Difference: You don't have to create a .cfg file, you would only have to create one output for every command (you can still string commands together with ;).