Difference between revisions of "Weapons"
(Created page with "{{stub}} {{version|1.0.28}} ==Small Arms== There are 5 kinds of small arms and 3 tiers (black, silver, gold). Higher tier weapons can only be taken from Bandit Base|Bandit B...") |
m |
||
Line 35: | Line 35: | ||
Be sure to define both your {{file|mods/MODNAME/scripts/server_scripts.lua}} and {{file|mods/MODNAME/scripts/client_scripts.lua}} to include your script file! | Be sure to define both your {{file|mods/MODNAME/scripts/server_scripts.lua}} and {{file|mods/MODNAME/scripts/client_scripts.lua}} to include your script file! | ||
+ | |||
+ | ==External Links== | ||
+ | [http://www.indiedb.com/games/voxel-turf/news/dev-diary-3-weapons-part-1-small-arms-and-weapon-mods Dev Diary 3: Weapons Part 1: Small Arms and Weapon Mods] | ||
+ | |||
+ | [http://www.indiedb.com/games/voxel-turf/news/dev-diary-4-weapons-part-2-rockets-explosives-and-blast-resistance Dev Diary 4: Rockets, Explosives and Blast Resistance] |
Revision as of 05:47, 14 February 2018
- This article is a Stub. You can help by expanding it
Contents
Small Arms
There are 5 kinds of small arms and 3 tiers (black, silver, gold). Higher tier weapons can only be taken from Bandit Bases.
Stats
Weapon Mods
Up to two weapon mods can be applied to a weapon at a time. There is no way to remove them from an attached weapon, so be careful!
Rocket Launchers
There are 4 rocket launchers in the game.
Grenades
There is currently one kind of grenade in the game.
Combat Strategy
- Aim for the head - some weapons (such as the Assault Rifle and the Rifle) do significantly more damage for head shots.
- Crouch! This not only reduces your hitbox size, but it reduces the chance of Bandits hearing your footsteps.
- Be sure to be in the line of sight of one enemy at a time! Don't charge into rooms full of enemies, you'll get killed very quickly.
Modding
Have a look at scripts/common/define_weapons.lua
.
It is recommended that you use the hook provided at the end of the file - the defineWeaponsUserCallback table.
function myWeaponMod (BlockTypes, ItemTypes)
-- Your code here
end
if (defineWeaponsUserCallback == nil) then defineWeaponsUserCallback = {} end
defineWeaponsUserCallback[#defineWeaponsUserCallback+1] = { "myWeaponMod name | my description ", myWeaponMod };
Be sure to define both your mods/MODNAME/scripts/server_scripts.lua
and mods/MODNAME/scripts/client_scripts.lua
to include your script file!