gzdoom/src/g_hexen
Christoph Oelckers f1ba19073f - split Damage into two variables: DamageVal for the old constant and DamageFunc for the DECORATE function.
The way this was done was a major headache inducer, requiring reconstruction of the function each time the value was changed and in general made actor damage a major hassle.
There was a DECORATE wrapper to mimic the original behavior but this looked quite broken because it completely ignored the different semantics of both damage calculation types.
It also made it impossible to determine if damage was a function or a value.
This accessor has been reverted to what it should be, only returning the constant, which now is -1 for a damage function. I am sorry if this may break the odd mod out but a quick look over some DECORATE-heavy stuff showed that this was never combined in any of them so that accessing 'damage' in DECORATE code depended on an actual damage function.

To get proper damage, a future commit will add a DECORATE function which calls AActor::GetMissileDamage.
2016-09-19 03:36:51 +02:00
..
a_bats.cpp - g_hexen almost done except for 3 things that require more extensive changes. 2016-03-21 22:20:10 +01:00
a_bishop.cpp - g_hexen almost done except for 3 things that require more extensive changes. 2016-03-21 22:20:10 +01:00
a_blastradius.cpp Renamed the weapon action function caller check to ACTION_CALL_FROM_PSPRITE to avoid confusion 2016-06-17 18:36:57 +02:00
a_boostarmor.cpp - added a no-parameter Spawn function for inventory items that never show on the map, because the coordinate and replacement parameters will always be 0 for them. 2016-03-21 14:00:05 +01:00
a_centaur.cpp Normalize line endings 2016-03-01 09:47:10 -06:00
a_clericflame.cpp - added a no-parameter Spawn function for inventory items that never show on the map, because the coordinate and replacement parameters will always be 0 for them. 2016-03-21 14:00:05 +01:00
a_clericholy.cpp - added a no-parameter Spawn function for inventory items that never show on the map, because the coordinate and replacement parameters will always be 0 for them. 2016-03-21 14:00:05 +01:00
a_clericmace.cpp - g_hexen almost done except for 3 things that require more extensive changes. 2016-03-21 22:20:10 +01:00
a_clericstaff.cpp Reimplemented P_SetPsprite. 2016-06-16 07:24:00 -05:00
a_dragon.cpp - g_hexen almost done except for 3 things that require more extensive changes. 2016-03-21 22:20:10 +01:00
a_fighteraxe.cpp Reimplemented P_SetPsprite. 2016-06-16 07:24:00 -05:00
a_fighterhammer.cpp - replaced all uses of P_ThrustMobj with the already implemented AActor::Thrust method and deleted this function. 2016-03-20 01:25:47 +01:00
a_fighterplayer.cpp Reimplemented P_SetPsprite. 2016-06-16 07:24:00 -05:00
a_fighterquietus.cpp Revert "Revert "Remove "action" from Actor functions that don't actually need it"" 2016-04-19 21:09:15 -05:00
a_firedemon.cpp - g_hexen almost done except for 3 things that require more extensive changes. 2016-03-21 22:20:10 +01:00
a_flechette.cpp - fixed some leftover fixed point remnants in g_hexen. 2016-03-22 00:30:56 +01:00
a_flies.cpp - g_hexen almost done except for 3 things that require more extensive changes. 2016-03-21 22:20:10 +01:00
a_fog.cpp - fixed some leftover fixed point remnants in g_hexen. 2016-03-22 00:30:56 +01:00
a_healingradius.cpp - g_hexen almost done except for 3 things that require more extensive changes. 2016-03-21 22:20:10 +01:00
a_heresiarch.cpp - fixed: The Heresiarch's check for full rotation of its balls depended on BAM semantics so it should still be checked as such to ensure consistent behavior. 2016-04-17 12:28:35 +02:00
a_hexenglobal.h - added a no-parameter Spawn function for inventory items that never show on the map, because the coordinate and replacement parameters will always be 0 for them. 2016-03-21 14:00:05 +01:00
a_hexenmisc.cpp Normalize line endings 2016-03-01 09:47:10 -06:00
a_hexenspecialdecs.cpp - g_hexen almost done except for 3 things that require more extensive changes. 2016-03-21 22:20:10 +01:00
a_iceguy.cpp - g_hexen almost done except for 3 things that require more extensive changes. 2016-03-21 22:20:10 +01:00
a_korax.cpp - fixed spawn positions for Korax's missiles. 2016-04-14 00:21:38 +02:00
a_magecone.cpp - g_hexen almost done except for 3 things that require more extensive changes. 2016-03-21 22:20:10 +01:00
a_magelightning.cpp - split Damage into two variables: DamageVal for the old constant and DamageFunc for the DECORATE function. 2016-09-19 03:36:51 +02:00
a_magestaff.cpp - floatified portals.cpp and most of p_maputl.cpp. 2016-03-31 16:52:25 +02:00
a_pig.cpp Reimplemented P_SetPsprite. 2016-06-16 07:24:00 -05:00
a_serpent.cpp - made AActor::floorclip a double. 2016-03-20 23:42:27 +01:00
a_spike.cpp - g_hexen almost done except for 3 things that require more extensive changes. 2016-03-21 22:20:10 +01:00
a_summon.cpp - g_hexen almost done except for 3 things that require more extensive changes. 2016-03-21 22:20:10 +01:00
a_teleportother.cpp - made player_t::crouchoffset and FPlayerStart's coordinates doubles and added a float version of divline_t so that I could complete the conversion of Hexen's game code. 2016-03-22 00:06:58 +01:00
a_wraith.cpp - fixed A_WraithFX2 which had an incomplete floating point conversion. 2016-04-17 18:19:46 +02:00