Skip to content

Spiralexe/simple-weapon-base

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Weapon Base (S&Box)

A community managed simple to use weapon base for S&Box

Goal

During the lifetime of garrysmod many weapon bases consisting of poor quality were created, and it would be a shame to see the same in S&box. The goal is to offer an easy to use yet very configurable weapon base maintained by the community for the community.

Features

Various

  • No programming skills needed to use
  • Highly configurable
  • Support for custom animations and actions

Built-in Animations

  • Walking
  • Zooming
  • Running
  • Idle

Bases

  • Magazine (default)
  • Shotgun (shell based reloading)
  • Melee

CSS Weapons

  • CSS weapons are included to showcase the base usage
  • They will get their own repo later down the line when more guns are ported
  • Feel free to use them for your own gamemodes

Contributing

Anyone can contribute by creating a pull request to their branch. Contributors can help out with the planned updates, outstanding bug/issues, or maybe you just have a cool idea that would improve the base, any help is welcome!

Planned Updates

  • Framerate independent animations
  • Jumping animation
  • Looking animation
  • Sniper base
  • Entity base (e.g. shooting arrows)

Current Bugs

  • While running looking up or down will force weird rotations on the run animation

Deatchmatch Elements

For now some deathmatch dependencies are included as the base uses the inventory and hud elements from the deathmatch gamemode.

Installing

If you want to test out the base just drag and drop simple-weapon-base-master into your addons folder.

Usage

Using the base into your own gamemode can be done by:

  1. Implementing the PlayerBase class into your player class partial class MyPlayer : PlayerBase and calling the PlayerBase constructor on your player constructor public MyPlayer() : base() {}
  2. If you want the HUD you'll need to initialize it in your game constructor
public Game()
{
  if ( IsServer )
    {
      new DeathmatchHud()
    }
  }
}

About

A simple to use weapon base for S&Box

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 88.7%
  • SCSS 11.3%