MantisBT - Zandronum
View Issue Details
0002606Zandronum[All Projects] Suggestionpublic2016-01-31 17:502016-01-31 19:14
Lollipop 
 
nonefeatureN/A
acknowledgedwaiting for zdoom 
 
 
0002606: Altering a damagetype's damagefactor
There seems to not be any way to change a specific damagetype's damagefactor for an actor as of now. The only option is to define powerprotections, which is inconvinient if one wants to handle the value with an algorithm, for instance for the purpose of an RPG mod.
I have no clue what the best way to implement this would be, I'm just fine with whatever works.
No tags attached.
Issue History
2016-01-31 17:50LollipopNew Issue
2016-01-31 18:08DuskNote Added: 0014262
2016-01-31 18:08DuskAssigned To => Dusk
2016-01-31 18:08DuskStatusnew => feedback
2016-01-31 18:42LollipopNote Added: 0014263
2016-01-31 18:42LollipopStatusfeedback => assigned
2016-01-31 18:42LollipopNote Edited: 0014263bug_revision_view_page.php?bugnote_id=14263#r8609
2016-01-31 19:14DuskNote Added: 0014264
2016-01-31 19:14DuskAssigned ToDusk =>
2016-01-31 19:14DuskStatusassigned => acknowledged
2016-01-31 19:14DuskResolutionopen => waiting for zdoom

Notes
(0014262)
Dusk   
2016-01-31 18:08   
Does this not work?


Actor foo
{
    Damagefactor Fire, 0.25 //75% protection against fire
}
(0014263)
Lollipop   
2016-01-31 18:42   
I mentioned algorithm for a reason. If you want to change the damagefactor based on a mathematical calculation, then it would require a lot of copypasted powerprotection definitions.
I forgot to write "on the fly", which is what I meant. I apologize for the lack of clarity.

(0014264)
Dusk   
2016-01-31 19:14   
Hmm, I see. You'll have to ask ZDoom then.