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
9ff5257ce9
- scriptified P_DropItem.
2019-04-16 21:28:30 +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
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
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
1033dc3b10
- Alt HUD scriptification, part 1.
2019-04-16 19:01:43 +02:00
Christoph Oelckers
d021d63d33
- moved AInventory::DoRespawn fully to the script side.
2019-04-16 18:45:49 +02:00
drfrag
e3ce680ec9
- Removed duplicate definition of DTA_Internal3.
2019-04-16 18:40:25 +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
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
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
94b0338c31
- scriptified ApplyKickback.
2019-04-15 22:29:26 +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
Christoph Oelckers
05e8a6c62d
- scriptified A_RailAttack.
2019-04-15 21:58:35 +02:00
Christoph Oelckers
395413fc9a
- scriptified P_MorphPlayer and dependencies.
...
It still needs its counterpart scriptified as well before it can work.
# Conflicts:
# src/gi.cpp
# wadsrc/static/zscript/base.txt
2019-04-15 21:56:16 +02:00
Marisa Kirisame
9022c98732
expose defaultbloodcolor to ZScript.
2018-11-24 00:18:24 +01:00
Major Cooke
b34bc0947e
Added IsPointInMap(Vector3 p).
...
- Checks if a point is inside the map geometry or not.
2018-11-08 16:18:29 +01:00
Cacodemon345
57e51debec
Extend SKYEXPLODE flag for LineAttack
2018-11-03 21:52:25 +01:00
ZippeyKeys12
96fafa9c59
Export AllClasses
2018-11-02 13:07:12 +01:00
drfrag666
557380a769
- Added alpha parameter to DrawLine for the GL renderer, it's a fake parameter for the software renderer so mods don't crash.
2018-11-02 13:04:37 +01:00
drfrag666
a2674eb4cf
- Added fake DrawThickLine action function so mods using it don't crash. DrawLine will be called instead.
2018-09-02 00:29:11 +02:00
Christoph Oelckers
80da2e74c5
- removed most of the old LastIndexOf methods in FString, only leaving one for ZScript and clearly giving it a name that says it all. RIndexOf has been made the proper version of LastIndexOf internally now.
2018-08-26 13:51:30 +02:00
Christoph Oelckers
23f2d9aaa0
- renamed RIndexOf to RightIndexOf
2018-08-26 13:51:28 +02:00
Kevin Caccamo
b57d2f11f3
Add the "RIndexOf" method to FString, which works like String.lastIndexOf from JavaScript
...
RIndexOf returns the index where the substring starts, instead of the index where the substring ends - 1.
Deprecate the LastIndexOf method of StringStruct
2018-08-26 13:51:27 +02:00
argv-minus-one
66933d6b91
Add ZScript method LevelLocals.SphericalCoords
.
...
It computes spherical coordinates from one point in the world to another. Useful for checking whether one actor is inside another actor's view cone.
2018-08-22 12:14:19 +02:00
Christoph Oelckers
403a99915f
Revert "Add RenderStyle API"
...
This reverts commit 8c7d3b6ab8
.
With DTA_LegacyRenderStyle being added there is no pressing need for this. Aside from that there's an utterly unhealthy amount of information duplication here and it is missing some more recent additions.
2018-08-05 20:46:33 +02:00
Zombie
de0a4f8664
Add RenderStyle API
2018-08-05 19:41:55 +02:00
Christoph Oelckers
8420459aa0
- added DTA_LegacyRenderStyle so that STYLE_* constants can be passed directly to the Draw functions.
...
- fixed the optional parameter in Shape2D.Clear.
(cherry picked from commit 7a692b1557
)
# Conflicts:
# src/v_2ddrawer.cpp
# src/v_video.h
# wadsrc/static/zscript/base.txt
2018-07-16 01:44:04 +02:00
drfrag666
1f5da940ca
- Added dummy 2D shape drawer so scripts using it won't make the engine crash.
2018-07-15 11:22:26 +02:00
Jonathan Russell
c8a47653bf
- added LevelLocals vec2/3Offset(Z) functions for portal-aware offsetting without needing actors
...
(cherry picked from commit e9050a38b3
)
2018-05-17 11:57:03 +02:00
ZZYZX
2c9193453a
Added missing commented enum entry for ETraceFlags on ZScript side
...
(cherry picked from commit da089b09b1
)
2018-05-10 13:47:29 +02:00
Christoph Oelckers
bfe87b75ad
- the global portal data table also needs to be protected.
...
(cherry picked from commit 8b4c74fad8
)
2018-05-09 11:45:21 +02:00
Christoph Oelckers
23146c9b18
- made all elements of DehInfo and State read-only.
...
This data must be immutable, if any mod plays loose here, very bad things can happen, so this hole got plugged, even at the expense risking to break some badly behaving mods.
2018-04-01 08:41:06 +02:00
Christoph Oelckers
5d223bb8c3
- removed clearscope from DSectorEffect.GetSector.
...
Just because this is a getter does not mean that the data may even exist on the client side!
2018-03-03 09:28:25 +01:00
Marisa Kirisame
4cc8ba3399
Export GetSector() again, removed lightingdata assignment.
2018-03-03 09:26:11 +01:00
Christoph Oelckers
7ceb70bcc1
- renamed 'Tracer' class to 'LineTracer', because 'Tracer' is a too common name that had been used by some mods.
2018-01-27 09:32:26 +01:00
Marisa Kirisame
92547028f3
Exports sky textures to ZScript (readonly, needs setter function due to the setup required) and speeds, along with a ChangeSky function for setting the textures.
2018-01-26 21:00:44 +01:00
ZZYZX
ee1a8f71bb
Disable TRACE_PCross and TRACE_Impact on ZScript side
2018-01-21 10:54:23 +01:00
ZZYZX
74b937620e
Added texture detection for walls and 3D floors; renamed some fields to more intuitive names
2018-01-21 10:54:23 +01:00
ZZYZX
a7ff62316d
Exported Trace() interface to ZScript
2018-01-21 10:54:23 +01:00
Jonathan Russell
708d24aba7
- added Screen.getViewWindow function
2018-01-20 21:56:34 +01:00
Marisa Kirisame
a01ca4c3a1
Exported S_IsActorPlayingSomething and S_GetMSLength to ZScript.
...
Added missing vm.h include, moved A_IsPlayingSound to p_actionfunctions.cpp.
- make A_IsPlayingSound ui only
2018-01-20 19:01:47 +01:00
Rachael Alexanderson
9fd78e90ad
- export 'GetChecksum' as part of FLevelLocals in ZScript
2018-01-06 19:59:49 -05:00
Major Cooke
c3c1e76e8a
Added vector diff functions to ZScript LevelLocals class
...
Vec2Diff() and Vec3Diff() work like Actor’s Vec2To() and Vec3To() but use arbitrary points
2018-01-02 14:18:59 +02:00
alexey.lysiuk
996bddd602
Exposed pixel stretch to ZScript as member variable instead of function
...
https://forum.zdoom.org/viewtopic.php?t=58539
2017-12-29 09:42:03 +02:00
Major Cooke
1e7df5505e
Added GetPixelStretch to LevelLocals struct.
2017-12-27 17:50:39 -05:00