Christoph Oelckers
e009cbec9e
- fixed: PClass::StaticShutdown did not remove the class pointers for VM base classes from their class registration entries.
2016-11-12 10:17:57 +01:00
Christoph Oelckers
30a2171080
- let "" be synonymous with 'none' in ZScript.
2016-11-12 10:06:26 +01:00
Christoph Oelckers
62a259bb36
Merge branch 'master' of https://github.com/rheit/zdoom into zscript
2016-11-12 09:46:09 +01:00
Christoph Oelckers
34fc6323a4
- scriptified Hexen's bats.
...
- removed AMinotaurFriend::IsOkayToAttack. The condition it checks (i.e. friendliness with player) is already covered by the base version of this function so this is quite redundant.
- removed a few 'virtual' qualifiers from functions that never get overridden.
2016-11-12 09:33:43 +01:00
Marisa Heit
c69394fa40
Add con_numnotify cvar to control number of lines of notification text
...
- If con_numnotify < 0, then there is no limit on the number of lines of
text.
- If con_numnotify == 0, then any text that would normally be shown in the
notification area is discarded.
- If con_numnotify > 0, then that is the maximum number of lines of
notification text to display.
2016-11-12 00:34:07 -06:00
Marisa Heit
1e497e0b3e
Fixed: FString::StripLeftRight() lost the right character when copying to a new buffer
...
- Also, some minor improvements to the strip functions to avoid doing
extra work.
2016-11-12 00:34:07 -06:00
Marisa Heit
513ad7f75f
Use FString to store console atexit commands
2016-11-12 00:34:07 -06:00
Marisa Heit
c5eb28d360
Fix console scrolling too far when page scrolling with scaled text
2016-11-12 00:34:07 -06:00
Marisa Heit
4dce07762b
Change con_scale behavior for value 0
...
- Do not use uiscale for con_scale default. A 40 column console when
everything is defaults is maddening. The default is now CleanXfac minus 1.
2016-11-12 00:34:07 -06:00
Marisa Heit
3926ca13b0
Fix console input not scrolling when you hit the side of the screen
...
- Also changed the console input buffer into a struct instead of a
frankenstein buffer.
2016-11-12 00:34:07 -06:00
Christoph Oelckers
5bc89e7efc
- added a VM handler for PostBeginPlay.
...
- made a few changes to let the templates compile again on Linux.
2016-11-12 00:57:21 +01:00
Christoph Oelckers
696af7d7e5
- Moved all virtual function related template code to its own file because it depends on includes that cannot be done in dobject.h.
2016-11-12 00:33:40 +01:00
Christoph Oelckers
14a9c13113
- scriptified Heretic's wizard.
2016-11-11 23:32:13 +01:00
Christoph Oelckers
a5f9eb5be1
- Scriptified Heretic's knight.
2016-11-11 22:14:29 +01:00
Christoph Oelckers
924096694e
- implemented super calls and proper dispatch of scripted virtual overrides for Destroy.
2016-11-11 21:52:08 +01:00
Christoph Oelckers
72e77a6c65
- implemented handling for virtual function.
...
Syntax-wise I chose to make it as strict as possible to reduce the chance of errors: Virtual base functions must be declared with the 'virtual' keyword, and overrides in child classes with the 'override' keyword. This way any mismatch in parameters that otherwise would cause silent failure will outright produce a compile error.
2016-11-11 20:05:07 +01:00
Leonard2
a1aceaf04f
Fixed the remaining errors with GCC
2016-11-11 16:01:09 +01:00
Edoardo Prezioso
8d01ba7733
- Fixed Clang errors with delayed templates on.
2016-11-11 15:22:53 +01:00
Christoph Oelckers
5e8c8b80c9
- removed bogus token paste operator.
2016-11-11 14:51:36 +01:00
Christoph Oelckers
6529931281
fixed and completed the special field init code. Strings can now be used as class members, and so can structs which contain strings.
...
- made 'DamageMultiply' an actor property and moved the initialization of ConversationRoot to the property handler for the compiler to get this stuff out of the type classes.
- consolidate default initialization into one function which performs all the required setup. The original implementation did this when adding the fields but that cannot work because at that time no defaults have been created yet.
- fixed: When deriving a class the child class's defaults also must initialize the copied parent fields with special initialization. This part was completely missing.
- removed DECORATE code for parsing native classes because it's no longer needed.
2016-11-11 14:40:32 +01:00
nashmuhandes
fd31c84745
Added a slider to control the intensity of underwater screen blending.
2016-11-11 17:18:39 +08:00
Christoph Oelckers
15ddf70f58
- typo
2016-11-11 09:27:52 +01:00
Christoph Oelckers
a60bdc2bfb
use a memory arena for allocating code generation nodes.
...
- Since the number of small allocations here is extremely high this will help a lot to prevent fragmentation and since most nodes are collected up front and this is done when no large resources are being loaded it won't cause heap spikes.
let Emit methods delete FxExpression arrays when they are done.
- For some reason the deletion process does not work 100%, there are always some nodes left behind and so far I haven't found them. This ensures that these arrays do not live any longer than needed.
2016-11-10 15:13:31 +01:00
Christoph Oelckers
e0bd6a2c0a
- fixed a memory leak in the compiler.
...
- removed test Printfs.
2016-11-10 13:37:38 +01:00
Christoph Oelckers
5151547df0
- fixed: String comparisons with constants did not work.
2016-11-09 20:28:46 +01:00
Leonard2
fb2a843c03
Test on a few methods/classes
2016-11-09 17:45:56 +01:00
Leonard2
26dc0c6df2
TODO: Find a better place to insert the classes in the hierarchy
2016-11-09 17:45:55 +01:00
Leonard2
7dbc4710f1
Add the new argument to all uses of the implement macro
2016-11-09 17:45:55 +01:00
Leonard2
33e2c74642
Provide a way to expose a native class to zscript for virtual functions overriding
2016-11-09 17:45:54 +01:00
Leonard2
ad19e439a6
Implement a general and easy-to-use way of overriding native virtual functions
2016-11-09 17:45:53 +01:00
Leonard2
bb2d61de50
Replaced the many implement macros with a single one that takes arguments instead
2016-11-09 17:45:53 +01:00
Leonard2
0b3585c83f
Separate the pointer list from the implement macro
2016-11-09 17:45:52 +01:00
Christoph Oelckers
701ffb868b
- fixed: The first argument of string-based ACS specials was missing a string to name cast.
2016-11-08 22:36:44 +01:00
Christoph Oelckers
7b7b66d8b7
- added a new variable flag that allows defining variables which can only be modified by internal script code but not by external mods. Currently this is used by the NoBlockmap and NoSector flags which need special handling for changing.
2016-11-08 11:12:56 +01:00
Christoph Oelckers
3661e479d9
- fixed: Runtime conversion of names to classes used the wrong argument to check the class type.
2016-11-07 23:29:54 +01:00
Christoph Oelckers
aac931192b
- fixed: Declaring a damage function must set regular damage to -1 to disable it.
2016-11-07 23:22:00 +01:00
Christoph Oelckers
cf9cdeb480
- scriptified the Revenant's code.
2016-11-07 23:16:25 +01:00
Christoph Oelckers
75c20ebaa6
- typo in Lostsoul definition.
2016-11-07 21:30:08 +01:00
Christoph Oelckers
e3bee84860
- fixed: Hexen's serpent was still using "None" for 'no state', which in ZScript is done with null.
2016-11-07 20:12:06 +01:00
Christoph Oelckers
387287008c
- fixed: Clamp was initialized with incorrect values.
2016-11-07 14:57:59 +01:00
Christoph Oelckers
5e8c819a33
- fixed checks in Powerup.Type property to properly deal with the differences between DECORATE and ZScript.
...
- properly initialize Baggage everywhere it gets used.
- fixed a few items with incorrect Powerup.Type settings that got flagged by the above changes.
2016-11-07 11:53:49 +01:00
Christoph Oelckers
208fe28042
- properly clear all script compiler data for a restart.
2016-11-07 11:30:41 +01:00
Christoph Oelckers
dc055b74c1
- fixed the octal parser in strbin. Like its hex counterpart it needs to backtrack one character if it find the end of a sequence.
...
- since ZScript already receives filtered strings, the 'T' converter for the properties should not do it again.
2016-11-07 09:54:46 +01:00
Christoph Oelckers
b206d19df4
- fixed: RegAvailability never set the number of allocated registers to more than 32.
...
- fixed register allocation in ?: operator which was quite broken.
2016-11-07 01:10:56 +01:00
Christoph Oelckers
7da4e0d03d
- removed a parsing hack for the old internal definitions.
...
- fixed: The state cast hack for DECORATE could not properly create state constants.
Instead they were passed to FxRuntimeStateIndex without resolving them to something constant. This adds proper handling of constant indices within that class.
2016-11-06 23:10:23 +01:00
Braden Obrzut
640bf2a6d4
- Fixed: SBarInfo didn't support animated images in some places.
2016-11-06 17:07:44 -05:00
Christoph Oelckers
779f9d7a72
Merge branch 'master' of https://github.com/rheit/zdoom into zscript
2016-11-06 15:13:44 +01:00
Major Cooke
2583da9680
Do not allow DMG_FORCED to bypass ultimate degreeslessness/buddha for players.
2016-11-06 07:44:30 -06:00
Christoph Oelckers
10ef430bae
Revert "Do not allow DMG_FORCED to penetrate player ultimate degreelessness/buddha."
...
This reverts commit 0130bde077
.
This wasn't supposed to get merged, so get rid of it again. The change in semantics here is not acceptable.
2016-11-06 14:18:13 +01:00
Christoph Oelckers
647fd53a15
- fixed: An 'if' statement with only one branch may never considered to be always returning.
2016-11-06 14:14:54 +01:00