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

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0001604Zandronum[All Projects] Suggestionpublic2013-12-07 03:412018-09-30 23:06
ReporterChronos Ouroboros 
Assigned ToTorr Samaho 
PrioritynormalSeverityfeatureReproducibilityN/A
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version 
Target Version2.0Fixed in Version2.0 
Summary0001604: Backport frandom
Descriptionfrandom(returns a random floating point value between min and max) is a feature used by a bunch of mods, this could make several wads and Realm667 entries compatible with Zandronum.
Attached Files

- Relationships
child of 0001490closedTorr Samaho Backport ZDoom 2.5.0 

-  Notes
User avatar (0007668)
Chronos Ouroboros (reporter)
2013-12-07 03:42
edited on: 2013-12-07 03:43

I tried searching for this but there was no feature suggestion about this, so I added it since this is a very useful feature.
It's also my first suggestion, I don't know if I made it right...

User avatar (0008003)
Llewellyn (reporter)
2014-01-14 18:49

If you really need FRandom right now, you can do what the source does right now for random, which is to multiply a decimal and a random number. An example used in the Decorate is to get the FRandom of 1 and 4.984375, you subtract the lower bound (1), and divide 255. Then in your replacement you do this: 1 + random(0, 255) * 0.015625
User avatar (0008004)
Dusk (developer)
2014-01-14 20:14

frandom should be present in Zandronum 2.0 alpha.
User avatar (0008275)
Qent (updater)
2014-02-23 17:38

Frandom works fine. There's some weird behavior were the result gets truncated to an int before doing some operations, but that is also a bug in ZDoom 2.5.0.

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: Chronos Ouroboros Phobos
Opponents: No one explicitly opposes this issue yet.

- Issue History
Date Modified Username Field Change
2013-12-07 03:41 Chronos Ouroboros New Issue
2013-12-07 03:42 Chronos Ouroboros Note Added: 0007668
2013-12-07 03:43 Chronos Ouroboros Note Edited: 0007668 View Revisions
2014-01-14 18:49 Llewellyn Note Added: 0008003
2014-01-14 20:14 Dusk Note Added: 0008004
2014-01-14 20:14 Dusk Assigned To => Torr Samaho
2014-01-14 20:14 Dusk Status new => needs testing
2014-01-14 20:14 Dusk Relationship added parent of 0001642
2014-01-14 20:15 Dusk Relationship added child of 0001490
2014-01-14 20:15 Dusk Relationship deleted parent of 0001642
2014-01-14 20:15 Dusk Target Version => 2.0
2014-02-23 17:38 Qent Note Added: 0008275
2014-02-23 17:38 Qent Status needs testing => resolved
2014-02-23 17:38 Qent Fixed in Version => 2.0-beta
2014-02-23 17:38 Qent Resolution open => fixed
2015-01-23 04:56 Blzut3 Fixed in Version 2.0-beta => 2.0
2018-09-30 23:06 Blzut3 Status resolved => closed






Questions or other issues? Contact Us.

Links


Copyright © 2000 - 2024 MantisBT Team
Powered by Mantis Bugtracker