Commit graph

52 commits

Author SHA1 Message Date
LoneWolfHT
6fd876d87c Nerf gun knockback a little 2020-12-23 13:08:24 -08:00
LoneWolfHT
748711b073 Add on_fire knockback and a few tweaks to guns 2020-12-02 12:09:22 -08:00
ANAND
bc0fc7f43c
Properly track players' LMB keypresses
Fixes automatic fire continuing after player's death and respawn
2020-06-17 18:51:00 +05:30
ANAND
b8b1c6d368
[trivial] api.lua: Fix code-style 2020-05-31 22:22:21 +05:30
LoneWolfHT
ade1f47dea
Fix constant server crash 2020-05-31 09:40:20 -07:00
ANAND
897f74cb7b
Ignore the shooter player when processing rounds (#1)
This removing the initial raycast offset and allows damaging players at point-blank range
2020-05-31 20:06:52 +05:30
ANAND
2a1c951c8a
shooter: Fix invalid particlespawner definition 2020-05-30 17:54:27 +05:30
ANAND
ea8af36b47
Fix inventory corruption when using automatic weapons 2020-05-13 17:38:45 +05:30
rubenwardy
777cfe8b24 Use correct puncher 2020-03-14 23:17:34 +00:00
rubenwardy
5593df448f Fix shooter.get_weapon_spec 2020-03-14 20:59:55 +00:00
Lone_Wolf
cfb3818b09 Fix reload action not taking ammo 2019-05-27 18:05:35 +01:00
ANAND
9dacd39bbd Use table.copy instead of using = syntax
Using table.copy ensures that a new copy of the table is created
2019-04-05 15:52:52 +01:00
stujones11
8c85ca00c5 Increase initial raycast offset 2019-04-04 18:14:48 +01:00
stujones11
48cfe6b6ca Fix automatic weapons disappearing when empty 2019-04-04 18:05:53 +01:00
stujones11
6b4ea389ce Fix api inconsistencies 2019-04-02 18:44:25 +01:00
stujones11
886e5803e0 Add entity damage coefficient 2019-04-02 16:29:50 +01:00
stujones11
efe82e3e52 Make bullet particle velocity a function of step/time 2019-04-02 15:56:38 +01:00
stujones11
2a68881248 Use per-player camera height 2019-04-02 15:38:23 +01:00
stujones11
2a5674e67d Fix guns disappearing when empty 2019-04-02 15:24:32 +01:00
stujones11
8e18c0b117 Add spread option and update shotgun definition 2019-04-02 15:19:33 +01:00
stujones11
88750a0353 Localise vector helper methods 2019-04-02 13:37:21 +01:00
stujones11
0678919fea Minor doc corrections 2019-03-26 22:32:03 +00:00
stujones11
4d8aa37f72 Make get_weapon_spec a little more robust 2019-03-26 18:42:42 +00:00
stujones11
35ddb6c038 Minor particles optimisation 2019-03-26 18:28:08 +00:00
stujones11
78007fa332 Fix crash caused by previous commit 2019-03-26 18:08:16 +00:00
rubenwardy
182f50daa8 Create shooter.get_weapon_spec(player, weapon_name) as a Lua hook 2019-03-24 18:20:34 +00:00
stujones11
0d58b85a66 Minor fixes, add optional node drops 2019-03-24 15:22:34 +00:00
stujones11
20405958da More minor corrections 2019-03-24 15:06:10 +00:00
stujones11
70dac6ef64 Doc fixes 2019-03-24 14:40:31 +00:00
stujones11
ae2bb7fd6b Fix crash for nil entity references 2019-03-23 22:18:06 +00:00
stujones11
0eb5049218 Improve api, respect entity on_blast callbacks 2019-03-23 20:55:45 +00:00
stujones11
7ee40abb2a Alias loaded weapons 2019-03-23 20:55:45 +00:00
stujones11
adb8e476f9 Include shot origin in returned gunspec 2019-03-23 20:55:44 +00:00
stujones11
2f5d046472 Allow on_hit to override builtin damage 2019-03-23 20:55:44 +00:00
stujones11
4a9bf8fc6e Add individual screenshots and some doc fixes 2019-03-23 20:55:44 +00:00
stujones11
d1e1dcc1d6 Remove hard mod dependencies other than default 2019-03-23 20:55:44 +00:00
stujones11
7ff1b99b8b Add modpack.conf and remove deprecated files 2019-03-23 20:55:44 +00:00
stujones11
cf6122ca0c Improve config loading and other fixes 2019-03-23 20:55:44 +00:00
stujones11
cb922eaafd Add api documentation 2019-03-23 20:55:44 +00:00
stujones11
2a0b7808a1 Code tidy, add .luacheckrc
Improve callbacks
2019-03-23 20:55:42 +00:00
stujones11
fde2b72a68 Update license and include source headers
Pass a deep copy of gunspec instead of a direct reference

Fix Lua style multi-line comments :/

Fix flaregun dependencies

Add mod.conf and description files plus some readme fixes
2019-03-23 20:55:40 +00:00
stujones11
8ef3b1d379 Make automatic firing a config option 2019-03-23 20:55:38 +00:00
stujones11
18e22a38fb Allow particle effect overrides in gun spec 2019-03-23 20:55:38 +00:00
stujones11
52ed0d2340 Add optional on_hit callback to guns 2019-03-23 20:55:38 +00:00
stujones11
e415b0b9cc Use dot notation for api methods, closes #18 2019-03-23 20:55:38 +00:00
stujones11
cff296d70b Crossbow improvements
Update turret mod

Fix undeclared global in blast function

Update rockets and grenades

Update grapple hook and flares

Unlink model textures
2019-03-23 20:55:35 +00:00
stujones11
49d6fe5741 Use minetest.raycast 2019-03-23 20:55:34 +00:00
BrunoMine
79cfae5dad API documentation
Add reload item definition

Add unloaded item
2019-03-23 20:55:32 +00:00
stujones11
83c60c85ff Deprecate global config variables 2019-03-23 20:55:32 +00:00
stujones11
347a8807bf Auto remove outdated turret entities 2019-03-23 20:55:32 +00:00