Commit graph

102 commits

Author SHA1 Message Date
Anthony-De f8cb85be9f
Fix up and re-add kill assists (#782)
* Add kill assists

* Fix bug

* Move to seperate mod

* Fix bugs and improve code some more

Co-authored-by: LoneWolfHT <lonewolf04361@gmail.com>
2021-02-08 16:03:03 -08:00
LoneWolfHT 510ca896cd
Revert "Add kill assists (#755)" (#781)
This reverts commit 49f4e6fd47.
2021-02-05 15:46:29 -08:00
Anthony-De 49f4e6fd47
Add kill assists (#755)
* Update teams.lua

* Update teams.lua and init.lua

* Update teams.lua and init.lua

* Update teams.lua and init.lua

* Update teams.lua and init.lua Kill assist implemented

* Update init.lua Remove unused variables

* Added ctf.clearAssists function
Only awards those who did more that 50% of damage
Clears attackers stats after suicide

* Remove unused variable

* Minor modifications

renamed ctf.clearAssists to ctf.clear_assists
changed playerName to player

* Cap assist points

* Reaching full health while in combat clears assist data

* split points between assisting players by damage done

* Reworked assist data storage to work with a table rather than player metadata

* Fix lua check

* Removed duplicate scoring

* Change kill assist color

* Health regen subtracts from assist.
Suicide gives assist points

* Fixed accessing nil value for max_hp

* Corrected max_hp

* hardcode hp list for max hp
2021-02-01 08:24:29 -08:00
Apelta 62cedd9267
Fix medkits not allocating deaths/score after death (#749)
* Fix medkits preventing kills or score from being given on death
* Remove HUD
2021-01-17 20:25:08 -08:00
LoneWolfHT 0f45a101b7 Make damage cobble hurt ranged weapon users 2021-01-06 12:58:20 -08:00
LoneWolfHT 355a171949 Give sniper rifles the ability to break nodes again 2021-01-06 12:58:20 -08:00
Apelta 10881d4211
Fix antisabotage bugs and make to work with paxel(#731)
* Fix crucial bugs with antisabotage

Fix possible crashes, infinite items, and any related issues

* Make sabotage into function to be used with paxel

* Fix paxel to work with antisabotage

* Fix whitespace for luacheck

* Update mods/pvp/antisabotage/init.lua

Remove unnecessary newline

Co-authored-by: David Leal <halfpacho@gmail.com>

* Update function

* Update function name

* Add check for antisabotage

* Remove whitespace for luacheck

* Add antisabotage as an optional dependency

* Remove more whitespace

Co-authored-by: David Leal <halfpacho@gmail.com>

* Fix optional depends

dev wiki lied to me :(

Co-authored-by: David Leal <halfpacho@gmail.com>

* Fix up a comment P.1

* Move a line in mod.conf

* Fix up comments and spacing

Co-authored-by: David Leal <halfpacho@gmail.com>
Co-authored-by: LoneWolfHT <lonewolf04361@gmail.com>
2021-01-05 20:14:55 -08:00
Emojigit 88c326f13d
Fix up medkit interrupt reasons (#734)
* Bugfix of "Add reason to medkit"
 * Fix reasons while attack and damage
 * Remove `die` reason, add `attack` reason

* Change suggested code

* Fix doc

* fix line contains trailing whitespace

* Update init.lua

Co-authored-by: LoneWolfHT <lonewolf04361@gmail.com>
2021-01-05 19:56:55 -08:00
Emojigit 518e3f0807
Fix medkit interrupt reason (#732)
* Add medkit interrupt reason and some bugfix

* Bugfix

* Fix Bug
2021-01-04 20:27:43 -08:00
Emojigit 1da0840f11
Add medkit interrupt reasons (#729) 2021-01-03 09:20:59 -08:00
Apelta 2f3b09ff70
Fix sniper crosshairs being active after death (#726)
* Fix bug with crosshairs active after death

(hopefully) fixes issue with crosshairs remaining after player death. Requires testing.
How to test:
- die while scoped

Normally I would do this but I am unable to get to a proper platform to test.

* Use function

Slipped my mind, sorry :P

* Fix typo, comment

Fixed typo in line 100, also fixed comment for dieplayer function
2020-12-26 21:01:36 -08:00
Apelta 0ef16edb23
Add antisabotage mod (#725)
* Add antisabotage mod

Prevents players of the same team from mining under or (somewhat) near others. Even works whilst crouching.

* Fix slight issue of infinite items and radius fix

Fixed issues dealing with unused variables, item removal and radius of the effect

* Add newline so github doesn't die

* Various improvements to function and distance

Improvements/changes to improve performance and readability suggested by Lone_Wolf.

* Create mod description

Add readme.txt with description

* Update with suggestions from Lone_Wolf

Various performance optimizations and other issues suggested by Lone_Wolf

* Remove unnecessary dependency

* Snowball effect applied to a quick fix

* Reword readme

* Add license.txt

MIT

* Rename readme.txt to readme.md

Co-authored-by: LoneWolfHT <lonewolf04361@gmail.com>
2020-12-25 10:36:32 -08:00
LoneWolfHT df065cece1 Nerf gun knockback a little 2020-12-23 13:10:48 -08:00
Apelta 678689eb58
Add crosshair for sniper rifles (#721)
* Upload rifle_crosshair.png

Image used for rifle crosshair. Created by PiMonkey.

* sniper_rifles: Add crosshair for rifles via HUD

HUD-driven crosshair for sniper rifles.

NOTE: scale_const is set to 4, this may be changed by preference.

* Increase size slightly

Co-authored-by: LoneWolfHT <lonewolf04361@gmail.com>
2020-12-18 17:37:48 -08:00
LoneWolfHT 31048422c8 Fix grenades crash 2020-12-11 20:46:19 -08:00
LoneWolfHT a7848bf163 Fix smoke grenade texture 2020-12-10 10:38:50 -08:00
LoneWolfHT bf3fff7c53 (API) Allow changing max stack size of grenades 2020-12-08 20:13:32 -08:00
LoneWolfHT 978c7ef641
Add CTF Respawn Delay (#712)
* Add respawn delay

* Fix weird edit of .luacheckrc
2020-12-07 11:30:35 -08:00
LoneWolfHT 98fec72b33 Update maps/shooter submodules 2020-12-05 10:58:59 -08:00
LoneWolfHT 98928211f6 Improve Smoke Grenades 2020-12-05 10:58:59 -08:00
LoneWolfHT 8d55487a77 Give grapple hooks more uses 2020-12-05 10:58:59 -08:00
LoneWolfHT 063c6fb458 Tweak and slightly nerf grenades 2020-12-05 10:58:59 -08:00
LoneWolfHT 1b689ed6c2 Reset combat on new match 2020-11-22 14:06:25 -08:00
LoneWolfHT 8f2088b92f Misc bug/exploit fixes 2020-11-21 08:31:36 -08:00
LoneWolfHT fd9c6bd34a Allow other mods to check if player is in combat 2020-10-31 09:49:39 -07:00
LoneWolfHT ae0b967001 Slightly buff shooter class and knight melee dmg 2020-10-31 09:49:39 -07:00
LoneWolfHT 7d16ce7db0 Improve grenade radius code 2020-10-28 16:57:09 -07:00
LoneWolfHT 27f36d5d24 Revert to old grenade behavior 2020-10-26 14:24:03 -07:00
LoneWolfHT ac5d67949d Fix rare grenade crash 2020-10-26 08:12:32 -07:00
KaylebJay 2501173aac
Optimize texture file sizes (#690) 2020-10-24 15:15:18 -07:00
LoneWolfHT 21ff6f58c1 Fix rare crash and anticoward bug? 2020-10-18 19:52:20 -07:00
LoneWolfHT 90d73f0587 Change fall damage to use combat system 2020-10-13 08:52:38 -07:00
ANAND 77c9f9d21b
sniper_rifles: Prioritize on un-scoping when right-clicking (#661) 2020-09-22 08:52:11 -07:00
LoneWolfHT 296affbd56 Make rifle automatic and double damage 2020-09-20 13:57:19 -07:00
LoneWolfHT 6a0491fa00 Increase combat time again 2020-09-20 11:39:34 -07:00
LoneWolfHT fe37a08a83 Change sniper kill texture 2020-09-20 09:52:29 -07:00
LoneWolfHT d9771108e5 Improve combat mode 2020-09-20 09:05:31 -07:00
LoneWolfHT 15b8e84589 Remove attacker from combat if attacking victim dies 2020-09-19 15:02:18 -07:00
LoneWolfHT 744a14cd10
Award kill to attacker if victim leaves/suicides (#679)
* Award kill to attacker if player leaves/suicides

* Fix death check

* Prevent immune players from entering combat
2020-09-19 14:35:32 -07:00
LoneWolfHT 179ff104bf
Make fall damage leave at least 1 hp (#678)
* Make fall damage leave at least 1 hp
2020-09-16 08:30:58 -07:00
ANAND 58db9e7dd0
HUD score improvements (#656)
* Move hud_score mod to 'other' modpack

* hud_score: Reuse element when adding a new element with the same name
2020-09-13 19:17:19 -07:00
LoneWolfHT 81d7553f7c
Add Sticky grenades (#677)
* Improved grenade API
* Added sticky grenade
* Improved grenade textures
2020-09-12 20:10:40 -07:00
LoneWolfHT a78fdd95c5 Fix infinite grapple uses 2020-07-09 17:57:04 -07:00
LoneWolfHT e76dcf0563
Fix ranged kill detection (#667) 2020-07-02 12:22:15 -07:00
ANAND ab709bb0a4
Update shooter submodule
> Properly track players' LMB keypresses
2020-06-17 19:45:08 +05:30
ANAND fb9de06828
sniper_rifles: Trim and convert shot sound to mono (#657) 2020-06-10 21:27:25 +05:30
ANAND 907461216a
Nerf sniper rifles; restore balance in the universe (#662)
- Allow firing only when using scope
- Slow down players when scoping in
2020-06-10 21:16:25 +05:30
ANAND eba079b30c
> Fix crash due to nil pointed_thing
> [trivial] Fix code-style
2020-05-31 22:29:25 +05:30
ANAND d73d92e5ae
Update shooter submodule
> Ignore the shooter player when processing rounds
2020-05-31 20:17:14 +05:30
ANAND eef00119d2
Update shooter submodule
> shooter: Fix invalid particlespawner definition
2020-05-30 17:56:49 +05:30