MantisBT - Zandronum
View Issue Details
0000525Zandronum[All Projects] Suggestionpublic2011-07-26 09:352011-07-27 11:25
Tribeam 
 
normalfeatureN/A
closedno change required 
MicrosoftWindowsXP/Vista/7
98d 
 
0000525: ZDoom's Quoted Decorate Damage
ZDoom's damage decorate property value can be enclosed in quotes to ignore Doom's random damage calculations and make your own calculations.
Doom's calculation is "random(1,8)*damage"

damage "random(0,3)*damage"

This ignores doom's calculation and adds your own.
I tried to find the revision for this but no luck :/
No tags attached.
Issue History
2011-07-26 09:35TribeamNew Issue
2011-07-26 11:28Torr SamahoNote Added: 0001959
2011-07-26 11:42TribeamNote Added: 0001960
2011-07-26 11:52unknownnaNote Added: 0001961
2011-07-26 11:56TribeamNote Added: 0001962
2011-07-26 11:56Edward-sanNote Added: 0001963
2011-07-26 12:10Edward-sanNote Deleted: 0001963
2011-07-27 11:25Torr SamahoStatusnew => closed
2011-07-27 11:25Torr SamahoResolutionopen => no change required

Notes
(0001959)
Torr Samaho   
2011-07-26 11:28   
> I tried to find the revision for this but no luck :/

Does anybody else know in which revision this was added?
(0001960)
Tribeam   
2011-07-26 11:42   
I found it, its r288, soo..it should already be in ST, but I tried it and it didn't seem to work...maybe its a bug?
(0001961)
unknownna   
2011-07-26 11:52   
'http://www.zdoom.org/Changelog/288/files [^]'

* Added support for setting an actor's damage property to an expression through decorate. Just enclose it within parentheses, and the expression will be evaluated exactly as-is without the normal Doom damage calculation. So if you want something that does exactly 6 damage, use a "Damage (6)" property. To deal normal Doom missile damage, you can use "Damage (random(1,8)*6)" instead of "Damage 6".

'http://www.zdoom.org/wiki/Actor_properties#Behavior [^]'

Custom damage formulas can be specified by enclosing the value completely within parenthesis. For example: "damage (random(4,8)*5+6)". This bypasses the normal calculation and does the exact damage resulting from the custom formula.
(0001962)
Tribeam   
2011-07-26 11:56   
Arg, i feel really stupid, ignore all this, its already there and working, i just did it wrong -_-, sorry :S