mirror of
https://github.com/Facepunch/sbox-public.git
synced 2026-07-31 15:58:27 -04:00
- Lets you create addons that target a game (your addon project needs ParentGame set, do this in the wizard/project settings) - Code archives can load again if no precompiled dll is found
11 lines
197 B
C#
11 lines
197 B
C#
|
|
public class CustomWeapon : GameWeapon
|
|
{
|
|
public override string WeaponName => "Custom Sword";
|
|
|
|
public override void PrimaryAttack()
|
|
{
|
|
// Custom implementation using parent package types
|
|
}
|
|
}
|