Zandronum Chat on our Discord Server Get the latest version: 3.2
Source Code

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000525Zandronum[All Projects] Suggestionpublic2011-07-26 09:352011-07-27 11:25
ReporterTribeam 
Assigned To 
PrioritynormalSeverityfeatureReproducibilityN/A
StatusclosedResolutionno change required 
PlatformMicrosoftOSWindowsOS VersionXP/Vista/7
Product Version98d 
Target VersionFixed in Version 
Summary0000525: ZDoom's Quoted Decorate Damage
DescriptionZDoom'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.
Additional InformationI tried to find the revision for this but no luck :/
Attached Files

- Relationships

-  Notes
User avatar (0001959)
Torr Samaho (administrator)
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?
User avatar (0001960)
Tribeam (reporter)
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?
User avatar (0001961)
unknownna (updater)
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.
User avatar (0001962)
Tribeam (reporter)
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

Issue Community Support
This issue is already marked as resolved.
If you feel that is not the case, please reopen it and explain why.
Supporters: No one explicitly supports this issue yet.
Opponents: No one explicitly opposes this issue yet.

- Issue History
Date Modified Username Field Change
2011-07-26 09:35 Tribeam New Issue
2011-07-26 11:28 Torr Samaho Note Added: 0001959
2011-07-26 11:42 Tribeam Note Added: 0001960
2011-07-26 11:52 unknownna Note Added: 0001961
2011-07-26 11:56 Tribeam Note Added: 0001962
2011-07-26 11:56 Edward-san Note Added: 0001963
2011-07-26 12:10 Edward-san Note Deleted: 0001963
2011-07-27 11:25 Torr Samaho Status new => closed
2011-07-27 11:25 Torr Samaho Resolution open => no change required






Questions or other issues? Contact Us.

Links


Copyright © 2000 - 2025 MantisBT Team
Powered by Mantis Bugtracker