Commit graph

16812 commits

Author SHA1 Message Date
Sally Coolatta
827a1b5fca Refactor stealing & destroying bumpers
- Prevents being able to farm extra bumpers off of karma players
- Paves the way for bumper destroy animation later
2020-11-15 06:25:38 -05:00
Sally Coolatta
56a20d05df Merge branch 'master' into battle-rethink 2020-11-11 00:11:18 -05:00
Sal
2332695988 Merge branch 'hitlag-retry' into 'master'
Hitlag

See merge request KartKrew/Kart!309
2020-11-11 00:06:32 -05:00
Sally Coolatta
94eca0f928 Don't explode mines multiple times while they're in hitlag 2020-11-10 23:50:59 -05:00
Sally Coolatta
87e3dd518b Don't set hitlag for punted mines multiple times 2020-11-10 23:42:30 -05:00
Sally Coolatta
4abb14a158 Check for null 2020-11-10 23:22:05 -05:00
Sally Coolatta
bd495c7f55 Increase hitlag for bananas from 2 to 5, use 10 for normal damage by default instead
Ballhogs & Lightning Shield get intense hitlag again
2020-11-10 23:13:32 -05:00
Sally Coolatta
da59009ba1 More extreme hitlag vibration 2020-11-10 23:12:17 -05:00
Sally Coolatta
c86d496fef Removed fixed length hit lag 2020-11-10 23:02:58 -05:00
Sally Coolatta
5f12dd156c Fix hitlag crashing for level damage 2020-11-10 21:49:11 -05:00
Sally Coolatta
2b3a86d4b4 Merge branch 'master' into hitlag-retry 2020-11-10 21:37:09 -05:00
Sal
f44f2a4308 Merge branch 'mis-gentlemens-packets' into 'master'
Mis gentlemens packets

See merge request KartKrew/Kart!333
2020-11-10 21:35:15 -05:00
Sally Coolatta
caf7d453e9 Merge branch 'master' into mis-gentlemens-packets 2020-11-10 20:47:33 -05:00
Sally Coolatta
37567de6c0 Merge branch 'master' into mis-gentlemens-packets 2020-11-10 20:34:13 -05:00
Sal
4874387283 Merge branch 'netplay-tweak' into 'master'
Increase BACKUPTICS

See merge request KartKrew/Kart!332
2020-11-10 20:32:52 -05:00
Sally Coolatta
454fc41b71 Increase BACKUPTICS 2020-11-10 20:31:50 -05:00
Sal
27530dec06 Merge branch 'spindash-efx' into 'master'
Spindash EFX Part 1

See merge request KartKrew/Kart!331
2020-11-10 19:56:01 -05:00
Sally Coolatta
1f1607cc6d This was lost 2020-11-10 19:49:21 -05:00
Sally Coolatta
fc934b38e1 Merge public next 2020-11-10 15:32:48 -05:00
Sal
14f5dd14f8 Merge branch 'consoleplayer-dedicated' into 'next'
Fix not being able to access consoleplayer as a dedicated server + other more consistent checks

See merge request KartKrew/Kart-Public!240
2020-11-10 14:50:22 -05:00
Sal
166b79cc06 Merge branch 'no-aprox-dist' into 'next'
Use R_PointToDist2 over FixedHypot, and FixedHypot over P_AproxDistance

See merge request KartKrew/Kart-Public!243
2020-11-10 14:50:08 -05:00
Sally Coolatta
8b5a78114e Hitlag occurs on registered damage instead of being before damage calls 2020-11-09 21:35:08 -05:00
James R
d7a0c8ae0a Setting the ambush flag on any MF_SPRING thing toggles MF_NOGRAVITY 2020-11-08 20:15:17 -08:00
James R
ee8fb39974 Make all springs MF_NOGRAVITY by default 2020-11-08 20:14:18 -08:00
Sally Coolatta
39acb46903 Last 3/4s: Spindash wind 2020-11-08 15:32:30 -05:00
Sally Coolatta
bffc367c36 Second-half spindash dust effect 2020-11-08 14:14:13 -05:00
Sally Coolatta
9434dd3ae3 Make the stuff that lost it use K_MomentumAngle again 2020-11-08 02:10:53 -05:00
Sally Coolatta
470e399abe Merge master, add support for hitlag jitter in OpenGL 2020-11-08 01:56:27 -05:00
Sally Coolatta
b3f4483ac2 Actually, lets just fix FixedHypot instead.
Now FixedHypot uses the code from R_PointToDist2, and R_PointToDist2 just calls FixedHypot.

Ultimately, this branch was intended to get rid of a redundant way to retrieve distance and replace it with the one that was actually good at its job. So consolidating FixedHypot and R_PointToDist2 together is just an extension of that.
2020-11-08 00:45:16 -05:00
Sally Coolatta
def9b7112a Use R_PointToDist2 instead
Apparently overflows less often
2020-11-07 23:56:46 -05:00
Sally Coolatta
7d80a7a2f0 Merge branch 'master' into next 2020-11-07 22:21:53 -05:00
Sally Coolatta
f27a2b904b Use FixedHypot over P_AproxDistance
Not convinced that the small speed benefit from P_AproxDistance is worth the "aproximate"[sic] results it gives. Let's instead try a define to replace it with FixedHypot. In Lua, the function gives a deprecated warning.

Inspired by the hyperwall fix for vanilla, except for everything. From little testing, actively improves waypoint checks, bumping, speed checks, wall collisions, Jawz targetting, Lightning Shield attacks, so on.

The only way I see this as a potential downgrade is A_Look (and related functions) getting slower, which are barely used in Kart.
2020-11-07 19:47:50 -05:00
Sal
fe1f90ed03 Merge branch 'lua-ports' into 'next'
Some Lua ports from 2.2

See merge request KartKrew/Kart-Public!241
2020-11-07 18:30:59 -05:00
Sal
2f7ed87530 Merge branch 'srb2-findplane-backport' into 'master'
R_FindPlane optimization

See merge request KartKrew/Kart-Public!242
2020-11-07 18:30:46 -05:00
Hannu Hanhi
c902f9addb R_FindPlane optimization from SRB2 2020-11-07 20:32:44 +02:00
James R
e2df4cf027 :V 2020-11-05 22:18:41 -08:00
Zachary McAlpin
2764c283d2 Execute LUAh_PlayerThink(player) at the end if the player has a valid mobj_t object 2020-11-05 21:26:24 -08:00
Zachary McAlpin
7efb33a38e Added PlayerThink hook 2020-11-05 21:23:22 -08:00
James R
cacca05ed3 PreThinkFrame and PostThinkFrame hooks
Changes from e4d1b9491c,
4456ff50ab,
20494c4c42,
ee0e68d8dc.
2020-11-05 21:04:25 -08:00
James R
758a43385d Add CV_Set, CV_SetValue, CV_StealthSet, CV_StealthSetValue and CV_AddValue to Lua
CV_SetValue merged with CV_Set (same with CV_StealthSetValue and CV_StealthSet).
2020-11-05 20:23:43 -08:00
Louis-Antoine
3d62b6f2ad Expose "server" and "dedicated" to Lua scripts
Careful! Both are local variables and are always false for clients,
and therefore should obviously not be used in anything gamelogic-related.
2020-11-05 20:19:58 -08:00
James R
2ba99dac90 Improve COM_AddCommand boolean deprecated warning 2020-11-05 20:16:28 -08:00
James R
7e9922febf COM_LOCAL makes your commands NetXCmd free, FUCK NetXCmd 2020-11-05 20:16:28 -08:00
James R
d996a6a3b9 Fuck magic numbers; COM_ flags for Lua commands! 2020-11-05 20:16:26 -08:00
James R
1cedb32e51 Let access spectator mobj 2020-11-05 20:05:04 -08:00
James R
3386ff6b90 Allow accessing a player even if there is no mobj
The worst part is you could've just saved the player userdata and accessed it
later anyway while player.mo is nil.
2020-11-05 20:04:14 -08:00
James R
745b293c47 Always allow access to the serverplayer 2020-11-05 20:00:21 -08:00
Sally Coolatta
c9755131bf Merge branch 'master' into next 2020-11-05 16:15:42 -05:00
Sal
c33c24ae9a Merge branch 'spb-polyobject-fix' into 'next'
Fix polyobject and SPB 'lastlook' interaction crash

See merge request KartKrew/Kart-Public!239
2020-11-05 16:14:25 -05:00
Sal
d79c719ad9 Merge branch 'plane-sorting-fix' into 'master'
Fix sprite against FOF plane sorting

See merge request KartKrew/Kart!328
2020-11-03 13:06:49 -05:00