Commit graph

3608 commits

Author SHA1 Message Date
Alexander Kromm
d28ba37af2 make various getter and pure-math methods clearscope, and where applicable, const
Original PR: https://github.com/coelckers/gzdoom/pull/532

Status of the original PR

1. Actor
- [already in] deltaangle
- [already in] absangle
- [already in] AngleToVector
- [already in] RotateVector
- [already in] Normalize180
- [already in] BobSin
- [already in] GetDefaultSpeed
- [this PR] GetBobOffset
- [this PR] InStateSequence
- [already in] FindState
- [already in] GetDropItems
- [this PR] DistanceBySpeed
- [this PR] AccuracyFactor
- [not in original PR, for PlayerInfo.isTotallyFrozen] isFrozen

2. PlayerInfo
- [this PR] GetUserName
- [this PR] GetColor
- [this PR] GetDisplayColor
- [this PR] GetColorSet
- [this PR] GetPlayerClassNum
- [this PR] GetSkin
- [this PR] GetNeverSwitch
- [this PR] GetGender
- [this PR] GetTeam
- [this PR] GetAutoaim
- [this PR] GetNoAutostartMap
- [this PR] GetClassicFlight
- [this PR] IsTotallyFrozen

3. C++ methods, to match ZScript:

- [scriptified] AActor::AccuracyFactor() to Actor.AccuracyFactor
- [this PR] AActor::DistanceBySpeed(AActor *, double) — it is a combination of getter and pure math
- [this PR] AActor::Distance2D(AActor *, bool) — called by DistanceBySpeed
- [this PR] AActor::Distance2D(AActor *, double, double, bool) — called by DistanceBySpeed
- [not in original PR, for PlayerInfo.isTotallyFrozen] AActor::isFrozen

# Conflicts:
#	src/actor.h
#	src/actorinlines.h
2020-06-07 14:34:48 +02:00
Christoph Oelckers
90476761a4 - manually merged PR for kill count in Requiem MAP23. 2020-06-07 14:34:26 +02:00
Christoph Oelckers
0a5919aa02 - there is no mace ammo in the bag of holding. 2020-06-07 14:34:23 +02:00
Christoph Oelckers
3106b46481 - advanced coordinate control for overlays over DTA_Fullscreen images.
Manually merged, there were severe conflicts.

# Conflicts:
#	src/textures/textures.h
#	src/v_draw.cpp
#	src/v_video.h
2020-06-07 14:15:59 +02:00
Christoph Oelckers
ebc4e2215f - fixed: the last frame of the intermission screen wasn't rendered. 2020-06-07 13:28:14 +02:00
Christoph Oelckers
96cd602de1 - added a compatibility option for a bad teleporter in the final Strife map. 2020-06-07 13:28:10 +02:00
drfrag
61e198f83d - Missing string for Brazilian Portuguese (Daniel). 2020-06-03 14:50:53 +02:00
drfrag
a695d6ee34 - Change default key bindings: add arrow keys to the left-handed preset and set mouse3 to activate items for the modern presets. 2020-06-03 12:21:01 +02:00
drfrag
049090a314 - Missing string. 2020-06-01 10:39:13 +02:00
Hugo Locurcio
03c9906b55 Add a cvar to control weapon bobbing while firing
This simulates a feature found in Crispy Doom, which keeps the
weapon bobbing while firing. This leads to a "smoother" appearance
which may look a bit prettier to some people.

The default value of 0 preserves the old behavior.
2020-06-01 10:39:09 +02:00
Christoph Oelckers
b731a0e2c4 - fixed use of Powerup.Strength in PowerInvisibility.
An integer division made the feature useless.
2020-05-26 00:30:09 +02:00
drfrag
aa224a7448 - Fixed jump key in Hexen for the modern keyboard presets. 2020-05-21 20:13:57 +02:00
drfrag
3df769c9d5 - Replace the "IJKL" keyboard preset with "OKL;". 2020-05-19 14:20:57 +02:00
alexey.lysiuk
2f50d5521a - fixed aiming camera that didn't follow target
https://forum.zdoom.org/viewtopic.php?t=68600
2020-05-18 14:23:43 +02:00
alexey.lysiuk
8dd30ab922 - restored warning about missing aiming camera target 2020-05-18 14:23:41 +02:00
drfrag
2f3be44470 - Restored original colors for player setup icon backdrop. 2020-05-17 14:04:43 +02:00
Major Cooke
36bf930575 Enforce the reflective flag as well. 2020-05-17 02:10:14 +02:00
Major Cooke
ac015c4bb9 Fixed an issue where multiple invulnerability powerups could cancel each other out from just one expiring. 2020-05-17 02:10:12 +02:00
drfrag
88c7f60cbc - Add updated Brazilian Portuguese translation by Daniel Lemos. 2020-05-08 18:10:15 +02:00
Mekboss
b658d4c225 Fix MSVS compile bug and add offset parameter for SprayDecal
# Conflicts:
#	src/g_shared/a_sharedglobal.h
2020-05-08 14:52:56 +02:00
Mekboss
6e30ac5f3c Replace function variables to DVector3
# Conflicts:
#	src/g_shared/a_sharedglobal.h
2020-05-08 14:52:53 +02:00
Mekboss
bfe367fb20 Add optional direction parameters for SprayDecal and its A_SprayDecal zscript counterpart
# Conflicts:
#	src/g_shared/a_sharedglobal.h
2020-05-08 14:52:51 +02:00
drfrag
9554958801 - Fixed missing compatibility string.
# Conflicts:
#	wadsrc/static/language.enu
2020-05-03 18:42:53 +02:00
drfrag
6a3f2b59cd - Fixed compatibility flags not working in scripting. 2020-05-03 18:40:48 +02:00
alexey.lysiuk
80b3f8dcbe - fixed secondary ammo display in strife status bar
https://forum.zdoom.org/viewtopic.php?t=68315
2020-05-03 18:40:45 +02:00
Cacodemon345
19b125ca3a Fix bouncing missiles not dealing damage when hitting top/bottom (#1068)
* Fix bouncing missiles not dealing damage when hitting top/bottom
2020-04-30 11:45:45 +02:00
arookas
dec6a03caf Add option to invert mouse x 2020-04-30 11:45:43 +02:00
nashmuhandes
81820961d4 Apply alpha to the background texture in DrawBar 2020-04-30 11:45:41 +02:00
nashmuhandes
5ef009bfd5 Add an alpha parameter to StatusBar.DrawBar 2020-04-30 11:45:39 +02:00
Skepticist
1799209052 Added a number of maps that can make use of the MTF_NOCOUNT flag
All but the Hell Revealed case are thanks to Skepticist from Doomworld
2020-04-28 02:23:03 +02:00
PaulyB
e59fe8e01f Added MTF_NOCOUNT to spawn flags 2020-04-28 02:22:44 +02:00
Christoph Oelckers
411b287cd9 - block off the Substitute function by making it private to the 3 classes that really need it. 2020-04-19 21:39:25 +02:00
Christoph Oelckers
a953578484 - made 3D floor damage transfers optional by adding a new flag bit (2048) and made that mode automatic for the old ZDoom-based light only transfer special.
# Conflicts:
#	src/maploader/specials.cpp
2020-04-19 15:18:54 +02:00
drfrag
518abb2363 - Missing string. 2020-04-08 23:32:41 +02:00
Blue
86927074c9 Added $OPTVAL_MBFSTRICT to menudef.txt, and added corresponding case 7 to the compatmode cvar in d_main.cpp 2020-04-08 23:32:40 +02:00
Erick Tenorio
5ce63a92da - REQUIEM.WAD fixes (#1050)
Fixes for various maps in the Requiem megawad.

Idgames: https://www.doomworld.com/idgames/levels/doom2/megawads/requiem
2020-04-04 18:47:41 +02:00
drfrag
c1f6e70fb3 - Missed a bit for stat screens (fixes Guncaster Vindicated). 2020-04-04 18:17:35 +02:00
Christoph Oelckers
ca18bccb0b - fixed another typo.
# Conflicts:
#	wadsrc/static/zscript/base.zs
2020-03-25 13:58:49 +01:00
drfrag
2f8c959ece - Remove 1K Deaths skill from the menu and restore original Heretic Nightmare. 2020-03-24 02:39:09 +01:00
nashmuhandes
72ecc11e8d Added Actor.CopyBloodColor to copy another existing actor's blood color. 2020-03-24 01:36:58 +01:00
nashmuhandes
315efb2b97 Add help messages for most of the deprecated stuff in ZScript.
# Conflicts:
#	wadsrc/static/zscript/actors/actor.zs
#	wadsrc/static/zscript/base.zs
#	wadsrc/static/zscript/destructible.zs
#	wadsrc/static/zscript/mapdata.zs

# Conflicts:
#	wadsrc/static/zscript/base.zs
2020-03-16 11:07:29 +01:00
alexey.lysiuk
eaa7e392d7 - fixed FLineTraceData scripting definition
https://forum.zdoom.org/viewtopic.php?t=67795

# Conflicts:
#	src/scripting/thingdef_data.cpp
2020-03-14 19:15:27 +01:00
Christoph Oelckers
9fe9552023 - fixed A_FireCGun. 2020-03-11 20:18:45 +01:00
Christoph Oelckers
4e40c4dfa9 - fixed: player_t::GetPSprite cannot guarantee success
As a consequence it must return null in the failure case instead of asserting and all calls to this function must check for the failure case.
2020-03-11 20:18:43 +01:00
Alexander Kromm
c91c542c23 fix Dictionary and DictionaryIterator memory leaks
# Conflicts:
#	src/version.h
2020-03-09 00:33:48 +01:00
Major Cooke
c467539014 Changed Pre/Post(Un)Morph to take the other actor and a boolean indicating direction.
- 'current' is true for the actor that is the new body, false for the old body.
2020-03-09 00:28:05 +01:00
Major Cooke
8712d7c237 Added Pre(Un)Morph and Post(Un)Morph functions.
- cls: The other class's cast type which the actor is transitioning from/to.
2020-03-09 00:28:03 +01:00
Rachael Alexanderson
673e52f02f - fix debug assertion, cleanup vestigial A_PlaySound addition 2020-03-04 09:46:09 +01:00
Rachael Alexanderson
c9476e6188 - remove addition from deprecated A_PlaySound 2020-03-03 10:58:50 +01:00
Rachael Alexanderson
4625925a69 - ported over Nash's startTime for A_StartSound 2020-03-03 10:58:46 +01:00