 
General Info
Main Page
Latest News
Schedule
What is it?
About Matt
About This Site
Duke Enhancements
Latest Features
Older Features
Cheat Codes
Duke Insider
Language Basics
Compile Time
Room over Room
Player Structures
UserDef Explanations
More Information
Features Database
E Duke Forum
WW2GI Enhancements
Variables
Weapon Changes
Weapon Settings
System Variables
Events
All
|

Enhanced Duke Nukem Ideas
Copyright (C) 2000, Matt Saettler. All Rights Reserved.
Criteria:
|
| IdeaID is 92 |
| No Sorting |
Ranking |
Name |
Thinker |
500 |
CON: RandVar |
Veldrik |
Difficulty Not Set by Matt |
Description |
Another thing that would be good for this would be something like
randvar
which would call a
var=rand()*value;
if it where in stdlib.h in C/C++;
basically, it places into [var] a random value between 0 and [value]. If any of you don't know why it is multiplied, it is like your calculators rnd
button. Random numbers are created between 0 and 1.
If we had this feature we could do the following for randomparticles (I'll use numbers for the types to make it easier to read, and make a new game var
so it is shorter)
gamevar RAND 0 0
state FLY_AROUND
randvar RAND 33 // random number between 0 and 10
addspritepos 0 RAND // x axis
randvar RAND 32 // new random number
addspritepos 1 RAND // y axis
randvar RAND 16 // make this one smaller because I don't want it to fly to
high (simulate gravity)
addspritepos 2 RAND // z axis
ends |
Implemented in Build: 04 |
Matt's Comments |
|
|