官术网_书友最值得收藏!

Creating your own modification (mod)

So you have this amazing idea for a video game and want to create your own mod. You want to include lasers and Samurai, and you want to make a fast-paced, WWII-era, team-based shoot-em-up game called Samurai Laser Paratroopers. Well, guess what—the Source engine can do this, and the Source SDK makes the mod setup easy! In this example, we will be creating a multiplayer Mod for the 2007 Source engine from a template:

  1. To create your very own Half-Life 2 mod, double-click on the Create a Mod utility.
  2. Select the Start a Multiplayer mod from a Template radio button on the first prompt of the Create a Mod wizard and then click on Next.
  3. In the first entry, specify the drive directory location where you want your game to be stored. I chose C:\SLP\ for easy access. In the second entry, specify the name of the mod you want to create, and click on Next to continue.
  4. Choose the options you want available in your mod.
  5. The wizard will then copy all the necessary files into the directory you have specified.
    Creating your own modification (mod)

The instructions are pretty straightforward. Choose carefully when you select the options shown in the following screenshot; they're harder to change later on:

Creating your own modification (mod)

Have patience, we're almost done!

Creating your own modification (mod)

Now, let's take a look at the folders the wizard has created. There are four folders in your new mod's folder (shown here as C:\SLP). Three of those folders have suffixes of "src" as shown in the following screenshot:

Creating your own modification (mod)

The mapsrc folder is where all your maps should be saved (although you can always save your maps elsewhere). All texture and material files go into the materialsrc folder, while all models should be saved in the modelsrc folder. The code generated specifically for your mod is saved in the src folder. Utilizing these folders to store all your source materials will make your life easier later on.

Restart Steam and check out your library of games. Your new mod is in there!

Creating your own modification (mod)

Also take a look at the Source SDK; your mod will be listed as one of the games in the engine build you selected, as shown in the following screenshot:

Creating your own modification (mod)

When you create a mod with the Source SDK wizard, it creates a barebones game. You will need to dive into the game code to make your mod what you want it to be. This book does not cover custom code, but it's still relevant for mapping techniques for your custom mod.

主站蜘蛛池模板: 峨眉山市| 巩义市| 夏津县| 什邡市| 墨脱县| 广安市| 贺州市| 资中县| 九寨沟县| 保靖县| 渝北区| 永修县| 牙克石市| 通榆县| 抚宁县| 理塘县| 金湖县| 永嘉县| 且末县| 德江县| 澎湖县| 郑州市| 英德市| 临西县| 汤阴县| 高陵县| 阿城市| 大邑县| 峡江县| 客服| 武陟县| 乌兰浩特市| 龙陵县| 永济市| 乌拉特中旗| 石屏县| 富源县| 通渭县| 辽阳市| 大庆市| 尚义县|