Christoph Oelckers
3291cecad9
- fixed: For an initial weapon pickup, sv_unlimited_pickup wasn't checked for the included ammo.
2019-04-18 16:23:04 +02:00
Cacodemon345
fdd6e3cec9
Export P_GetOffsetPosition and ADynamicLight::SetOffset to ZScript
2019-04-18 16:23:01 +02:00
Player701
5c248053f3
- Fixed the position of the soul sphere within one of the secret areas (sector 324) of Alien Vendetta MAP28.
2019-04-18 15:01:11 +02:00
Christoph Oelckers
f7fe19ee51
- made Ammo.GetParentAmmo virtual
2019-04-18 14:34:28 +02:00
Magnus Norddahl
3d69fc327b
- vWorldNormal is not normalized but R_DoomColormap requires this
2019-04-18 14:34:27 +02:00
Chronos Ouroboros
218b7e95ca
Added a function for triggering use/push specials for usage in custom monster AI.
2019-04-18 14:22:07 +02:00
Chronos Ouroboros
803cb16d99
Exported P_CheckFor3DFloorHit and P_CheckFor3DCeilingHit to ZScript.
2019-04-18 14:22:05 +02:00
Christoph Oelckers
4d7e945dc1
- fixed: A powered up weapon which shares its ready state with the parent but is currently in a firing sequence may not force-switch the weapon, because that will cause the sequence to run in the wrong weapon's context.
2019-04-18 14:22:02 +02:00
Magnus Norddahl
b3cd6f4460
- fix vanilla light mode angle calculation
2019-04-18 12:50:25 +02:00
Magnus Norddahl
bafc5e6a3c
- add vanilla lightmode that behaves exactly as Doom's original light did
...
# Conflicts:
# src/hwrenderer/scene/hw_drawinfo.cpp
# src/hwrenderer/scene/hw_renderstate.cpp
# src/hwrenderer/scene/hw_renderstate.h
# src/hwrenderer/scene/hw_skyportal.cpp
# src/hwrenderer/scene/hw_weapon.cpp
# Conflicts:
# src/g_level.cpp
# src/gl/compatibility/gl_20.cpp
# src/gl/renderer/gl_lightdata.cpp
# src/gl/renderer/gl_renderstate.h
# src/gl/scene/gl_skydome.cpp
# src/gl/scene/gl_weapon.cpp
# src/hwrenderer/scene/hw_weapon.cpp
# src/hwrenderer/utility/hw_lighting.cpp
2019-04-18 12:50:03 +02:00
Rachael Alexanderson
f442d4bd54
- split gl_texture_hqresize into two variables - one for mode, one for multiplier.
...
# Conflicts:
# src/textures/hires/hqresize.cpp
# Conflicts:
# src/gl/textures/gl_hqresize.cpp
# src/r_videoscale.cpp
2019-04-17 21:04:41 +02:00
drfrag666
7e45b40d4b
Revert "- Removed 5x and 6x xBRZ modes from the menu since they require a lot of video memory. They crash on my 1 GB amd card at least with MinGW-w64."
...
This reverts commit 097c2268df24133dc4a48452dabb4c00567545dd.
# Conflicts:
# wadsrc/static/menudef.txt
2019-04-17 21:00:22 +02:00
alexey.lysiuk
77e47087b7
- fixed stuck memory usage warning in options menu
...
https://forum.zdoom.org/viewtopic.php?t=62186
2019-04-17 20:59:49 +02:00
Rachael Alexanderson
301246236c
- added normal5x and normal6x
2019-04-17 20:59:20 +02:00
Rachael Alexanderson
cd126b08ba
- use correct multipliers for the memory warnings for normalNx scalers
2019-04-17 20:58:47 +02:00
drfrag
96f996d8aa
Revert "Revert "- update xBRZ upscaler to version 1.6""
...
This reverts commit 285791622d
.
# Conflicts:
# src/gl/textures/gl_hqresize.cpp
# wadsrc/static/menudef.txt
Goodbye to TDM-GCC.
2019-04-17 20:33:41 +02:00
Player701
c6ab780555
- Force node rebuild for Plutonia 2 MAP29 to fix BSP glitches
2019-04-17 19:59:14 +02:00
Rachael Alexanderson
c8d545b293
- added a number of darken2.wad maps to rebuild nodes in compatibility.txt
2019-04-17 19:59:13 +02:00
Player701
764e9b552e
- Force node rebuild for Plutonia 2 MAP25 to fix BSP glitches
2019-04-17 19:57:24 +02:00
Christoph Oelckers
f40e5c7edc
- re-added PlayerInfo.BringUpWeapon.
2019-04-17 19:44:12 +02:00
Player701
8277de8626
- Added Plutonia 2 MAP10 and MAP11 to the "rebuildnodes" compatibility list.
2019-04-17 18:44:10 +02:00
Rachael Alexanderson
dacad6c4eb
- add plutonia map32 to node regen compatibility - https://forum.zdoom.org/viewtopic.php?f=2&t=62777
2019-04-17 18:39:54 +02:00
Christoph Oelckers
cf4f573a25
- more direct native entry points.
...
- disallow bool as a return value for direct native calls because it only sets the lowest 8 bits of the return register.
- changed return type for several functions from bool to int where the return type was the only thing blocking use as direct native call.
2019-04-17 17:27:39 +02:00
Christoph Oelckers
082cb5b656
- scriptified P_CheckMeleeRange2.
2019-04-17 16:24:10 +02:00
Christoph Oelckers
15ab1fb09b
- deprecated a few functions that depend on AAPTR_* to be useful.
...
- fixed wrong name for the LineAttack action function.
2019-04-17 16:24:05 +02:00
Christoph Oelckers
792aaa5b88
Added direct native entry points to a larger number of functions.
...
# Conflicts:
# src/scripting/vmthunks_actors.cpp
2019-04-17 15:11:22 +02:00
Christoph Oelckers
77e60865a0
- fixed: SlotPriority must be a float.
...
It was a fixed before but I missed that when refactoring it into an automatic property.
2019-04-17 15:11:12 +02:00
Christoph Oelckers
a5e16e3261
- moved a large part of the VM thunks out of p_mobj.cpp.
2019-04-17 14:55:58 +02:00
Christoph Oelckers
f22aaca74d
- scriptified ASpecialSpot.
...
This only had two simple native methods so the class is not fully scripted.
2019-04-17 14:32:10 +02:00
Christoph Oelckers
c87724ef0a
Removed all native components from AInventory.
2019-04-16 23:57:22 +02:00
Christoph Oelckers
d40de21bae
- scriptified A_SpawnSingleItem, which was the last piece of native code still referencing AInventory
2019-04-16 23:57:19 +02:00
Christoph Oelckers
d2225040ea
- scriptified A_SelectWeapon
2019-04-16 23:57:15 +02:00
Christoph Oelckers
b8e1218645
Removed all remaining references to AInventory
...
What remains is the class definition and one single reference that will be scriptified.
2019-04-16 23:57:12 +02:00
Christoph Oelckers
36af613dfa
- The 'A' prefix has no meaning in class names on the script side - even in comments.
2019-04-16 22:01:06 +02:00
Christoph Oelckers
318a9d7893
- fixed max. ammo display on AltHud.
2019-04-16 22:00:59 +02:00
Christoph Oelckers
e176410ab6
- fixed crash with weapons which remove themselves from the inventory but continue calling action functions.
...
This is still an error, so now this throws a meaningful exception.
2019-04-16 21:53:00 +02:00
Christoph Oelckers
c0686309fc
- removed all direct references of AInventory::Owner and AInventory::Amount from the C++ code.
2019-04-16 21:52:53 +02:00
Marisa Kirisame
739999b5ed
Fix RemoveInventory not calling DetachFromOwner when an item is the first in the owner's inventory.
...
Fix CheckAddToSlots not working because it uses GetReplacement incorrectly.
2019-04-16 21:52:50 +02:00
Christoph Oelckers
7e75aa1d36
- fixed accidentally misnamed parameter in A_Explode.
2019-04-16 21:34:47 +02:00
Christoph Oelckers
9f2b62c99c
- scriptified AInventory::Tick.
...
This was the last bit of code standing in the way of making AInventory a fully scripted class.
All that's left to sort out is some variable accesses - the vast majority of them in SBARINFO.
2019-04-16 21:28:37 +02:00
Christoph Oelckers
bdd6d31a63
- scriptified the AutoUseHealth feature.
...
This again is a piece of code that reads and even writes to inventory items' properties, so better have it on the script side.
2019-04-16 21:28:34 +02:00
Christoph Oelckers
80e3ce735b
- scriptified the decision making of the invuseall CCMD.
...
Custom items had no way to adjust to this - and it also was the last native access to ItemFlags.
2019-04-16 21:28:32 +02:00
Christoph Oelckers
9ff5257ce9
- scriptified P_DropItem.
2019-04-16 21:28:30 +02:00
Christoph Oelckers
17862639a1
- scriptified the no-spawn flag check for armor and health items.
2019-04-16 21:28:29 +02:00
Christoph Oelckers
e8a6f82682
- scriptified G_PlayerFinishLevel.
...
Outside of SBARINFO this was the biggest remaining piece of code that referenced AInventory internals.
2019-04-16 21:28:24 +02:00
Christoph Oelckers
8dfcdc1219
- fixed incomplete null checks in A_RadiusThrust.
2019-04-16 21:28:23 +02:00
Christoph Oelckers
9315a217b3
- scriptified AActor::ClearInventory
2019-04-16 21:28:21 +02:00
Christoph Oelckers
0d8975ed31
- scriptified the last components of the alternative HUD.
...
- moved the ALTHUDCF parser PClass::StaticInit, so that it gets done right after creating the actor definitions.
All left to do is not to reallocate the AltHud object for each frame but store it in a better suited place.
# Conflicts:
# src/d_main.cpp
# Conflicts:
# src/info.cpp
2019-04-16 19:03:43 +02:00
Christoph Oelckers
376266b6a0
- scriptified the main drawer for the in-game HUD and removed all intermediate VM calls from the native source.
2019-04-16 19:02:01 +02:00
Christoph Oelckers
9d8dd5c529
- scriptified the AltHUD'S powerup drawer.
2019-04-16 19:01:55 +02:00
Christoph Oelckers
f509fdfdaa
- scriptified and cleaned up the AltHUD's DrawCoordinates, DrawTime and DrawLatency functions.
...
Some backing functionality was moved elsewhere because scripting should not have access to low level system information.
2019-04-16 19:01:53 +02:00
Christoph Oelckers
eb07b8e543
- scriptified the AltHUD's inventory drawer and fixed the InvPrev CCMD.
2019-04-16 19:01:51 +02:00
Christoph Oelckers
e0915877b4
- scriptified the AltHUD's weapon drawer.
2019-04-16 19:01:50 +02:00
Christoph Oelckers
045d6d4355
- added the missing TNT1A0 check for icon-less keys.
...
Since it tries to get the icon from the spawn state it also has to check if that actually has a valid sprite.
2019-04-16 19:01:48 +02:00
Christoph Oelckers
437c72a089
- AltHUD ammo drawer scriptified.
2019-04-16 19:01:46 +02:00
Christoph Oelckers
1033dc3b10
- Alt HUD scriptification, part 1.
2019-04-16 19:01:43 +02:00
Major Cooke
7ff76366ef
Fixed A_JumpIfNoAmmo not working.
2019-04-16 18:46:06 +02:00
Christoph Oelckers
1b55e708bc
- fixed the AngleToVector calls in stateprovider.txt.
...
This looks like a search & replace gone wrong.
2019-04-16 18:46:04 +02:00
Major Cooke
4ae14c402b
- Restored A_SpawnItemEx's "chance" to "failchance" to prevent mod breakage from named parameters.
2019-04-16 18:46:00 +02:00
Christoph Oelckers
d18ed18d2e
- scriptified invnext and invprev CCMDs.
2019-04-16 18:45:54 +02:00
Christoph Oelckers
081d0bbcca
- moved ValidateInvFirst to the script side because this was one of the major functions that directly reference AInventory.
2019-04-16 18:45:52 +02:00
Christoph Oelckers
d021d63d33
- moved AInventory::DoRespawn fully to the script side.
2019-04-16 18:45:49 +02:00
Christoph Oelckers
9981674a27
- re-fixed the massacre fix for Dehacked-modified inventory items.
...
Instead of overriding the Massacre method it is preferable to clear the flags causing the bad behavior, most notably ISMONSTER.
# Conflicts:
# src/g_inventory/a_pickups.cpp
# src/g_inventory/a_pickups.h
2019-04-16 18:45:43 +02:00
Christoph Oelckers
be8d1c950d
- scriptified GiveAmmo and the one remaining piece of native code still using it.
2019-04-16 18:45:41 +02:00
Christoph Oelckers
f1bf1cc44e
- scriptified DropInventory.
2019-04-16 18:45:38 +02:00
Christoph Oelckers
a614f2a81e
- scriptified UseInventory and several functions using the already scriptified ones,
...
# Conflicts:
# src/g_statusbar/sbar.h
2019-04-16 18:45:36 +02:00
Christoph Oelckers
e7c798f58f
- scriptified TakeInventory, including the ACS/FS interfaces.
2019-04-16 18:45:03 +02:00
Christoph Oelckers
d2741813ab
- scriptified RemoveInventory and Inventory.OnDestroy.
2019-04-16 18:44:59 +02:00
Christoph Oelckers
8609e2ba68
- scriptified GiveInventory and made the interface a bit more configurable by mods.
...
Now a child type can decide for itself how to treat 'amount'.
The scripting interfaces to this function in ACS and FraggleScript have been consolidated and also scriptified.
2019-04-16 18:44:56 +02:00
Christoph Oelckers
2a192cde92
- scriptified AddInventory.
2019-04-16 18:44:53 +02:00
drfrag
e3ce680ec9
- Removed duplicate definition of DTA_Internal3.
2019-04-16 18:40:25 +02:00
Christoph Oelckers
4049b56d50
- a bit of code reordering for adding direct native entry points.
...
- offloaded key list generation for alternative HUD to non-UI parts.
This change also revealed a problem with handling empty sprites in the key list so this got fixed, too.
# Conflicts:
# src/g_shared/shared_hud.cpp
2019-04-16 18:17:05 +02:00
Christoph Oelckers
4080bfd3cf
- seems there are two versions of Hacx's MAP05.
...
# Conflicts:
# wadsrc/static/zscript/base.txt
# wadsrc/static/zscript/level_compatibility.txt
2019-04-16 17:47:42 +02:00
Christoph Oelckers
1a8b18d539
- fixed declaration of ChangeStatNum.
2019-04-16 17:10:37 +02:00
Christoph Oelckers
886df37d1a
ChangeStatNum must not be virtual
...
Overriding this would make the engine vulnerable to badly behaving mods. Intercepting this and altering the behavior can render the entire game inoperable, especially if more internal code gets scriptified later. So even at the risk of breaking some carelsss mods this must be blocked.
2019-04-16 15:26:16 +02:00
Christoph Oelckers
09f4c7e4a9
Made all virtual base functions for the event handler scripted
...
This was by far the largest block of native virtuals, and they were only native to be able to allow checking if the event was implemented for the current handler. This can easily be done by looking at the byte code, just like VMCall also does but in turn it removes more than half of the existing native virtuals from the interface.
2019-04-16 15:26:14 +02:00
Christoph Oelckers
4ac866aedc
- added a few more direct native entry points.
2019-04-16 15:12:41 +02:00
Christoph Oelckers
00fed23e5f
- explicitly declare the constructor and destructor methods of FCheckPosition so that they get a working prototype.
2019-04-16 15:12:33 +02:00
Christoph Oelckers
29eee14549
- declare builtins as static.
2019-04-16 14:58:18 +02:00
Christoph Oelckers
c01981d08a
- define the built-in functions defined in codegen.cpp through the regular interface instead uf just hacking them into the symbol table with incompletely set up data.
...
- added direct native variants to these builtins and fixed problems with builtin processing.
2019-04-15 22:30:01 +02:00
Christoph Oelckers
20ec6ddce4
- removed AStateProvider from native code.
...
The only place still referencing it was CallStateChain, so this has been made a static function now instead of a class method.
2019-04-15 22:29:58 +02:00
Christoph Oelckers
376c47bef6
- fixed handling of dummy flags.
2019-04-15 22:29:55 +02:00
Christoph Oelckers
96e9dbd967
- removed all remaining native components of the weapon class.
2019-04-15 22:29:52 +02:00
Christoph Oelckers
d871072f28
- allow defining flags in the script declaration of a class and do that for Weapon.
2019-04-15 22:29:47 +02:00
Christoph Oelckers
309cc57504
- removed all direct access to AWeapon's members to prepare moving this class fully to the script side.
...
Disregarding UI-side and setup-related calls there's unfortunately still 6 places in the native game code which require direct access.
2019-04-15 22:29:43 +02:00
Christoph Oelckers
ce5792242c
- moved the 'Finalize' methods back into a single function in the parser code.
...
It has been like this initially but was changed when ZDoom gained an overly complicated polymorphic class descriptor object that required a lot of support code. All these complications have long been removed but these methods remained. Since they prevent a class from being moved to the script side entirely they had to be removed.
This was the last major blocker to make Weapon a purely scripted class, the only remaining native method is Serialize which is of no concern for the coming work.
2019-04-15 22:29:39 +02:00
Christoph Oelckers
7caa6a922d
- moved MarkPrecacheSounds completely to the script side and added native support to make this a usable feature.
...
# Conflicts:
# src/g_inventory/a_pickups.cpp
2019-04-15 22:29:35 +02:00
Christoph Oelckers
ac754b5e96
- some cleanup on the weapon slot interface.
...
This really shouldn't make any decisions from directly reading weapon class defaults.
2019-04-15 22:29:32 +02:00
Christoph Oelckers
f9dfdace16
- scriptified cht_Takeweaps.
2019-04-15 22:29:30 +02:00
Christoph Oelckers
94b0338c31
- scriptified ApplyKickback.
2019-04-15 22:29:26 +02:00
Christoph Oelckers
59bffe2f55
- scriptified A_WeaponReady and its subfunctions.
2019-04-15 22:29:22 +02:00
Christoph Oelckers
951ed466b3
- scriptified P_BobWeapon as a virtual function on PlayerPawn.
2019-04-15 22:29:19 +02:00
Christoph Oelckers
0515af2bd3
- removed the bot related properties from AWeapon.
...
This stuff is now kept locally in the bot code so that it doesn't infest the rest of the engine.
And please don't read the new botsupp.txt file as some new means to configure bots! This was merely done to get this data out of the way.
The bots are still broken beyond repair and virtually unusable, even if proper data is provided for all weapons.
2019-04-15 22:29:15 +02:00
Christoph Oelckers
681009e1ea
- exported the blood spawning part of P_LineAttack as a virtual ZScript function.
2019-04-15 21:59:08 +02:00
Christoph Oelckers
82ffdd5e6b
- moved the weapon selection logic to PlayerPawn as overridable virtual functions.
2019-04-15 21:59:07 +02:00
Christoph Oelckers
27c67716df
- change teleport freeze handling to a player property plus virtual override on PlayerPawn for increased configurability.
...
# Conflicts:
# src/g_inventory/a_pickups.cpp
2019-04-15 21:59:03 +02:00
Christoph Oelckers
7c1416cb6f
- scriptified BecomeItem and BecomePickup
...
# Conflicts:
# src/g_inventory/a_pickups.cpp
2019-04-15 21:59:01 +02:00
Christoph Oelckers
08059f718b
- scriptified FilterCoopRespawnInventory.
2019-04-15 21:59:00 +02:00
Christoph Oelckers
1ecada388c
- scriptified some simple sound functions.
2019-04-15 21:58:58 +02:00
Christoph Oelckers
d123230fb1
- scriptified APlayerPawn::Die and fixed a few things I encountered while doing it.
2019-04-15 21:58:56 +02:00