Boondorl
df9b2cd9bf
Added 64-bit networking support
...
Mainly for use with doubles as ZScript can now take advantage of it. Enforced sizing on ints passed to and read from net functions.
2024-01-05 23:33:15 +01:00
Boondorl
a8e350aed8
Renamed Networking Functions
...
New names more appropriately match the size of the value they write to/read from the stream.
2024-01-05 23:33:15 +01:00
Boondorl
4b3cfc6ab7
Converted NetworkBuffer to Object
...
Fixed a memory leak with _buffer in DNetworkBuffer. Added more wrapper functions to ZScript for basic scenarios.
2024-01-05 16:42:13 +01:00
Boondorl
202d0d747f
Added NetworkBuffer
...
Allows for a command to be built before sending it off. Added wrapper functions for certain data types. Changed command from a number to a Name.
2024-01-05 16:42:13 +01:00
Boondorl
9565c94cd2
Added SendNetworkCommand
...
Allows for a custom message to be sent over the network without the need for SendNetworkEvent. This includes all the possible valid types of byte, word, long, float, and string.
2024-01-05 16:42:13 +01:00
Boondorl
2d94321887
Added OnEngineInitialize() for static event handlers
2023-01-25 17:41:48 -05:00
Boondorl
7517b64aee
Updated to Interface Event
...
Changed SendConsoleEvent to SendInterfaceEvent to make functionality clearer. Added InterfaceProcess virtual to EventHandlers. Added CCMD for sending interface events.
2022-11-13 21:04:38 +01:00
Marisa Kirisame
457f7c31c3
Allow WorldUnloaded events to know the next map name (if any).
2021-10-01 20:18:36 +02:00
nashmuhandes
6e692e5571
Allow retrieval of the custom Crush state in WorldThingGround
2020-10-25 20:10:52 +01:00
nashmuhandes
7285c5aca8
Added WorldThingGround event to hook into the actor at exact moment its corpse spawns gibs upon being crushed.
2020-10-25 20:10:52 +01:00
Sterling Parker
d2a9de0012
Add PlayerSpawned() event ( #1118 )
...
* Add PlayerSpawned() event
* add playerspawned to DStaticEventHandler
* Define PlyerSpawned() correctly
2020-08-25 11:54:20 -04:00
Christoph Oelckers
5dfe9918d0
- moved some event related code to 'common'.
2020-06-13 20:31:57 +02:00
Christoph Oelckers
e3fdf2194e
- moved a few leftover utility classes to 'common'.
2020-04-29 17:51:04 +02:00
Major Cooke
7b698b4a0e
Added RenderUnderlay.
...
- Works exactly like RenderOverlay, but is drawn behind the status bar/huds instead.
2019-07-03 18:01:45 +02:00
Christoph Oelckers
af6e2a430a
- fixed OnUnregister for Event handlers was called from a dead event manager instance.
2019-04-06 09:06:41 +02:00
Christoph Oelckers
0422f40d80
- restored calling OnRegister for event handlers after loading a savegame
...
It should be said in no uncertain terms that OnRegister operates on an uninitialized level so it should only be used for setting up the registering process of the event handler itself and nothing else - not even the event handler's data!!!
2019-03-26 17:02:40 +01:00
Christoph Oelckers
f38060d01b
- fixed: The static event manager never got a link to the primary level.
2019-02-06 15:40:49 +01:00
Christoph Oelckers
66eb4e5048
- separation of static and map-local event handlers into separate lists.
...
Having everything lumped together made this a maintenance hassle because it affected how the level has to be stored.
This hasn't been tested yet, so it may not work as intended!
2019-02-02 16:43:11 +01:00
Christoph Oelckers
484485f3cf
- made the event manager an object so it can be instantiated multiple times.
2019-02-02 10:46:34 +01:00
Major Cooke
b1c508fa6c
Added CheckReplacee.
...
- Allows defining of what actor is replacing another for information.
- If multiple arachnotrons, a modder can attribute them as being a replacer of Arachnotron itself, allowing A_BossDeath and GetReplacee to work with it.
2019-01-31 19:05:44 +01:00
ZZYZX
a276ebfb08
Exported destructible geometry to ZScript
2018-11-07 00:12:37 +01:00
Player701
3e609f2b87
- Introduced an enum named EventHandlerType and changed the bool argument in E_NewGame to this type.
2018-10-31 17:19:21 +01:00
player701
04ae32f6f9
- Static NewGame events now fire before loading a map, and normal NewGame events fire after registering per-map handlers and before all other events.
...
- Static event handlers now unregister after per-map handlers.
- All event handlers now unregister in reverse order.
2018-10-31 17:19:21 +01:00
ZippeyKeys12
7885a22cad
Add NewGame to EventHandler
...
https://forum.zdoom.org/viewtopic.php?t=61908
2018-09-15 13:20:41 +02:00
Christoph Oelckers
fad406c4c9
- got rid of FNameNoInit and made the default constructor of FName non-initializing.
...
This setup has been a constant source of problems so now I reviewed all uses of FName to make sure that everything that needs to be initialized is done manually.
This also merges the player_t constructor into the class definition as default values.
2018-08-19 08:19:19 +02:00
Marisa Kirisame
02926a5567
Add "IsFinal" parameter for CheckReplacement.
...
If set to true it guarantees that the replacement is final and will not go through the rest of the replacement chain.
2018-08-16 21:44:21 +02:00
Marisa Kirisame
e18b17217f
Added CheckReplacement to event handlers, a function inspired by its namesake in Unreal's Mutator class.
...
Performs runtime replacement of actor classes.
Takes priority over the "replaces" keyword in both DECORATE and ZScript.
2018-08-15 19:31:09 +02:00
alexey.lysiuk
ba4cc1a6ca
Added activation type to WorldLine(Pre)Activated events
...
https://forum.zdoom.org/viewtopic.php?t=60232
2018-04-14 11:52:09 +03:00
alexey.lysiuk
83c513b6c9
Added names for arguments in DStaticEventHandler class definition
2018-04-14 11:52:09 +03:00
Marisa Kirisame
0656916bf2
Add WorldLinePreActivated to override line activation, as a counterpart to WorldLineActivated.
2018-03-24 16:30:49 +01:00
Marisa Kirisame
3072c9bf7c
Add PostUiTick(). Happens after all other tickers. Useful for handling changes in the play side within the same tic.
2018-03-24 10:24:13 +01:00
Marisa Kirisame
69c6e95b08
Add worldlineactivated event, triggered after successful line activation.
2018-03-24 10:23:31 +01:00
Christoph Oelckers
1dcc017daf
- reimplemented the position display, but changed its position a bit upward.
...
- activated the RenderOverlay event, now that it can be called from the correct spot, i.e. right after the top level HUD messages are drawn. The system's status output will still be drawn on top of them.
2017-03-29 23:51:53 +02:00
ZZYZX
01561eb768
Added: UiTick in EventHandlers, a callback that executes at 35fps on every handler in ui scope;
...
Removed: RenderOverlay, RenderFrame (commented out), Create, CreateOnce, Register, Unregister (completely)
2017-03-09 15:38:49 +01:00
ZZYZX
883048b538
Added E_Responder call for direct mouse input interception
2017-03-07 12:46:26 +01:00
Christoph Oelckers
9d6b5f7015
- switched the menu code over to the data types of the event system.
...
Note that this will require adjustment of all menu code which overrides the Responder method!
2017-03-06 22:27:51 +01:00
ZZYZX
21ecd714ec
Added a way to tell apart console-executed events from code-executed SendNetworkEvent
2017-03-06 11:23:36 +01:00
ZZYZX
3338fb7f33
Added SendNetworkEvent static method to EventHandler; Fixed qualified static method call from own class (previously was 'shadowed' by qualified virtual method call)
2017-03-04 00:57:41 +02:00
Christoph Oelckers
bfa7a2d737
- fixed: DStaticEventHandler did not declare its pointers.
2017-02-26 10:59:05 +01:00
Christoph Oelckers
555f339924
- fixed: Sight checks through portals must disable all early-outs.
...
These can also be triggered from lines outside the actually valid range because the checks are done before the lines get ordered by distance.
2017-02-24 19:01:19 +01:00
Christoph Oelckers
c6a5e74c75
- added GC support to the events. OF_Fixed is not recommended because it can seriously impede the GC's functionality if just being used as a lazy means to avoid collection.
2017-02-24 19:01:19 +01:00
ZZYZX
77546ad5c2
Added non-playsim console-called event
2017-02-06 15:52:20 +02:00
ZZYZX
03f7c39ea7
Fixed mouse input in event handlers. Added RequireMouse field in event handler to signify that native mouse should be turned on for certain handlers.
2017-02-03 20:34:34 +02:00
ZZYZX
0d96517f5f
Implemented RenderOverlay hook that executes directly after level and statusbar
2017-02-03 13:29:34 +02:00
ZZYZX
b45af599c5
Explicit handler deinitizliation in P_Shutdown and P_FreeLevelData
2017-02-03 13:01:15 +02:00
ZZYZX
9bb4cf1c03
User input events first take
2017-02-03 12:28:40 +02:00
ZZYZX
39355cf45d
Implemented player scripts.
2017-02-02 21:25:07 +02:00
ZZYZX
7fa50c22e5
Added player events
2017-02-02 20:26:56 +02:00
ZZYZX
bc1194d03b
Added ordering for handlers - by int value returned by virtual function GetOrder(); Also, some handlers (WorldUnloaded and WorldThingDestroyed) are now executed in reverse order.
2017-02-02 19:57:00 +02:00
ZZYZX
765bc2db39
Made map-section handlers in MAPINFO not static. Static now unambiguously means 'global from GameInfo'.
2017-01-31 06:24:39 +02:00