Commit graph

215 commits

Author SHA1 Message Date
Sally Coolatta
359cf86efb Merge branch 'master' into big-large-map-markers 2021-04-09 19:49:33 -04:00
Sally Coolatta
72dc88c043 Attempt at a non-controller dependent compromise for turn easing
Values are subject to tweaking.

(AngleDelta stuff is a leftover of the previous attempt, but I think the code's useful so I kept it in this commit anyway)
2021-04-05 23:52:56 -04:00
toaster
40cbc30bff Mammoth commit, sorry.
All my work thus far on solving the drawflag/renderflag/additive/subtractive conundrum.

Outstandng problems:
* Bad additive/subtractive tables means that they appear opaque except under certain conditions.
* No support for FOFs, Polyobjects, or linedefs in OpenGL yet.
* All OpenGL support mostly done blind, may or may not function in practice.

If nothing else, the hard engineering problems are solved and it's just bug hammering...
2021-03-31 22:46:23 +01:00
toaster
6f8033ab76 Some preparation for engineering a solution to the rendermode flag/V_*TRANS flag conflict.
* None of the following things (grouped by the fact they fade/slide in) use hardcoded static numbers; they'e now attached to the titlecard ticker.
    * Minimap.
    * All V_HUDTRANS items. (Not add/sub) - this was previously broken entirely
    * FREE PLAY
    * Record Attack Input (no longer slides in at all - needs to be visible from start of play.)
* Fixed a rare case where V_SLIDEIN HUD elements would occasionally jump a step too far.
2021-03-30 22:55:09 +01:00
Sally Coolatta
20e2c78331 Delete seenames code
We had SEENAMES disabled before, and vanilla removed the define, so I went ahead and removed it. Repurposed the old seenames console variable for our nametags.
2021-02-28 21:27:23 -05:00
Sal
fa5ef9ed58 Merge branch 'kickstartaccel' into 'master'
Acceleration Kickstart

See merge request KartKrew/Kart!398
2021-02-25 02:34:32 -05:00
toaster
a43a762b46 Instead of hacking ticcmd generation, add/modify helper functions acting as intermediaries that add the necessary changes.
* Introducing K_GetKartButtons(player_t), for adding false presses to.
* K_GetForwardMove(player_t) takes kickstarting into account, and is now applied to engine sound generation too.
* BT_REALACCELERATE has been deleted.
2021-02-22 12:21:48 +00:00
toaster
cce4165f35 After discussing with Oni, adjust the coordinates for the accel kickstart indicator. 2021-02-21 21:37:56 +00:00
toaster
56d0a6e43d Bunch of changes to how the Kickstart Acceleration icon is rendered.
* Display even if the player (or Lua) has disabled the speedometer.
* Support splits all the way up to 4p.
* Abstract out to a function that could hypothetically display more accessibility-related icons down the line.
2021-02-21 18:12:27 +00:00
toaster
d039b14aa4 Make kickstartaccel a UINT8 instead of an INT32 kartstuff entry. 2021-02-21 18:08:04 +00:00
toaster
08d087c6b5 Acceleration Kickstart, my little hobby project.
It's no secret that holding down a button a lot can fuck with your wrists and fingers. It's too late for me to be damageless, but I can at least create an option to reduce further harm.

This accessibility feature, when enabled (kickstartaccel and kickstartaccel2/3/4 in the console) behaves with the following properties:
* Hold accelerate for 1 second to lock it down.
* Press again to release.
* Short holds/presses do nothing (good for POSITION).
* Continue holding it during the releasing press to re-lock it.
* A small triangular UI element is added next to the speedometer sticker, which displays the current state of the acceleration kickstart for visual feedback. (NO SPLITS SUPPORT YET)

In addition:
* Add PF_ACCELDOWN and PF_BRAKEDOWN, and BT_REALACCELERATE (which ACCELDOWN tracks). Even if this feature never gets merged, BT_REALACCELERATE is required because sneakers and boosters force it on too (extending this is how I implemented it).
* Fix the dehacked playerflag list being out of shape.
* I replaced some existing flags during development of this branch, so their old uses have been whittled away.
2021-02-20 23:10:18 +00:00
toaster
bcf07576c7 Additional attempt to compensate for spectatoriness in K_ObjectTracking. 2021-02-19 20:51:58 +00:00
Sal
e6a0ff727c Merge branch 'typing-notifier' into 'master'
Typing Indicator

See merge request KartKrew/Kart!389
2021-02-18 18:34:00 -05:00
toaster
34ebcdf696 Hitlag is now displayed in first-person view. 2021-02-18 13:23:44 +00:00
James R
62ca621827 Handle typing dot y offset in lump
One less thing to do in the code.
2021-02-16 13:03:36 -08:00
James R
196d310052 Sacrifice fun for readability :( 2021-02-16 10:48:24 -08:00
James R
dd5223f4d7 Draw an icon above players when they are typing in chat or console
A little speech bubble is drawn, with dots cycling as they type.
No typing = no dots.
2021-02-16 09:24:22 -08:00
Sally Coolatta
c5fa63c0fa Invert the value of cv_fov
After a little more testing, it was reversed for specifically the cvar.
2021-02-13 10:56:40 -05:00
Sally Coolatta
192d0b6410 I_Assert for result/point != NULL 2021-02-13 10:37:25 -05:00
Sally Coolatta
ecb4111bed Merge branch 'master' into tracking-fix 2021-02-12 20:28:57 -05:00
Sally Coolatta
4718c1993a Shortcut function for getting angle difference, so that I don't need (INT32) in front of all of the angle_t's :V 2021-02-12 20:11:09 -05:00
Sally Coolatta
9ba3e07417 Don't allocate result 2021-02-12 19:34:43 -05:00
Sally Coolatta
49b4337564 While I'm at it, remove dumb multiplier for percentage mode
Hasn't been needed after all of the movement bugs causing this discrepency were fixed, so now it just looks weird when you use a Sneaker and it shows you at 105% afterwards.
2021-02-11 19:46:39 -05:00
Sally Coolatta
25ac5c9853 Speedometer crash fix 2021-02-11 19:37:39 -05:00
Sally Coolatta
6e75b29431 Replace the tracking function with Nev3r's version
Was a long time coming :V

Nev3r's supported different FOV. I also expanded it to let it support splitscreen's different screen sizes in a better fashion than the old method of just dividing the final coordinates.

The results are also stored in a struct, instead of modifying passed in variables, so it's also less dunderheaded than what I was doing before overall.
2021-02-11 15:40:03 -05:00
James R
caa7fe1b47 Merge branch 'player-new-frames' into 'master'
New player frames: Glancing and death

See merge request KartKrew/Kart!362
2021-02-06 05:57:11 -05:00
Sally Coolatta
c178ca6c1a Fix CHECK in splitscreen 2021-02-02 22:47:22 -05:00
Sally Coolatta
4d108930a9 Update position nums to use additive
Looks far more colorful this way! By default it is additive... but like SMK, there is a map header option for subtractive, intended for maps with white roads.
2021-02-02 19:58:07 -05:00
SteelT
29b5f38347 Merge branch 'master' into big-large-map-markers
# Conflicts:
#	src/d_netcmd.c
2021-01-09 15:52:34 -05:00
Sally Coolatta
cfda66103d Merge branch 'master' into just-tumble 2021-01-06 23:02:51 -05:00
James R
a7621f4e96 Fix compiler warning 2020-11-29 16:41:48 -08:00
James R
71553a8ad0 Merge branch 'battle-rethink' into 'master'
Battle rethink

See merge request KartKrew/Kart!335
2020-11-29 19:13:38 -05:00
toaster
891f14dd26 Don't show post-race bot inputs on input display UI. 2020-11-28 17:29:28 +00:00
Sally Coolatta
931bcb3c2a Fix laps counter after finishing 2020-11-18 17:10:48 -05:00
Sally Coolatta
e16c7d722f Cherry-pick e1b265df2 2020-11-16 19:55:28 -05:00
Sally Coolatta
0db31e0fcd HUD polish
- Emeralds have background & white flashing
- Blue sphere meter has shading
- V_SLIDEIN works off of lt_exitticker instead of introtime
2020-11-16 00:17:40 -05:00
Sally Coolatta
0dc0ff8e6f More finalized Chaos Emerald visuals 2020-11-15 15:11:13 -05:00
Sally Coolatta
d970747c85 Remove FIN
KartZ holdover that Oni never wanted apparently :V
2020-11-02 05:19:45 -05:00
Sally Coolatta
e478d542a0 Emeralds are on ranking 2020-11-02 04:23:31 -05:00
Sally Coolatta
4a9a438270 Dummy out wanted system
- Remove WANTED hud item
- Person in 1st place is the bonus points giver
- Sort players by Emeralds > Bumpers > Points
2020-11-02 03:51:16 -05:00
Sally Coolatta
56dc08ed88 Shitty temp emeralds hud 2020-11-02 01:09:38 -05:00
James R
8f68a21f2f Fix many instances of G_BuildMapName
Some things are gonna be busted. Fix it later, BYE.
2020-10-31 20:17:12 -07:00
Sally Coolatta
5504cb8cee Don't show comeback timer & screen fade after you've been eliminated 2020-10-24 11:46:56 -04:00
Sally Coolatta
c92871d317 Fix name tags showing for dead or invisible players 2020-10-24 11:28:02 -04:00
Sally Coolatta
0969ca1af9 Karma bombs rework
- Fixed the bugs with them in our last netgame
- Karma bombs are no longer slippery or have stat changes
- Karma bombs cannot pick up spheres. Their remaining spheres before they died are removed 1 per tic.
- Karma bombs are out of the game permanently when touching the overtime barrier
- When successfully hurting another player, instead of getting 0.5 bumpers, they steal ALL of the opponent's bumpers, effectively swapping places with them. One bumper is lost in the process, meaning bumpers are slowly flitered out the more people need to come back.
- Removed karma items/eggboxes... hopefully this is temporary and we can bring them back later, but currently we don't have a design for how they should work under the new rules :x. They are still in the code behind the `OTHERKARMAMODES` define
- Bumpers & comeback timer are now player_t variables instead of kartstuff shit
- eliminated boolean on player_t for checking when a player touched the barrier
2020-10-24 11:27:42 -04:00
Sally Coolatta
362c98e5d6 Add blue sphere meter 2020-10-23 02:42:04 -04:00
Sally Coolatta
91d4d19bda Fix a few instances of rainbow things going through invalid skincolors 2020-09-25 12:54:35 -04:00
James R
997d142cb5 SPLITSCREEN FOV
Object tracking is off, but it was off before so I don't know if I actually
broke it. Minor refactoring in HWR_RenderPlayerView and HWR_RenderSkyboxView.
2020-09-23 17:50:47 -07:00
toaster
6104c802e9 Temporarily disable the POSITIONI sweeping for the first 16 tics of map drawer. (Looks better for if we showcase 2.2 merge footage before creating a better title card). 2020-09-22 18:55:45 +01:00
Sally Coolatta
99a1bacb81 Turning code overhaul
Packet drops are still broken, but at least netgames are playable now.
2020-09-22 00:35:44 -04:00