weapons

FPSCraft has a dynamic weapons system.

In the plugins folder (FPSCraft) you will find a folder called "weapons".
Inside are all the weapons currently in the game.

When you enter this folder, you should see another set of folders:
  1. primary
  2. secondary
  3. equipment
  4. special

Those are the main weapon groups.
Inside Primary and Secondary folder, you can make new folders too ;)
The name of those folders will describe the name of a group of weapons.
For example: "SERVER-HOME/plugins/FPSCraft/weapons/primary/Assault Rifles/",
means you have a group of weapons called assault rifles.

Inside a folder for a group of weapons, you can create your own weapon.
Create a new .yml file with whatever name you want. For easy management name it the name of the gun.
Then inside that file, you can define the following:

  • name: Weaponname
  • damage: The damage one hit will do
  • amount: the amount of this weapon. This defines the amount of bullets in one magezine for a gun
  • options:
    • magezine: amountofmagezines
    • distance: maximum distance (this defines the arrow speed too)
    • spread: the spread of this gun
    • reloadtime: the time it takes to reload, in ticks.

One second is 20 ticks.

To make the changes have effect, reboot FPSCraft or the server.

Comments

Posts Quoted:
Reply
Clear All Quotes