18 Commits

Author SHA1 Message Date
Anand S
2f1b35fd23
Improve error message when registering auto guns 2018-12-29 17:15:28 +05:30
Anand S
ae589e185e
Improve wear mechanism 2018-12-28 17:26:48 +05:30
Anand S
a766dd7058 Fix accidental swap of if-else blocks in "semi-automatic" 2018-11-27 21:18:12 +05:30
Anand S
8fcc38d609 Fix missing namespace in function call 2018-11-27 20:50:47 +05:30
Anand S
2a5bf40509 Add setting to optionally disable automatic guns 2018-11-27 16:07:21 +05:30
Anand S
f626853804 Add helper function add_auto 2018-11-27 15:28:41 +05:30
Anand S
b58e6d481c on_step: Add time checks to respect fire-rate of gun 2018-11-27 15:13:35 +05:30
Anand S
6d3bfd204e Actually set stack after modification in on_step 2018-11-27 15:10:19 +05:30
Anand S
bf6ac0c5f7 Implement firing of semi-auto weapons 2018-11-27 14:55:07 +05:30
Anand S
e3527bed2f Use hard-coded eye-height for now; rename field in gun def 2018-11-24 15:17:48 +05:30
Anand S
fa8a153cb5 Relocate gunshot sound to top of fire() 2018-11-24 13:42:39 +05:30
Anand S
c2e500315b Import type table into gun def; Make types optional 2018-11-23 22:43:02 +05:30
Anand S
408abbc260 Add per-gun firing range 2018-11-23 22:09:28 +05:30
Anand S
8860fd92d0 Only pass the required params to show_scope instead of the full gun def 2018-11-23 22:07:02 +05:30
Anand S
18b1f42cb8 Don't re-add to automatic if entry exists 2018-11-23 22:07:02 +05:30
Anand S
30e8cea45c Clean up and re-arrange API methods 2018-11-23 22:06:58 +05:30
Anand S
6de402af44 Add API support for gunshot sound 2018-11-20 15:10:33 +05:30
Anand S
2659d195a1 Add standalone API 2018-11-20 14:00:33 +05:30