Skip to content

How to create new weapons

Nicholas-Fuchs edited this page May 8, 2020 · 4 revisions
  1. Go to 'zombieplague/gamemode/weapons' folder
  2. Create a new .lua file (Example: my_new_weapon.lua)
  3. Inside the .lua override the 'Weapon' variable with a new Weapon Object and change as your will

Example (my_new_weapon.lua content):


Weapon.PrettyName = "My new Weapon" --Weapon's name
Weapon.WeaponID = "my_new_weapon" --Weapon's ID
Weapon.DamageMultiplier = 0.7 -- Weapon's damage * 0.7 (70%)
Weapon.WeaponType = WEAPON_PRIMARY -- Weapon Type

Clone this wiki locally