 
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 65 |
| No Sorting |
Ranking |
Name |
Thinker |
125 |
Make distance to target available as variable |
Cyborg |
Difficulty Not Set by Matt |
Description |
What I'd like to enchance this effect is the ability to have the distance of a player from an actor expressed as a varibale, so I could modify my code something like:
palfrom 64/pdist 64 0 0
to give a red colour relative to the players distance with the operator ( / )added in as this would give an intensity from 0 - 64 dependant on distance from the light
sizeat pdist/128 pdist/128
to size my corona depending on how close the player is. I'm not sure what type of formula I might want to use but being able to use operators would be invaluble.
I'd be able to perfect the corona effect with just two lines of code rather than being forced to use 1000's with the current code (because at the moment I only check for one intensity radius, for smooth changes I need to add a lot of code for each radius range). |
Matt's Comments |
just set DIST variable based on existing calculations (I think) |
|