项目作者: BadgerCode

项目描述 :
Some sample projects for various Garry's Mod addons
高级语言:
项目地址: git://github.com/BadgerCode/GMod-Addon-Samples.git
创建时间: 2020-08-22T22:46:47Z
项目社区:https://github.com/BadgerCode/GMod-Addon-Samples

开源协议:

下载


Garry’s Mod Addon Samples

This repository contains various sample addons for Garry’s Mod. Each addon is self-contained and demonstrates some aspect of Garry’s Mod development.

You are welcome to modify or adapt any of these addons to create your own addon.




Recommended Software

Visual Studio Code (Windows/Mac/Linux) for Garry’s Mod Lua development.

You should also get the following extensions:

  • GLua language support - Syntax highlighting, intellisense for Garry’s Mod library functions
  • GMod SDK - Workshop tools, addon creation tools, weapon samples and more




Samples

See Usage for instructions on how to download and use the samples.


Sample Description
Hello World A basic sandbox weapon
TTT Traitor Weapon A weapon for TTT that traitors can buy through the equipment shop
Map Hello World A simple map addon




Usage

  1. Download the repository as a ZIP & unzip
    • Or used git clone https://github.com/BadgerCode/GMod-Addon-Samples.git
  2. Once downloaded
    • Open Visual Studio Code
    • Go to File -> Open Folder
    • Select any folder in the downloaded repository samples folder (e.g. samples/hello-world)
  3. Copy the addon to your Garry’s Mod addon folder